/* ============================================================
   KHAL CALLOWAY STUDIO
   XV Años: Zapatilla de Cristal · KC-Styles
   FILE: styles.css
   ============================================================ */

/* ── Signature face: Scriptorial (font/Scriptorial.ttf) — XV_RBN_04A ──
   Verified TrueType, family name "Scriptorial", full Spanish coverage.
   Doctrine caps it at three appearances: gate name, hero name, closing signature. */
@font-face {
  font-family: 'Scriptorial';
  src: url('font/Scriptorial.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ══════════════════════════════════════════════════════════════
     CAPA 1 — PRIMITIVAS
     La paleta física. FASE 03 (Cenicienta) repinta AQUÍ y nada más.
     Cada color lleva su gemela -rgb porque rgba() es el patrón
     dominante del archivo y no se puede alimentar con un hex.
     ══════════════════════════════════════════════════════════════ */
  /* ── NOCHE — el lienzo. Medido sobre fotos/hero-web.webp: el azul dominante
        de la lamina es #1E3468 y su fondo mas hondo #0D1730. Croma hambriento a
        proposito: es noche, no es color. El unico azul saturado sigue siendo el
        de la quinceañera. ── */
  --dp-medianoche: #0D1730;
  --dp-medianoche-rgb: 13, 23, 48;
  --dp-noche-abismo: #080D18;
  --dp-noche-abismo-rgb: 8, 13, 24;
  --dp-ciruela: #182747;
  --dp-ciruela-rgb: 24, 39, 71;
  --dp-crepusculo: #1B2C55;
  --dp-crepusculo-rgb: 27, 44, 85;
  --dp-pacheco-claro: #24396B;
  --dp-pacheco-claro-rgb: 36, 57, 107;

  /* ── PIEDRA DE LUNA — las camaras encendidas. No es marfil calido de boda:
        es caliza fria con la luz de la luna encima. ── */
  --dp-piedra-luna: #EAE8EE;
  --dp-piedra-luna-rgb: 234, 232, 238;
  --dp-piedra: #DCD9E2;
  --dp-piedra-rgb: 220, 217, 226;
  --dp-concha: #DCD9E2;
  --dp-concha-rgb: 220, 217, 226;

  /* ── PAPEL — se conserva calido a proposito. El pase es de otro material que
        la noche: por eso se siente entregado. Tambien es la tinta sobre noche,
        donde lee como luz de vela. ── */
  --dp-marfil-luna: #F6F2EA;
  --dp-marfil-luna-rgb: 246, 242, 234;

  /* ── PELTRE CALIDO — metal de autoridad: cuadrante y sellos, nada mas.
        Medido en la filigrana de la lamina: sombra #6D626A, cuerpo #A0989A y
        brillo especular #F2E7DC (percentil 99 del marco: #FCF0E2). Rojo dominante,
        no amarillo: por eso se lee grabado y antiguo, no cromado. El brillo es
        casi blanco calido, y es lo que devuelve al CTA su luminancia. ── */
  --dp-metal-hondo: #565059;
  --dp-metal-hondo-rgb: 86, 80, 89;
  --dp-metal-sombra: #6D626A;
  --dp-metal-sombra-rgb: 109, 98, 106;
  --dp-metal-base: #A0989A;
  --dp-metal-base-rgb: 160, 152, 154;
  --dp-metal-cuerpo: #D2C7C4;
  --dp-metal-cuerpo-rgb: 210, 199, 196;
  --dp-metal-luz: #F2E7DC;
  --dp-metal-luz-rgb: 242, 231, 220;

  /* ── PLATA FRIA — metal estructural: filetes, bordes, hairlines, linework SVG.
        Separada del peltre para que cada familia tenga su presupuesto. ── */
  --dp-plata-sombra: #5C6478;
  --dp-plata-sombra-rgb: 92, 100, 120;
  --dp-plata: #8E99AE;
  --dp-plata-rgb: 142, 153, 174;
  --dp-plata-luz: #C6CEDC;
  --dp-plata-luz-rgb: 198, 206, 220;

  /* ── LUZ DE VELA — acento calido escaso, techo 8% del area. Es el horizonte y
        las llamas de la lamina (#FCD0A6, #B28D74), no un oro decorativo. ── */
  --dp-vela-hondo: #8D6F58;
  --dp-vela-hondo-rgb: 141, 111, 88;
  --dp-vela: #B28D74;
  --dp-vela-rgb: 178, 141, 116;
  --dp-vela-luz: #E5BFA7;
  --dp-vela-luz-rgb: 229, 191, 167;
  --dp-vela-alba: #FCD0A6;
  --dp-vela-alba-rgb: 252, 208, 166;

  /* ── LACRE — el sello sigue siendo cera: se queda calido. ── */
  --dp-lacre: #7A5C46;
  --dp-lacre-rgb: 122, 92, 70;
  --dp-lacre-hondo: #3A2E3A;
  --dp-lacre-hondo-rgb: 58, 46, 58;

  /* ── CRISTAL Y CENIZA — tinta secundaria sobre noche. ── */
  --dp-cristal: #D8DCE3;
  --dp-cristal-rgb: 216, 220, 227;
  --dp-ceniza-lavanda: #A6ADC2;
  --dp-ceniza-lavanda-rgb: 166, 173, 194;

  /* ── EL AZUL DE ELLA — intocable. Unico azul saturado y claro de la pagina.
        El lienzo no compite: es oscuro y de croma bajo. ── */
  --dp-azul-gala: #A6C4DE;
  --dp-azul-gala-rgb: 166, 196, 222;

  --dp-danger: #8C4A45;
  --dp-danger-rgb: 140, 74, 69;
  --dp-danger-lit: #C98A85;
  --dp-danger-lit-rgb: 201, 138, 133;

  /* Cantos metalicos: tres paradas, nunca un color plano (LOCK 11.2). */
  --dp-metal-canto: linear-gradient(105deg, var(--dp-metal-sombra), var(--dp-metal-base) 38%, var(--dp-metal-luz) 49%, var(--dp-metal-base) 58%, var(--dp-metal-sombra));
  --dp-plata-canto: linear-gradient(105deg, var(--dp-plata-sombra), var(--dp-plata) 38%, var(--dp-plata-luz) 49%, var(--dp-plata) 58%, var(--dp-plata-sombra));

  /* ══════════════════════════════════════════════════════════════
     CAPA 2 — SEMÁNTICAS
     Lo único que el CSS consume. Los nombres dicen el ROL, no el color,
     para que sigan siendo ciertos cuando la paleta cambie.
     ══════════════════════════════════════════════════════════════ */
  --color-canvas: var(--dp-medianoche);
  --color-canvas-quiet: var(--dp-ciruela);
  --color-surface: var(--dp-ciruela);
  --color-surface-raised: var(--dp-pacheco-claro);
  --color-ink: var(--dp-marfil-luna);
  --color-ink-muted: var(--dp-ceniza-lavanda);
  --color-ink-inverse: var(--dp-marfil-luna);
  --color-action: var(--dp-metal-base);
  --color-action-ink: var(--dp-medianoche);
  --color-authority: var(--dp-metal-base);
  --color-authority-ink: var(--dp-metal-base);
  --color-focus: var(--dp-azul-gala);
  --color-hairline: rgba(var(--dp-plata-rgb), .32);
  --color-success: var(--dp-azul-gala);
  --color-warning: var(--dp-vela);
  --color-danger: var(--dp-danger);
  --kc-bg-base: var(--color-canvas);
  --kc-bg-raised: var(--color-surface);
  --kc-surface-paper: var(--color-surface);
  --kc-text-primary: var(--color-ink-inverse);
  --kc-text-ink: var(--color-ink);
  --kc-text-muted: var(--color-ink-muted);
  --kc-border-rule: var(--color-hairline);
  --kc-accent-protagonist: var(--color-action);
  --kc-accent-metal: var(--color-authority);
  --kc-glow: rgba(var(--dp-metal-luz-rgb), .45);
  --kc-focus-ring: var(--color-focus);
  --kc-shadow-rgb: 0, 0, 0;

  /* Alias heredados. Sus consumidores (8 usos) no se tocan: apuntan al
     sistema nuevo, así que repintar la capa 1 también los arrastra.
     Los seis tokens muertos (--garnet, --turquoise, --blue-deep,
     --obsidian-3, --ivory-dim, --line) se eliminaron: cero consumidores,
     verificado por grep antes de borrarlos. */
  --obsidian: var(--kc-bg-base);
  --obsidian-2: var(--kc-bg-raised);
  --ivory: var(--kc-text-primary);
  --gold: var(--color-authority);
  --gold-bright: var(--color-action);

  --f-eyebrow: 'Cormorant Garamond', Georgia, serif;
  --f-display: 'Cormorant Garamond', serif;
  --f-body: 'Montserrat', sans-serif;
  --ease-silk: cubic-bezier(.65, 0, .35, 1);

  --kc-f-signature: 'Scriptorial', 'Cormorant Garamond', cursive;
  --kc-f-editorial: 'Cormorant Garamond', Georgia, serif;
  --kc-f-ceremonial: 'Cormorant Garamond', Georgia, serif;
  --kc-f-ui: 'Montserrat', system-ui, sans-serif;
  --kc-music-medallion-size: 56px;
  --kc-watch-size: var(--kc-music-medallion-size);

  --kc-ease-curtain: cubic-bezier(.70, 0, .20, 1);
  /* Alias, not a duplicate: --ease-silk already holds this exact curve. */
  --kc-ease-silk: var(--ease-silk);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.locked {
  overflow: hidden;
  height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--gold);
  color: var(--obsidian);
}

.eyebrow {
  font-family: var(--f-eyebrow);
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .85;
}

/* .divider removed — XV_AWR_13B1-R1: zero HTML references confirmed */

.section {
  position: relative;
  padding: clamp(64px, 12vw, 120px) 22px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.kc-hour {
  position: relative;
  background: var(--color-canvas);
  color: var(--color-ink);
}

.kc-hour::before {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 12vh;
  content: '';
  pointer-events: none;
  background: linear-gradient(180deg, var(--kc-hour-from) 0%, transparent 100%);
}

/* ENMIENDA 03 — una sola noche, y el palacio se va apagando.
   Se entra por el balcon a las 11:57; adentro quedan salones encendidos;
   pasada la camara del reloj la luz no vuelve. La alternancia la justifica
   donde esta la fuente de luz, no el gusto por variar el fondo. */

/* HORA I — camara encendida. Piedra de luna fria, nunca marfil calido. */
.kc-hour--i {
  --kc-hour-from: var(--dp-medianoche);
  --color-canvas: var(--dp-piedra-luna);
  --color-canvas-quiet: var(--dp-piedra);
  --color-surface: var(--dp-piedra);
  --color-ink: var(--dp-medianoche);
  --color-ink-muted: var(--dp-crepusculo);
  --color-action: var(--dp-plata-sombra);
  --color-action-ink: var(--dp-piedra-luna);
  --color-authority: var(--dp-metal-sombra);
  --color-authority-ink: var(--dp-metal-hondo);
  --color-hairline: rgba(var(--dp-plata-sombra-rgb), .34);
}

/* HORA II — azul de escena. Toma el azul dominante del hero (#243155)
   y el azul profundo del counter (#183258), sin llevar el canvas al azul eléctrico. */
.kc-hour--ii {
  --dp-medianoche: #183258;
  --dp-medianoche-rgb: 24, 50, 88;
  --dp-ciruela: #243155;
  --dp-ciruela-rgb: 36, 49, 85;
  --dp-crepusculo: #384B84;
  --dp-crepusculo-rgb: 56, 75, 132;
  --dp-pacheco-claro: #3B4161;
  --dp-pacheco-claro-rgb: 59, 65, 97;
  --kc-hour-from: var(--dp-piedra-luna);
  --color-canvas: var(--dp-ciruela);
  --color-canvas-quiet: var(--dp-medianoche);
  --color-surface: #2B3D6A;
  --color-ink: var(--dp-marfil-luna);
  --color-ink-muted: var(--dp-cristal);
  --color-action: var(--dp-metal-luz);
  --color-action-ink: var(--dp-medianoche);
  --color-authority: var(--dp-metal-base);
  --color-authority-ink: var(--dp-metal-cuerpo);
  --color-hairline: rgba(var(--dp-plata-rgb), .34);
}

/* HORA III — azul profundo. Sigue siendo el cierre más oscuro, pero comparte
   el mismo azul mineral del hero y el counter en vez de caer a negro azulado. */
.kc-hour--iii {
  --dp-medianoche: #183258;
  --dp-medianoche-rgb: 24, 50, 88;
  --dp-ciruela: #203A68;
  --dp-ciruela-rgb: 32, 58, 104;
  --dp-crepusculo: #2D4E86;
  --dp-crepusculo-rgb: 45, 78, 134;
  --dp-pacheco-claro: #3E649C;
  --dp-pacheco-claro-rgb: 62, 100, 156;
  --kc-hour-from: var(--dp-crepusculo);
  --color-canvas: var(--dp-medianoche);
  --color-canvas-quiet: var(--dp-ciruela);
  --color-surface: #294979;
  --color-ink: var(--dp-marfil-luna);
  --color-ink-muted: var(--dp-ceniza-lavanda);
  --color-action: var(--dp-marfil-luna);
  --color-action-ink: var(--dp-medianoche);
  --color-authority: var(--dp-metal-base);
  --color-authority-ink: var(--dp-metal-cuerpo);
  --color-hairline: rgba(var(--dp-plata-rgb), .30);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* RSVP owns its entrance: ivory from Hospedaje evaporates into the velvet
   canvas inside the scene, without inserting a standalone divider. */
#rsvp.section::before {
  display: none;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: 100vw;
  height: clamp(8rem, 18vw, 13rem);
  content: '';
  pointer-events: none;
  background: linear-gradient(180deg,
      var(--dp-marfil-luna) 0%,
      color-mix(in srgb, var(--dp-marfil-luna) 72%, var(--dp-cristal)) 22%,
      color-mix(in srgb, var(--dp-cristal) 24%, transparent) 54%,
      transparent 100%);
  transform: translateX(-50%);
}

.section h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 8vw, 2.7rem);
  line-height: 1.15;
  color: var(--ivory);
}

/* .section h2 em + .section p.lead removed — XV_AWR_13B1-R1: zero HTML references confirmed */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-silk), transform 1s var(--ease-silk);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* .ambient-bg — REMOVED in XV_AWR_02C-B. Replaced by .hero-forest-bg + .hero-forest-vignette. */

/* ============================================================
   GATE — cortina teatral (video). Los assets se reemplazan en FASE 03.
   Video: centered 720×1280 curtain · cord pull activates the opening
   ============================================================ */

/* ── Gate container — fullscreen fixed ── */
.kc-gate {
  --gate-luz: var(--dp-metal-luz);
  /* Geometría de la zapatilla en ceni1-web.mp4 (720×1280), medida sobre el frame
     final por máscara de luminancia: bounding box 313×305 px en +175+890, o sea
     x 0.243→0.678, y 0.695→0.933 (zapatilla + su reflejo en el mármol).
     El frame es siempre 9:16 y se ancla arriba, así que sus porcentajes son los
     del video. La cuerda del telón vivía en x≈0.874: nada que ver. */
  --gate-frame-w: max(100vw, 100vh * (720 / 1280));
  --gate-frame-h: max(100vh, 100vw * (1280 / 720));
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow: hidden;
  /* El umbral esta cerrado: siempre piedra, nunca papel. No hereda el canvas
     de la pagina porque la Hora I empieza DESPUES del gate, no dentro. */
  background: var(--dp-medianoche);
  transition: opacity 1.2s var(--ease-silk), transform 1.4s var(--ease-silk);
}

/* La disolución continúa el estallido final de ceni2-web.mp4. Se baja la opacidad
   del CONTENEDOR entero, así que video y fondo se van juntos: el medianoche de
   .kc-gate nunca queda expuesto solo y no hay flash oscuro contra el hero marfil.
   El último frame de ceni2 es #F1EBF0 y el hero es #F6F2EA: el cruce es invisible. */
