/* ==========================================================================
   FESTIVAL DEL CONOCIMIENTO 2026 — Hoja de estilo
   --------------------------------------------------------------------------
   TODO está encapsulado bajo la clase raíz  .fdc
   para que no interfiera con el tema de WordPress del CNyN (ni al revés).
   --------------------------------------------------------------------------
   Paleta anclada al logotipo:
     Ciencia      Turquesa  #10ABC4
     Arte         Magenta   #E91587
     Tecnología   Naranja   #F5821F
     Humanidades  Verde     #99CA3C
     Conocimiento Amarillo  #F6D20A   (la mano que sostiene los anillos)
   ========================================================================== */

/* Las tipografías NO se importan aquí: el plugin las encola aparte
   (wp_register_style 'festival-conocimiento-fuentes'), que es lo correcto en
   WordPress y evita cargarlas dos veces. Si las desactivas con el filtro
   'fdc_usar_google_fonts', la pila de respaldo del sistema toma el relevo. */

/* ---------------------------------------------------------------- TOKENS -- */
.fdc {
  /* Marca — para GRÁFICA: anillos, bordes, rellenos, iconos y fondos.
     Sobre fondo oscuro también funcionan como texto (todos pasan AA). */
  --fdc-turquesa:  #10ABC4;
  --fdc-magenta:   #E91587;
  --fdc-verde:     #99CA3C;
  --fdc-naranja:   #F5821F;
  --fdc-amarillo:  #F6D20A;

  /* Marca — versiones para TEXTO sobre fondo claro.
     Los colores del logo son muy luminosos y sobre blanco no alcanzan el
     contraste AA (turquesa 2.75:1, naranja 2.59:1). Estas variantes conservan
     el tono pero llegan a 4.5:1 o más, incluso sobre el fondo hielo.
     Regla: color de marca para la gráfica, variante -tx para las letras. */
  --fdc-turquesa-tx: #0A7285;   /* 5.59:1 sobre blanco */
  --fdc-magenta-tx:  #C90D70;   /* 5.56:1 */
  --fdc-verde-tx:    #587A17;   /* 4.99:1 */
  --fdc-naranja-tx:  #B85800;   /* 4.74:1 */

  /* Oscuros estructurales */
  --fdc-dark:      #12343B;
  --fdc-darker:    #0B252A;

  /* Fondos */
  --fdc-bg:        #FFFFFF;
  --fdc-bg-soft:   #F7F9F8;
  --fdc-bg-ice:    #EEF7F6;

  /* Tintes suaves */
  --fdc-t-turquesa:#E7F7FA;
  --fdc-t-magenta: #FCE7F2;
  --fdc-t-verde:   #F2F8E4;
  --fdc-t-naranja: #FFF0E5;
  --fdc-t-amarillo:#FFF9D9;

  /* Texto */
  --fdc-tx:        #12343B;
  --fdc-tx-2:      #52676B;
  /* El #939598 del logo y un terciario claro no llegan a 4.5:1 en textos
     pequeños; este tono conserva la jerarquía y sí cumple AA (5.02:1). */
  --fdc-tx-3:      #627275;
  --fdc-border:    #DCE4E4;

  /* Métrica */
  --fdc-wrap:      1180px;
  --fdc-r:         18px;
  --fdc-r-s:       12px;
  --fdc-shadow:    0 2px 6px rgba(18,52,59,.05), 0 12px 32px rgba(18,52,59,.08);
  --fdc-shadow-h:  0 4px 10px rgba(18,52,59,.08), 0 20px 48px rgba(18,52,59,.14);

  --fdc-f-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fdc-f-disp:    'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Base */
  font-family: var(--fdc-f-body);
  color: var(--fdc-tx);
  background: var(--fdc-bg);
  font-size: max(17px, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
  isolation: isolate;
}

/* --------------------------------------------------------------- RESET ---
   Blindaje frente al tema de WordPress. La especificidad está calibrada a
   propósito en (0,1,0): la aporta «.fdc» y :where() no suma nada.

     tema:        h2 { ... }            (0,0,1)  ← PIERDE contra el reset
     reset:       .fdc :where(h2)       (0,1,0)
     componente:  .fdc-h2 { ... }       (0,1,0)  ← GANA por ir después

   Así el reset neutraliza los selectores de etiqueta del tema (que sí llegan
   hasta aquí) pero nunca estorba a los estilos propios. Un reset de
   especificidad cero no bastaría: el tema le ganaría. Uno de (0,1,1) —como
   «.fdc h2»— sería demasiado y aplastaría a los componentes. */
.fdc *, .fdc *::before, .fdc *::after { box-sizing: border-box; }

.fdc :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li,
            figure, figcaption, blockquote, dl, dt, dd) {
  margin: 0; padding: 0; border: 0;
  font: inherit; color: inherit;
  text-indent: 0; text-align: inherit;
  letter-spacing: normal; text-transform: none;
  background: none; box-shadow: none; list-style: none;
}

