/* Azula XV · Hero → Footer con la Doctrina Cenicienta .
   Contrato: .kc/sections-spec.json. La historia sigue después de medianoche: papel navy teñido,
   lápiz plata, acuarela celeste. Mobile-first (390); solo transform/opacity en movimiento.
   Las entradas por escena se activan con .is-in (theme/scroll-cenicienta.js); sin JS todo queda visible. */

/* ── Toque: sin el destello azul del navegador en ningún botón (Android); el teclado conserva su anillo plata ── */
html { -webkit-tap-highlight-color: transparent; }

/* ── Lienzo: papel de acuarela teñido de navy, todo el scroll ── */
#kc-main {
  background: var(--azu-navy) url(../assets/scroll/paper-tile.webp) repeat;
  background-size: 390px 390px;
  color: #DCE3EC;
  font-family: var(--azu-font-serif);
  overflow-x: clip;
}
#kc-main section, #kc-main #kc-hero, #kc-main #kc-footer { position: relative; }
#kc-main section { padding: 3.2rem 16px 3.4rem; }
.kc-section-inner { max-width: 520px; }
#kc-main .kc-section-title {
  font-family: var(--azu-font-serif); font-weight: 500; font-variant: small-caps; text-transform: lowercase;
  letter-spacing: .2em; font-size: 1.3rem; color: var(--azu-silver-hi); text-align: center; margin-bottom: 1.4rem;
}
.azu-divider { display: block; width: min(100%, 390px); height: auto; margin: 0 auto 1.6rem; opacity: .92; }
#kc-main p { font-size: 1.1rem; line-height: 1.62; }

/* ── 1. HERO: la foto protagonista en el arco ── */
#kc-hero { min-height: 100vh; min-height: 100svh; padding: 22px 16px 64px; justify-content: center; }
#kc-hero .kc-hero-bg { background: linear-gradient(180deg, var(--azu-night) 0%, rgba(7, 10, 47, .55) 55%, rgba(7, 10, 47, 0) 100%); }
.azu-hero-frame { position: relative; z-index: 1; width: min(92vw, 480px); aspect-ratio: 780 / 1280; margin: 0 auto; }
.azu-hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 38%;
  -webkit-mask: url(../assets/scroll/hero-mask.webp) center / 100% 100% no-repeat; mask: url(../assets/scroll/hero-mask.webp) center / 100% 100% no-repeat;
}
/* velo navy sobre la zona de columnas (izquierda): el copy se lee, la cara nunca se tapa */
.azu-hero-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 10, 47, .82) 0%, rgba(7, 10, 47, .6) 34%, rgba(7, 10, 47, .12) 58%, rgba(7, 10, 47, 0) 70%),
              linear-gradient(0deg, rgba(7, 10, 47, .55) 0%, rgba(7, 10, 47, 0) 22%);
  -webkit-mask: url(../assets/scroll/hero-mask.webp) center / 100% 100% no-repeat; mask: url(../assets/scroll/hero-mask.webp) center / 100% 100% no-repeat;
}
.azu-hero-arch { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
#kc-hero .kc-hero-content {
  position: absolute; z-index: 3; left: 11%; top: 33%; width: 47%; text-align: left;
  text-shadow: 0 1px 10px rgba(7, 10, 47, .85), 0 0 2px rgba(7, 10, 47, .9);
}
#kc-hero .kc-hero-label { font-family: var(--azu-font-serif); font-variant: small-caps; text-transform: lowercase; letter-spacing: .32em; font-size: .9rem; color: var(--azu-silver-hi); margin: 0 0 .1rem; }
#kc-hero .kc-hero-title {
  font-family: var(--azu-font-script); font-weight: 400; font-size: clamp(2.5rem, 11.5vw, 3.7rem); line-height: 1.12; color: var(--azu-silver-hi); margin: 0 0 .35rem -.2rem;
  text-shadow: 0 0 18px rgba(202, 236, 246, .45), 0 1px 10px rgba(7, 10, 47, .9);
}
#kc-hero .kc-hero-date { font-family: var(--azu-font-serif); font-size: .98rem; letter-spacing: .06em; color: var(--azu-silver-hi); }
#kc-hero .kc-hero-venue { font-family: var(--azu-font-serif); font-variant: small-caps; text-transform: lowercase; letter-spacing: .2em; font-size: .82rem; color: var(--azu-glass); }
#kc-hero .kc-scroll-hint { z-index: 3; font-family: var(--azu-font-serif); font-variant: small-caps; text-transform: lowercase; letter-spacing: .3em; color: var(--azu-silver); font-size: .8rem; }

/* ── marcos con foto (ventana · camafeo · vitrina): la foto bajo una máscara de acuarela, el marco encima ── */
.azu-window, .azu-cameo, .azu-vitrine { position: relative; margin: 0 auto 1.6rem; }
.azu-window { width: min(70vw, 290px); aspect-ratio: 560 / 720; }
.azu-cameo { width: min(64vw, 260px); aspect-ratio: 560 / 680; }
.azu-vitrine { width: min(64vw, 260px); aspect-ratio: 560 / 720; }
.azu-window img, .azu-cameo img, .azu-vitrine img { position: absolute; inset: 0; width: 100%; height: 100%; }
.azu-window-photo, .azu-cameo-photo, .azu-vitrine-photo { object-fit: cover; }
.azu-window-photo { object-position: 50% 40%; -webkit-mask: url(../assets/scroll/window-mask.webp) center / 100% 100% no-repeat; mask: url(../assets/scroll/window-mask.webp) center / 100% 100% no-repeat; }
.azu-cameo-photo { object-position: 46% 26%; -webkit-mask: url(../assets/scroll/cameo-mask.webp) center / 100% 100% no-repeat; mask: url(../assets/scroll/cameo-mask.webp) center / 100% 100% no-repeat; }
.azu-vitrine-photo { object-position: 50% 42%; -webkit-mask: url(../assets/scroll/vitrine-mask.webp) center / 100% 100% no-repeat; mask: url(../assets/scroll/vitrine-mask.webp) center / 100% 100% no-repeat; }