.kc-gate.is-exiting {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

/* La luz blanca cruza una última rampa azul antes de que el contenedor se retire. */
.kc-gate.is-exiting::after {
  content: '';
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 58% 52% at 50% 43%,
      #F1EBF0 0%,
      rgba(241, 235, 240, .96) 16%,
      rgba(159, 180, 220, .86) 38%,
      rgba(36, 57, 107, .94) 67%,
      #0D1730 100%);
  opacity: 0;
  animation: gatePortalToHero 1.2s var(--ease-silk) forwards;
}

@keyframes gatePortalToHero {
  0% {
    opacity: 0;
  }

  26% {
    opacity: .08;
  }

  64% {
    opacity: .82;
  }

  100% {
    opacity: 0;
  }
}

/* ── Warm stage base ── */
.gate-stage-base {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--dp-crepusculo-rgb), .38), transparent 65%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(var(--dp-medianoche-rgb), .96), transparent 70%),
    var(--dp-medianoche);
}

/* ── Centered 9:16 curtain frame ── */
.gate-curtain-frame {
  position: absolute;
  top: 0;
  left: 50vw;
  transform: translateX(-50%);
  width: max(100vw, 100vh * (720 / 1280));
  height: max(100vh, 100vw * (1280 / 720));
  z-index: 1;
}

/* ── Gate videos: both absolute fullscreen, same framing ── */
.gate-idle-video,
.gate-break-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  user-select: none;
  animation: videoReveal 1.2s var(--ease-silk) both;
}

.gate-idle-video {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Opacity/visibility preserves a loaded first frame; never use display:none. */
.gate-break-video {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 3;
  transition: opacity .16s ease-out;
}

.kc-gate.is-breaking .gate-break-video {
  opacity: 1;
  visibility: visible;
}

.kc-gate.is-breaking .gate-idle-video {
  opacity: 0;
  visibility: hidden;
}

@keyframes videoReveal {
  from {
    opacity: 0;
    filter: brightness(.72) saturate(.78);
  }

  to {
    opacity: 1;
    filter: brightness(1) saturate(1);
  }
}

/* ── Sombra focal ── FASE 04-R1
   Dos estados. Mientras corre la historia la vinneta es ancha y discreta: manda
   la escena. Cuando el clip aterriza, .is-settling cierra la elipse y la MUDA al
   punto de la zapatilla, y las orillas se van a negro.
   No es un glow: la luz no aumenta en ningun momento, solo se retira de los
   bordes. El §13 del LOCK prohibe glow y aurora, no el oscurecimiento.
   El punto focal esta calculado, no puesto a ojo: la zapatilla ocupa
   x 0.243->0.678, y 0.695->0.933 del frame, centro (0.46, 0.81). Como el frame
   escala con vh en retrato, ese centro se proyecta al viewport en ~45%/81% de
   forma estable en 360x800, 390x844, 412x915 y 430x932. */
.kc-gate {
  --gate-focus-x: 45%;
  --gate-focus-y: 81%;
}

.gate-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  animation: spotBreath 4s ease-in-out infinite;
  transition: opacity 1s ease;
}

/* Dos capas que se cruzan. La primera version solo SUMABA oscuridad encima de la
   vinneta de reposo, asi que todo se oscurecia parejo y el ojo no percibia nada
   moviendose: se veia igual antes y despues. Ahora la ancha se va mientras la
   cerrada entra, asi que la zapatilla queda relativamente MAS clara que su
   entorno. Se lee como un reflector cerrandose sin anadir un solo lumen —
   la luz no aumenta, se redistribuye, que es lo que el §13 del LOCK permite. */
.gate-spotlight::before,
.gate-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 4.2s var(--ease-silk);
}

/* Reposo: ancha, centrada, discreta. Manda la escena. */
.gate-spotlight::before {
  opacity: 1;
  background: radial-gradient(ellipse 78% 62% at 50% 58%,
      transparent 0%,
      rgba(var(--dp-ciruela-rgb), .22) 64%,
      rgba(var(--dp-medianoche-rgb), .70) 100%);
}

/* El cierre focal vive en una capa aparte y entra por OPACIDAD, no cambiando el
   gradiente de abajo. Motivo medido: CSS solo interpola dos gradientes si tienen
   la misma estructura (mismo tipo y mismo numero de paradas). El de reposo tiene
   3 paradas y este 4, asi que transicionar 'background' entre ellos daba un corte
   seco — se veia de golpe. La opacidad siempre interpola. */
/* Asentado: cerrada sobre la zapatilla. El nucleo queda limpio a proposito —
   ahi es donde el invitado tiene que mirar y donde va a tocar. */
.gate-spotlight::after {
  opacity: 0;
  /* El nucleo va TRANSPARENTE hasta el 48% a proposito. La zapatilla ocupa
     x 0.243->0.678 e y 0.695->0.933 del frame, que en 390x844 son ~206x200 px:
     es una mancha grande, no un punto. Con el nucleo mas chico el foco se comia
     justo lo que debia respetar — medido: la zapatilla perdia 21% de luminancia.
     Ademas las esquinas ya estan casi en negro puro (L~0.007) y no tienen margen
     para oscurecerse mas, asi que el cambio que el ojo percibe tiene que ocurrir
     en el campo medio: la escalinata y el marmol. Ahi es donde queda la rampa. */
  background: radial-gradient(ellipse 58% 38% at var(--gate-focus-x) var(--gate-focus-y),
      transparent 0%,
      transparent 48%,
      rgba(var(--dp-medianoche-rgb), .38) 66%,
      rgba(var(--dp-medianoche-rgb), .78) 86%,
      rgba(var(--dp-medianoche-rgb), .94) 100%);
}

/* Arranca a duration-4.5s y aterriza en el congelado: 4.2s de rampa. */
.kc-gate.is-settling .gate-spotlight {
  animation: none;
}

.kc-gate.is-settling .gate-spotlight::before {
  opacity: 0;
}

.kc-gate.is-settling .gate-spotlight::after {
  opacity: 1;
}

@keyframes spotBreath {

  0%,
  100% {
    opacity: .82;
  }

  50% {
    opacity: 1;
  }
}

.kc-gate.is-activated .gate-spotlight {
  animation: none;
  opacity: .76;
}

/* Durante ceni2 la viñeta medianoche se retira del todo: está por encima del video
   (z-index 5) y le comería los bordes al estallido blanco del portal. Usa la
   transición de 1s que la regla ya declara. */
.kc-gate.is-breaking .gate-spotlight {
  opacity: 0;
}

/* Upper theatrical safe zone: the centre of the frame belongs to the silhouette.
   pointer-events:none — this is text, and it overlaps #gateCordTarget. */
.gate-copy {
  position: absolute;
  left: 50%;
  /* FASE 04-R1: baja y ensancha. Aun asi termina muy por encima de la zapatilla,
     que empieza en y 0.695 del frame. */
  top: calc(env(safe-area-inset-top, 0px) + clamp(72px, 17vh, 150px));
  z-index: 9;
  width: min(96vw, 470px);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: .68rem;
  color: var(--dp-marfil-luna);
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .78);
  pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
}

.gate-eyebrow,
.gate-name,
.gate-supporting {
  margin: 0;
}

/* ── Aparición progresiva del texto del gate al cargar ──
   Cada elemento empieza invisible y sube desde abajo con delays escalonados.
   El is-settling ya manejaba el estado final; aquí controlamos la entrada
   inicial para que el texto no aparezca de golpe al cargar la página. */
@keyframes gateCopyReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: var(--gate-text-opacity-target, 1);
    transform: translateY(0);
  }
}

.gate-eyebrow {
  font-family: var(--kc-f-ceremonial);
  font-size: clamp(.72rem, 2.1vw, .82rem);
  letter-spacing: .34em;
  color: var(--dp-metal-base);
  --gate-text-opacity-target: .78;
  opacity: 0;
  animation: gateCopyReveal 1.1s var(--ease-silk) 0.3s forwards;
  transition: opacity 4.2s var(--ease-silk);
}

.kc-gate.is-settling .gate-eyebrow {
  opacity: 1;
  animation: none;
}

/* Scriptorial, aparicion #1 de 3 (gate · hero · firma de cierre).
   Metricas REALES leidas del TTF con fontTools: unitsPerEm 1200, x-height .307em,
   el nombre largo avanza 4.537em y el corto 2.339em. El comentario anterior
   afirmaba 5.382em para el nombre completo: sobreestimaba ~19%.

   Una sola linea, decidido por el CEO: partido en dos se veia peor.
   Ancho renderizado medido en navegador, no estimado: 4.520em en chromium y
   4.537em en webkit (coincide con el TTF). El comentario anterior afirmaba
   5.382em: sobreestimaba ~19%.
   Con contenedor de 96vw el tope absoluto es 21.2vw. Se usa 19vw para dejar
   ~14% de aire — lo mas grande posible sin que quede pegado a los bordes.
   Con la x-height de .307em un script necesita ese cuerpo para pesar lo que
   pesaria un serif mucho mas chico. */
.gate-name {
  font-family: var(--kc-f-signature);
  font-size: clamp(3.5rem, 17vw, 4.8rem); /* «Azula Calloway» avanza 5.082em (vs 4.537em): cuerpo x .89 */
  line-height: 1;
  white-space: nowrap;
  /* Estado historia: contenido. Mientras ella corre, manda la escena. */
  transform: scale(.86);
  opacity: 0;
  animation: gateCopyReveal 1.4s var(--ease-silk) 0.65s forwards;
  transition: transform 4.2s var(--ease-silk), opacity 4.2s var(--ease-silk);
}

/* El momento de llegada: el nombre florece a la vez que la sombra cierra. */
.kc-gate.is-settling .gate-name {
  transform: scale(1);
  opacity: 1;
  animation: none;
}

/* Vida: un barrido de luz de cristal cruzando las letras, una sola vez, cuando
   el cuadro se asienta. El §15 del LOCK pide que el metal responda DESPLAZANDO
   su reflejo y prohibe el glow — esto es exactamente un reflejo que se desplaza.
   Va detras de @supports: si background-clip:text no existe, el nombre se queda
   en marfil solido y no pasa nada. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .kc-gate.is-settling .gate-name {
    background-image: linear-gradient(100deg,
        var(--dp-marfil-luna) 0%,
        var(--dp-marfil-luna) 38%,
        var(--dp-metal-luz) 47%,
        #FFFFFF 50%,
        var(--dp-metal-luz) 53%,
        var(--dp-marfil-luna) 62%,
        var(--dp-marfil-luna) 100%);
    background-size: 280% 100%;
    background-position: 100% 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gateNameSheen 3.2s var(--ease-silk) 1.6s both;
  }
}

@keyframes gateNameSheen {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: 0% 0;
  }
}

.gate-supporting {
  font-family: var(--kc-f-editorial);
  font-size: clamp(1rem, 2.9vw, 1.14rem);
  letter-spacing: .07em;
  color: var(--dp-cristal);
  --gate-text-opacity-target: .8;
  opacity: 0;
  animation: gateCopyReveal 1.1s var(--ease-silk) 1.05s forwards;
  transition: opacity 4.2s var(--ease-silk);
}

.kc-gate.is-settling .gate-supporting {
  opacity: 1;
  animation: none;
}

/* ── Hit target: la zapatilla de cristal, dentro del frame del video ──
   La cuerda vivía en x≈0.874, pegada al borde recortado, y por eso hacía falta
   capar 'left'. La zapatilla vive en x 0.243→0.678: en el viewport más estrecho
   del objetivo (360×800) se ve la franja central del 80% del frame — x 0.10→0.90 —
   así que queda holgada y los parches de borde sobran.
   El target cubre el CUERPO de la zapatilla, no su reflejo. */
#gateCordTarget {
  position: absolute;
  z-index: 4;
  top: 66%;
  height: 26%;
  left: 20%;
  width: 48%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Mientras la historia corre no hay nada que tocar todavia. */
#gateCordTarget[disabled] {
  cursor: default;
  pointer-events: none;
}

#gateCordTarget:focus-visible {
  outline: 3px solid var(--gate-luz);
  outline-offset: 2px;
}

/* ── Cord hint: discoverability, never a second CTA.
   Anchored bottom-centre of the viewport; it names the gesture, it does not point. ── */
.gate-cord-hint {
  position: absolute;
  z-index: 9;
  margin: 0;
  top: auto;
  /* La zapatilla baja hasta y 0.933 — a ~57px del borde en 390×844. El anclaje
     anterior (hasta 76px) le caía encima al reflejo. */
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(16px, 4vh, 34px));
  left: 50%;
  transform: translateX(-50%);
  color: var(--dp-marfil-luna);
  font-family: var(--kc-f-ceremonial);
  font-size: clamp(.78rem, 3.2vw, .86rem);
  font-weight: 700;
  letter-spacing: .22em;
  white-space: nowrap;
  /* FASE 04-R1: no existe hasta que se puede tocar. Se usa visibility ADEMAS de
     opacity a proposito: el cordHintBreath que main.js arranca a los 9s solo
     anima opacity, asi que por si solo no puede revelar el hint antes de tiempo. */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  /* Contraste reforzado: sombra multi-capa más intensa + píldora semitransparente
     en móvil (ver media query abajo) para que el texto no se pierda con el video. */
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 1),
    0 2px 8px rgba(0, 0, 0, .98),
    0 0 18px rgba(0, 0, 0, .96),
    0 0 32px rgba(0, 0, 0, .7);
  transition: opacity .9s var(--ease-silk);
}

/* MOBILE: píldora oscura detrás del texto para legibilidad garantizada
   sin importar qué frame del video quede debajo. */
@media (max-width: 540px) {
  .gate-cord-hint {
    background: rgba(5, 10, 28, .62);
    border-radius: 999px;
    padding: .38em 1.1em .32em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .12);
  }
}

/* Entra cuando el gate se arma: la zapatilla ya esta sola y se puede tocar. */
.kc-gate.is-armed .gate-cord-hint {
  visibility: visible;
  opacity: .94;
}

.gate-cord-hint.pulse-strong {
  animation: cordHintBreath 2.6s ease-in-out infinite;
}

@keyframes cordHintBreath {

  0%,
  100% {
    opacity: .78;
  }

  50% {
    opacity: 1;
  }
}

.kc-gate.is-activated .gate-copy {
  opacity: 0;
  transform: translateX(-50%) translateY(-8px);
  pointer-events: none;
}

.kc-gate.is-activated .gate-cord-hint {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.kc-gate.is-activated #gateCordTarget {
  pointer-events: none;
}

/* ── Reduced motion safety ── */
@media(prefers-reduced-motion:reduce) {

  .gate-idle-video,
  .gate-break-video,
  .gate-spotlight,
  .gate-cord-hint.pulse-strong {
    animation: none;
  }

  .gate-spotlight::before,
  .gate-spotlight::after {
    transition: none;
  }

  .gate-copy,
  .gate-cord-hint {
    transition: none;
  }

  /* FASE 04-R1: sin ceremonia. gate-idle.js arma de inmediato, asi que el
     estado asentado tiene que estar ya puesto, no en camino. */
  .gate-name,
  .gate-eyebrow,
  .gate-supporting {
    transition: none;
  }

  .kc-gate.is-settling .gate-name {
    animation: none;
    background-image: none;
    -webkit-text-fill-color: currentColor;
    color: var(--dp-marfil-luna);
  }
}

/* ── Reparacion de desktop — FASE 04-R1 ──
   P0 introducido en FASE 04 y detectado con viewports anchos: .gate-curtain-frame
   se ancla arriba con height: max(100vh, 100vw*1280/720). En cualquier viewport
   MAS ANCHO que 9:16 el frame mide muchisimo mas que la pantalla y se corta por
   abajo, justo donde vive la zapatilla. Medido antes del arreglo:
     1440x900  -> frame 1440x2560, zapatilla 0% visible, target en top:1690px
     1024x768  -> frame 1024x1820, zapatilla 0% visible, target en top:1201px
     768x1024  -> frame  768x1365, zapatilla 23% visible
   El target viejo (la cuerda, top:22%) si caia dentro; el de la zapatilla al 66%
   no. Y el watchdog de 11s de main.js solo se arma DENTRO de openCurtain(), asi
   que sin tap posible la pagina quedaba cerrada para siempre.

   Arreglo: por encima de 9:16 el frame deja de llenar el ancho y pasa a caber a
   lo alto. Se ve la composicion completa con campo medianoche a los lados, que
   sobre un fondo que ya es --dp-medianoche lee como sala oscura, no como error.
   Los telefonos (ratio ~0.46, mas angostos que 0.5625) no entran aqui: conservan
   el full-bleed. */