.fdc :where(img, svg, iframe, video) {
  display: block; max-width: 100%;
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; vertical-align: middle;
}
.fdc :where(img) { height: auto; }

.fdc :where(a) {
  color: inherit; text-decoration: none;
  background: none; border: 0; box-shadow: none;
}
/* Muchos temas añaden un icono a los enlaces externos vía ::after */
.fdc :where(a)::before, .fdc :where(a)::after { content: none; }

.fdc :where(button) {
  font: inherit; color: inherit; cursor: pointer;
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none;
  text-align: inherit; text-transform: none; letter-spacing: normal;
  -webkit-appearance: none; appearance: none;
}

/* Se normalizan sin perder su significado semántico */
.fdc :where(strong, b) { font-weight: 700; color: inherit; }
.fdc :where(em, i)     { font-style: italic; color: inherit; }
.fdc :where(small)     { font-size: .85em; }

.fdc :focus-visible {
  outline: 3px solid var(--fdc-turquesa);
  outline-offset: 3px;
  border-radius: 4px;
}

.fdc-sr {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ ESTRUCTURA -- */
.fdc-wrap { width: 100%; max-width: var(--fdc-wrap); margin-inline: auto; padding-inline: 24px; }

.fdc-sec { padding: clamp(64px, 9vw, 112px) 0; position: relative; background: var(--fdc-bg); }
.fdc-sec--soft { background: var(--fdc-bg-soft); }
.fdc-sec--dark { background: var(--fdc-dark); color: #fff; overflow: hidden; }

/* Sangrado completo: saca las bandas del contenedor estrecho de la entrada
   para que ocupen todo el ancho de la ventana.
   Opcional — quita  fdc--bleed  del <div> raíz si tu plantilla ya usa
   contenedores de ancho completo.

   Se usa --fdc-vw en lugar de 100vw porque 100vw incluye el ancho de la barra
   de desplazamiento: con ella visible, el bloque sobresaldría unos píxeles por
   cada lado. El script fija --fdc-vw al ancho real; si el JS no llega a
   ejecutarse, el respaldo 100vw mantiene el diseño correcto igualmente. */
.fdc { --fdc-vw: 100vw; }

.fdc--bleed .fdc-hero,
.fdc--bleed .fdc-chips,
.fdc--bleed .fdc-stats,
.fdc--bleed .fdc-sec,
.fdc--bleed .fdc-foot {
  width: var(--fdc-vw);
  margin-left: calc(50% - var(--fdc-vw) / 2);
  margin-right: calc(50% - var(--fdc-vw) / 2);
}

/* ------------------------------------------------------------ TIPOGRAFÍA -- */
.fdc-kicker {
  font-family: var(--fdc-f-disp);
  font-size: .78em; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--fdc-magenta-tx);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.fdc-kicker::after {
  content: ''; flex: 1; height: 2px; max-width: 60px;
  background: linear-gradient(90deg, var(--fdc-magenta), transparent);
}
.fdc-kicker--light { color: var(--fdc-amarillo); }
.fdc-kicker--light::after { background: linear-gradient(90deg, var(--fdc-amarillo), transparent); }

.fdc-h2 {
  font-family: var(--fdc-f-disp);
  font-size: clamp(2em, 4.6vw, 3.15em);
  line-height: 1.08; font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.fdc-h2--light { color: #fff; }

.fdc-h3 {
  font-family: var(--fdc-f-disp);
  font-size: clamp(1.4em, 2.6vw, 1.85em);
  font-weight: 700; letter-spacing: -.015em;
  text-align: center; margin-bottom: 6px;
}

.fdc-lead { font-size: clamp(1.06em, 1.7vw, 1.22em); color: var(--fdc-tx-2); line-height: 1.62; }
.fdc-lead--light { color: rgba(255,255,255,.82); max-width: 68ch; }
.fdc-lead--center { max-width: 66ch; margin-inline: auto; text-align: center; }

.fdc-sec p + p { margin-top: 1.05em; }
.fdc-muted { color: var(--fdc-tx-3); font-size: .95em; }
.fdc-center { text-align: center; }
.fdc-mt { margin-top: 26px; }
.fdc-mt-l { margin-top: 68px; }

/* Sobre fondo claro se usan las variantes de texto (ver tokens) */
.c-ciencia { color: var(--fdc-turquesa-tx); }
.c-arte    { color: var(--fdc-magenta-tx); }
.c-tecno   { color: var(--fdc-naranja-tx); }
.c-human   { color: var(--fdc-verde-tx); }

/* --------------------------------------------------------------- BOTONES -- */
.fdc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--fdc-f-disp);
  font-weight: 600; font-size: .96em; letter-spacing: .01em;
  padding: 15px 30px; border-radius: 100px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  text-align: center; line-height: 1.2;
}
.fdc-btn:hover { transform: translateY(-2px); }

/* El magenta puro del logo con texto blanco da 4.27:1 y se queda a un pelo
   de AA. Se oscurece lo justo (5.11:1) sin salirse del tono de la marca. */
.fdc-btn--magenta { background: #D4116F; color: #fff; box-shadow: 0 8px 22px rgba(233,21,135,.3); }
.fdc-btn--magenta:hover { background: #B80A63; box-shadow: 0 12px 30px rgba(233,21,135,.42); }

.fdc-btn--yellow { background: var(--fdc-amarillo); color: var(--fdc-dark); box-shadow: 0 8px 22px rgba(246,210,10,.3); }
.fdc-btn--yellow:hover { background: #FFE23F; }

.fdc-btn--outline { border: 2px solid var(--fdc-dark); color: var(--fdc-dark); }
.fdc-btn--outline:hover { background: var(--fdc-dark); color: #fff; }

.fdc-btn--ghost {
  border: 2px solid rgba(255,255,255,.7); color: #fff;
  background: rgba(11,37,42,.35); backdrop-filter: blur(6px);
}
.fdc-btn--ghost:hover { background: #fff; color: var(--fdc-dark); border-color: #fff; }

/* ============================================================== 1. HERO === */
.fdc-hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--fdc-darker);
  padding: 96px 0 120px;
  text-align: center;
}

.fdc-hero__slides { position: absolute; inset: 0; }
.fdc-hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.5s ease;
  transform: scale(1.06);
}
.fdc-hero__slide.is-active { opacity: 1; animation: fdc-kb 9s ease-out forwards; }
@keyframes fdc-kb { from { transform: scale(1.10); } to { transform: scale(1.00); } }

/* El scrim debe garantizar legibilidad sobre CUALQUIER fotografía del
   carrusel, incluidas las más claras (escenarios con fondo blanco o cielo).
   Por eso combina un degradado vertical con uno radial: el centro —donde
   vive el texto— queda siempre por debajo de ~30 % de luminancia. */
.fdc-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(11,37,42,.86) 0%,
      rgba(11,37,42,.60) 30%,
      rgba(11,37,42,.72) 66%,
      rgba(11,37,42,.95) 100%),
    radial-gradient(105% 80% at 50% 48%,
      rgba(11,37,42,.28) 0%,
      rgba(11,37,42,.82) 100%);
}

.fdc-hero__rings {
  position: absolute; right: -6vw; top: -8vh;
  width: min(60vw, 620px); height: auto;
  fill: none; stroke-width: 1.2;
  opacity: .16; pointer-events: none;
  animation: fdc-spin 70s linear infinite;
}
.fdc-hero__rings circle:nth-child(1) { stroke: var(--fdc-turquesa); }
.fdc-hero__rings circle:nth-child(2) { stroke: var(--fdc-verde); }
.fdc-hero__rings circle:nth-child(3) { stroke: var(--fdc-magenta); }
.fdc-hero__rings circle:nth-child(4) { stroke: var(--fdc-naranja); }
@keyframes fdc-spin { to { transform: rotate(360deg); } }

.fdc-hero__inner { position: relative; z-index: 2; width: 100%; max-width: 900px; padding-inline: 24px; }

.fdc-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fdc-f-disp);
  font-size: .8em; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  padding: 9px 20px; border-radius: 100px;
  margin-bottom: 30px;
  backdrop-filter: blur(6px);
}
.fdc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fdc-amarillo); flex: none; }