/* ── 2. DEDICATORIA: página de cuento con capitular iluminada ── */
.azu-page { text-align: left; color: #DCE3EC; max-width: 34ch; margin: 0 auto; }
#kc-dedication-text { white-space: pre-line; }   /* tres párrafos (\n\n en el config) */
#kc-dedication-text::first-letter {
  float: left; font-family: var(--azu-font-script); font-size: 3.1em; line-height: 1; color: var(--azu-silver-hi);
  padding: .32em .3em .12em .26em; margin: .02em .2em 0 -.1em;
  background: url(../assets/scroll/dropcap-medallion.webp) center / contain no-repeat;
  text-shadow: 0 0 12px rgba(202, 236, 246, .5);
}

/* ── 3. COUNTER: la carroza espera en su prado; su reloj de bolsillo cuelga del chasis y cuenta (ronda 4, CEO) ──
   Un solo espacio de diseño 390x606 (px lógicos de .kc/anidoodle/src/canvas-core/azuScrollCarriage.ts): todo en % de él.
   El gancho bajo el chasis está en (197, 279); la cadena del reloj nace en el centro superior de su arte (320x380, mostrado al 85%).
   Las cifras viven sobre el cuadrado inscrito de la esfera (71..249 x 137..315 del arte del reloj): esmalte navy, plata alta. */
#kc-countdown-date { text-align: center; font-variant: small-caps; text-transform: lowercase; letter-spacing: .14em; font-size: 1.3rem !important; color: var(--azu-silver-hi); }
.azu-carriage { position: relative; width: calc(100% + 32px); margin: .4rem -16px 0; aspect-ratio: 390 / 606; }
.azu-carriage-art { position: absolute; top: 0; left: 0; width: 100%; height: auto; }
.azu-watch { position: absolute; left: 15.641%; top: 46.205%; width: 69.744%; aspect-ratio: 320 / 380; }
.azu-watch-swing { position: relative; width: 100%; height: 100%; transform-origin: 50% 0; }
.azu-watch-case { display: block; width: 100%; height: 100%; }
#kc-countdown .kc-countdown-grid {
  position: absolute; left: 22.19%; top: 36.05%; width: 55.63%; height: 46.84%; margin: 0; gap: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
}
#kc-countdown .kc-unit { min-width: 0; justify-content: center; }
#kc-countdown .kc-num {
  font-family: var(--azu-font-serif); font-weight: 500; font-size: clamp(1.9rem, 8.6vw, 2.5rem); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums; color: var(--azu-silver-hi); text-shadow: 0 0 12px rgba(202, 236, 246, .22);
}
#kc-countdown .kc-unit-label { font-variant: small-caps; text-transform: lowercase; letter-spacing: .08em; font-size: .74rem; color: var(--azu-silver); font-weight: 500; margin-top: 5px; }

/* ── 4. PADRES: camafeo, y un listón por nombre con su pajarito posado; la "y" en plata entre los dos ── */
#kc-protocol-social .kc-section-title { margin-bottom: 1rem; }
.azu-parents { text-align: center; display: flex; flex-direction: column; align-items: center; }
.azu-name-ribbon { position: relative; width: min(92%, 340px); aspect-ratio: 780 / 192; }
.azu-name-ribbon--a { margin-top: 2.4rem; translate: -4% 0; }   /* sitio para el pajarito: nunca toca el título */
.azu-name-ribbon--b { margin-top: 2rem; translate: 4% 0; }
.azu-name-ribbon-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.azu-name-ribbon--b .azu-name-ribbon-art { transform: scaleX(-1); }
#kc-main .azu-parent { position: absolute; z-index: 1; left: 12%; right: 12%; top: 31%; bottom: 27%; display: flex; align-items: center; justify-content: center; margin: 0; white-space: nowrap; font-family: var(--azu-font-serif); font-weight: 500; font-size: 1.35rem; line-height: 1; letter-spacing: .03em; color: var(--azu-night); text-shadow: 0 0 8px rgba(238, 242, 246, .5); }   /* tinta navy sobre el cuerpo del listón (y 30..70 de 96) */
.azu-name-bird { position: absolute; z-index: 2; width: 14%; height: auto; bottom: 61%; }   /* patas sobre el borde alto del cuerpo */
.azu-name-ribbon--a .azu-name-bird { left: 14%; }
.azu-name-ribbon--b .azu-name-bird { right: 14%; transform: scaleX(-1); }
.azu-parents-and { font-family: var(--azu-font-script); font-size: 2.3rem; line-height: 1; margin: .7rem 0 -.2rem; color: var(--azu-silver-hi); text-shadow: 0 0 12px rgba(202, 236, 246, .45); }