@media (min-aspect-ratio: 9/16) {
  .gate-curtain-frame {
    width: calc(100svh * 720 / 1280);
    height: 100svh;
  }

  /* Con el frame centrado, la zapatilla se corre un pelo hacia el centro. */
  .kc-gate {
    --gate-focus-x: 48%;
  }
}

/* ── El parche de retrato estrecho (BLT_03C-R1) se retira en FASE 04 ──
   Existía para rescatar la cuerda del telón en x≈0.874, pegada al corte.
   Dos motivos para borrarlo entero:

   1. Su object-position NUNCA hizo nada. El frame es exactamente 9:16 en ambas
      ramas de su propia fórmula — max(100vw, 100vh*720/1280) sobre
      max(100vh, 100vw*1280/720) da 0.5625 siempre — y el video también es 9:16.
      Con object-fit:cover sobre aspectos idénticos no hay overflow que reposicionar:
      era código muerto que no desplazaba un píxel.
   2. La zapatilla vive centrada (x 0.243→0.678). Lo que sí recorta es el
      overflow:hidden de .kc-gate, y aun así se ve la franja central del ~80%.
      No hay nada que rescatar del borde.

   El hint vuelve a estar centrado por su regla base (left: 50%). */

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
#invitation {
  position: relative;
}

/* ============================================================
   HERO — LÁMINA CENICIENTA NOCTURNE
   El marco interno conserva la proporción 9:16 y ancla el copy a su geometría.
   ============================================================ */
#hero.hero-forest {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  height: 100vh;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  color: var(--dp-marfil-luna);
  /* El aire alrededor de la lamina es el mismo cielo que la lamina, no un gris.
     Sale de la paleta: si la noche se retonea, el Hero la sigue solo. */
  background: linear-gradient(180deg,
      var(--dp-medianoche) 0%,
      var(--dp-ciruela) 42%,
      var(--dp-crepusculo) 68%,
      var(--dp-medianoche) 100%);
}

/* MOBILE FIX: en portrait el .hero-frame (aspect-ratio 941:1672) es mas CORTO
   que el viewport — ej. en 390x844 la lamina mide 693px dejando ~75px de vacio
   arriba por culpa de place-items:center. Al alinear a start+stretch el frame
   arranca pegado al top y su overflow:hidden del padre corta lo que sobre abajo.
   La imagen con cover llena sin huecos. */
@media (max-width: 540px) and (max-aspect-ratio: 3/4) {
  #hero.hero-forest {
    place-items: start center;
  }
}

/* La lámina cabe completa; el aire del viewport se queda en el azul de escena. */
.hero-frame {
  position: relative;
  /* Medido en FASE 05: la version anterior fijaba width Y height a la vez ademas de
     aspect-ratio. Con las dos dimensiones declaradas, aspect-ratio se ignora, y el
     `100%` se resolvia contra el area de grid del padre — WebKit lo resolvia distinto
     que Chromium y devolvia una lamina de 450px de ancho en un viewport de 360, con
     relacion 0.70 en vez de 0.5628: estirada y desbordada en iPhone.
     Ahora el ancho se calcula solo, sin porcentajes, y la altura la deriva
     aspect-ratio. Deterministico en los dos motores. */
  width: min(100vw, calc(100svh * 941 / 1672));
  height: auto;
  aspect-ratio: 941 / 1672;
  max-height: 100svh;
  container-type: inline-size;
}

/* MOBILE FIX: en portrait estrecho el frame no llena la pantalla, asi que
   lo estiramos a 100svh y dejamos que aspect-ratio se relaje. La imagen
   con object-fit:cover (puesto mas abajo) llena sin deformar. */
@media (max-width: 540px) and (max-aspect-ratio: 3/4) {
  .hero-frame {
    width: 100vw;
    height: 100svh;
    aspect-ratio: auto;
    max-height: none;
  }
}

/* Luz fría mínima sobre reloj y luna; la fuente respira, no ilumina el copy. */
.hero-frame::before,
.hero-frame::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.hero-frame::before {
  background:
    radial-gradient(ellipse 30% 22% at 47% 18%, rgba(213, 208, 209, .12), rgba(169, 162, 182, .06) 38%, transparent 74%),
    radial-gradient(ellipse 25% 19% at 76% 29%, rgba(159, 180, 220, .10), rgba(108, 100, 113, .05) 38%, transparent 74%);
  opacity: .76;
  animation: heroLightBreath 12s ease-in-out infinite;
}

.hero-frame::after {
  background: radial-gradient(ellipse at center,
      transparent 47%,
      rgba(5, 11, 28, .08) 73%,
      rgba(5, 11, 28, .28) 100%);
}

@keyframes heroLightBreath {

  0%,
  100% {
    opacity: .64;
    transform: scale(1);
  }

  50% {
    opacity: .86;
    transform: scale(1.018);
  }
}

/* Contrato con main.js: estos siete nombres y su orden DOM no se renombran. */
.hero-forest-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.012);
  pointer-events: none;
  transition: opacity 1.7s var(--ease-silk), transform 1.9s var(--ease-silk);
}

.hero-forest-bg.in {
  opacity: 1;
  transform: scale(1);
}

.hero-forest-bg picture,
.hero-forest-bg img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-forest-bg img {
  max-width: none;
  object-fit: contain;
  object-position: center;
}

/* MOBILE FIX: en móvil la foto tenia espacio vacío arriba porque contain deja
   pilares a los lados. En viewports estrechos (portrait), cover+top ancla el
   sujeto al inicio sin dejar huecos. */
@media (max-width: 540px) {
  .hero-forest-bg img {
    object-fit: cover;
    object-position: top center;
  }
}

/* Velo de cielo bajo el copy. El titulo marfil medido sobre pixel daba 3.3-3.9:1
   (p95 del fondo, peor caso) porque cae sobre estrellas y sobre la plata del marco.
   Esto NO es un panel de glassmorphism: es una nube del propio azul del cielo que se
   funde sin borde, oscureciendo solo lo justo bajo las letras. */
.hero-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -12% -14% -18%;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 52% at 50% 42%,
      rgba(10, 18, 44, .62) 0%,
      rgba(10, 18, 44, .44) 46%,
      rgba(10, 18, 44, .16) 74%,
      transparent 100%);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  /* Medido sobre hero-web.webp por bandas de 3%: la ventana de cielo limpio va
     de x35-63% en y16-19% (el reloj todavia esta ahi) y solo abre a x20-82% entre
     y28 e y37%. El titulo pide ~78% de ancho: esa es la unica banda donde cabe.
     A top:14% el kicker se sentaba sobre el borde inferior del cuadrante. */
  top: 23%;
  right: 20%;
  left: 20%;
  height: 32%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(.15rem, .6cqw, .45rem);
  text-align: center;
  pointer-events: none;
}

.hero-kicker,
.hero-title,
.hero-theme-line,
.hero-date {
  margin: 0;
  color: var(--dp-marfil-luna);
  text-shadow:
    0 1px 2px rgba(6, 12, 32, .92),
    0 2px 12px rgba(6, 12, 32, .82),
    0 0 28px rgba(6, 12, 32, .55);
  opacity: 0;
  filter: blur(10px);
  transform: translateY(12px);
  transition: opacity 1.25s var(--ease-silk), filter 1.5s var(--ease-silk), transform 1.55s var(--ease-silk), letter-spacing 1.45s var(--ease-silk);
}

.hero-kicker.in,
.hero-title.in,
.hero-theme-line.in,
.hero-date.in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  letter-spacing: normal;
}

.hero-kicker {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .55em;
  font-family: var(--kc-f-ceremonial);
  font-size: clamp(.58rem, 2cqw, .78rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .34em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-kicker strong {
  color: var(--dp-metal-luz);
  font-family: var(--kc-f-editorial);
  font-size: clamp(2.4rem, 8cqw, 4.5rem);
  font-style: italic;
  font-weight: 500;
  line-height: .72;
  text-shadow: 0 2px 8px rgba(8, 16, 39, .85), 0 0 14px rgba(108, 100, 113, .4);
}

.hero-title {
  font-family: var(--kc-f-signature);
  /* Medido sobre la imagen: en la banda del titulo el cielo abre de x 0.17 a 0.79 y
     las columnas macizas del marco empiezan en 0.10 y 0.88. A 19cqw + .035em de
     tracking el nombre ocupaba el 93% del ancho y se metia de lleno en el ornamento.
     Ancho real del string = (4.52em de avance + 11 x tracking) x cuerpo.
     Con 16.4cqw y .018em queda en ~78%: llena el cielo y despeja las columnas. */
  font-size: clamp(2.8rem, 14.6cqw, 8rem); /* demo: nombre de 5.082em, cuerpo x .89 */
  font-style: normal;
  font-weight: normal;
  line-height: .86;
  letter-spacing: .018em;
  white-space: nowrap;
}

.hero-theme-line {
  font-family: var(--kc-f-ceremonial);
  font-size: clamp(.78rem, 2.6cqw, 1.15rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .38em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-date {
  font-family: var(--kc-f-ui);
  font-size: clamp(.58rem, 1.9cqw, .74rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-date time {
  color: inherit;
  font: inherit;
  white-space: inherit;
}

/* Corona + rastro + chevron. El orden visual es corona -> filete -> flecha; el SVG
   lleva order:-1 porque ::before siempre se inserta antes que el hijo real. */
.scroll-cue {
  position: absolute;
  z-index: 5;
  bottom: 14%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: .42rem;
  width: clamp(3rem, 10cqw, 4rem);
  opacity: 0;
  filter: blur(5px);
  letter-spacing: .2em;
  transform: translate(-50%, 10px);
  transition: opacity 1.2s var(--ease-silk), filter 1.35s var(--ease-silk), transform 1.4s var(--ease-silk), letter-spacing 1.3s var(--ease-silk);
}

.scroll-cue.in {
  opacity: 1;
  filter: blur(0);
  letter-spacing: normal;
  transform: translate(-50%, 0);
}

.scroll-cue-crown {
  order: -1;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--dp-metal-luz);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 50%;
  animation: scrollCueCrown 2.4s var(--ease-silk) infinite;
  filter: drop-shadow(0 0 7px rgba(181, 178, 220, .55)) drop-shadow(0 1px 7px rgba(6, 12, 32, .95));
}

.scroll-cue-crown .scroll-cue-jewel {
  fill: currentColor;
  stroke: none;
}

/* El filete y la flecha caen sobre la falda, que es la zona mas brillante de la
   lamina: en ceniza-lavanda desaparecian. Van en el mismo metal que la corona y
   con la misma sombra, o el cue deja de ser una afordancia y es solo adorno. */
.scroll-cue::before {
  width: 1.5px;
  height: clamp(1.25rem, 3.4cqw, 1.7rem);
  content: '';
  background: linear-gradient(180deg, transparent, var(--dp-metal-luz));
  transform-origin: top center;
  animation: scrollCueTrail 2.4s var(--ease-silk) infinite;
  filter: drop-shadow(0 0 5px rgba(181, 178, 220, .5)) drop-shadow(0 0 4px rgba(6, 12, 32, .95));
}

.scroll-cue::after {
  width: 11px;
  height: 11px;
  content: '';
  border-right: 2px solid var(--dp-metal-luz);
  border-bottom: 2px solid var(--dp-metal-luz);
  border-radius: 0;
  transform: translateY(0) rotate(45deg);
  animation: scrollCueArrow 2.4s var(--ease-silk) infinite;
  filter: drop-shadow(0 0 6px rgba(181, 178, 220, .58)) drop-shadow(0 0 4px rgba(6, 12, 32, .95));
}

@keyframes scrollCueCrown {
  0%, 100% { opacity: .78; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(7px); }
}

@keyframes scrollCueTrail {
  0%, 100% { opacity: .48; transform: scaleY(.62); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes scrollCueArrow {
  0%, 100% { opacity: .52; transform: translateY(0) rotate(45deg); }
  50% { opacity: 1; transform: translateY(8px) rotate(45deg); }
}

/* La portada termina en marfil para que el paso al programa sea un amanecer. */
#hero.hero-forest::after {
  content: '';
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(3.5rem, 9vh, 6.5rem);
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(13, 23, 48, 0) 0%,
      rgba(13, 23, 48, .05) 17%,
      rgba(246, 242, 234, .48) 72%,
      #F6F2EA 100%);
}

@media (prefers-reduced-motion: reduce) {

  /* Sin blur ni viaje: la portada conserva su jerarquía desde el primer frame. */
  .hero-frame::before {
    animation: none;
    opacity: .76;
  }

  .hero-forest-bg,
  .hero-kicker,
  .hero-title,
  .hero-theme-line,
  .hero-date,
  .scroll-cue {
    opacity: 1;
    filter: none;
    letter-spacing: normal;
    transform: none;
    transition: none;
  }

  .scroll-cue {
    transform: translateX(-50%);
  }

  .scroll-cue-crown,
  .scroll-cue::before,
  .scroll-cue::after {
    animation: none;
    transform: none;
  }

  .kc-gate.is-exiting::after {
    animation: none;
    opacity: 0;
  }
}

/* ============================================================
   INTRO — XV_RBN_04C: IVORY STAGE PAPER PROGRAMME
   ============================================================ */
#intro.intro-programme {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5.5rem, 13vw, 8rem) clamp(1.5rem, 6vw, 3rem);
  color: var(--color-ink);
  /* La base sigue al canvas de la hora, no a un marfil quemado: por eso la camara
     encendida es piedra de luna y no crema de boda. El calor que queda es una
     vela baja en la esquina, que es la unica fuente de luz calida autorizada. */
  background:
    radial-gradient(ellipse at 12% 88%, color-mix(in srgb, var(--dp-vela-luz) 14%, transparent), transparent 40%),
    radial-gradient(ellipse at 88% 14%, color-mix(in srgb, var(--dp-plata-luz) 26%, transparent), transparent 42%),
    repeating-linear-gradient(94deg, color-mix(in srgb, var(--dp-crepusculo) 2.4%, transparent) 0 1px, transparent 1px 6px),
    var(--color-canvas);
}

.programme-paper-glow {
  display: none;
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: min(16rem, 42%);
  pointer-events: none;
  background:
    radial-gradient(ellipse 66% 76% at 50% 0%, color-mix(in srgb, var(--dp-ciruela) 34%, transparent), transparent 68%),
    linear-gradient(180deg, color-mix(in srgb, var(--dp-crepusculo) 20%, var(--dp-plata-luz)) 0%, color-mix(in srgb, var(--dp-plata-luz) 58%, var(--color-canvas)) 48%, transparent 100%);
  opacity: .76;
}

.programme-page {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100%, 38rem);
  margin-inline: auto;
  text-align: center;
}

.programme-page::before,
.programme-page::after {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  content: '';
  opacity: .58;
  pointer-events: none;
}

.programme-page::before {
  top: -.55rem;
  left: -.1rem;
  border-top: 1px solid var(--dp-metal-base);
  border-left: 1px solid var(--dp-metal-base);
}

.programme-page::after {
  right: -.1rem;
  bottom: -.55rem;
  border-right: 1px solid var(--dp-metal-base);
  border-bottom: 1px solid var(--dp-metal-base);
}

.programme-eyebrow {
  margin: 0;
  font-family: var(--kc-f-ceremonial);
  font-size: clamp(.62rem, 2.1vw, .72rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .24em;
  text-transform: uppercase;
  /* metal-base sobre papel marfil medía 2.19:1. Sobre papel el metal es su sombra. */
  color: var(--dp-metal-sombra);
}

.programme-rule {
  position: relative;
  display: block;
  width: min(8rem, 34vw);
  height: 1px;
  margin: 1.45rem auto 1.7rem;
  background: var(--dp-metal-base);
  opacity: .72;
}

.programme-rule::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .22rem;
  height: .22rem;
  content: '';
  border: 1px solid var(--dp-metal-base);
  border-radius: 50%;
  background: var(--color-canvas);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Filete del cuadrante (03B3). Sustituye la linea plana + rombo: misma funcion,
   pero dentro de la gramatica de la casa. El rombo heredado se apaga aqui. */
.programme-rule.dp-rule {
  width: min(13rem, 52vw);
  height: auto;
  background: none;
  opacity: .78;
  color: var(--color-authority);
}

.programme-rule.dp-rule::after {
  content: none;
}

.programme-title {
  max-width: 15ch;
  margin: 0;
  font-family: var(--kc-f-editorial);
  font-size: clamp(2.1rem, 8.6vw, 4.35rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.025em;
  /* 'Un mensaje para ti' dejaba 'ti' sola en su linea. Se reparte, no se encoge. */
  text-wrap: balance;
  color: var(--color-ink);
}

.programme-body {
  max-width: 32rem;
  margin: 1.85rem auto 0;
  font-family: var(--kc-f-editorial);
  font-size: clamp(1.12rem, 4.5vw, 1.35rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--dp-ciruela);
}

.programme-signature {
  margin: 1.8rem 0 0;
  font-family: var(--kc-f-signature);
  font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.15;
  color: var(--color-ink-muted);
}

.intro-programme .programme-eyebrow,
.intro-programme .programme-rule,
.intro-programme .programme-title,
.intro-programme .programme-body,
.intro-programme .programme-signature {
  opacity: 0;
  transform: translateY(.75rem);
}

.intro-programme.in .programme-eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s var(--ease-silk) .08s, transform .5s var(--ease-silk) .08s;
}

.intro-programme.in .programme-rule {
  opacity: .72;
  transform: translateY(0);
  transition: opacity .5s var(--ease-silk) .22s, transform .5s var(--ease-silk) .22s;
}

.intro-programme.in .programme-title {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s var(--ease-silk) .34s, transform .7s var(--ease-silk) .34s;
}

.intro-programme.in .programme-body {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .65s var(--ease-silk) .52s, transform .65s var(--ease-silk) .52s;
}

.intro-programme.in .programme-signature {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .55s var(--ease-silk) .68s, transform .55s var(--ease-silk) .68s;
}

@media (min-width: 48rem) {
  #intro.intro-programme {
    padding-block: clamp(7rem, 10vw, 10rem);
  }
}

@media (prefers-reduced-motion: reduce) {

  .intro-programme.in .programme-eyebrow,
  .intro-programme.in .programme-rule,
  .intro-programme.in .programme-title,
  .intro-programme.in .programme-body,
  .intro-programme.in .programme-signature {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .intro-programme.in .programme-rule {
    opacity: .72;
  }
}

/* ============================================================
   COUNTDOWN — EL BALCON A LAS 11:57
   La lamina del balcon es la escena; los digitos cuelgan en su cielo
   como el cuadrante de la torre. El marco de filigrana es suyo: no se
   le agrega cornisa.
   ============================================================ */

#countdown.countdown-nocturne {
  position: relative;
  isolation: isolate;
  max-width: none;
  margin: 0;
  /* El padding-top no es holgura decorativa: .kc-hour::before tiende una costura
     de 12vh desde arriba (101px a 390x844). Cualquier texto por encima de eso cae
     sobre el claro de la costura y muere: el kicker medido ahi da 1.54:1.
     Ahora el texto vive DENTRO de la lamina, asi que nada tiene que librar la
     costura: el padding baja a lo minimo y se acaba el hueco de arriba.
     Lateral en cero: la lamina llega al borde, no es un cuadro colgado. */
  padding: clamp(.75rem, 2.5vw, 1.25rem) 0 0;
  overflow: hidden;
  color: var(--dp-marfil-luna);
  background:
    radial-gradient(ellipse 66% 52% at 50% 46%, color-mix(in srgb, var(--dp-metal-luz) 20%, transparent) 0%, transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--dp-ciruela) 92%, var(--dp-metal-luz)) 0%, var(--dp-medianoche) 100%);
}

/* La costura generica mide 12vh. Aqui el telon ya es oscuro y la lamina empieza
   enseguida: 12vh de lavado solo dibujaba un hueco claro arriba. */
#countdown.countdown-nocturne::before {
  height: 3.5rem;
}

/* Telon: la misma escena, desenfocada y hundida. Sin esto la lamina flota sobre un
   azul plano y se lee como cuadro pegado; con esto el flanco es la misma noche
   continuando fuera del marco. */
#countdown.countdown-nocturne::after {
  position: absolute;
  z-index: 0;
  inset: -10%;
  content: '';
  pointer-events: none;
  background: url('fotos/counter-web.webp') center / cover no-repeat;
  filter: blur(54px) saturate(.72) brightness(.4);
  opacity: .85;
}