.fdc-hero__logo {
  width: min(78%, 460px);
  margin: 0 auto 4px;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.45));
}

.fdc-hero__disciplines {
  font-family: var(--fdc-f-disp);
  font-size: clamp(.82em, 1.9vw, 1em);
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px;
  margin-bottom: 26px;
  text-shadow: 0 2px 12px rgba(4,18,21,.85);
}
.fdc-hero__disciplines i { color: rgba(255,255,255,.4); font-style: normal; text-shadow: none; }
/* En el hero el fondo es oscuro: ahí sí van los colores puros del logotipo */
.fdc-hero__disciplines .c-ciencia { color: var(--fdc-turquesa); }
.fdc-hero__disciplines .c-arte    { color: #FF3D9E; }
.fdc-hero__disciplines .c-tecno   { color: var(--fdc-naranja); }
.fdc-hero__disciplines .c-human   { color: #AEDB55; }

.fdc-hero__dates {
  font-family: var(--fdc-f-disp);
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 4px 14px;
  color: #fff; margin-bottom: 20px;
}
.fdc-hero__dates strong {
  font-size: clamp(3.6em, 12vw, 7em);
  font-weight: 700; line-height: .88; letter-spacing: -.04em;
  text-shadow: 0 3px 26px rgba(4,18,21,.6);
}
.fdc-hero__dash { font-size: clamp(2em, 6vw, 3.4em); color: var(--fdc-amarillo); font-weight: 300; }
.fdc-hero__dates em {
  font-style: normal; text-align: left;
  font-size: clamp(1em, 2.4vw, 1.35em); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.15;
}
.fdc-hero__dates em span { display: block; color: var(--fdc-amarillo); font-size: 1.5em; letter-spacing: -.01em; }

.fdc-hero__lede {
  color: rgba(255,255,255,.9);
  font-size: clamp(1em, 1.8vw, 1.16em);
  max-width: 56ch; margin: 0 auto 34px;
  text-shadow: 0 2px 14px rgba(4,18,21,.75);
}
.fdc-hero__lede b { color: var(--fdc-amarillo); }

/* Cuenta regresiva */
.fdc-count { display: flex; justify-content: center; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.fdc-count__unit {
  min-width: 82px; padding: 14px 10px 11px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--fdc-r-s);
  backdrop-filter: blur(8px);
}
.fdc-count__unit span {
  display: block; font-family: var(--fdc-f-disp);
  font-size: 1.9em; font-weight: 700; line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums;
}
.fdc-count__unit small {
  display: block; margin-top: 5px;
  font-size: .74em; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.fdc-count.is-live { display: none; }

.fdc-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 44px; }

.fdc-hero__dots { display: flex; gap: 9px; justify-content: center; }
.fdc-hero__dots button {
  width: 32px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.3); transition: background .25s ease, width .25s ease;
}
.fdc-hero__dots button[aria-selected="true"] { background: var(--fdc-amarillo); width: 48px; }

.fdc-hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 3; width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.45); border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
}
.fdc-hero__scroll span {
  width: 3px; height: 8px; border-radius: 3px; background: #fff;
  animation: fdc-scroll 1.8s ease-in-out infinite;
}
@keyframes fdc-scroll { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: .25; } }