/* ── 5. RECEPCIÓN: el salón integrado al fondo + la tarjeta de cristal ── */
.azu-venue { width: min(100%, 340px); margin: 0 auto; overflow: hidden; }
.azu-salon { position: relative; margin: 0; aspect-ratio: 16 / 10; -webkit-mask: linear-gradient(180deg, #000 60%, transparent); mask: linear-gradient(180deg, #000 60%, transparent); }
.azu-salon img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 38%; }
.azu-salon::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 0%, rgba(202, 236, 246, .2), rgba(7, 10, 47, .25) 70%); mix-blend-mode: soft-light; pointer-events: none; }
#kc-event-info .kc-cards-grid { grid-template-columns: 1fr; }
#kc-event-info .azu-venue {
  background: linear-gradient(165deg, rgba(202, 236, 246, .16) 0%, rgba(154, 208, 230, .06) 45%, rgba(33, 70, 111, .3) 100%);
  border: 1px solid rgba(201, 211, 221, .5); border-radius: 20px; box-shadow: 0 18px 40px rgba(3, 6, 28, .45), inset 0 1px 0 rgba(238, 242, 246, .25);
}
#kc-event-info .kc-card { background: none; border: 0; border-radius: 0; text-align: center; align-items: center; padding: 0 1.2rem 1.5rem; gap: .5rem; margin-top: -.6rem; }
#kc-event-info .kc-card-time { font-variant: small-caps; text-transform: lowercase; letter-spacing: .18em; font-size: .95rem !important; color: var(--azu-glass); }
#kc-event-info .kc-card-title { font-family: var(--azu-font-serif); font-weight: 500; font-size: 1.55rem; letter-spacing: .04em; color: var(--azu-silver-hi); }
#kc-main .kc-btn {
  min-height: 46px; padding: .75rem 1.5rem; border-radius: 999px; font-family: var(--azu-font-serif); font-size: 1rem; letter-spacing: .08em;
  background: linear-gradient(160deg, rgba(202, 236, 246, .3), rgba(154, 208, 230, .12)); border: 1px solid rgba(201, 211, 221, .7); color: var(--azu-silver-hi);
}
/* botón de Recepción: pill gooey (assets-kc-galery/buttons/button-relleno); al tocar, manchas de celeste suben y lo rellenan */
#kc-main #kc-event-info .kc-btn-outline {
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 2px solid var(--azu-celeste); border-radius: 999px; color: var(--azu-glass);
  letter-spacing: .12em; text-decoration: none; transition: color .7s ease;
}
#kc-event-info .kc-btn-outline::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; filter: url(#azu-goo);
  background: radial-gradient(ellipse 20% 70% at 17% 50%, var(--azu-celeste) 96%, transparent 100%),
              radial-gradient(ellipse 20% 70% at 50% 50%, var(--azu-celeste) 96%, transparent 100%),
              radial-gradient(ellipse 20% 70% at 83% 50%, var(--azu-celeste) 96%, transparent 100%);
  transform: scale(1.4) translateY(125%); transition: transform .7s ease;
}
#kc-main #kc-event-info .kc-btn-outline:hover, #kc-main #kc-event-info .kc-btn-outline:active, #kc-main #kc-event-info .kc-btn-outline:focus-visible { color: var(--azu-night); }
#kc-event-info .kc-btn-outline:hover::before, #kc-event-info .kc-btn-outline:active::before, #kc-event-info .kc-btn-outline:focus-visible::before { transform: scale(1.4) translateY(0); }
#kc-main .kc-btn:focus-visible, .kc-secret-trigger:focus-visible { outline: 2px solid var(--azu-silver); outline-offset: 3px; }