.countdown-programme {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: 100%;
  gap: clamp(.7rem, 2vw, 1.1rem);
  text-align: center;
}

.countdown-event-anchor {
  max-width: min(100%, 34rem);
  padding-inline: clamp(1rem, 5vw, 2rem);
}

/* Titulo: y 37% es la franja mas calma de la lamina entera (sigma de L* 2.0-3.1). */
#countdown .countdown-title {
  position: absolute;
  z-index: 2;
  /* Una sola linea, dentro del cielo limpio (x15-85%, y hasta 42%). A dos lineas
     bajaba hasta y48% y la segunda cruzaba la luna: p99 medido 1.97:1. */
  top: 37%;
  left: 50%;
  width: 70%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--dp-piedra-luna);
  font-family: var(--kc-f-editorial);
  font-size: 6.2cqw;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(13, 23, 48, .8);
  opacity: 0;
  transition: opacity 700ms var(--ease-silk) 600ms;
}

#countdown .countdown-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -.85rem;
  width: min(3.5rem, 18vw);
  height: 1px;
  transform: translateX(-50%);
  background: var(--dp-metal-base);
  opacity: .8;
}

/* ── La lamina ──────────────────────────────────────────────────
   container-type: los digitos se miden contra la lamina, no contra el
   viewport. Sin esto, a 1920px la cifra crece y la lamina no. */
.countdown-balcon {
  container-type: inline-size;
  position: relative;
  width: 100%;
  margin: 0;
  /* El archivo es 1100x1100 y la escena entera es la tesis: pareja, balaustrada,
     castillo, luna. Cualquier aspect-ratio distinto de 1 los amputa. */
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--dp-metal-base) 65%, transparent);
  /* Sombra de foso: separa la lamina del telon sin dibujarle un borde. */
  box-shadow: 0 24px 60px rgba(var(--dp-noche-abismo-rgb), .55), inset 0 0 0 1px rgba(var(--dp-metal-luz-rgb), .18);
  opacity: 0;
  transform: translateY(1.1rem) scale(.985);
  transition: opacity 900ms var(--ease-silk) 240ms, transform 900ms var(--ease-silk) 240ms;
}

/* Vineta: oscurece los bordes de la placa para que los digitos y el marco
   doren respiren, sin tapar la escena central. */
.countdown-balcon::after {
  content: '';
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 3rem rgba(var(--dp-medianoche-rgb), .55);
}

.countdown-balcon>img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Velo de nube: sin el, el marfil sobre el cielo crudo mide 2.85:1 en p95.
   Es #0D1730, no negro: la noche se hace mas honda, no gris. */
.countdown-velo {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 26% at 50% 27%,
      color-mix(in srgb, var(--dp-noche-abismo) 50%, transparent) 0%,
      color-mix(in srgb, var(--dp-noche-abismo) 34%, transparent) 62%,
      transparent 100%),
    /* Pie: el sello se sienta sobre el vestido y la balaustrada, ambos claros
       y con brillo. Sin esta banda el marfil cae a 2:1 en los destellos. */
    linear-gradient(180deg,
      transparent 76%,
      rgba(var(--dp-noche-abismo-rgb), .58) 88%,
      rgba(var(--dp-noche-abismo-rgb), .82) 100%);
}

/* Luciérnagas y niebla viven sobre la fotografía, debajo de cifras y fecha. */
#countdown .countdown-atmosphere {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

#countdown .countdown-mist {
  position: absolute;
  pointer-events: none;
  filter: blur(22px);
  transform: translate3d(0, 0, 0);
}

#countdown .countdown-mist--upper {
  top: 22%;
  right: -20%;
  left: -20%;
  height: 27%;
  background:
    radial-gradient(ellipse 35% 40% at 12% 56%, rgba(var(--dp-ceniza-lavanda-rgb), .14), transparent 74%),
    radial-gradient(ellipse 40% 38% at 84% 42%, rgba(var(--dp-plata-luz-rgb), .12), transparent 76%),
    radial-gradient(ellipse 42% 30% at 50% 70%, rgba(var(--dp-cristal-rgb), .08), transparent 74%);
  opacity: .58;
  animation: countdownMistUpper 17s ease-in-out -4s infinite alternate;
}

#countdown .countdown-mist--lower {
  right: -18%;
  bottom: 7%;
  left: -18%;
  height: 19%;
  background: radial-gradient(ellipse 50% 42% at 50% 50%, rgba(var(--dp-ceniza-lavanda-rgb), .16), transparent 72%);
  filter: blur(26px);
  opacity: .42;
  animation: countdownMistLower 20s ease-in-out -8s infinite alternate;
}

@keyframes countdownMistUpper {
  0% { transform: translate3d(-2%, 2%, 0) scale(1.02); }
  100% { transform: translate3d(2%, -3%, 0) scale(1.08); }
}

@keyframes countdownMistLower {
  0% { transform: translate3d(2%, 1%, 0) scale(.94); opacity: .25; }
  100% { transform: translate3d(-2%, -3%, 0) scale(1.08); opacity: .48; }
}

#countdown .countdown-firefly {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(var(--dp-plata-luz-rgb), 1);
  box-shadow: 0 0 12px rgba(var(--dp-plata-luz-rgb), .9), 0 0 28px rgba(var(--dp-ceniza-lavanda-rgb), .5);
  opacity: .5;
  animation: countdownFireflyDrift 8.5s ease-in-out var(--delay) infinite;
}

@keyframes countdownFireflyDrift {
  0%, 100% { opacity: .3; transform: translate3d(0, 4px, 0) scale(.78); }
  38% { opacity: 1; transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(1.45); }
  70% { opacity: .55; transform: translate3d(calc(var(--drift-x) * -.55), calc(var(--drift-y) * .45), 0) scale(1); }
}

/* ── Los digitos, colgados en el cielo ──────────────────────────
   y 15-35% de la lamina: la unica franja con sigma de L* bajo 5. */
.countdown-balcon .countdown-grid {
  position: absolute;
  z-index: 2;
  top: 17%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  /* 70%: el cielo limpio va exactamente de x15% a x85% de la lamina.
     Mas ancho y la cifra de los extremos se sienta sobre la filigrana. */
  width: 70%;
  opacity: 0;
  transition: opacity 700ms var(--ease-silk) 520ms;
}

.countdown-unit {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: .35em;
  padding: 0;
  text-align: center;
}

.countdown-value {
  display: block;
  min-width: 0;
  color: var(--dp-piedra-luna, #EAE8EE);
  font-family: var(--kc-f-editorial);
  font-size: 13.5cqw;
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.045em;
  text-shadow: 0 2px 14px rgba(13, 23, 48, .78);
}

.countdown-label {
  display: block;
  color: color-mix(in srgb, var(--dp-piedra-luna, #EAE8EE) 88%, var(--dp-metal-base));
  font-family: var(--kc-f-ceremonial);
  font-size: 2.7cqw;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.25;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(13, 23, 48, .82);
}

.countdown-balcon .countdown-event-anchor {
  position: absolute;
  z-index: 2;
  bottom: 4.5%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: .35rem;
  width: 86%;
  max-width: none;
  padding-inline: 0;
  opacity: 0;
  transform: translateX(-50%) translateY(.75rem);
  transition: opacity 680ms var(--ease-silk) 620ms, transform 680ms var(--ease-silk) 620ms;
}

.countdown-event-anchor time {
  color: var(--dp-metal-luz);
  font-family: var(--kc-f-ceremonial);
  font-size: 3.1cqw;
  font-weight: 700;
  letter-spacing: .2em;
  text-shadow: 0 1px 10px rgba(13, 23, 48, .9);
}

.countdown-event-anchor span {
  color: var(--dp-piedra-luna);
  font-family: var(--kc-f-ui);
  font-size: 2.5cqw;
  font-weight: 600;
  letter-spacing: .16em;
  text-shadow: 0 1px 10px rgba(13, 23, 48, .9);
}

#countdown.countdown-nocturne.in .countdown-title,
#countdown.countdown-nocturne.in .countdown-balcon,
#countdown.countdown-nocturne.in .countdown-grid,
#countdown.countdown-nocturne.in .countdown-event-anchor {
  opacity: 1;
}

#countdown.countdown-nocturne.in .countdown-balcon {
  transform: translateY(0) scale(1);
}

#countdown.countdown-nocturne.in .countdown-grid,
#countdown.countdown-nocturne.in .countdown-title {
  transform: translateX(-50%);
}

#countdown.countdown-nocturne.in .countdown-event-anchor {
  transform: translateX(-50%);
}

/* Arriba de 700px la lamina deja de ir a borde: a sangre completa tendria que
   medir tanto de alto como de ancho. Se contiene y el telon sostiene el flanco. */
@media (min-width: 700px) {
  .countdown-balcon {
    width: min(100%, 40rem);
    margin-inline: auto;
    border-radius: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {

  #countdown .countdown-mist,
  #countdown .countdown-firefly {
    animation: none;
  }

  #countdown .countdown-firefly {
    opacity: .5;
  }

  #countdown .countdown-title,
  .countdown-balcon,
  .countdown-balcon .countdown-grid,
  .countdown-event-anchor {
    transition: none;
  }

  #countdown.countdown-nocturne .countdown-balcon {
    opacity: 1;
    transform: none;
  }

  #countdown.countdown-nocturne .countdown-event-anchor {
    opacity: 1;
    transform: translateX(-50%);
  }

  #countdown.countdown-nocturne .countdown-balcon .countdown-grid,
  #countdown.countdown-nocturne .countdown-title {
    opacity: 1;
    transform: translateX(-50%);
  }
}

/* ================================================================
   FAMILY CREDITS — PROGRAMME PAPER + BALLET ORNAMENT RECOVERY
   ================================================================ */
#padres.family-credits {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(72px, 10vw, 96px) clamp(22px, 7vw, 72px) clamp(48px, 8vw, 72px);
  color: var(--color-ink);
  text-align: center;
  background: var(--color-canvas);
}

/* A short lunar veil carries the velvet countdown into the paper programme. */
.family-night-paper {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 20% at 50% 0%,
      color-mix(in srgb, var(--dp-metal-luz) 16%, transparent),
      transparent 74%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--dp-ciruela) 14%, transparent),
      color-mix(in srgb, var(--dp-ciruela) 5%, transparent) 76px,
      transparent 116px),
    repeating-linear-gradient(96deg,
      color-mix(in srgb, var(--dp-ciruela) 1.6%, transparent) 0 1px,
      transparent 1px 15px),
    repeating-linear-gradient(7deg,
      color-mix(in srgb, var(--dp-metal-base) 1.2%, transparent) 0 1px,
      transparent 1px 19px);
}

#padres.family-credits> :not(.family-night-paper, .family-ballet-ornament) {
  position: relative;
  z-index: 2;
}

.family-credits-header {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 3vw, 22px);
  margin: 0 auto clamp(42px, 8vw, 64px);
}

.family-credits-eyebrow {
  margin: 0;
  font-family: var(--kc-f-ceremonial);
  font-size: clamp(0.62rem, 2.4vw, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1.45;
  text-transform: uppercase;
  /* metal-base sobre crepúsculo medía 4.01:1 a 13px. Sobre noche el metal es su luz. */
  color: var(--dp-metal-luz);
}

.family-credit-ledger {
  display: grid;
  gap: clamp(20px, 4vw, 32px);
  width: min(100%, 50rem);
  margin: 0 auto;
}

.family-credit-group {
  display: grid;
  gap: clamp(20px, 4vw, 28px);
  width: 100%;
}

.family-credit-group::before {
  width: min(100%, 22rem);
  height: 1px;
  margin: 0 auto;
  content: '';
  background: linear-gradient(90deg,
      transparent,
      color-mix(in srgb, var(--dp-metal-base) 56%, transparent) 18%,
      color-mix(in srgb, var(--dp-metal-base) 56%, transparent) 82%,
      transparent);
}

#padres.family-credits .family-credit-heading {
  margin: 0;
  font-family: var(--kc-f-ceremonial);
  font-size: clamp(0.76rem, 2.5vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--dp-metal-luz);
}