/* ======================================================== 2. NAV DE ANCLAS */
.fdc-chips { background: var(--fdc-dark); border-bottom: 1px solid rgba(255,255,255,.09); }
.fdc-chips__track {
  max-width: var(--fdc-wrap); margin-inline: auto;
  display: flex; gap: 6px; padding: 12px 24px;
  overflow-x: auto; scrollbar-width: none;
}
.fdc-chips__track::-webkit-scrollbar { display: none; }
.fdc-chips__track a {
  flex: none;
  font-family: var(--fdc-f-disp); font-size: .87em; font-weight: 600;
  color: rgba(255,255,255,.72);
  padding: 8px 16px; border-radius: 100px;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.fdc-chips__track a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* =========================================================== 3. ESTADÍSTICAS */
.fdc-stats { background: var(--fdc-bg-ice); padding: 34px 0; border-bottom: 1px solid var(--fdc-border); }
.fdc-stats__grid {
  max-width: var(--fdc-wrap); margin-inline: auto; padding-inline: 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.fdc-stats__grid li { display: flex; flex-direction: column; gap: 2px; }
.fdc-stats__grid b {
  font-family: var(--fdc-f-disp); font-size: clamp(1.7em, 3.6vw, 2.5em);
  font-weight: 700; line-height: 1; color: var(--fdc-dark); letter-spacing: -.02em;
}
.fdc-stats__grid li:nth-child(1) b { color: var(--fdc-turquesa-tx); }
.fdc-stats__grid li:nth-child(2) b { color: var(--fdc-magenta-tx); }
.fdc-stats__grid li:nth-child(3) b { color: var(--fdc-naranja-tx); }
.fdc-stats__grid li:nth-child(4) b { color: var(--fdc-verde-tx); }
.fdc-stats__grid span {
  font-size: .78em; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fdc-tx-3); font-weight: 500;
}

/* ============================================================= 4. INTRO === */
.fdc-intro {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 68px);
  align-items: start; margin-bottom: clamp(52px, 7vw, 84px);
}
.fdc-intro__fig { position: relative; }
.fdc-intro__fig img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--fdc-r); box-shadow: var(--fdc-shadow);
}
.fdc-intro__fig figcaption {
  margin-top: 12px; font-size: .82em; color: var(--fdc-tx-3);
  letter-spacing: .04em; text-transform: uppercase; font-weight: 500;
}
.fdc-intro__fig::before {
  content: ''; position: absolute; inset: auto -14px -14px auto;
  width: 120px; height: 120px; border-radius: 50%;
  border: 3px solid var(--fdc-amarillo); z-index: -1;
}

