/* ================================
   CONTENEDOR GENERAL
================================ */
.ct-home-wikis {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  box-sizing: border-box;
}

/* ================================
   FILAS
================================ */
.ct-wiki-row {
  display: grid;
  gap: 32px;
  width: 100%;
  box-sizing: border-box;
}
.ct-wiki-card {color: #ffffff !important;}
/* Fila superior → 30 / 70 */
.ct-wiki-row.row-top {
  grid-template-columns: 1fr 2fr; /* 🔥 FIX DESBORDE */
  align-items: start;
}

/* Fila inferior → 50 / 50 */
.ct-wiki-row.row-bottom {
  grid-template-columns: 1fr 1fr;
}

/* =========================
   SLIDER
========================= */

.ct-theme-slider {
  width: 100%;
  height: 520px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* =========================
   SLIDE
========================= */

.ct-theme-slide {
  height: 100%;
  display: none;
  flex-direction: column;
  gap: 16px;
}

.ct-theme-slide.active {
  display: flex;
}

/* =========================
   IMAGEN SLIDER (BACKGROUND)
========================= */

.ct-theme-image {
  width: 100%;
  height: 357px;                 /* ALTURA FIJA */
  border-radius: 24px;
  background-size: cover;        /* 🔥 CLAVE */
  background-position: center;   /* 🔥 CLAVE */
  background-repeat: no-repeat;  /* 🔥 CLAVE */
}

/* =========================
   CAJA TEXTO SLIDER
========================= */

.ct-theme-box {
  background: #4b7f2a;
  color: #fff;
  padding: 15px 20px;
  border-radius: 20px;
}

.ct-theme-box span {
  display: block;
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 0px;
  font-weight: bold;
}

.ct-theme-box strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

/* ================================
   COLUMNA DERECHA
================================ */
.ct-home-wikis-right {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
}

/* ================================
   HEADER
================================ */
.ct-wiki-header span {
  display: inline-block;
  background: #76B82A;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  box-shadow: 1px 3px 4px 1px #b5b2b2;

}

.ct-wiki-header h2 {
  font-size: 2.4rem !important;
  line-height: 2.4rem;
  margin-bottom: 8px;
  font-family: "Asap";
  font-weight: bold;
}

.ct-wiki-header p {
  font-size: 16px;
  color: #555;
  font-family: "Asap";
}

/* ================================
   TARJETAS WIKI
================================ */
.ct-wiki-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none !important;

}

.ct-wiki-card:hover .ct-wiki-overlay h4,
.ct-wiki-card:hover .ct-wiki-overlay h3 {
  text-decoration: underline !important;
  color: #fff;
}
.ct-wiki-card:hover .ct-wiki-tag{
  color: #fff;
  font-size: 14px;
}
.ct-wiki-card:hover .ct-wiki-meta {
  color: #fff;
}


/* Alturas */
.ct-wiki-card.main {
  height: 300px;
}

.ct-wiki-card.small {
  height: 300px;
}

/* Overlay */
.ct-wiki-overlay {
  width: 100%;
  padding: 24px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0)
  );
}

.ct-wiki-tag {
  display: inline-block;
  background: #76B82A;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 13px;
  margin-bottom: 10px;
  transition: font-size 1s ease;
}

.ct-wiki-top {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 8px;
}

.ct-wiki-meta {
  display: block;
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 6px;
  white-space: nowrap;
  margin-left: auto; 
}

.ct-wiki-card h3 {
  font-size: 2rem !important;
  line-height: 2rem;
  font-family: "Asap";
  font-weight: bold;
  transition: text-decoration 1s ease;
}

.ct-wiki-card h4 {
  font-size: 2rem !important;
  line-height: 2rem;
  font-family: "Asap";
  font-weight: bold;
  transition: text-decoration 1s ease;
}

/* ================================
   RESPONSIVE
================================ */

/* Tablet */
@media (max-width: 1024px) {

  .ct-wiki-row.row-top,
  .ct-wiki-row.row-bottom {
    grid-template-columns: 1fr;
  }

  .ct-theme-slider {
    height: auto;
  }

  .ct-theme-image {
    height: 300px;
  }

  .ct-theme-box strong {
    font-size: 24px;
  }
}

/* Mobile */
@media (max-width: 640px) {

  .ct-theme-image {
    height: 260px;
  }

  .ct-theme-box {
    padding: 20px;
  }

  .ct-theme-box strong {
    font-size: 20px;
  }

  .ct-wiki-header h2 {
    font-size: 22px;
  }

  .ct-wiki-card.main,
  .ct-wiki-card.small {
    height: 260px;
  }

  .ct-wiki-overlay {
    padding: 18px;
  }
}