.family-credit-cast {
  display: grid;
  gap: clamp(22px, 5vw, 32px);
}

.family-credit-person {
  display: grid;
  gap: 7px;
  margin: 0;
}

.family-credit-role {
  font-family: var(--kc-f-ceremonial);
  font-size: clamp(0.62rem, 2.2vw, 0.74rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-authority-ink);
}

.family-credit-name {
  display: block;
  max-width: 20ch;
  margin-inline: auto;
  font-family: var(--kc-f-editorial);
  font-size: clamp(1.65rem, 6vw, 2.22rem);
  font-weight: 500;
  line-height: 1.13;
  color: var(--color-ink);
}

.family-credit-interlude {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: min(100%, 22rem);
  margin: 0 auto;
  color: var(--dp-metal-base);
}

.family-credit-interlude::before,
.family-credit-interlude::after {
  height: 1px;
  content: '';
  background: color-mix(in srgb, currentColor 52%, transparent);
}

/* Arco corto del cuadrante entre padres y madrina: la hora que gira. */
.family-credit-interlude .dp-arc {
  display: block;
  width: 62px;
  height: auto;
  color: currentColor;
}

.family-credits-header,
.family-credit-group,
.family-credit-interlude {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s var(--kc-ease-silk), transform 0.55s var(--kc-ease-silk);
}

.family-credits.in .family-credits-header,
.family-credits.in .family-credit-group,
.family-credits.in .family-credit-interlude {
  opacity: 1;
  transform: translateY(0);
}

.family-credits.in .family-credit-group:nth-child(3) {
  transition-delay: 0.08s;
}

@media (min-width: 720px) {
  #padres.family-credits {
    padding-inline: clamp(40px, 9vw, 128px);
  }

  .family-credit-group {
    width: min(100%, 46rem);
    margin-inline: auto;
  }

  .family-credit-cast {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 6vw, 56px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .family-credits-header,
  .family-credit-group,
  .family-credit-interlude {
    opacity: 1;
    transform: none;
    transition: none;
  }

}

/* ── UBICACIONES / PROGRAMME ACTS — BALLET DOCTRINE R3 ── */
/* Two photographic velvet chapters: the places are scenes, never cards. */
/* ============================================================
   UBICACIONES — DOS PORTALES GEMELOS
   Los arcos son el dp-arc-portal del cuadrante, inline en el HTML.
   Una sola fila en todo viewport: es la instruccion, no un breakpoint.
   ============================================================ */
#ubicaciones.venue-portals {
  --venue-velvet: var(--dp-medianoche);
  --venue-paper: var(--dp-marfil-luna);
  --venue-ivory: var(--dp-cristal);
  --venue-metal: var(--dp-metal-base);
  --venue-line: var(--dp-plata);
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(4.5rem, 12vw, 6rem) clamp(.85rem, 4vw, 3rem) clamp(3rem, 10vw, 5rem);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 78% 48% at 50% 8%, color-mix(in srgb, var(--dp-crepusculo) 62%, transparent), transparent 74%),
    var(--venue-velvet);
}

/* .kc-hour--ii tiende 12vh de piedra-luna desde arriba. A tamano completo el
   eyebrow caia dentro del claro de la costura y moria; se recorta como ya se
   hizo en #countdown. */
#ubicaciones.venue-portals::before {
  height: 4rem;
}

#ubicaciones.venue-portals.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .72s var(--kc-ease-silk), transform .72s var(--kc-ease-silk);
}

#ubicaciones.venue-portals.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Atmósfera intermedia: la celebración respira entre ambos portales sin invadir
   nombres, horarios ni mapas. Plata/lavanda, nunca partículas doradas. */
.venue-atmosphere {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.venue-mist {
  position: absolute;
  pointer-events: none;
  filter: blur(24px);
  transform: translate3d(0, 0, 0);
}

.venue-mist--veil {
  top: 5%;
  right: -18%;
  left: -18%;
  height: 52%;
  background:
    radial-gradient(ellipse 35% 30% at 13% 62%, rgba(var(--dp-plata-luz-rgb), .12), transparent 74%),
    radial-gradient(ellipse 34% 28% at 87% 30%, rgba(var(--dp-ceniza-lavanda-rgb), .14), transparent 76%),
    radial-gradient(ellipse 46% 24% at 50% 78%, rgba(var(--dp-cristal-rgb), .08), transparent 74%);
  opacity: .8;
  animation: venueMistDrift 18s ease-in-out infinite alternate;
}

.venue-mist--current {
  top: 43%;
  right: -24%;
  left: -24%;
  height: 28%;
  background: radial-gradient(ellipse 48% 38% at 50% 50%, rgba(var(--dp-ceniza-lavanda-rgb), .14), transparent 72%);
  filter: blur(30px);
  opacity: .46;
  animation: venueMistCurrent 22s ease-in-out -6s infinite alternate;
}

.venue-mist--bridge {
  top: 45%;
  left: 28%;
  width: 44%;
  height: 28%;
  background: radial-gradient(ellipse 48% 38% at 50% 50%, rgba(var(--dp-plata-luz-rgb), .24), transparent 72%);
  filter: blur(18px);
  opacity: .54;
  animation: venueMistBridge 16s ease-in-out -4s infinite alternate;
}

@keyframes venueMistBridge {
  0% { transform: translate3d(-5%, 2%, 0) scale(.9); opacity: .26; }
  100% { transform: translate3d(5%, -4%, 0) scale(1.12); opacity: .58; }
}

@keyframes venueMistDrift {
  0% { transform: translate3d(-1.5%, 2%, 0) scale(1.02); }
  100% { transform: translate3d(1.5%, -2%, 0) scale(1.08); }
}

@keyframes venueMistCurrent {
  0% { transform: translate3d(2%, 0, 0) scale(.96); opacity: .28; }
  100% { transform: translate3d(-2%, -5%, 0) scale(1.08); opacity: .52; }
}

.venue-firefly {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: rgba(var(--dp-plata-luz-rgb), 1);
  box-shadow: 0 0 12px rgba(var(--dp-plata-luz-rgb), .86), 0 0 26px rgba(var(--dp-ceniza-lavanda-rgb), .48);
  opacity: .5;
  animation: venueFireflyDrift 8s ease-in-out var(--delay) infinite;
}

@keyframes venueFireflyDrift {
  0%, 100% { opacity: .3; transform: translate3d(0, 4px, 0) scale(.78); }
  38% { opacity: 1; transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(1.4); }
  70% { opacity: .55; transform: translate3d(calc(var(--drift-x) * -0.55), calc(var(--drift-y) * .45), 0) scale(1); }
}

.venue-portals-header,
.venue-portals-row {
  position: relative;
  z-index: 1;
}

.venue-portals-header {
  display: grid;
  justify-items: center;
  gap: clamp(.55rem, 2vw, .9rem);
  margin: 0 auto clamp(2rem, 7vw, 3.25rem);
}

.venue-portals-eyebrow {
  margin: 0;
  color: var(--venue-paper);
  font-family: var(--kc-f-ceremonial);
  font-size: clamp(.64rem, 1.9vw, .8rem);
  font-weight: 700;
  letter-spacing: .28em;
  text-shadow: 0 2px 10px color-mix(in srgb, var(--dp-medianoche) 82%, transparent);
}

.venue-portals-divider {
  display: block;
  width: min(15rem, 62vw);
  height: auto;
  overflow: visible;
  color: var(--venue-metal);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.venue-portals-city {
  margin: 0;
  color: color-mix(in srgb, var(--venue-ivory) 88%, transparent);
  font-family: var(--kc-f-editorial);
  font-size: clamp(1rem, 3.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.1;
}

/* Misma fila siempre. minmax(0,1fr) para que el nombre largo no ensanche la
   columna: sin el, un nombre de sede largo desborda el grid. */
.venue-portals-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.6rem, 3vw, 1.75rem);
  width: min(100%, 56rem);
  margin-inline: auto;
  /* stretch: las dos tarjetas comparten alto y el margin-top:auto del mapa
     alinea los dos pies aunque un nombre de sede ocupe dos lineas. */
  align-items: stretch;
}

.venue-portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(.3rem, 1.2vw, .5rem);
  min-width: 0;
  padding: clamp(1rem, 4vw, 1.9rem) clamp(.6rem, 2.5vw, 1.5rem) clamp(.6rem, 2.5vw, 1.25rem);
  border: 1px solid color-mix(in srgb, var(--venue-line) 34%, transparent);
  border-radius: 2px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--dp-ciruela) 72%, transparent), transparent 62%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dp-metal-luz) 6%, transparent);
}

.venue-portal-glyph {
  display: block;
  width: min(72%, 9rem);
  height: auto;
  overflow: visible;
  margin-bottom: clamp(.5rem, 2vw, .9rem);
  color: var(--venue-line);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* El arco pesa mas que el edificio: es el marco, no el sujeto. */
.venue-portal-arch {
  color: var(--dp-plata-luz);
  opacity: .58;
}

.venue-portal-art {
  opacity: .92;
}

.venue-portal-pivot {
  fill: currentColor;
  stroke: none;
}

.venue-portal-act {
  margin: 0;
  color: var(--venue-paper);
  font-family: var(--kc-f-editorial);
  font-size: clamp(1.15rem, 6.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
}

.venue-portal-venue {
  margin: .15rem 0 0;
  color: var(--venue-ivory);
  font-family: var(--kc-f-editorial);
  font-size: clamp(.8rem, 3.6vw, 1.15rem);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
  hyphens: auto;
}

.venue-portal-time {
  margin-top: .3rem;
  color: var(--venue-metal);
  font-family: var(--kc-f-ceremonial);
  font-size: clamp(.66rem, 2.6vw, .8rem);
  font-weight: 700;
  letter-spacing: .14em;
}

.venue-portal-address {
  margin: .35rem 0 0;
  color: color-mix(in srgb, var(--venue-paper) 76%, transparent);
  font-family: var(--kc-f-ui);
  font-size: clamp(.62rem, 2.8vw, .8rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.venue-portal-map {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  /* auto, no un valor fijo: iguala el pie de las dos tarjetas cuando un nombre
     de sede ocupa dos lineas y el otro una. */
  margin-top: auto;
  padding: 1rem 0 .5rem;
  color: var(--venue-metal);
  font-family: var(--kc-f-ceremonial);
  font-size: clamp(.58rem, 2.3vw, .66rem);
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid color-mix(in srgb, var(--venue-metal) 64%, transparent);
  transition: color .2s ease, border-color .2s ease;
}

.venue-portal-map:hover {
  color: var(--venue-paper);
  border-color: var(--venue-paper);
}

.venue-portal-map:focus-visible {
  outline: 2px solid var(--venue-paper);
  outline-offset: 5px;
  color: var(--venue-paper);
}

/* Cascada: el portal derecho entra medio compas despues del izquierdo. */
.venue-portals-header,
.venue-portal {
  opacity: 0;
  transform: translateY(.75rem);
  transition: opacity 720ms var(--kc-ease-silk), transform 720ms var(--kc-ease-silk);
}

#ubicaciones.venue-portals .venue-portal:first-child {
  transition-delay: 140ms;
}

#ubicaciones.venue-portals .venue-portal:last-child {
  transition-delay: 280ms;
}

#ubicaciones.venue-portals.reveal.in .venue-portals-header,
#ubicaciones.venue-portals.reveal.in .venue-portal {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

  .venue-mist,
  .venue-firefly {
    animation: none;
  }

  .venue-firefly {
    opacity: .5;
  }

  #ubicaciones.venue-portals.reveal,
  #ubicaciones.venue-portals.reveal.in,
  #ubicaciones.venue-portals .venue-portals-header,
  #ubicaciones.venue-portals .venue-portal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .venue-portal-map {
    transition: none;
  }
}

/* ── ITINERARIO / RABBIT HOLE TIMELINE — XV_AWR_05B ── */
.itinerary-rabbit-hole {
  isolation: isolate;
  overflow: hidden;
  max-width: 760px;
  padding: clamp(68px, 13vw, 116px) clamp(16px, 5vw, 42px) clamp(74px, 14vw, 126px);
  background: #090a0b;
}

.itinerary-hole-bg,
.itinerary-hole-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.itinerary-hole-bg {
  z-index: -2;
  background: var(--obsidian-2);
  opacity: .72;
  filter: saturate(.96) brightness(.96) contrast(1.04);
  transform: scale(1.025);
  transition: opacity 1.7s var(--ease-silk), filter 1.7s var(--ease-silk), transform 3.5s var(--ease-silk);
}

.itinerary-hole-shade {
  z-index: -1;
  background:
    radial-gradient(ellipse 58% 42% at 50% 42%, rgba(var(--dp-medianoche-rgb), .02) 0%, rgba(5, 7, 6, .10) 62%, rgba(3, 4, 4, .52) 100%),
    linear-gradient(180deg, rgba(3, 4, 4, .56) 0%, rgba(5, 8, 6, .06) 28%, rgba(4, 6, 5, .12) 72%, rgba(3, 4, 4, .58) 100%);
}

.itinerary-rabbit-hole.is-root-awake .itinerary-hole-bg {
  opacity: .98;
  filter: saturate(1.05) brightness(1.03) contrast(1.05);
  transform: scale(1);
}

.itinerary-header {
  position: relative;
  z-index: 2;
  max-width: 390px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease-silk) .28s, transform .9s var(--ease-silk) .28s;
}

.itinerary-rabbit-hole.is-root-awake .itinerary-header {
  opacity: 1;
  transform: translateY(0);
}

.itinerary-eyebrow {
  font-family: var(--f-eyebrow);
  font-size: .62rem;
  letter-spacing: .34em;
  color: var(--gold-bright);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .85);
}

.itinerary-title {
  margin-top: 10px;
  font-family: var(--kc-f-editorial);
  font-size: clamp(2.15rem, 10vw, 3.6rem);
  font-weight: 400;
  line-height: .98;
  color: var(--dp-metal-luz);
  text-shadow: 0 3px 20px rgba(0, 0, 0, .72);
}

.itinerary-subtitle {
  max-width: 260px;
  margin: 14px auto 0;
  color: rgba(var(--dp-cristal-rgb), .85);
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.28;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .88);
}

.itinerary-branch-stage {
  position: relative;
  z-index: 1;
  max-width: 590px;
  margin: 35px auto 0;
}

.itinerary-branch-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.itinerary-branch-main,
.itinerary-branch-offshoot {
  fill: none;
  stroke: url(#itineraryRootGold);
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#itineraryRootGlow);
  vector-effect: non-scaling-stroke;
}

.itinerary-branch-main {
  stroke-width: 3.35;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--root-progress, 0));
  opacity: .98;
  filter: url(#itineraryRootGlow) drop-shadow(0 0 5px rgba(var(--dp-ciruela-rgb), .48));
  transition: stroke-dashoffset .96s cubic-bezier(.18, .8, .2, 1);
}

.itinerary-branch-offshoot {
  stroke-width: 1.75;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .9;
  transition: stroke-dashoffset .72s cubic-bezier(.2, .82, .18, 1);
}

.itinerary-branch-offshoot.is-sprouted {
  stroke-dashoffset: 0;
}