/* Cuatro disciplinas */
.fdc-disc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fdc-disc__card {
  padding: 32px 26px 30px;
  border-radius: var(--fdc-r);
  background: #fff; border: 1px solid var(--fdc-border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fdc-disc__card:hover { transform: translateY(-5px); box-shadow: var(--fdc-shadow-h); }
/* El anillo lleva el color puro del logotipo; el título, la variante legible */
.fdc-disc__ring {
  display: block; width: 42px; height: 42px; border-radius: 50%;
  border: 5px solid var(--ring); margin-bottom: 20px;
}
.fdc-disc__card h3 {
  font-family: var(--fdc-f-disp); font-size: 1.28em; font-weight: 700;
  margin-bottom: 8px; letter-spacing: -.01em;
}
.fdc-disc__card p { font-size: .95em; color: var(--fdc-tx-2); line-height: 1.55; }

.fdc-disc__card[data-disc="ciencia"] {
  --ring: var(--fdc-turquesa); --titulo: var(--fdc-turquesa-tx);
  background: var(--fdc-t-turquesa); border-color: #c9ecf3;
}
.fdc-disc__card[data-disc="arte"] {
  --ring: var(--fdc-magenta); --titulo: var(--fdc-magenta-tx);
  background: var(--fdc-t-magenta); border-color: #f8cee2;
}
.fdc-disc__card[data-disc="tecnologia"] {
  --ring: var(--fdc-naranja); --titulo: var(--fdc-naranja-tx);
  background: var(--fdc-t-naranja); border-color: #fbdcc4;
}
.fdc-disc__card[data-disc="humanidades"] {
  --ring: var(--fdc-verde); --titulo: var(--fdc-verde-tx);
  background: var(--fdc-t-verde); border-color: #dcebbc;
}
.fdc-disc__card h3 { color: var(--titulo); }
.fdc-disc__card p  { color: var(--fdc-tx-2); }

/* =========================================================== 5. EDICIÓN 2026 */
.fdc-watermark {
  position: absolute; left: -110px; bottom: -110px;
  width: 420px; height: 420px;
  fill: none; stroke: #fff; stroke-width: 1;
  opacity: .07; pointer-events: none;
}
.fdc-watermark--right { left: auto; right: -110px; top: -110px; bottom: auto; }

.fdc-sec--dark .fdc-wrap { position: relative; z-index: 1; }

.fdc-datebar {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-top: 34px; padding: 26px 30px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--fdc-r);
}
.fdc-datebar__item { flex: 1; min-width: 150px; }
.fdc-datebar__item b {
  display: block; font-family: var(--fdc-f-disp);
  font-size: 1.5em; font-weight: 700; color: var(--fdc-amarillo); line-height: 1.15;
}
.fdc-datebar__item span { font-size: .9em; color: rgba(255,255,255,.7); }
.fdc-datebar__line { flex: none; width: 40px; height: 2px; background: rgba(255,255,255,.2); }

.fdc-acts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 34px;
}
.fdc-acts li {
  padding: 22px 20px; border-radius: var(--fdc-r-s);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-left: 4px solid var(--fdc-turquesa);
  transition: background .2s ease, transform .2s ease;
}
.fdc-acts li:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.fdc-acts li[data-c="arte"]        { border-left-color: var(--fdc-magenta); }
.fdc-acts li[data-c="tecnologia"]  { border-left-color: var(--fdc-naranja); }
.fdc-acts li[data-c="humanidades"] { border-left-color: var(--fdc-verde); }
.fdc-acts b {
  display: block; font-family: var(--fdc-f-disp);
  font-size: 1.02em; font-weight: 600; color: #fff; margin-bottom: 3px;
}
.fdc-acts span { font-size: .86em; color: rgba(255,255,255,.62); line-height: 1.45; }

.fdc-note {
  margin-top: 34px; padding: 20px 24px;
  border-radius: var(--fdc-r-s);
  background: rgba(246,210,10,.1);
  border: 1px solid rgba(246,210,10,.3);
  color: rgba(255,255,255,.85); font-size: .96em;
}
.fdc-note b { color: var(--fdc-amarillo); }
.fdc-note--light {
  background: var(--fdc-t-amarillo); border-color: #f0e0a0;
  color: var(--fdc-tx-2); margin-top: 30px;
}
.fdc-note--light b { color: var(--fdc-dark); }

/* ========================================================== 6. PRÓXIMAMENTE */
.fdc-soon {
  display: grid; grid-template-columns: 200px 1fr; gap: clamp(26px, 4vw, 52px);
  align-items: center;
  margin-top: 34px; padding: clamp(32px, 5vw, 56px);
  border-radius: var(--fdc-r);
  background: var(--fdc-bg-ice);
  border: 2px dashed #b9d9dd;
}
.fdc-soon__badge svg {
  width: 100%; height: auto; fill: none; stroke-width: 3;
  animation: fdc-spin 40s linear infinite;
}
.fdc-soon__badge circle:nth-child(1) { stroke: var(--fdc-turquesa); }
.fdc-soon__badge circle:nth-child(2) { stroke: var(--fdc-verde); }
.fdc-soon__badge circle:nth-child(3) { stroke: var(--fdc-magenta); }
.fdc-soon__badge circle:nth-child(4) { stroke: var(--fdc-naranja); }

