/* ══════════════════════════════════════════════
 * CECA Featured Section Widget — Estilos BEM
 * Variables CSS3 del tema ceca-theme
 * ══════════════════════════════════════════════ */

/* ── Bloque principal ── */
.ceca-featured-section {
  position: relative;
  width: 100%;
}

/* ── Contenedor flex ── */
.ceca-featured-section__container {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  width: 100%;

  margin: 0 auto;
  padding: 64px 120px;
  box-sizing: border-box;
}

/* ── Columna izquierda ── */
.ceca-featured-section__left {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Header (categoría + título) ── */
.ceca-featured-section__header {
  display: flex;
  flex-direction: column;
}

/* ── Categoría ── */
.ceca-featured-section__category {
  display: block;
  margin-bottom: 16px;
  font-family: var(--ceca-font-family, "Encode Sans Expanded", sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ceca-cyan, #00b5dd);
}

/* ── Título ── */
.ceca-featured-section__title {
  margin: 0;
  padding: 0;
  font-family: var(--ceca-font-family, "Encode Sans Expanded", sans-serif);
  font-size: 48px;
  line-height: 1.15;
}

/* ── Título bold ── */
.ceca-featured-section__title-regular {
  display: block;
  font-weight: 700;
  color: var(--ceca-primary, #002a4f);
}

/* ── Título destacado/italic ── */
.ceca-featured-section__title-highlight {
  display: block;
  font-weight: 400;
  font-style: italic;
  color: var(--ceca-secondary, #aa004f);
}

/* ── Cita / blockquote ── */
.ceca-featured-section__quote {
  margin: 0;
  padding: 0;
  font-family: var(--ceca-font-family, "Encode Sans Expanded", sans-serif);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  color: #686870;
}

/* ── Bloque autor ── */
.ceca-featured-section__author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ceca-featured-section__author-info-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Foto del autor ── */
.ceca-featured-section__author-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── Info del autor (nombre + cargo) ── */
.ceca-featured-section__author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Nombre del autor ── */
.ceca-featured-section__author-name {
  font-family: var(--ceca-font-family, "Encode Sans Expanded", sans-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ceca-text-dark, #1a1a2e);
}

/* ── Cargo del autor ── */
.ceca-featured-section__author-role {
  font-family: var(--ceca-font-family, "Encode Sans Expanded", sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #686870;
}

/* ── Firma ── */
.ceca-featured-section__signature {
  display: block;
  max-width: 160px;
  height: auto;
  mix-blend-mode: multiply;
}

/* ── Columna derecha ── */
.ceca-featured-section__right {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
}

/* ── Contenedor de columnas repeater ── */
.ceca-featured-section__columns {
  display: flex;
  gap: 38px;
}

/* ── Columna individual (repeater) ── */
.ceca-featured-section__column {
  flex: 1;
  min-width: 0;
}

/* ── Icono decorativo ── */
.ceca-featured-section__icon {
  display: block;
  width: 50px;
  height: auto;
  margin-bottom: 16px;
}

/* ── Texto de la columna ── */
.ceca-featured-section__text {
  font-family: var(--ceca-font-family, "Encode Sans Expanded", sans-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ceca-text-secondary, #676767);
}

.ceca-featured-section__text p {
  margin: 0 0 16px 0;
}

.ceca-featured-section__text p:last-child {
  margin-bottom: 0;
}

.ceca-featured-section__text strong {
  font-weight: 700;
  color: var(--ceca-primary, #002a4f);
}

/* ══════════════════════════════════════════════
 * Responsive — Tablet (≤ 1024px)
 * ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ceca-featured-section__container {
    flex-direction: column;
    padding: 48px 16px;
    gap: 40px;
  }

  .ceca-featured-section__left {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .ceca-featured-section__title {
    font-size: 40px;
  }

  .ceca-featured-section__right {
    flex: 1 1 100%;
    width: 100%;
  }

  /* Stack si hay 3+ columnas en tablet */
  .ceca-featured-section__columns:has(
    .ceca-featured-section__column:nth-child(3)
  ) {
    flex-direction: column;
  }

  .ceca-featured-section__author-image {
    width: 80px;
    height: 80px;
  }

  .ceca-featured-section__signature {
    max-width: 130px;
  }
}

/* ══════════════════════════════════════════════
 * Responsive — Mobile (≤ 768px)
 * ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ceca-featured-section__container {
    padding: 32px 16px;
    gap: 32px;
  }

  .ceca-featured-section__title {
    font-size: 32px;
  }

  .ceca-featured-section__category {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .ceca-featured-section__columns {
    flex-direction: column;
    gap: 24px;
  }

  .ceca-featured-section__text {
    font-size: 16px;
  }

  .ceca-featured-section__quote {
    font-size: 16px;
  }

  .ceca-featured-section__author {
    gap: 12px;
  }

  .ceca-featured-section__author-image {
    width: 64px;
    height: 64px;
  }

  .ceca-featured-section__signature {
    max-width: 100px;
  }
}