.itinerary-timeline {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.itinerary-step {
  position: relative;
  display: flex;
  min-height: clamp(72px, 19vw, 92px);
  flex-direction: column;
  justify-content: center;
  width: calc(50% - 16px);
  opacity: 0;
  filter: blur(3px);
  transition: opacity .5s ease, transform .72s var(--ease-silk), filter .66s ease;
}

.itinerary-step-left {
  align-items: flex-end;
  margin-right: auto;
  padding-right: 9px;
  text-align: right;
  transform: translateX(-16px) translateY(6px);
}

.itinerary-step-right {
  align-items: flex-start;
  margin-left: auto;
  padding-left: 9px;
  text-align: left;
  transform: translateX(16px) translateY(6px);
}

.itinerary-step.is-sprouted {
  opacity: 1;
  filter: blur(0);
  transform: translate(0);
}

.itinerary-node {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(var(--dp-metal-base-rgb), .9);
  border-radius: 50%;
  background: var(--dp-metal-sombra);
  box-shadow: 0 0 0 3px rgba(var(--dp-ciruela-rgb), .3), 0 0 11px 3px rgba(var(--dp-metal-sombra-rgb), .38);
  transform: translateY(-50%) scale(0);
  transition: transform .48s cubic-bezier(.2, 1.35, .32, 1) .18s;
}

.itinerary-step-left .itinerary-node {
  right: -20px;
}

.itinerary-step-right .itinerary-node {
  left: -20px;
}

.itinerary-step.is-sprouted .itinerary-node {
  transform: translateY(-50%) scale(1);
}

.itinerary-time {
  color: var(--dp-metal-base);
  font-family: var(--f-eyebrow);
  font-size: clamp(.66rem, 2.8vw, .78rem);
  font-weight: 600;
  letter-spacing: .095em;
  line-height: 1.1;
  text-shadow: 0 2px 8px #000, 0 0 14px rgba(var(--dp-metal-sombra-rgb), .28);
}

.itinerary-label {
  max-width: 160px;
  margin-top: 5px;
  color: var(--dp-cristal);
  font-family: var(--f-display);
  font-size: clamp(1rem, 4.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.02;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .94);
}

@media (min-width: 768px) {
  .itinerary-rabbit-hole {
    max-width: 860px;
  }

  .itinerary-branch-stage {
    margin-top: 48px;
  }

  .itinerary-step {
    min-height: 94px;
    width: calc(50% - 38px);
  }

  .itinerary-label {
    max-width: 220px;
    font-size: 1.33rem;
  }

  .itinerary-step-left {
    padding-right: 22px;
  }

  .itinerary-step-right {
    padding-left: 22px;
  }

  .itinerary-step-left .itinerary-node {
    right: -44px;
  }

  .itinerary-step-right .itinerary-node {
    left: -44px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .itinerary-hole-bg,
  .itinerary-header,
  .itinerary-branch-main,
  .itinerary-branch-offshoot,
  .itinerary-step,
  .itinerary-node {
    transition: none !important;
  }

  .itinerary-hole-bg {
    opacity: .98;
    filter: saturate(1.03) brightness(1.02);
    transform: none;
  }

  .itinerary-header,
  .itinerary-step {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .itinerary-branch-main,
  .itinerary-branch-offshoot {
    stroke-dashoffset: 0;
  }

  .itinerary-node {
    transform: translateY(-50%) scale(1);
  }
}

/* — Itinerary final milestone node — */
.itinerary-node-final {
  width: 11px;
  height: 11px;
  background: radial-gradient(circle, var(--dp-metal-base) 30%, var(--dp-metal-sombra) 100%);
  border-color: rgba(var(--dp-metal-base-rgb), .95);
  box-shadow: 0 0 0 4px rgba(var(--dp-ciruela-rgb), .28), 0 0 16px 5px rgba(var(--dp-metal-sombra-rgb), .46);
}

.itinerary-step-final .itinerary-label {
  color: var(--dp-metal-luz);
  text-shadow: 0 0 18px rgba(var(--dp-metal-sombra-rgb), .38), 0 2px 10px rgba(0, 0, 0, .94);
}

/* ── DRESS CODE / LUNAR EDITORIAL INTERLUDE ── */
#dress-code.dress-code-interlude {
  --dress-paper: var(--dp-ciruela);
  --dress-ink: var(--color-ink);
  --dress-gold: var(--dp-metal-base);
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(4.5rem, 12vw, 7rem) clamp(1.25rem, 6vw, 4rem);
  overflow: hidden;
  color: var(--dress-ink);
  /* Bisagra del descenso: entra en crepúsculo y sale en medianoche.
     Es la única sección que cambia de hora por dentro. */
  background:
    radial-gradient(ellipse at 18% 10%, color-mix(in srgb, var(--dp-cristal) 14%, transparent), transparent 46%),
    repeating-linear-gradient(94deg, rgba(var(--dp-medianoche-rgb), .05) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, var(--dp-crepusculo) 0%, var(--dp-ciruela) 52%, var(--dp-medianoche) 100%);
}

#dress-code.dress-code-interlude::before {
  display: none;
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: min(16rem, 42%);
  content: '';
  pointer-events: none;
  background:
    radial-gradient(ellipse 66% 76% at 50% 0%, color-mix(in srgb, var(--dp-ciruela) 34%, transparent), transparent 68%),
    linear-gradient(180deg, color-mix(in srgb, var(--dp-ciruela) 20%, var(--dp-metal-luz)) 0%, color-mix(in srgb, var(--dp-cristal) 58%, var(--dp-marfil-luna)) 48%, transparent 100%);
  opacity: .76;
}

.dress-code-stage {
  display: grid;
  grid-template-columns: minmax(8rem, .62fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 6vw, 4.5rem);
  width: min(100%, 55rem);
  margin-inline: auto;
}

.dress-code-copy {
  display: grid;
  justify-items: start;
  min-width: 0;
}

.dress-code-eyebrow {
  margin: 0;
  color: var(--color-authority-ink);
  font-family: var(--kc-f-ceremonial);
  font-size: clamp(.58rem, 1.9vw, .7rem);
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1.35;
}

.dress-code-rule {
  display: block;
  width: min(6rem, 30vw);
  height: 1px;
  margin: 1rem 0 1.25rem;
  background: var(--dress-gold);
  opacity: .68;
}

.dress-code-title {
  max-width: 8ch;
  margin: 0;
  color: var(--dress-ink);
  font-family: var(--kc-f-editorial);
  font-size: clamp(2.25rem, 8.8vw, 4.65rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.035em;
}

.dress-code-body {
  max-width: 22rem;
  margin: 1.25rem 0 0;
  color: color-mix(in srgb, var(--dress-ink) 82%, transparent);
  font-family: var(--kc-f-editorial);
  font-size: clamp(1rem, 3.5vw, 1.22rem);
  line-height: 1.45;
}

#dress-code.dress-code-interlude.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .72s var(--kc-ease-silk), transform .72s var(--kc-ease-silk);
}

#dress-code.dress-code-interlude.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  #dress-code.dress-code-interlude::before {
    inset: 2rem clamp(2rem, 8vw, 7rem);
  }

  .dress-code-stage {
    grid-template-columns: minmax(14rem, .72fr) minmax(0, 1fr);
  }

  .dress-code-copy {
    padding-block: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  #dress-code.dress-code-interlude.reveal,
  #dress-code.dress-code-interlude.reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================================================================
   GALERIA / ENCHANTED MEMORY DECK — XV_AWR_08B
   Truthful coming-soon deck: four CSS/SVG memory cards, never fake photos.
   ================================================================ */
.kc-veil {
  position: absolute;
  z-index: 0;
  inset: -18%;
  pointer-events: none;
  background: radial-gradient(ellipse 34% 24% at 10% 70%, color-mix(in srgb, var(--dp-cristal) 16%, transparent), transparent 70%), radial-gradient(ellipse 32% 22% at 90% 18%, color-mix(in srgb, var(--dp-ciruela) 42%, transparent), transparent 72%);
  filter: blur(18px);
  opacity: .45;
}

/* 08C performance: compositor-only dragging; layers are promoted only while useful. */

/* ================================================================
   CAPTURA EL MOMENTO — XV_AWR_13D-R4
   Shared Photo Album CTA · álbum compartido activo
   ================================================================ */

/* ── Section shell ── */
.captura-momento {
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 12vw, 96px) clamp(20px, 6vw, 48px);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 46% at 50% 12%, color-mix(in srgb, var(--dp-metal-luz) 26%, transparent), transparent 74%),
    radial-gradient(ellipse 58% 34% at 16% 78%, color-mix(in srgb, var(--dp-crepusculo) 14%, transparent), transparent 76%),
    linear-gradient(180deg, color-mix(in srgb, var(--dp-ciruela) 88%, var(--dp-metal-luz)) 0%, var(--dp-medianoche) 100%);
  position: relative;
}

/* Fine lunar mist joins the RSVP and closing-stage scenes. */
.captura-momento::before,
.captura-momento::after {
  position: absolute;
  right: -12%;
  left: -12%;
  height: clamp(3.5rem, 8vw, 6rem);
  content: '';
  pointer-events: none;
  filter: blur(10px);
  opacity: .78;
}

.captura-momento::before {
  top: -1.5rem;
  background:
    radial-gradient(ellipse 52% 80% at 50% 0%, color-mix(in srgb, var(--dp-metal-luz) 28%, transparent), transparent 74%),
    linear-gradient(180deg, color-mix(in srgb, var(--dp-cristal) 16%, transparent), transparent 100%);
}

.captura-momento::after {
  bottom: -1.5rem;
  background:
    radial-gradient(ellipse 48% 80% at 50% 100%, color-mix(in srgb, var(--dp-crepusculo) 22%, transparent), transparent 74%),
    linear-gradient(0deg, color-mix(in srgb, var(--dp-ciruela) 34%, transparent), transparent 100%);
}

/* ── Ambient haze layer (mirrors secret-key-haze depth) ── */
.captura-haze:not(.kc-veil) {
  position: absolute;
  z-index: -1;
  inset: -15%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 24% at 10% 70%, color-mix(in srgb, var(--dp-metal-luz) 18%, transparent), transparent 70%),
    radial-gradient(ellipse 32% 22% at 90% 18%, color-mix(in srgb, var(--dp-cristal) 15%, transparent), transparent 70%),
    radial-gradient(ellipse 62% 32% at 50% 100%, color-mix(in srgb, var(--dp-ciruela) 62%, transparent), transparent 75%);
  filter: blur(24px);
}

/* ── Camera SVG wrapper ── */
.captura-camera-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(24px, 5vw, 36px);
}

.captura-camera-svg {
  width: clamp(120px, 40vw, 188px);
  height: auto;
  overflow: visible;
  animation: capturaCameraFloat 5.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px color-mix(in srgb, var(--dp-metal-luz) 28%, transparent)) drop-shadow(0 2px 8px rgba(0, 0, 0, .55));
}

@keyframes capturaCameraFloat {

  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-5px) rotate(1deg);
  }
}

/* ── SVG element styles — gold fine-line strokes ── */
.cam-body {
  fill: none;
  stroke: color-mix(in srgb, var(--dp-metal-luz) 64%, var(--dp-metal-base));
  stroke-width: 1.6;
  stroke-linejoin: round;
  /* Draw-in via dashoffset — length ≈ perimeter of rects */
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  transition: stroke-dashoffset 0s;
}

.cam-lens-ring {
  fill: none;
  stroke: color-mix(in srgb, var(--dp-metal-luz) 72%, var(--dp-metal-base));
  stroke-width: 1.6;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 0s;
}

.cam-lens-mid {
  fill: none;
  stroke: rgba(var(--dp-metal-luz-rgb), .45);
  stroke-width: 1.2;
  stroke-dasharray: 178;
  stroke-dashoffset: 178;
  transition: stroke-dashoffset 0s;
}

.cam-lens-glass {
  fill: color-mix(in srgb, var(--dp-metal-luz) 6%, transparent);
  stroke: color-mix(in srgb, var(--dp-metal-luz) 58%, var(--dp-marfil-luna));
  stroke-width: 1.2;
  stroke-dasharray: 114;
  stroke-dashoffset: 114;
  transition: stroke-dashoffset 0s;
  /* Subtle lens pulse after draw */
  animation: none;
}

.cam-iris {
  stroke: rgba(var(--dp-metal-base-rgb), .30);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0s;
}

.cam-shutter {
  fill: rgba(var(--dp-metal-sombra-rgb), .18);
  stroke: rgba(var(--dp-metal-sombra-rgb), .65);
  stroke-width: 1.3;
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
  transition: stroke-dashoffset 0s;
}

.cam-viewfinder {
  fill: none;
  stroke: rgba(var(--dp-metal-luz-rgb), .40);
  stroke-width: 1.2;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  transition: stroke-dashoffset 0s;
}

.cam-botanical {
  fill: none;
  stroke: rgba(var(--dp-ceniza-lavanda-rgb), .48);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 0s;
}

.cam-glint {
  fill: rgba(var(--dp-metal-luz-rgb), .88);
  opacity: 0;
  transition: opacity 0s;
  animation: none;
}

.cam-glint-2 {
  fill: rgba(var(--dp-metal-luz-rgb), .55);
  opacity: 0;
  transition: opacity 0s;
  animation: none;
}

.cam-flourish {
  fill: none;
  stroke: rgba(var(--dp-metal-sombra-rgb), .35);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0s;
}

/* ── Triggered on .captura-momento.in (reveal) ── */
.captura-momento.in .cam-body {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s var(--ease-silk) 0.1s;
}

.captura-momento.in .cam-lens-ring {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.0s var(--ease-silk) 0.5s;
}

.captura-momento.in .cam-lens-mid {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s var(--ease-silk) 0.8s;
}

.captura-momento.in .cam-lens-glass {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.7s var(--ease-silk) 1.0s;
  animation: capturaLensPulse 4s ease-in-out 2.0s infinite;
}

.captura-momento.in .cam-iris {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s var(--ease-silk) 1.2s;
}

.captura-momento.in .cam-shutter {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s var(--ease-silk) 0.9s;
}

.captura-momento.in .cam-viewfinder {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s var(--ease-silk) 0.7s;
}

.captura-momento.in .cam-botanical {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s var(--ease-silk) 1.4s;
}

.captura-momento.in .cam-glint {
  opacity: 1;
  transition: opacity 0.3s ease 1.8s;
  animation: capturaGlintPass 3.5s ease-in-out 2.0s 1 forwards;
}

.captura-momento.in .cam-glint-2 {
  opacity: 0.7;
  transition: opacity 0.3s ease 2.0s;
}

.captura-momento.in .cam-flourish {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.4s var(--ease-silk) 1.6s;
}

/* ── Camera keyframes ── */
@keyframes capturaLensPulse {

  0%,
  100% {
    stroke: rgba(var(--dp-metal-base-rgb), .55);
  }

  50% {
    stroke: rgba(var(--dp-metal-luz-rgb), .80);
  }
}

@keyframes capturaGlintPass {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  40% {
    opacity: 1;
    transform: scale(1.6);
  }

  70% {
    opacity: 0.5;
    transform: scale(2.2);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* ── Copy ── */
.captura-copy {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.0s var(--ease-silk) 0.6s, transform 1.0s var(--ease-silk) 0.6s;
}

.captura-momento.in .captura-copy {
  opacity: 1;
  transform: translateY(0);
}

.captura-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.38em;
  color: rgba(var(--dp-metal-sombra-rgb), .65);
  margin-bottom: 0.6em;
  text-shadow: 0 0 14px rgba(var(--dp-metal-sombra-rgb), .35);
}

.captura-title {
  font-family: var(--kc-f-editorial);
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: normal;
  color: color-mix(in srgb, var(--dp-metal-luz) 72%, var(--dp-marfil-luna));
  text-shadow:
    0 0 32px color-mix(in srgb, var(--dp-metal-luz) 38%, transparent),
    0 2px 8px rgba(0, 0, 0, .90);
  margin-bottom: 0.6em;
  line-height: 1.15;
}

.captura-body {
  font-family: var(--f-display);
  font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  font-style: italic;
  line-height: 1.75;
  color: rgba(var(--dp-metal-luz-rgb), .88);
  text-shadow: 0 1px 12px rgba(2, 1, 6, .95), 0 0 20px rgba(2, 1, 6, .80);
  margin-bottom: 2em;
}

.captura-body-2 {
  display: block;
  color: rgba(var(--dp-metal-luz-rgb), .70);
  font-size: .96em;
}

/* ── CTA pill ── */
.captura-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 52px;
  /* ≥ 44px touch target */
  padding: 0 clamp(22px, 5vw, 36px);
  font-family: var(--f-eyebrow);
  font-size: clamp(0.72rem, 3.2vw, 0.82rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: color-mix(in srgb, var(--dp-metal-luz) 78%, var(--dp-marfil-luna));
  border: 1.4px solid color-mix(in srgb, var(--dp-metal-luz) 58%, var(--dp-metal-base));
  border-radius: 3px;
  background: color-mix(in srgb, var(--dp-metal-luz) 8%, transparent);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition:
    background .22s ease,
    border-color .22s ease,
    color .22s ease,
    transform .18s ease,
    box-shadow .22s ease;
  box-shadow: 0 0 18px color-mix(in srgb, var(--dp-metal-luz) 18%, transparent), inset 0 0 0 0 color-mix(in srgb, var(--dp-metal-luz) 12%, transparent);
}

.captura-cta:hover {
  background: color-mix(in srgb, var(--dp-metal-luz) 18%, transparent);
  border-color: color-mix(in srgb, var(--dp-metal-luz) 76%, var(--dp-marfil-luna));
  color: var(--dp-marfil-luna);
  box-shadow: 0 0 28px color-mix(in srgb, var(--dp-metal-luz) 34%, transparent), inset 0 0 12px color-mix(in srgb, var(--dp-metal-luz) 14%, transparent);
}

.captura-cta:active {
  transform: scale(.96);
  background: color-mix(in srgb, var(--dp-metal-luz) 24%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--dp-metal-luz) 24%, transparent);
}