/* Color base de los párrafos del bloque. Va PRIMERO y con :where() para que
   no le gane a las reglas de .fdc-soon__tag y .fdc-soon__foot que vienen
   después: ambas son <p> y con «.fdc-soon__body p» (0,1,1) quedaban anuladas. */
.fdc-soon__body :where(p) { color: var(--fdc-tx-2); }

.fdc-soon__body h3 {
  font-family: var(--fdc-f-disp);
  font-size: clamp(1.35em, 2.8vw, 1.9em);
  font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; line-height: 1.2;
}
.fdc-soon__tag {
  display: inline-block;
  font-family: var(--fdc-f-disp); font-size: .74em; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  /* Texto oscuro sobre el naranja del logo: en blanco daría 2.6:1 (falla) */
  color: var(--fdc-dark); background: var(--fdc-naranja);
  padding: 6px 15px; border-radius: 100px; margin-bottom: 14px;
}
.fdc-soon__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.fdc-soon__foot { margin-top: 22px; font-size: .9em; color: var(--fdc-tx-3); }
.fdc-soon__foot a { color: var(--fdc-magenta-tx); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================== 7. VIDEO === */
.fdc-video {
  position: relative; margin-top: 40px;
  aspect-ratio: 16/9; border-radius: var(--fdc-r); overflow: hidden;
  box-shadow: var(--fdc-shadow-h); background: var(--fdc-darker);
}
.fdc-video__play { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fdc-video__play img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, filter .35s ease;
  filter: brightness(.62);
}
.fdc-video__play:hover img { transform: scale(1.04); filter: brightness(.5); }
.fdc-video__btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--fdc-magenta);
  box-shadow: 0 10px 34px rgba(233,21,135,.5);
  transition: transform .25s ease, background .25s ease;
}
.fdc-video__btn::after {
  content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%);
  border-style: solid; border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #fff;
}
.fdc-video__play:hover .fdc-video__btn { transform: translate(-50%,-50%) scale(1.1); background: #C90D70; }
.fdc-video__label {
  position: absolute; left: 26px; bottom: 24px;
  font-family: var(--fdc-f-disp); font-weight: 600; font-size: 1em; color: #fff;
  background: rgba(11,37,42,.6); padding: 8px 18px; border-radius: 100px;
  backdrop-filter: blur(6px);
}
.fdc-video iframe { width: 100%; height: 100%; border: 0; }

/* =========================================================== 8. MEMORIA === */
.fdc-memo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.fdc-memo__card {
  padding: 26px 24px; border-radius: var(--fdc-r);
  background: #fff; border: 1px solid var(--fdc-border);
  box-shadow: var(--fdc-shadow);
}
.fdc-memo__card h3 {
  font-family: var(--fdc-f-disp); font-size: 1.08em; font-weight: 700;
  margin-bottom: 8px; line-height: 1.25;
}
.fdc-memo__card p { font-size: .93em; color: var(--fdc-tx-2); line-height: 1.55; }

/* Cartelera 2025 */
.fdc-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 16px; margin-top: 28px;
}
.fdc-cards button {
  display: block; width: 100%; overflow: hidden;
  border-radius: var(--fdc-r-s); background: var(--fdc-bg-ice);
  aspect-ratio: 5/4; box-shadow: var(--fdc-shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.fdc-cards button:hover { transform: translateY(-4px) scale(1.015); box-shadow: var(--fdc-shadow-h); }
.fdc-cards img { width: 100%; height: 100%; object-fit: cover; }
.fdc-cards .is-hidden { display: none; }

/* =========================================================== 9. GALERÍA === */
.fdc-gal {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
  max-width: 1440px; margin-inline: auto; padding-inline: 24px;
}
.fdc-gal button {
  overflow: hidden; border-radius: var(--fdc-r-s);
  background: var(--fdc-bg-ice); position: relative;
  box-shadow: var(--fdc-shadow);
}
.fdc-gal img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.fdc-gal button:hover img { transform: scale(1.07); }
.fdc-gal button::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18,52,59,.55));
  opacity: 0; transition: opacity .3s ease;
}
.fdc-gal button:hover::after { opacity: 1; }
.fdc-gal .g-tall { grid-row: span 2; }
.fdc-gal .g-wide { grid-column: span 2; }

/* ============================================================ 10. SEDES === */
.fdc-sedes {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0 40px; margin-top: 38px;
  max-width: 900px; margin-inline: auto;
}
.fdc-sedes li {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 0; border-bottom: 1px solid var(--fdc-border);
  font-size: 1em; color: var(--fdc-tx-2);
}
.fdc-sedes li::before {
  content: ''; flex: none;
  width: 13px; height: 13px; border-radius: 50%;
  border: 3px solid var(--fdc-turquesa);
}
.fdc-sedes li:nth-child(4n+2)::before { border-color: var(--fdc-magenta); }
.fdc-sedes li:nth-child(4n+3)::before { border-color: var(--fdc-naranja); }
.fdc-sedes li:nth-child(4n+4)::before { border-color: var(--fdc-verde); }