/* ── 6. REGALOS: el sobre con su sello y la vitrina ── */
#kc-gifts .kc-gifts-card.azu-envelope-card { background: none; border: 0; padding: 0 0 .3rem; align-items: center; text-align: center; gap: .3rem; }   /* el .3rem de abajo era el hueco del contenedor de tiendas (ya borrado): el pliegue no se mueve */
/* el mensaje en dos renglones (\n en el config): el primero, "tu presencia es mi mayor regalo", es la entrada */
#kc-main #kc-gifts-message { white-space: pre-line; max-width: 34ch; margin: 0 auto; font-size: 1.12rem; line-height: 1.55; color: #DCE3EC; }
#kc-gifts-message::first-line { letter-spacing: .03em; color: var(--azu-silver-hi); text-shadow: 0 0 12px rgba(202, 236, 246, .45); }   /* sin cambiar tamaño ni peso (Cormorant 500 único): el renglón nunca se parte distinto */
/* el 🎁✉️ de la clienta, pintado: un regalo o un sobre levitan a destiempo sobre una sombra que respira */
.azu-gift-pair { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; width: min(80vw, 300px); margin: 1.4rem auto 0; padding-bottom: 22px; }
.azu-gift-pair::before { content: ""; position: absolute; left: 50%; top: 42%; width: 110%; aspect-ratio: 1.6; translate: -50% -50%; border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse, rgba(202, 236, 246, .2), rgba(154, 208, 230, 0) 62%); animation: azu-gift-breathe 4.6s ease-in-out infinite; }
.azu-gift-pair::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 14px; border-radius: 50%; background: radial-gradient(ellipse, rgba(3, 6, 28, .55), rgba(3, 6, 28, 0) 70%); animation: azu-ground 4.6s ease-in-out infinite; }
.azu-pair-gift, .azu-pair-envelope { position: relative; display: block; height: auto; animation: azu-levitate 4.6s ease-in-out infinite; }
.azu-pair-gift { width: 92px; }
.azu-pair-envelope { width: 150px; animation-delay: -2.3s; }
#kc-gifts { overflow: hidden; }
.azu-rain { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.azu-rain img { position: absolute; top: -40px; width: 36px; height: auto; will-change: transform; }

/* ── 5b. ITINERARIO: la noche contada en relojitos; las manecillas avanzan de las 7 a la 1, medianoche brilla (ronda 5) ──
   Zigzag sobre una espina plata: el reloj en la espina, el texto alterna lados. Manecillas CSS sobre la esfera pintada (itin-dial.webp). */
#kc-itinerary .kc-itinerary-toggle-wrap { margin: 0; }
#kc-itinerary .kc-itinerary-body { padding: .2rem 0 0; }
#kc-itinerary .kc-timeline { position: relative; gap: 0; max-width: 360px; margin: 0 auto; }
#kc-itinerary .kc-timeline::before { content: ""; position: absolute; left: 50%; top: 14px; bottom: 14px; width: 1.5px; translate: -50% 0; background: linear-gradient(180deg, rgba(201, 211, 221, 0), rgba(201, 211, 221, .5) 9%, rgba(201, 211, 221, .5) 91%, rgba(201, 211, 221, 0)); }
#kc-itinerary .kc-timeline li.azu-stop { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; column-gap: 14px; min-height: 86px; }
.azu-dial { grid-column: 2; grid-row: 1; position: relative; width: 60px; aspect-ratio: 1; justify-self: center; background: url(../assets/scroll/itin-dial.webp) center / contain no-repeat; }
.azu-dial::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; translate: -50% -50%; border-radius: 50%; background: var(--azu-silver-hi); box-shadow: 0 0 0 1px var(--azu-night); }
.azu-ihand { position: absolute; left: 50%; bottom: 50%; border-radius: 2px; background: var(--azu-night); transform-origin: 50% 100%; }
.azu-ihand--h { width: 3px; margin-left: -1.5px; height: 25%; transform: rotate(var(--h)); }
.azu-ihand--m { width: 2px; margin-left: -1px; height: 35%; transform: rotate(var(--m)); }
.azu-stop-text { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; text-align: left; }
.azu-stop:nth-child(even) .azu-stop-text { grid-column: 1; text-align: right; }
#kc-itinerary .kc-tl-time { padding: 0; font-variant: small-caps lining-nums; text-transform: lowercase; letter-spacing: .06em; font-size: 1rem; font-weight: 500; color: #CAECF6; text-shadow: 0 0 10px rgba(202, 236, 246, .35); }
#kc-itinerary .kc-tl-label { font-family: var(--azu-font-serif); font-weight: 500; font-size: 1.22rem; line-height: 1.18; color: var(--azu-silver-hi); }
/* medianoche: la magia apenas comienza, el reloj de las 12 brilla */
.azu-stop--midnight::before { content: ""; position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; translate: -50% -50%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(202, 236, 246, .42), rgba(154, 208, 230, .12) 46%, rgba(154, 208, 230, 0) 70%); }
#kc-itinerary .azu-stop--midnight .kc-tl-label { text-shadow: 0 0 14px rgba(202, 236, 246, .6); }

/* ── 5c. CÓDIGO DE VESTIMENTA: el vestido y el traje sobre sus maniquíes de costura (ronda 6); los tres colores de ella, reservados (ronda 5) ── */
#kc-dresscode .kc-dc-wrap { text-align: center; }
#kc-main .kc-dc-theme { margin: -.3rem 0 1.2rem; font-variant: small-caps; text-transform: lowercase; letter-spacing: .32em; font-size: 1.75rem; color: var(--azu-silver-hi); text-shadow: 0 0 14px rgba(202, 236, 246, .35); }
#kc-dresscode .kc-dc-cards { grid-template-columns: 1fr 1fr; gap: 10px; max-width: 360px; margin: 0 auto 1.6rem; }
#kc-dresscode .kc-dc-card { margin: 0; padding: 0; background: none; border: 0; display: flex; flex-direction: column; align-items: center; }
.azu-attire { display: block; width: 100%; max-width: 165px; height: auto; transform-origin: 50% 100%; }   /* el pie del maniquí: las patas tocan el piso en y 331 del arte 170x340 */
#kc-dresscode figcaption { margin-top: .45rem; font-variant: small-caps; text-transform: lowercase; letter-spacing: .14em; font-size: 1.02rem; color: var(--azu-silver-hi); }
#kc-dresscode .kc-dc-palette { justify-content: center; gap: 18px; margin: 0 0 .9rem; }
#kc-dresscode .kc-dc-swatch { width: 42px; height: 42px; border: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--azu-silver), 0 0 0 5px rgba(201, 211, 221, .12), 0 6px 14px rgba(3, 6, 28, .45); background-image: radial-gradient(circle at 34% 30%, rgba(238, 242, 246, .7) 0 8%, rgba(238, 242, 246, 0) 34%) !important; }
#kc-main .kc-dc-avoid { max-width: 30ch; margin: 0 auto; font-style: normal; font-size: 1.02rem; line-height: 1.5; color: #DCE3EC; }