.captura-cta:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--dp-metal-luz) 82%, var(--dp-marfil-luna));
  outline-offset: 4px;
}

.captura-cta-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

/* ── Helper text ── */
.captura-helper {
  margin-top: 0.85em;
  font-family: var(--f-eyebrow);
  font-size: clamp(0.58rem, 2.2vw, 0.66rem);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--dp-metal-luz) 54%, transparent);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {

  .captura-copy,
  .captura-camera-svg,
  .cam-body,
  .cam-lens-ring,
  .cam-lens-mid,
  .cam-lens-glass,
  .cam-iris,
  .cam-shutter,
  .cam-viewfinder,
  .cam-botanical,
  .cam-glint,
  .cam-glint-2,
  .cam-flourish {
    transition: none !important;
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }

  .captura-copy {
    opacity: 1 !important;
    transform: none !important;
  }

  .captura-cta {
    transition: none !important;
  }
}

/* ================================================================
   SECRET KEY FINALE — XV_AWR_10B
   A narrative key after Album, never a fixed left-side utility.
   ================================================================ */
#secret-key.secret-key-finale {
  isolation: isolate;
  overflow: clip;
  padding-top: clamp(58px, 10vw, 84px);
  padding-bottom: clamp(58px, 10vw, 82px);
  text-align: center;
  background: radial-gradient(ellipse 58% 44% at 50% 42%, color-mix(in srgb, var(--dp-metal-luz) 24%, transparent), transparent 72%), linear-gradient(180deg, color-mix(in srgb, var(--dp-ciruela) 88%, var(--dp-medianoche)), var(--dp-medianoche));
}

#secret-key.secret-key-finale .secret-key-haze:not(.kc-veil) {
  position: absolute;
  z-index: -1;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(ellipse 30% 20% at 15% 68%, color-mix(in srgb, var(--dp-metal-luz) 15%, transparent), transparent 72%), radial-gradient(ellipse 30% 21% at 87% 16%, color-mix(in srgb, var(--dp-cristal) 12%, transparent), transparent 70%);
  filter: blur(18px);
}

#secret-key.secret-key-finale .secret-key-stage {
  position: relative;
  left: 0;
  width: 100%;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#secret-key.secret-key-finale .secret-key-trigger {
  display: inline-flex;
  min-width: 148px;
  min-height: 142px;
  padding: 7px 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--dp-metal-base);
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .25s ease, transform .25s ease, opacity .25s ease;
}

#secret-key.secret-key-finale .secret-key-trigger:hover {
  color: var(--dp-metal-base);
  transform: translateY(-2px);
}

#secret-key.secret-key-finale .secret-key-trigger:active {
  transform: scale(.96);
}

#secret-key.secret-key-finale .secret-key-trigger:focus-visible,
#secret-key.secret-key-finale .secret-key-close:focus-visible {
  outline: 2px solid var(--kc-focus-ring);
  outline-offset: 4px;
  border-radius: 5px;
}

#secret-key.secret-key-finale .secret-key-svg {
  width: 118px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .34)) drop-shadow(0 2px 9px rgba(var(--dp-cristal-rgb, 180, 210, 230), .2));
  transition: opacity .45s ease, transform .45s ease;
}

#secret-key.secret-key-finale .secret-key-flower-svg {
  animation: midnightFlowerFloat 5.8s ease-in-out infinite;
}

.secret-key-flower-svg .flower-bloom {
  transform-box: view-box;
  transform-origin: 80px 74px;
  animation: midnightFlowerBreathe 5.8s ease-in-out infinite;
}

.secret-key-flower-svg .flower-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: midnightFlowerHalo 5.8s ease-in-out infinite;
}

.secret-key-flower-svg .flower-glint {
  animation: midnightFlowerGlint 3.8s ease-in-out infinite;
}

.secret-key-flower-svg .flower-glint--two { animation-delay: -1.3s; }
.secret-key-flower-svg .flower-glint--three { animation-delay: -2.5s; }

@keyframes midnightFlowerFloat {
  0%, 100% { transform: translate3d(0, 1px, 0) rotate(-1deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(1.5deg); }
}

@keyframes midnightFlowerBreathe {
  0%, 100% { transform: scale(.985) rotate(-1deg); }
  50% { transform: scale(1.025) rotate(1deg); }
}

@keyframes midnightFlowerHalo {
  0%, 100% { opacity: .42; transform: scale(.96); }
  50% { opacity: .72; transform: scale(1.04); }
}

@keyframes midnightFlowerGlint {
  0%, 100% { opacity: .22; }
  50% { opacity: .88; }
}

#secret-key.secret-key-finale .secret-key-hint {
  margin-top: 6px;
  color: rgba(var(--dp-metal-luz-rgb), .7);
  font-family: var(--f-eyebrow);
  font-size: .57rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

#secret-key.secret-key-finale .secret-key-card {
  position: relative;
  width: min(100%, 360px);
  padding: 27px 23px 22px;
  overflow: hidden;
  border: 1px solid rgba(var(--dp-metal-base-rgb), .45);
  border-radius: 22px 8px 22px 8px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--dp-ciruela) 82%, var(--dp-metal-luz)), color-mix(in srgb, var(--dp-medianoche) 90%, var(--dp-ciruela)));
  box-shadow: inset 0 1px 0 rgba(var(--dp-metal-luz-rgb), .12), 0 18px 34px rgba(0, 0, 0, .35);
  animation: secretCardIn .5s ease both;
}

@keyframes secretCardIn {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

#secret-key.secret-key-finale .secret-key-card[hidden] {
  display: none;
}

#secret-key.secret-key-finale .secret-key-card::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(var(--dp-metal-base-rgb), .12);
  border-radius: 15px 4px 15px 4px;
  content: '';
  pointer-events: none;
}

#secret-key.secret-key-finale .secret-key-eyebrow {
  margin: 0;
  color: var(--dp-metal-base);
  font-family: var(--f-eyebrow);
  font-size: .54rem;
  font-weight: 600;
  letter-spacing: .2em;
}

#secret-key.secret-key-finale .secret-key-title {
  margin: 10px 0 0;
  color: var(--dp-metal-luz);
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 500;
  line-height: 1;
}

#secret-key.secret-key-finale .secret-key-message {
  margin: 14px auto 0;
  color: rgba(var(--dp-metal-luz-rgb), .8);
  font-family: var(--f-display);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.62;
}

#secret-key.secret-key-finale .secret-key-signature {
  margin: 12px 0 0;
  color: rgba(var(--dp-metal-base-rgb), .62);
  font-family: var(--f-body);
  font-size: .74rem;
}

#secret-key.secret-key-finale .secret-key-close {
  margin-top: 18px;
  padding: 7px 2px;
  color: var(--dp-metal-base);
  border: 0;
  border-bottom: 1px solid rgba(var(--dp-metal-base-rgb), .62);
  background: transparent;
  font-family: var(--f-eyebrow);
  font-size: .56rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}

#secret-key.secret-key-finale.is-open .secret-key-trigger {
  display: none;
}

@media (prefers-reduced-motion:reduce) {
  #secret-key.secret-key-finale .secret-key-trigger,
  #secret-key.secret-key-finale .secret-key-flower-svg,
  .secret-key-flower-svg .flower-bloom,
  .secret-key-flower-svg .flower-halo,
  .secret-key-flower-svg .flower-glint {
    animation: none;
    transition: none;
  }
}

/* ================================================================
   FOOTER — CIERRE DE NOCHE / XV_AWR_10D
   El escenario se disuelve antes de llegar aquí: solo quedan aire,
   niebla lunar, unas pocas luciérnagas y la firma de la quinceañera.
   ================================================================ */
#secret-key.secret-key-finale {
  padding-bottom: clamp(82px, 14vw, 132px);
  background:
    radial-gradient(ellipse 50% 30% at 50% 42%, color-mix(in srgb, var(--dp-metal-luz) 18%, transparent), transparent 74%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--dp-ciruela) 88%, var(--dp-medianoche)) 0%,
      var(--dp-medianoche) 57%,
      var(--dp-noche-abismo) 100%);
}

#secret-key.secret-key-finale::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 42%;
  content: '';
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(var(--dp-noche-abismo-rgb), .72) 64%, var(--dp-noche-abismo) 100%);
}

.kc-programme-footer {
  position: relative;
  isolation: isolate;
  min-height: clamp(360px, 48vw, 500px);
  overflow: hidden;
  padding: clamp(72px, 11vw, 118px) 22px clamp(82px, 12vw, 124px);
  text-align: center;
  background:
    radial-gradient(ellipse 42% 25% at 50% 4%, rgba(var(--dp-ceniza-lavanda-rgb), .12), transparent 76%),
    radial-gradient(ellipse 54% 46% at 50% 104%, rgba(var(--dp-metal-luz-rgb), .09), transparent 72%),
    linear-gradient(180deg, var(--dp-noche-abismo) 0%, #04060d 66%, #010207 100%);
}

.kc-programme-footer::before {
  position: absolute;
  z-index: -1;
  top: -1px;
  right: 9%;
  left: 9%;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(var(--dp-ceniza-lavanda-rgb), .28), transparent);
}

.kc-programme-footer .footer-mist:not(.kc-veil) {
  position: absolute;
  z-index: -1;
  inset: -15% -20%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 15% at 18% 24%, rgba(var(--dp-plata-luz-rgb), .13), transparent 72%),
    radial-gradient(ellipse 38% 17% at 80% 39%, rgba(var(--dp-ceniza-lavanda-rgb), .12), transparent 74%),
    radial-gradient(ellipse 48% 18% at 48% 78%, rgba(var(--dp-metal-luz-rgb), .08), transparent 76%);
  filter: blur(22px);
  opacity: .78;
  transform: translate3d(0, 0, 0) scale(1.04);
}

.footer-fireflies {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.footer-firefly {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: max(4.5px, var(--size));
  height: max(4.5px, var(--size));
  border-radius: 50%;
  background: rgba(var(--dp-plata-luz-rgb), 1);
  box-shadow: 0 0 12px rgba(var(--dp-plata-luz-rgb), .88), 0 0 28px rgba(var(--dp-ceniza-lavanda-rgb), .5);
  opacity: .5;
  animation: footerFireflyDrift 7.5s ease-in-out var(--delay) infinite;
}

@keyframes footerFireflyDrift {
  0%, 100% { opacity: .3; transform: translate3d(0, 4px, 0) scale(.78); }
  38% { opacity: 1; transform: translate3d(5px, -10px, 0) scale(1.42); }
  68% { opacity: .55; transform: translate3d(-5px, -15px, 0) scale(1); }
}

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 22px);
  width: min(310px, 76vw);
  margin-inline: auto;
}

.footer-divider--open {
  margin-bottom: clamp(22px, 4vw, 30px);
}

.footer-divider--close {
  margin-top: clamp(24px, 5vw, 34px);
}

.footer-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--dp-ceniza-lavanda-rgb), .3));
}

.footer-divider span:last-child {
  background: linear-gradient(90deg, rgba(var(--dp-ceniza-lavanda-rgb), .3), transparent);
}

.footer-divider i {
  display: block;
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border: 1px solid rgba(var(--dp-plata-luz-rgb), .54);
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(var(--dp-ceniza-lavanda-rgb), .24);
}

.kc-programme-footer .footer-whisper {
  margin: 0;
  color: rgba(var(--dp-plata-luz-rgb), .72);
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 3vw, 1.22rem);
  font-style: italic;
  line-height: 1.2;
}

.kc-programme-footer .footer-family {
  margin: 12px 0 0;
  color: var(--dp-marfil-luna);
  font-family: var(--kc-f-signature);
  font-size: clamp(2.35rem, 8vw, 3.65rem);
  font-weight: normal;
  letter-spacing: .015em;
  line-height: .96;
  text-shadow: 0 0 14px rgba(var(--dp-plata-luz-rgb), .16), 0 2px 12px rgba(0, 0, 0, .65);
}

.kc-programme-footer .footer-kc-seal {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: clamp(20px, 4vw, 30px);
  padding: 6px 4px;
  color: rgba(var(--dp-plata-luz-rgb), .72);
  font-family: var(--f-eyebrow);
  font-size: clamp(.68rem, 1.5vw, .78rem);
  font-weight: 500;
  letter-spacing: .2em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(var(--dp-ceniza-lavanda-rgb), .13);
  transition: color .25s ease, text-shadow .25s ease;
}

.kc-programme-footer .footer-kc-seal::after {
  margin-left: .55em;
  color: rgba(var(--dp-ceniza-lavanda-rgb), .68);
  content: '↗';
  font-size: 1.1em;
  line-height: 1;
  transition: transform .25s ease;
}

.kc-programme-footer .footer-kc-seal:hover,
.kc-programme-footer .footer-kc-seal:focus-visible {
  color: var(--dp-marfil-luna);
  text-shadow: 0 0 13px rgba(var(--dp-plata-luz-rgb), .32);
}

.kc-programme-footer .footer-kc-seal:hover::after,
.kc-programme-footer .footer-kc-seal:focus-visible::after {
  transform: translate(2px, -2px);
}

.kc-programme-footer .footer-kc-seal:focus-visible {
  outline: 2px solid var(--kc-focus-ring);
  outline-offset: 4px;
  border-radius: 3px;
}

@media (prefers-reduced-motion:no-preference) {
  .kc-programme-footer:not(.is-visible) .footer-divider,
  .kc-programme-footer:not(.is-visible) .footer-whisper,
  .kc-programme-footer:not(.is-visible) .footer-family,
  .kc-programme-footer:not(.is-visible) .footer-kc-seal {
    opacity: 0;
    transform: translateY(10px);
  }

  .kc-programme-footer .footer-divider,
  .kc-programme-footer .footer-whisper,
  .kc-programme-footer .footer-family,
  .kc-programme-footer .footer-kc-seal {
    transition: opacity .6s ease, transform .6s var(--ease-silk);
  }

  .kc-programme-footer.is-visible .footer-whisper { transition-delay: .06s; }
  .kc-programme-footer.is-visible .footer-family { transition-delay: .14s; }
  .kc-programme-footer.is-visible .footer-divider--close { transition-delay: .22s; }
  .kc-programme-footer.is-visible .footer-kc-seal { transition-delay: .3s; }
}

@media (prefers-reduced-motion:reduce) {
  .footer-firefly { animation: none; opacity: .5; }
  .kc-programme-footer .footer-kc-seal { transition: none; }
}

/* ================================================================
   MUSIC MEDALLION CONTROL — BLT_06
   Fixed below the gate (z-index 500); controlled by #musicBtn.
   ================================================================ */
.kc-music-medallion {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 500;
  display: grid;
  width: var(--kc-music-medallion-size);
  min-width: 44px;
  height: var(--kc-music-medallion-size);
  min-height: 44px;
  padding: 0;
  place-items: center;
  color: var(--dp-metal-base);
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, .48));
  transition: color .24s ease, filter .24s ease, transform .2s ease;
}

.kc-music-medallion[hidden] {
  display: none;
}

.kc-music-medallion::before {
  position: absolute;
  z-index: -1;
  inset: 2px;
  border: 1px solid rgba(var(--dp-metal-base-rgb), .32);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(var(--dp-metal-luz-rgb), .15), rgba(var(--dp-medianoche-rgb), .94) 68%);
  content: '';
}

.kc-music-medallion:hover {
  color: var(--dp-metal-base);
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, .58));
}

.kc-music-medallion:active {
  transform: scale(.94);
}