/* ========================================================= 11. PARTICIPA == */
.fdc-part { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 42px; }
.fdc-part__card {
  padding: 28px 24px; border-radius: var(--fdc-r);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  transition: background .2s ease, transform .2s ease;
}
.fdc-part__card:hover { background: rgba(255,255,255,.11); transform: translateY(-4px); }
.fdc-part__card h3 {
  font-family: var(--fdc-f-disp); font-size: 1.08em; font-weight: 700;
  color: var(--fdc-amarillo); margin-bottom: 9px; line-height: 1.25;
}
.fdc-part__card p { font-size: .92em; color: rgba(255,255,255,.72); line-height: 1.55; }

.fdc-contact {
  margin-top: 46px; padding: clamp(30px, 4vw, 44px);
  border-radius: var(--fdc-r); text-align: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
}
.fdc-contact__label {
  font-size: .74em; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 8px;
}
.fdc-contact__name {
  font-family: var(--fdc-f-disp); font-size: 1.4em; font-weight: 700;
  color: #fff; margin-bottom: 18px;
}
.fdc-contact__org { margin-top: 18px; font-size: .88em; color: rgba(255,255,255,.55); }

/* ============================================================ 12. REDES === */
.fdc-social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.fdc-social__card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 34px 22px; border-radius: var(--fdc-r);
  background: #fff; border: 1px solid var(--fdc-border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-align: center;
}
.fdc-social__card:hover { transform: translateY(-5px); box-shadow: var(--fdc-shadow-h); }
.fdc-social__ico {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 10px;
  transition: transform .25s ease;
}
.fdc-social__ico svg { width: 30px; height: 30px; fill: #fff; }
.fdc-social__card:hover .fdc-social__ico { transform: scale(1.1) rotate(-5deg); }
.fdc-social__card b { font-family: var(--fdc-f-disp); font-size: 1.1em; font-weight: 700; }
.fdc-social__card span { font-size: .88em; color: var(--fdc-tx-3); }
.fdc-social__card[data-net="fb"] .fdc-social__ico { background: #1877F2; }
.fdc-social__card[data-net="ig"] .fdc-social__ico { background: linear-gradient(45deg,#f9ce34,#ee2a7b 50%,#6228d7); }
.fdc-social__card[data-net="yt"] .fdc-social__ico { background: #FF0000; }
.fdc-social__card[data-net="fb"]:hover { border-color: #1877F2; }
.fdc-social__card[data-net="ig"]:hover { border-color: #ee2a7b; }
.fdc-social__card[data-net="yt"]:hover { border-color: #FF0000; }

/* =========================================================== 13. FOOTER === */
.fdc-foot { background: var(--fdc-darker); color: #fff; padding: clamp(56px, 7vw, 84px) 0 34px; }

.fdc-foot__top {
  display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 5vw, 70px);
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.fdc-foot__icon { width: 62px; margin-bottom: 16px; }
.fdc-foot__name {
  font-family: var(--fdc-f-disp); font-size: 1.5em; font-weight: 700;
  line-height: 1.1; letter-spacing: -.02em; margin-bottom: 10px;
}
.fdc-foot__tag { font-size: .82em; color: rgba(255,255,255,.55); letter-spacing: .04em; }

.fdc-foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fdc-foot__cols h4 {
  font-family: var(--fdc-f-disp); font-size: .78em; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--fdc-amarillo); margin-bottom: 14px;
}
.fdc-foot__cols p { font-size: .93em; color: rgba(255,255,255,.7); line-height: 1.85; }
.fdc-foot__cols a { transition: color .18s ease; }
.fdc-foot__cols a:hover { color: var(--fdc-turquesa); }

.fdc-foot__logos { padding: 42px 0 34px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.12); }
.fdc-foot__logos-label {
  font-size: .74em; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 26px;
}
.fdc-foot__logos-row { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 54px); flex-wrap: wrap; }
/* Los dos archivos de la UNAM ya vienen en blanco sobre fondo transparente,
   por eso funcionan tal cual sobre el pie de página oscuro. */
.fdc-lg-unam  { height: 66px; width: auto; }
.fdc-lg-unam2 { height: 54px; width: auto; }
/* El del CNyN viene en escala de grises: lo convertimos a blanco puro
   para que conserve su forma sobre el fondo oscuro. */
.fdc-lg-cnyn  { height: 62px; width: auto; filter: brightness(0) invert(1); opacity: .94; }
.fdc-foot__sep { width: 1px; height: 48px; background: rgba(255,255,255,.22); }

.fdc-foot__partners {
  padding: 30px 0 0; text-align: center;
  font-size: .89em; color: rgba(255,255,255,.55);
  max-width: 62ch; margin-inline: auto;
}
.fdc-foot__legal {
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center; font-size: .8em; color: rgba(255,255,255,.4);
}

/* ========================================================== 14. LIGHTBOX == */
.fdc-lb {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(8,26,30,.95);
  display: grid; place-items: center; padding: 4vh 4vw;
  backdrop-filter: blur(6px);
  animation: fdc-fade .22s ease;
}
.fdc-lb[hidden] { display: none; }
@keyframes fdc-fade { from { opacity: 0; } to { opacity: 1; } }

.fdc-lb__fig { max-width: 100%; max-height: 100%; text-align: center; }
.fdc-lb__fig img {
  max-width: 100%; max-height: 84vh; width: auto; margin-inline: auto;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.fdc-lb__fig figcaption {
  margin-top: 16px; color: rgba(255,255,255,.8); font-size: .92em;
  max-width: 62ch; margin-inline: auto;
}
.fdc-lb__close {
  position: absolute; top: 18px; right: 22px;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 2em; line-height: 1; color: #fff;
  background: rgba(255,255,255,.12); transition: background .2s ease;
}
.fdc-lb__close:hover { background: var(--fdc-magenta); }
.fdc-lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  font-size: 2.2em; line-height: 1; color: #fff;
  background: rgba(255,255,255,.12); transition: background .2s ease;
}
.fdc-lb__nav:hover { background: var(--fdc-turquesa); }
.fdc-lb__nav--prev { left: 16px; }
.fdc-lb__nav--next { right: 16px; }

/* ======================================================= 15. VOLVER ARRIBA */
.fdc-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 9998;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--fdc-dark); color: #fff; font-size: 1.3em;
  box-shadow: 0 8px 24px rgba(18,52,59,.35);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .2s ease;
}
.fdc-top.is-on { opacity: 1; visibility: visible; }
.fdc-top:hover { background: var(--fdc-magenta); transform: translateY(-3px); }

/* ======================================================== 16. ANIMACIONES = */
.fdc-rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.fdc-rv.is-in { opacity: 1; transform: none; }

/* ========================================================= 17. RESPONSIVE = */
@media (max-width: 1024px) {
  .fdc-intro { grid-template-columns: 1fr; }
  .fdc-intro__fig img { aspect-ratio: 16/10; }
  .fdc-disc, .fdc-acts, .fdc-memo, .fdc-part { grid-template-columns: repeat(2, 1fr); }
  .fdc-gal { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 176px; }
  .fdc-foot__top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .fdc { font-size: max(16px, 1rem); }
  .fdc-hero { min-height: auto; padding: 76px 0 96px; }
  .fdc-hero__logo { width: min(88%, 340px); }
  .fdc-hero__dates { gap: 2px 10px; }
  .fdc-hero__dates em { text-align: center; width: 100%; }
  .fdc-hero__cta { flex-direction: column; }
  .fdc-hero__cta .fdc-btn { width: 100%; }
  .fdc-count__unit { min-width: 68px; padding: 11px 8px 9px; }
  .fdc-count__unit span { font-size: 1.5em; }

  .fdc-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .fdc-disc, .fdc-acts, .fdc-memo, .fdc-part, .fdc-social { grid-template-columns: 1fr; }
  .fdc-soon { grid-template-columns: 1fr; text-align: center; }
  .fdc-soon__badge { width: 130px; margin-inline: auto; }
  .fdc-soon__cta { justify-content: center; }
  .fdc-soon__kicker { justify-content: center; }
  .fdc-sedes { grid-template-columns: 1fr; }
  .fdc-gal { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .fdc-gal .g-wide { grid-column: span 2; }
  .fdc-foot__cols { grid-template-columns: 1fr; gap: 24px; }
  .fdc-datebar { gap: 14px; }
  .fdc-datebar__line { display: none; }
  .fdc-lb__nav { width: 44px; height: 44px; font-size: 1.7em; }
  .fdc-lb__nav--prev { left: 6px; }
  .fdc-lb__nav--next { right: 6px; }
}

/* ================================================= 18. PREFERENCIAS DE USO */
@media (prefers-reduced-motion: reduce) {
  .fdc *, .fdc *::before, .fdc *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .fdc-rv { opacity: 1; transform: none; }
  .fdc-hero__slide.is-active { animation: none; transform: none; }
}

/* --------------------------------------------------------------- IMPRESIÓN */
@media print {
  .fdc-hero__slides, .fdc-hero__scrim, .fdc-top, .fdc-lb, .fdc-chips { display: none !important; }
  .fdc-sec--dark, .fdc-foot { background: #fff !important; color: #000 !important; }
}