/* ── 7. RSVP: carta de cristal (solo visual) ── */
.kc-rsvp-card { position: relative; display: flex; flex-direction: column; margin-top: 1.2rem; }   /* sin cristal: la identidad arriba con su marco, el pergamino debajo (kc-rsvp-diamond.css) */
.azu-rsvp-slipper { position: absolute; z-index: 2; width: 84px; height: auto; right: 1%; top: 0; transform: rotate(-8deg); filter: drop-shadow(0 6px 10px rgba(3, 6, 28, .45)); }   /* descansa en el extremo derecho del rollo */
#kc-main .azu-rsvp-eyebrow { margin: 0 0 .2rem; text-align: center; font-variant: small-caps; text-transform: lowercase; letter-spacing: .34em; font-size: .92rem; color: var(--azu-glass); }

/* ── 8. MENSAJE SECRETO: el pajarito entrega; 13 s sin poder cerrar, luego vuelve ── */
#kc-secret { padding-bottom: .6rem; background: linear-gradient(180deg, rgba(11, 26, 61, 0) 0%, rgba(11, 26, 61, .5) 40%, rgba(11, 26, 61, 0) 100%); }
#kc-secret .kc-section-inner { min-height: 270px; display: grid; place-items: center; }
#kc-secret .kc-section-inner > * { grid-area: 1 / 1; }
.azu-secret-idle { display: flex; flex-direction: column; align-items: center; gap: .6rem; transition: opacity .6s ease, transform .6s ease; }
.azu-secret-bird { position: relative; z-index: 1; display: block; width: 190px; height: 143px; animation: azu-bob 2.6s ease-in-out infinite; }
.azu-secret-sprite { position: absolute; inset: 0; background: url(../assets/birds/bird-panuelo-fly.webp) 0 0 / 600% 100% no-repeat; animation: azu-flap .55s steps(6) infinite; }
.azu-secret-letter-wrap { position: absolute; left: 106px; top: 102px; width: 58px; transform-origin: 50% 0; transform: rotate(8deg); animation: azu-dangle 2.6s ease-in-out infinite; }
.azu-secret-letter-wrap::before { content: ""; position: absolute; left: 50%; top: 50%; width: 82px; height: 82px; margin: -41px 0 0 -41px; border-radius: 50%; background: radial-gradient(circle, rgba(202, 236, 246, .55), rgba(154, 208, 230, 0) 68%); animation: azu-letter-glow 3.2s ease-in-out infinite; }
.azu-secret-letter-wrap::after { content: ""; position: absolute; left: 50%; top: 56%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; pointer-events: none; background: radial-gradient(circle, #fff 0 22%, transparent 24%), linear-gradient(#fff, #fff) center / 1.5px 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 1.5px no-repeat; animation: azu-letter-glint 3.2s ease-in-out infinite; }
.azu-secret-letter { position: relative; display: block; width: 100%; height: auto; filter: brightness(1.18) saturate(1.15) drop-shadow(0 3px 4px rgba(3, 6, 28, .55)); }
.azu-secret-hint { margin-top: .5rem; font-style: italic; color: var(--azu-silver); font-size: 1.05rem !important; }
/* el pájaro ES el disparador: halo + eco que pulsan y un llamado periódico, sin texto */
#kc-secret .kc-secret-trigger { position: relative; display: block; background: none; border: 0; padding: 14px 22px; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .2s ease; }
#kc-secret .kc-secret-trigger:active { transform: scale(.94); }
#kc-secret .kc-secret-msg { background: none; border: 0; padding: 0 .5rem; margin: 0; max-width: 34ch; text-align: center; }
#kc-secret .kc-secret-msg h3 { font-weight: 500; font-variant: small-caps; text-transform: lowercase; letter-spacing: .24em; font-size: .95rem; color: var(--azu-glass); margin-bottom: .8rem; }
#kc-secret .kc-secret-msg blockquote { font-style: italic; color: var(--azu-silver-hi); font-size: 1.28rem; line-height: 1.55; }
#kc-secret .kc-secret-firma { font-family: var(--azu-font-script); font-size: 2.3rem; color: var(--azu-silver-hi); margin-top: .4rem; text-shadow: 0 0 14px rgba(202, 236, 246, .45); }
#kc-secret[data-azu-secret="open"] .azu-secret-idle, #kc-secret[data-azu-secret="closing"] .azu-secret-idle { opacity: 0; visibility: hidden; transform: translateY(-14px); transition: opacity .5s ease, transform .5s ease, visibility 0s .5s; }
#kc-secret[data-azu-secret="open"] .azu-secret-bird { animation: azu-flyoff 1.1s ease-in forwards; }
#kc-secret[data-azu-secret="open"] .kc-secret-msg { animation: azu-rise 1s .35s ease-out both; }
#kc-secret[data-azu-secret="closing"] .kc-secret-msg { opacity: 0; transition: opacity .85s ease; }
#kc-secret[data-azu-secret="open"] .kc-section-inner::before {
  content: ""; position: absolute; inset: -10% -6%; pointer-events: none;
  background: radial-gradient(1.5px 1.5px at 18% 22%, #EEF2F6, transparent 60%), radial-gradient(1.5px 1.5px at 78% 14%, #EEF2F6, transparent 60%),
              radial-gradient(2px 2px at 88% 70%, #CAECF6, transparent 60%), radial-gradient(1.5px 1.5px at 10% 80%, #CAECF6, transparent 60%),
              radial-gradient(1px 1px at 50% 6%, #EEF2F6, transparent 60%);
  animation: azu-twinkle-field 2.4s ease-in-out infinite alternate;
}
#kc-secret .kc-section-inner { position: relative; }
/* la luna y su luz: el pájaro vive bajo ella, en la misma noche que el footer */
.azu-secret-moon { position: absolute; z-index: 0; left: -9%; top: -7%; width: 160px; height: auto; pointer-events: none; }
#kc-secret::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 42% at 24% 38%, rgba(154, 208, 230, .3), rgba(154, 208, 230, 0) 72%); }

/* ── 9. FOOTER: medianoche, el palacio en contraluz bajo la luna ── */
#kc-main #kc-footer {
  border-top: 0; padding: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 45, 94, 0) 0%, rgba(24, 45, 94, .85) 22%, #182D5E 36%, #0E1E47 58%, #03041A 80%, #03041A 100%);   /* arranca transparente: el papel de #kc-main se funde con el cielo, sin valle de luminancia */
}
/* una sola escena: cielo y palacio llenan el footer hasta el borde; los textos viven en el cielo, junto al castillo (la luna vive arriba, en el secreto) */
.azu-footer-sky { position: relative; width: 100%; aspect-ratio: 780 / 740; }
.azu-footer-castle { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
#kc-footer .kc-footer-inner { position: absolute; z-index: 1; left: 6%; top: 36%; width: 50%; align-items: flex-start; gap: .55rem; text-align: left; text-shadow: 0 1px 8px rgba(3, 4, 26, .95), 0 0 2px rgba(3, 4, 26, .9); }
#kc-footer .kc-footer-dedication { font-size: 1.05rem !important; line-height: 1.45 !important; color: var(--azu-silver-hi); }
.azu-footer-slipper { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle; margin: -.3em .05em -.2em; transform: rotate(-10deg); }
#kc-footer .kc-footer-date { font-variant: small-caps; text-transform: lowercase; letter-spacing: .1em; color: var(--azu-silver); font-size: .9rem !important; }
#kc-footer .kc-footer-brand { color: var(--azu-silver-hi); letter-spacing: .08em; font-size: .82rem; opacity: 1; white-space: nowrap; }
/* KC-Universe: grabado sutil en el pie oscuro de la ciudad, fuera de la columna de texto */
.azu-universe { position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: center; gap: .35rem; margin: 0; font-variant: small-caps; text-transform: lowercase; letter-spacing: .3em; font-size: .78rem; color: rgba(201, 211, 221, .6); }
.azu-universe img { width: 1.6em; height: 1.6em; transform: rotate(-10deg); opacity: .8; filter: drop-shadow(0 0 6px rgba(154, 208, 230, .5)); }

/* ── Ring musical: la zapatilla de cristal ── */
#kc-audio-toggle.kc-audio-toggle {
  right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); width: 58px; height: 58px;
  background: radial-gradient(circle at 40% 35%, rgba(33, 70, 111, .95), rgba(7, 10, 47, .95)); border: 1px solid rgba(201, 211, 221, .6);
  box-shadow: 0 8px 22px rgba(3, 6, 28, .55); display: grid; place-items: center; padding: 0;
}
#kc-audio-toggle .kc-audio-icon, #kc-audio-toggle .kc-audio-bars { display: none !important; }
#kc-audio-toggle .azu-ring-slipper { width: 40px; height: 40px; transform: rotate(-10deg); transition: opacity .4s ease; }
#kc-audio-toggle .kc-ring { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--azu-silver); border-right-color: rgba(201, 211, 221, .35); pointer-events: none; }
#kc-audio-toggle[data-kc-state="playing"] .kc-ring { animation: azu-spin 3.4s linear infinite; }
#kc-audio-toggle[data-kc-state="paused"] .azu-ring-slipper { opacity: .6; }
#kc-audio-toggle:focus-visible { outline: 2px solid var(--azu-silver); outline-offset: 4px; }
#kc-audio-toggle:focus:not(:focus-visible) { outline: none; }
.azu-music-toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translate(-50%, 10px); z-index: 7001; opacity: 0;
  width: max-content; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; justify-content: center;
  padding: .6rem 1.1rem; border-radius: 18px; background: rgba(7, 10, 47, .9); border: 1px solid rgba(201, 211, 221, .5);
  color: var(--azu-silver-hi); font-family: var(--azu-font-serif); font-size: .98rem; line-height: 1.3; text-align: center;
  transition: opacity .5s ease, transform .5s ease;
}
.azu-music-toast img { width: 26px; height: 26px; display: inline-block; }
.azu-music-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── Entradas por escena (solo con JS activo; sin JS todo está visible) ── */
html.azu-js .azu-scene:not(.is-in) .azu-reveal { opacity: 0; }
html.azu-js .azu-scene .azu-reveal { opacity: 0; }
html.azu-js .azu-scene.is-in .azu-reveal { animation: azu-rise 1s var(--d, 0s) cubic-bezier(.23, 1, .32, 1) both; }
html.azu-js #kc-hero.is-in .azu-hero-arch { animation: azu-draw-up 1.7s .1s ease-out both; }
html.azu-js #kc-hero.is-in .azu-hero-photo { animation: azu-bloom 1.6s .35s ease-out both; }
html.azu-js #kc-narrative.is-in #kc-dedication-text { animation: azu-write 3.2s .5s ease-out both; }
html.azu-js #kc-countdown.is-in .kc-unit { animation: azu-light .8s calc(1.2s + var(--i, 0) * .3s) ease-out both; }
/* el reloj llega colgando y se asienta como péndulo amortiguado: termina quieto (nada se mece junto a las cifras) */
html.azu-js #kc-countdown.is-in .azu-watch-swing { animation: azu-pendulum 3.4s .55s ease-in-out both; }
html.azu-js #kc-itinerary.is-in .azu-stop.azu-reveal { animation-delay: calc(.35s + var(--i, 0) * .18s); }
html.azu-js #kc-itinerary.is-in .azu-ihand--h { animation: azu-sweep-h 1.3s calc(.55s + var(--i, 0) * .18s) cubic-bezier(.3, .7, .2, 1) both; }
html.azu-js #kc-itinerary.is-in .azu-ihand--m { animation: azu-sweep-m 1.3s calc(.55s + var(--i, 0) * .18s) cubic-bezier(.3, .7, .2, 1) both; }
html.azu-js #kc-dresscode.is-in .kc-dc-card:nth-child(2).azu-reveal { animation-delay: .58s; }
/* el maniquí gira un poco sobre su poste y queda de frente: una sola vez, termina quieto */
html.azu-js #kc-dresscode.is-in .azu-attire { animation: azu-turn 1.6s .7s cubic-bezier(.3, .7, .2, 1) both; }
html.azu-js #kc-dresscode.is-in .kc-dc-card:nth-child(2) .azu-attire { animation-delay: .9s; }
html.azu-js #kc-protocol-social.is-in .azu-name-ribbon--a .azu-name-ribbon-art { animation: azu-unfurl 1.1s .75s ease-out both; }
/* entregar: el primer listón se despliega, su pajarito, la "y", y el segundo listón con el suyo */
html.azu-js #kc-protocol-social.is-in .azu-name-ribbon--a .azu-parent.azu-reveal { animation-delay: 1s; }
html.azu-js #kc-protocol-social.is-in .azu-name-ribbon--a .azu-name-bird { animation: azu-hop .9s 1.2s cubic-bezier(.34, 1.56, .64, 1) both; }
html.azu-js #kc-protocol-social.is-in .azu-parents-and { animation: azu-rise .8s 1.45s cubic-bezier(.23, 1, .32, 1) both; }
html.azu-js #kc-protocol-social.is-in .azu-name-ribbon--b .azu-name-ribbon-art { animation: azu-unfurl 1.1s 1.6s ease-out both; }   /* azu-unfurl solo anima clip-path simétrico: el scaleX(-1) se conserva */
html.azu-js #kc-protocol-social.is-in .azu-name-ribbon--b .azu-parent.azu-reveal { animation-delay: 1.85s; }
html.azu-js #kc-protocol-social.is-in .azu-name-ribbon--b .azu-name-bird { animation: azu-hop-m .9s 2s cubic-bezier(.34, 1.56, .64, 1) both; }
html.azu-js #kc-secret:not(.is-in) .azu-secret-moon { opacity: 0; }
html.azu-js #kc-secret.is-in .azu-secret-moon { animation: azu-moonrise 3.2s ease-out both; }
html.azu-js #kc-secret:not(.is-in) .azu-secret-bird { opacity: 0; }
html.azu-js #kc-secret.is-in .azu-secret-bird { animation: azu-flyin 1.3s cubic-bezier(.23, 1, .32, 1) both, azu-bob 2.6s 1.3s ease-in-out infinite, azu-call 4.2s 3s ease-in-out infinite; }