.kc-music-medallion:focus-visible {
  outline: 2px solid var(--kc-focus-ring);
  outline-offset: 4px;
  border-radius: 50%;
}

.kc-music-medallion-svg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kc-music-medallion-svg .medallion-outer-ring {
  stroke-width: 1.2;
}

.kc-music-medallion-svg .medallion-inner-ring {
  stroke: rgba(var(--dp-metal-base-rgb), .66);
  stroke-width: .75;
}

.kc-music-medallion-svg .medallion-velvet {
  fill: rgba(var(--dp-ciruela-rgb), .88);
  stroke: rgba(var(--dp-ceniza-lavanda-rgb), .5);
  stroke-width: .65;
}

.kc-music-medallion-svg .medallion-rosette {
  fill: rgba(var(--dp-metal-luz-rgb), .34);
  stroke: rgba(var(--dp-metal-luz-rgb), .86);
  stroke-width: .8;
  transform-box: view-box;
  transform-origin: 36px 36px;
}

.kc-music-medallion.is-paused {
  color: rgba(var(--dp-metal-sombra-rgb), .7);
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, .4));
}

.kc-music-medallion.is-paused::before {
  border-color: rgba(var(--dp-metal-sombra-rgb), .18);
  background: radial-gradient(circle at 40% 35%, rgba(var(--dp-metal-base-rgb), .08), rgba(22, 19, 15, .94) 68%);
}

.kc-music-medallion.is-playing .medallion-rosette {
  animation: kcMedallionRosette 16s linear infinite;
}

@keyframes kcMedallionRosette {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  .kc-music-medallion.is-playing .medallion-rosette {
    animation: none;
  }
}

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

/* RESPONSIVE */
@media(min-width:640px) {
  .section {
    max-width: 640px;
  }

}

/* Dress Code becomes a full Programme-paper scene, not a pale side card. */
#dress-code.dress-code-interlude {
  padding-block: clamp(6.25rem, 14vw, 8.5rem);
}

.dress-code-stage {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(1.75rem, 7vw, 3.25rem);
  width: min(100%, 42rem);
  text-align: center;
}

.dress-code-copy {
  justify-items: center;
  text-align: center;
}

.dress-code-eyebrow {
  color: var(--color-authority-ink);
  font-size: clamp(.66rem, 2.1vw, .78rem);
  font-weight: 700;
  letter-spacing: .24em;
}

.dress-code-rule {
  width: min(9rem, 42vw);
  margin: 1.15rem auto 1.45rem;
  background: var(--dp-metal-base);
  opacity: .8;
}

.dress-code-title {
  max-width: 16ch;
  font-family: var(--kc-f-ceremonial);
  font-size: clamp(1.9rem, 8.2vw, 3.65rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .035em;
}

#dress-code.dress-code-interlude .dress-code-title {
  color: var(--color-ink);
}

.dress-code-body {
  margin-top: 1.35rem;
  color: color-mix(in srgb, var(--color-ink) 92%, transparent);
}

@media (min-width: 720px) {
  .dress-code-stage {
    grid-template-columns: minmax(14rem, .72fr) minmax(0, 1fr);
    justify-items: stretch;
    width: min(100%, 55rem);
    text-align: left;
  }

  .dress-code-copy {
    justify-items: start;
    text-align: left;
  }

  .dress-code-rule {
    margin-inline: 0;
  }
}

/* Mobile keeps the dress as a subordinate stage relic beneath the copy. */
@media (max-width: 719px) {
  #dress-code.dress-code-interlude {
    padding-block: clamp(4.5rem, 11vw, 6rem);
  }

  .dress-code-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: clamp(18rem, 70vw, 22rem);
  }

  .dress-code-copy {
    position: relative;
    z-index: 1;
    width: min(100%, 24rem);
  }
}

/* Esta regla tardia era la raiz real del P1 de 04R1: volvia a atar el eyebrow al
   metal de filete despues de haberlo corregido mas arriba. Ahora usa el rol de
   metal-como-texto, que cada hora fija sobre su propio canvas. */
#padres.family-credits .family-credit-heading,
.dress-code-eyebrow {
  color: var(--color-authority-ink);
  font-weight: 700;
}

/* El metal de filete nunca es un label. --color-authority-ink es el metal USADO COMO
   TEXTO, y cada hora lo fija a un valor que aguanta sobre su propio canvas: peltre
   hondo en la camara encendida, peltre cuerpo sobre la noche. Esto cierra tambien el
   P1 de `.dress-code-eyebrow` que 04R1 dejo abierto: ya no hay eyebrow atado a un
   primitivo que no sabe sobre que fondo cae. */
.programme-eyebrow {
  color: var(--color-authority-ink);
  font-weight: 700;
  font-size: clamp(.68rem, 2.2vw, .8rem);
}

.family-credits-eyebrow {
  color: var(--color-authority-ink);
  font-weight: 700;
  font-size: clamp(.68rem, 2.2vw, .8rem);
}

#padres.family-credits .family-credit-heading {
  font-size: clamp(.8rem, 2.65vw, .96rem);
}

#countdown .countdown-kicker {
  color: var(--dp-marfil-luna);
  font-weight: 700;
  text-shadow: 0 2px 10px color-mix(in srgb, var(--dp-medianoche) 82%, transparent);
  font-size: clamp(.66rem, 1.95vw, .76rem);
}

/* Cierre final: el último acto continúa en una noche cada vez más profunda.
   No se dibuja un marco; la niebla y los filetes mínimos hacen la transición. */
.kc-programme-footer {
  min-height: clamp(360px, 48vw, 500px);
  padding: clamp(72px, 11vw, 118px) 22px clamp(82px, 12vw, 124px);
  border-top: 0;
  background:
    radial-gradient(ellipse 42% 25% at 50% 4%, rgba(var(--dp-ceniza-lavanda-rgb), .12), transparent 76%),
    radial-gradient(ellipse 54% 46% at 50% 104%, rgba(var(--dp-metal-luz-rgb), .09), transparent 72%),
    linear-gradient(180deg, var(--dp-noche-abismo) 0%, #04060d 66%, #010207 100%);
}

.kc-programme-footer::before {
  z-index: -1;
  inset: 0 9% auto;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--dp-ceniza-lavanda-rgb), .28), transparent);
}

.kc-programme-footer> :not(.footer-mist) {
  position: relative;
  z-index: 1;
}

.kc-programme-footer .footer-mist:not(.kc-veil) {
  z-index: 0;
  inset: -15% -20%;
  background:
    radial-gradient(ellipse 34% 15% at 18% 24%, rgba(var(--dp-plata-luz-rgb), .13), transparent 72%),
    radial-gradient(ellipse 38% 17% at 80% 39%, rgba(var(--dp-ceniza-lavanda-rgb), .12), transparent 74%),
    radial-gradient(ellipse 48% 18% at 48% 78%, rgba(var(--dp-metal-luz-rgb), .08), transparent 76%);
  filter: blur(22px);
  opacity: .78;
}

.kc-programme-footer .footer-divider {
  width: min(310px, 76vw);
}

.kc-programme-footer .footer-whisper {
  color: rgba(var(--dp-plata-luz-rgb), .72);
  font-size: clamp(1.05rem, 3vw, 1.22rem);
  line-height: 1.2;
}

.kc-programme-footer .footer-family {
  margin-top: 12px;
  color: var(--dp-marfil-luna);
  font-family: var(--kc-f-signature);
  font-size: clamp(2.35rem, 8vw, 3.65rem);
  letter-spacing: .015em;
  text-shadow: 0 0 14px rgba(var(--dp-plata-luz-rgb), .16), 0 2px 12px rgba(0, 0, 0, .65);
}

.kc-programme-footer .footer-kc-seal {
  margin-top: clamp(20px, 4vw, 30px);
  color: rgba(var(--dp-plata-luz-rgb), .72);
  font-size: clamp(.68rem, 1.5vw, .78rem);
  font-weight: 500;
  text-shadow: 0 0 10px rgba(var(--dp-ceniza-lavanda-rgb), .13);
}

.kc-programme-footer .footer-kc-seal::after {
  content: '↗';
}

/* ══════════════════════════════════════════════════════════════
   FASE 05 — AVISO DE MÚSICA
   main.js inyecta este chip con oro viejo quemado (rgba(180,140,72),
   rgba(225,205,158)) y es zero-diff desde hace cuatro fases: no se toca.
   Su <style> se anexa al <head> en runtime, así que gana por orden a igual
   especificidad. Se le sube un nivel con `body` — sin !important — y el chip
   entra a la noche como los demás objetos.
   ══════════════════════════════════════════════════════════════ */
body #kc-music-hint-inner {
  background: rgba(var(--dp-medianoche-rgb), .9);
  border: 1px solid rgba(var(--dp-plata-rgb), .38);
  box-shadow: 0 4px 18px rgba(var(--dp-noche-abismo-rgb), .55);
}

body #kc-music-hint-text {
  color: rgba(var(--dp-metal-cuerpo-rgb), .94);
  text-shadow: 0 1px 4px rgba(var(--dp-noche-abismo-rgb), .8);
}

/* ══════════════════════════════════════════════════════════════
   GALERÍA — ARCADAS (FASE 05)
   El mazo arrastrable se retiró: se diseñó para cuatro placeholders de
   "muy pronto" y peleaba el drag horizontal contra el scroll vertical.
   Estas son láminas dentro de arcos de medio punto — el MISMO radio que
   #ubicaciones, no un arco nuevo — desfasadas en escalón, que es la
   silueta declarada del proyecto. Nada se esconde detrás de un gesto:
   con cuatro fotos reales, ocultar tres es perder el activo.
   ══════════════════════════════════════════════════════════════ */
#galeria.gallery-arcadas {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(54px, 10vw, 84px);
  padding-bottom: clamp(50px, 9vw, 76px);
  text-align: center;
  background: var(--color-canvas);
}

#galeria.gallery-arcadas .gallery-header {
  position: relative;
  z-index: 1;
}

#galeria.gallery-arcadas .gallery-eyebrow {
  margin: 0;
  color: var(--color-authority-ink);
  font-family: var(--f-eyebrow);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.25;
}

#galeria.gallery-arcadas .gallery-title {
  margin: 10px 0 0;
  color: var(--color-ink);
  font-family: var(--f-display);
  font-size: clamp(2rem, 9vw, 3.2rem);
  font-weight: 500;
  line-height: .98;
}

#galeria.gallery-arcadas .gallery-subtitle {
  max-width: 29rem;
  margin: 14px auto 0;
  color: var(--color-ink-muted);
  font-family: var(--f-body);
  font-size: .9rem;
  line-height: 1.58;
}

/* La arcada, por fin tendida: una fila de arcos que se recorre, no una columna
   de tres viewports. El asomo de la lámina siguiente es el que avisa que hay más. */
#galeria.gallery-arcadas .gallery-arcadas-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  gap: clamp(1rem, 4vw, 1.5rem);
  width: 100%;
  margin: clamp(2.2rem, 7vw, 3rem) 0 0;
  padding-bottom: .5rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

#galeria.gallery-arcadas .gallery-arcadas-wrap::-webkit-scrollbar {
  display: none;
}

#galeria.gallery-arcadas .gallery-lamina {
  flex: 0 0 clamp(14rem, 72vw, 17rem);
  margin: 0;
  scroll-snap-align: center;
}

/* El arco de medio punto: la galeria lleva su propia formula de radio. */
#galeria.gallery-arcadas .gallery-lamina-arco {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--color-hairline);
  border-radius: 50% 50% 0 0 / 22% 22% 0 0;
  background: var(--color-surface);
  box-shadow: 0 18px 34px rgba(var(--dp-noche-abismo-rgb), .42);
}

/* Canto de cristal: un filete de luz en el borde interior del arco, no un glow. */
#galeria.gallery-arcadas .gallery-lamina-arco::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: '';
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(var(--dp-plata-luz-rgb), .34);
}

#galeria.gallery-arcadas .gallery-lamina-arco img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

#galeria.gallery-arcadas .gallery-lamina-pie {
  display: flex;
  gap: .6em;
  align-items: baseline;
  justify-content: center;
  margin-top: .95rem;
  color: var(--color-ink-muted);
  font-family: var(--f-eyebrow);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* La marca horaria: el mismo vocabulario del cuadrante que ordena el resto. */
#galeria.gallery-arcadas .gallery-lamina-marca {
  color: var(--color-authority-ink);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  #galeria.gallery-arcadas .gallery-arcadas-wrap {
    scroll-behavior: auto;
  }
}

/* Dress code: la seccion entera ES la foto, sin barras de fondo arriba/abajo.
   Texto vive en la banda inferior del vestido, donde no hay rostro que tapar. */
#dress-code.dress-code-interlude {
  padding: 0;
  height: clamp(30rem, 92vw, 46rem);
  background: var(--dp-medianoche);
}

.dress-code-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.dress-code-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

#dress-code.dress-code-interlude .dress-code-copy {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  justify-items: center;
  text-align: center;
  padding: clamp(1.5rem, 5vw, 2.25rem) clamp(1.5rem, 6vw, 3rem) clamp(1.25rem, 4vw, 2rem);
  background: linear-gradient(180deg, transparent 0%, rgba(var(--dp-medianoche-rgb), .32) 60%, rgba(var(--dp-medianoche-rgb), .7) 100%);
}

#dress-code.dress-code-interlude .dress-code-eyebrow,
#dress-code.dress-code-interlude .dress-code-title,
#dress-code.dress-code-interlude .dress-code-body {
  color: var(--dp-marfil-luna);
}

/* Cabecera en el cielo. Sobre el vestido azul el eyebrow media 1.9:1 y se perdia;
   aqui el fondo es cielo nocturno plano y el marfil respira. */
.dress-code-sky {
  position: absolute;
  z-index: 1;
  top: clamp(1.5rem, 6vw, 3rem);
  left: 50%;
  display: grid;
  justify-items: center;
  gap: clamp(.7rem, 2.5vw, 1rem);
  width: min(88%, 30rem);
  transform: translateX(-50%);
  text-align: center;
}

#dress-code.dress-code-interlude .dress-code-eyebrow {
  width: 100%;
  margin: 0;
  text-align: center;
  color: var(--dp-marfil-luna);
}

#dress-code.dress-code-interlude .dress-code-rule {
  margin-inline: auto;
  background: var(--dp-metal-base);
}

@media (min-width: 720px) {
  #dress-code.dress-code-interlude {
    height: clamp(34rem, 60vw, 50rem);
  }
}

/* Texto del dress code aparece en cascada suave al llegar a la seccion,
   sobre el fade del bloque completo que ya trae .reveal/.in. */
#dress-code.dress-code-interlude .dress-code-eyebrow,
#dress-code.dress-code-interlude .dress-code-rule,
#dress-code.dress-code-interlude .dress-code-title,
#dress-code.dress-code-interlude .dress-code-body {
  opacity: 0;
  transform: translateY(.6rem);
  transition: opacity 680ms var(--kc-ease-silk), transform 680ms var(--kc-ease-silk);
}

#dress-code.dress-code-interlude .dress-code-rule {
  transition-delay: 80ms;
}

#dress-code.dress-code-interlude .dress-code-title {
  transition-delay: 160ms;
}

#dress-code.dress-code-interlude .dress-code-body {
  transition-delay: 240ms;
}

#dress-code.dress-code-interlude.reveal.in .dress-code-eyebrow,
#dress-code.dress-code-interlude.reveal.in .dress-code-rule,
#dress-code.dress-code-interlude.reveal.in .dress-code-title,
#dress-code.dress-code-interlude.reveal.in .dress-code-body {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

  #dress-code.dress-code-interlude .dress-code-eyebrow,
  #dress-code.dress-code-interlude .dress-code-rule,
  #dress-code.dress-code-interlude .dress-code-title,
  #dress-code.dress-code-interlude .dress-code-body,
  #dress-code.dress-code-interlude.reveal.in .dress-code-eyebrow,
  #dress-code.dress-code-interlude.reveal.in .dress-code-rule,
  #dress-code.dress-code-interlude.reveal.in .dress-code-title,
  #dress-code.dress-code-interlude.reveal.in .dress-code-body {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* A01 · Sin destello azul al tocar en móvil: cada control ya tiene su propio :active/:checked. */
:is(a,button,label,input,select,textarea,summary,[role=button]){-webkit-tap-highlight-color:transparent;}