@keyframes azu-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes azu-draw-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes azu-bloom { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes azu-hop { 0% { opacity: 0; transform: translateY(-26px); } 100% { opacity: 1; transform: none; } }
@keyframes azu-hop-m { 0% { opacity: 0; transform: translateY(-26px) scaleX(-1); } 100% { opacity: 1; transform: scaleX(-1); } }
@keyframes azu-write { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes azu-pendulum { 0% { transform: rotate(7deg); } 17% { transform: rotate(-5deg); } 34% { transform: rotate(3.4deg); } 51% { transform: rotate(-2.1deg); } 68% { transform: rotate(1.1deg); } 84% { transform: rotate(-.4deg); } 100% { transform: rotate(0); } }
@keyframes azu-sweep-h { from { transform: rotate(0deg); } to { transform: rotate(var(--h)); } }
@keyframes azu-sweep-m { from { transform: rotate(-360deg); } to { transform: rotate(var(--m)); } }
@keyframes azu-turn { 0% { transform: scaleX(.94); } 60% { transform: scaleX(1.012); } 100% { transform: none; } }
@keyframes azu-light { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes azu-unfurl { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes azu-moonrise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes azu-flyin { from { opacity: 0; transform: translate(-60vw, -30px); } to { opacity: 1; transform: none; } }
@keyframes azu-flyoff { to { opacity: 0; transform: translate(70vw, -90px) scale(.7); } }
@keyframes azu-call { 0%, 78%, 100% { rotate: 0deg; scale: 1; } 84% { rotate: -4deg; scale: 1.04; } 90% { rotate: 3deg; scale: 1.04; } 96% { rotate: -1.5deg; scale: 1; } }
@keyframes azu-dangle { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(11deg); } }
@keyframes azu-letter-glow { 0%, 100% { opacity: .3; transform: scale(.88); } 50% { opacity: .7; transform: scale(1.06); } }
@keyframes azu-letter-glint { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .95; transform: scale(1); } }
@keyframes azu-levitate { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-14px) rotate(1.2deg); } }
@keyframes azu-ground { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .5; transform: scale(.78); } }
@keyframes azu-gift-breathe { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes azu-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes azu-flap { from { background-position: 0% 0; } to { background-position: 120% 0; } }
@keyframes azu-spin { to { transform: rotate(360deg); } }
@keyframes azu-twinkle-field { from { opacity: .45; } to { opacity: 1; } }

/* ── 7b. KC-ECHOES: la cámara de cristal levita sobre su sombra; se abre el día del evento ── */
#kc-echoes .kc-section-inner { text-align: center; }
.azu-echoes-cam { position: relative; width: min(56vw, 210px); margin: .4rem auto 1.3rem; padding-bottom: 12px; }
.azu-echoes-cam::before { content: ""; position: absolute; left: 50%; top: 46%; width: 128%; aspect-ratio: 1.5; translate: -50% -50%; border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse, rgba(202, 236, 246, .2), rgba(154, 208, 230, 0) 62%); animation: azu-gift-breathe 4.6s ease-in-out infinite; }
.azu-echoes-cam::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: 0; height: 14px; border-radius: 50%; background: radial-gradient(ellipse, rgba(3, 6, 28, .6), rgba(3, 6, 28, 0) 70%); animation: azu-ground 4.6s ease-in-out infinite; }
.azu-echoes-float { position: relative; animation: azu-levitate 4.6s ease-in-out infinite; }
.azu-echoes-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 14px rgba(154, 208, 230, .28)); }
.azu-cam-glint { transform-box: fill-box; transform-origin: center; animation: azu-letter-glint 3.2s ease-in-out infinite; }
.azu-echoes-star { position: absolute; width: 10px; height: 10px; background: var(--azu-glass); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: azu-twinkle-field 1.8s ease-in-out infinite alternate; }
.azu-echoes-star:nth-of-type(1) { left: -6%; top: 18%; }
.azu-echoes-star:nth-of-type(2) { right: -4%; top: 4%; width: 7px; height: 7px; animation-delay: -.7s; }
.azu-echoes-star:nth-of-type(3) { right: 2%; bottom: 30%; width: 6px; height: 6px; animation-delay: -1.3s; }
#kc-main .azu-echoes-text { max-width: 32ch; margin: 0 auto 1.3rem; font-size: 1.1rem; line-height: 1.55; color: #DCE3EC; }
.azu-echoes-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.5rem; margin: 0; border: 1px solid rgba(201, 211, 221, .55); border-radius: 999px; background: linear-gradient(160deg, rgba(202, 236, 246, .16), rgba(33, 70, 111, .3)); font-variant: small-caps; text-transform: lowercase; letter-spacing: .16em; font-size: 1rem; color: var(--azu-glass); }
#kc-main .azu-echoes-date { margin: .6rem 0 0; font-size: .95rem; letter-spacing: .06em; color: var(--azu-silver); }
button.azu-echoes-pill { font-family: inherit; cursor: not-allowed; }
/* KC-Center inyecta el link real de KC-Gallery aquí cuando el módulo está encendido: la pill y la fecha se retiran */
#kc-echoes:has(.kc-gallery-cta) .azu-echoes-pill, #kc-echoes:has(.kc-gallery-cta) .azu-echoes-date, #kc-echoes .kc-gallery-cta__hint { display: none; }
#kc-echoes .kc-gallery-cta { margin: 0 auto; }
#kc-echoes .kc-gallery-cta__link { min-height: 46px; padding: .75rem 1.6rem; border: 2px solid var(--azu-celeste); border-radius: 999px; color: var(--azu-glass); background: linear-gradient(160deg, rgba(202, 236, 246, .22), rgba(154, 208, 230, .08)); font-family: var(--azu-font-serif); letter-spacing: .12em; opacity: 1; touch-action: manipulation; }

/* ── Movimiento reducido: estados finales, sin loops ── */
@media (prefers-reduced-motion: reduce) {
  html.azu-js .azu-scene .azu-reveal, html.azu-js #kc-secret .azu-secret-bird { opacity: 1 !important; animation: none !important; }
  #kc-event-info .kc-btn-outline, #kc-event-info .kc-btn-outline::before { transition: none !important; }
  .azu-pair-gift, .azu-pair-envelope, .azu-gift-pair::before, .azu-gift-pair::after, .azu-echoes-cam::before, .azu-echoes-cam::after { animation: none !important; }
  .azu-secret-sprite, .azu-secret-bird, #kc-audio-toggle .kc-ring, #kc-secret .azu-secret-letter-wrap, #kc-secret .azu-secret-letter-wrap::before, #kc-secret .azu-secret-letter-wrap::after { animation: none !important; }
  html.azu-js .azu-scene * { animation: none !important; }
}

/* ── Escritorio: la historia en una columna de libro centrada ── */
@media (min-width: 760px) {
  #kc-main section { padding-left: 24px; padding-right: 24px; }
  .azu-carriage { width: 100%; margin-left: 0; margin-right: 0; }
  .azu-footer-sky { max-width: 640px; margin: 0 auto; }
}
