:root {
  --hi-canvas:#0E1B52; --hi-surface:#14257A;
  --hi-cobalt:#1D3D9D; --hi-blue:#336BB6; --hi-crimson:#9C192D; --hi-wine:#750019;
  --hi-sky:#388EC4; --hi-sky-mid:#336BB6; --hi-sky-light:#C9D8F0;
  --hi-ink:#F1F4F6; --hi-muted:#C9D8F0;
  --hi-red:#9C192D; --hi-red-dark:#750019;
  --hi-silver:#BCC9D2; --hi-silver-light:#F1F4F6; --hi-silver-dark:#596B7A;
}
:is(#gate,#hero,#intro,#countdown,#padres,#ubicaciones,#dresscode,#galeria,#regalos,#rsvp,#captura,#secret-key,.wonderland-footer,#musicBtn) {
  --obsidian:var(--hi-canvas); --obsidian-2:var(--hi-surface);
  --ivory:var(--hi-ink); --ivory-dim:var(--hi-muted);
  --gold:var(--hi-silver); --gold-bright:var(--hi-silver-light);
  --line:rgba(169,200,226,.28);
  --awr-gold:var(--hi-silver); --awr-turquoise:var(--hi-sky);
}
/* No selectores globales body/main/.section que afecten al itinerario. */
#hero .hero-title {font-size:clamp(2.5rem,11vw,5rem);line-height:1.04;letter-spacing:.055em;max-width:calc(100vw - 36px);overflow-wrap:normal;margin-inline:auto;color:var(--hi-sky-light);}
#hero .hero-kicker {color:var(--hi-sky);}
#hero .hero-date {color:var(--hi-ink);}
#hero .hero-forest-bg {filter:none;}
#hero .hero-fireflies .ff {background:var(--hi-sky);box-shadow:0 0 8px rgba(169,200,226,.35);}
#padres .parent-name {font-family:var(--f-display);font-size:clamp(1.18rem,4.8vw,1.5rem);line-height:1.2;color:var(--hi-ink);overflow-wrap:normal;}
#padres .parent-blessing-list {grid-template-columns:1fr;gap:14px;}
#padres .parent-divider.ornament {width:44px;height:1px;background:linear-gradient(90deg,transparent,var(--hi-silver),transparent);justify-self:center;}
#padres .jimena-godparent-name {font-family:var(--f-display);font-size:1.2rem;line-height:1.35;color:var(--hi-ink);margin:12px 0 0;}
#ubicaciones .location-city {font-family:var(--f-body);font-size:.9rem;line-height:1.45;color:var(--hi-muted);margin:8px 0;}
#ubicaciones .location-name,
#ubicaciones .location-time {color:var(--hi-ink);}
#ubicaciones .location-map-btn {border-color:var(--hi-silver);color:var(--hi-sky-light);background:var(--hi-surface);min-height:44px;font-size:.875rem;letter-spacing:.06em;}
/* Keep both map actions outside the fixed watch rail at every mobile scroll position. */
#regalos .gift-subtitle {max-width:26rem;color:var(--hi-ink);font-size:1rem;line-height:1.7;}
#rsvp .kc-rsvp-field-group label {color:var(--hi-ink);font-size:.72rem;letter-spacing:.12em;}
#rsvp .kc-rsvp-field-group input,
#rsvp .kc-rsvp-field-group select {background:var(--hi-surface);color:var(--hi-ink);border-color:var(--hi-silver);}
#rsvp .kc-rsvp-submit {background:var(--hi-sky);color:var(--hi-canvas);border-color:var(--hi-silver-light);font-size:.72rem;}
#rsvp .kc-rsvp-submit:hover:not(:disabled) {background:var(--hi-sky-light);color:var(--hi-canvas);}
#rsvp .kc-rsvp-submit:active:not(:disabled) {background:var(--hi-sky-mid);}
#rsvp .kc-rsvp-submit:disabled {cursor:wait;}
#rsvp .kc-rsvp-intro,
#rsvp .kc-rsvp-allocation-note {color:var(--hi-muted);}
#rsvp .kc-rsvp-error {color:#F8D8DF;background:#431E2B;border-color:#D58B9B;}
#rsvp .kc-rsvp-status {color:var(--hi-sky-light);}
#rsvp .mushroom-cap,
#intro .intro-shroom-cap {fill:var(--hi-red);stroke:var(--hi-silver-light);}
#rsvp .mushroom-stem,
#intro .intro-shroom-stem {fill:var(--hi-silver);}
#captura .captura-cta:disabled {background:var(--hi-surface);color:var(--hi-muted);border-color:var(--hi-silver-dark);cursor:default;min-height:44px;}
#secret-key .hat-ribbon {fill:var(--hi-red-dark);stroke:var(--hi-silver);}
#secret-key .hat-ticket {fill:var(--hi-silver-light);stroke:var(--hi-silver-dark);}
#secret-key .hat-ticket-text {fill:var(--hi-canvas);}
.wonderland-footer .footer-family {color:var(--hi-sky);font-size:.75rem;letter-spacing:.12em;}
:is(#rsvp) .kc-ticket-qr-frame {background:#FFF;box-shadow:0 0 0 1px var(--hi-silver);}
:is(#rsvp) .kc-ticket-qr-img {border-radius:0;}
#rsvp .kc-ticket-guest {color:var(--hi-ink);}
#rsvp .kc-ticket-celebrant {color:var(--hi-sky);}
#musicBtn {color:var(--hi-silver-light);}
#musicBtn.is-paused {color:var(--hi-silver);}
#kc-music-hint-inner {background:rgba(8,14,24,.94);border-color:rgba(163,175,185,.6);box-shadow:0 4px 18px rgba(0,0,0,.55);}
#kc-music-hint-text {color:var(--hi-ink);}
:is(#gate,#rsvp,#ubicaciones,#secret-key,#captura) :focus-visible,
#musicBtn:focus-visible {outline:3px solid var(--hi-sky-light);outline-offset:4px;}
#dresscode[hidden] {display:none;}
@media(min-width:700px){#hero .hero-title{font-size:clamp(4rem,7.5vw,6.4rem);}}

/* HS-04: colorimetría oscura (familia de refes/colometria.png en valor bajo) para continuar bosque.webp / rabbithole.webp.
   Cobalto profundo como base; #336BB6 solo en hilos y brillos; carmesí en acentos; vino en el cierre. */
:is(#intro,#countdown,#ubicaciones,#regalos,#rsvp,#captura,#secret-key,.wonderland-footer) {
  --tx:#F1F4F6; --ivory:#F1F4F6; --ivory-dim:#C9D8F0; --gold:#BCC9D2; --gold-bright:#F1F4F6;
  color:#F1F4F6;
}
#intro.intro-dedication {background:linear-gradient(180deg,#0A0507 0,#0A1236 110px,#0E1B52);}
#countdown.countdown-cheshire {background:#0E1B52;}
#countdown .countdown-forest-layer {background:#0E1B52;}
#ubicaciones.locations-forest {background:linear-gradient(180deg,#0A0F0D 0,#0A1236 140px,#0E1B52 55%,#040508);}
#regalos.gift-envelope-rain {background:linear-gradient(180deg,#060709 0,#0A1236 140px,#0E1B52);}
#rsvp.section {background:linear-gradient(180deg,#0E1B52,#14257A);}
#captura.captura-momento {background:linear-gradient(180deg,#14257A,#0E1B52);}
#secret-key.secret-key-finale {background:linear-gradient(180deg,#0E1B52,#0A1236);}
.wonderland-footer {background:linear-gradient(180deg,#0A1236 0,#2A0C3A 38%,#5A0A2A 72%,#750019 100%);border-top:0;}
/* Nieblas donantes: fuera las bandas grises; solo un velo del mismo matiz. */
#intro :is(.intro-mist-l,.intro-mist-r),
#rsvp .kc-rsvp-forest-haze,
#captura .captura-haze,
.wonderland-footer .footer-mist,
#regalos .gift-haze,
#ubicaciones .locations-haze {background:none !important;}
#intro .intro-shroom-mist,
#countdown .countdown-mist-layer,
#secret-key .secret-key-haze {background:none !important;}
#ubicaciones.locations-forest::before,
#ubicaciones.locations-forest::after,
#ubicaciones .location-card::after {display:none;}
#intro :is(.intro-shroom-l,.intro-shroom-r),
#rsvp .kc-rsvp-mushroom,
#secret-key .secret-hat-svg {filter:drop-shadow(0 5px 7px rgba(0,0,0,.45));}
/* Hero: bosque sin velo celeste. */
#hero .hero-forest-bg::after {background:none;}
#hero .hero-forest-vignette {background:linear-gradient(180deg,rgba(0,0,0,.12),transparent 38%,rgba(10,5,7,.88) 100%);}
#hero :is(.hero-title,.hero-theme-line,.hero-date) {color:#F1F4F6;}
#hero .hero-kicker {color:#C9D8F0;}
/* Texto claro sobre superficies oscuras. */
:is(#intro,#countdown,#ubicaciones,#regalos,#rsvp,#captura,#secret-key,.wonderland-footer) :is(p,h2,h3,label) {color:#F1F4F6 !important;text-shadow:none !important;}
#ubicaciones .locations-eyebrow,
#rsvp .kc-rsvp-eyebrow {color:#C9D8F0 !important;}
#regalos .gift-title,
#rsvp .kc-rsvp-title,
#ubicaciones .locations-title {color:#F1F4F6 !important;}
/* Countdown: vidrio oscuro. */
#countdown .countdown-unit {background:linear-gradient(150deg,rgba(29,61,157,.5),rgba(10,18,54,.88));border-color:rgba(201,216,240,.38);box-shadow:inset 0 1px 0 rgba(201,216,240,.18);}
#countdown .countdown-value {color:#F1F4F6 !important;-webkit-text-fill-color:#F1F4F6;-webkit-text-stroke:0;text-shadow:none;font-weight:600;}
#countdown .countdown-label {color:#C9D8F0 !important;font-size:.68rem;}
#countdown .cd-lbl-gem {color:#E0657A;}
/* HS-06: el gato es un canvas; el JS lo pasea (fuera los roam CSS del donante). */
#countdown .cheshire-presence {animation:none !important;filter:none;opacity:1;will-change:transform;}
#countdown .cheshire-canvas {display:block;width:clamp(150px,50vw,240px);height:auto;aspect-ratio:360/300;}
@media(min-width:768px){#countdown .cheshire-canvas {width:clamp(210px,24vw,300px);}}
/* Padres: pergamino vertical grande, padres y padrinos dentro; sin sombra, bordes fundidos con el fondo. */
#padres.padres-parchment-section {--padres-text-left:20%;--padres-text-top:15%;--padres-text-width:60%;--padres-text-height:71%;
  padding:0;background:linear-gradient(180deg,#0E1B52 0,#0A0F0D 140px,#0A0F0D);overflow:hidden;}
#padres .padres-parchment-stage {width:min(100%,600px);margin-inline:auto;overflow:hidden;filter:none;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent),linear-gradient(180deg,transparent,#000 7%,#000 93%,transparent);
  -webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent),linear-gradient(180deg,transparent,#000 7%,#000 93%,transparent);mask-composite:intersect;}
#padres .padres-parchment-img {width:128%;max-width:none;margin-left:-14%;}
#padres .padres-parchment-fog {display:none;}
#padres .padres-parchment-text {gap:clamp(6px,1.8vw,10px);}
#padres .padres-eyebrow {color:#4A2A12;font-size:clamp(.62rem,2.3vw,.76rem);text-shadow:none;}
#padres .padres-title {color:#750019;font-size:clamp(2.1rem,8.4vw,2.9rem);margin:0;text-shadow:none;}
#padres .parent-name,
#padres .jimena-godparent-name {color:#2B1A10;font-size:clamp(.92rem,4.1vw,1.15rem);line-height:1.22;margin:0;letter-spacing:0;text-shadow:none;}
#padres .parent-blessing-list {grid-template-columns:1fr;gap:6px;}
#padres .parent-divider.ornament {width:56px;height:1px;background:linear-gradient(90deg,transparent,#750019,transparent);}
#padres .jimena-godparents {display:flex;flex-direction:column;align-items:center;gap:clamp(3px,1vw,6px);}
#padres :is(.padres-ff,.padres-ff-layer) {opacity:.6;}
/* Ubicaciones: columna centrada, cards iguales, hora y botón anclados abajo. */
#ubicaciones .location-card {min-height:0;padding:18px 16px 16px;background:linear-gradient(145deg,rgba(29,61,157,.38),rgba(10,18,54,.9));border-color:rgba(201,216,240,.32);box-shadow:inset 0 1px 0 rgba(201,216,240,.14),0 10px 22px rgba(0,0,0,.35);}
#ubicaciones .location-card :is(.location-name,.location-time,.location-city,.location-type) {color:#F1F4F6 !important;}
#ubicaciones .location-card .location-type {color:#C9D8F0 !important;}
#ubicaciones .location-symbol {color:#C9D8F0;border-color:rgba(201,216,240,.5);background:rgba(10,18,54,.7);box-shadow:none;}
#ubicaciones .location-time {margin-top:auto;padding-top:10px;}
#ubicaciones .location-map-btn {width:100%;max-width:200px;align-self:center;margin-top:12px;}
/* CTAs y formulario. */
#ubicaciones .location-map-btn,
#rsvp .kc-rsvp-submit {background:#9C192D;color:#FFF;border-color:rgba(241,244,246,.85);box-shadow:0 6px 14px rgba(0,0,0,.4);}
#ubicaciones .location-map-btn:hover,
#rsvp .kc-rsvp-submit:hover:not(:disabled) {background:#750019;color:#FFF;}
#rsvp .kc-rsvp-form {background:linear-gradient(145deg,rgba(29,61,157,.4),rgba(10,18,54,.92));border-color:rgba(201,216,240,.32);box-shadow:inset 0 1px 0 rgba(201,216,240,.14),0 14px 30px rgba(0,0,0,.4);}
#rsvp .kc-rsvp-field-group label {color:#C9D8F0 !important;}
#rsvp .kc-rsvp-field-group input,
#rsvp .kc-rsvp-field-group select {background:#D5DEF2;color:#0A1236;border-color:#336BB6;}
#rsvp input::placeholder,
#rsvp .kc-rsvp-field-group input::placeholder {color:#4A5E94 !important;opacity:1;}
#rsvp .mushroom-cap,
#intro .intro-shroom-cap {fill:#9C192D;stroke:#F1F4F6;}
#rsvp .mushroom-stem,
#intro .intro-shroom-stem {fill:#D5DEF2;stroke:#7F8FB8;stroke-width:.8;}
#captura .captura-cta:disabled {background:rgba(201,216,240,.12);color:#C9D8F0;border-color:rgba(201,216,240,.4);}
#musicBtn {--hi-silver-light:#F1F4F6;--hi-silver:#BCC9D2;}
#kc-music-hint-text {color:#F1F4F6;}
#musicBtn.is-playing::after {border-color:rgba(201,216,240,.55);}

/* HS-07 */
/* Ubicaciones: 2 cards en UNA fila a cualquier ancho; marco de plata con esquinas muescadas. */
#ubicaciones{padding-bottom:clamp(90px,24vw,140px);position:relative;}
#ubicaciones .locations-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;width:min(100% - 24px,640px);max-width:none;gap:10px;margin:20px auto 0;}
#ubicaciones .location-card{position:relative;min-width:0;min-height:0;padding:14px 10px 12px;border-radius:12px;}
#ubicaciones .location-card::before{display:block;position:absolute;inset:5px;z-index:-1;border:1px solid rgba(201,216,240,.28);border-radius:0;content:'';pointer-events:none;
  clip-path:polygon(7px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px);
  background:linear-gradient(135deg,transparent 4.6px,rgba(201,216,240,.28) 4.6px,rgba(201,216,240,.28) 5.6px,transparent 5.6px) 0 0/7px 7px no-repeat,
    linear-gradient(225deg,transparent 4.6px,rgba(201,216,240,.28) 4.6px,rgba(201,216,240,.28) 5.6px,transparent 5.6px) 100% 0/7px 7px no-repeat,
    linear-gradient(45deg,transparent 4.6px,rgba(201,216,240,.28) 4.6px,rgba(201,216,240,.28) 5.6px,transparent 5.6px) 0 100%/7px 7px no-repeat,
    linear-gradient(315deg,transparent 4.6px,rgba(201,216,240,.28) 4.6px,rgba(201,216,240,.28) 5.6px,transparent 5.6px) 100% 100%/7px 7px no-repeat;}
#ubicaciones .location-symbol{width:44px;height:44px;margin-bottom:6px;}
#ubicaciones .location-symbol svg{width:28px;height:28px;}
#ubicaciones .location-card :is(.location-type,.location-city){font-size:.62rem;letter-spacing:.16em;text-transform:uppercase;}
#ubicaciones .location-name{min-height:2.3em;min-width:0;margin:6px auto 0;font-size:clamp(.95rem,4vw,1.2rem);line-height:1.15;overflow-wrap:break-word;text-wrap:balance;}
#ubicaciones .location-time{margin-top:auto;padding-top:8px;font-size:.66rem;}
#ubicaciones .location-map-btn{width:100%;max-width:none;min-height:40px;margin-top:10px;padding:6px 4px;font-size:.72rem;letter-spacing:.06em;text-align:center;}
@media(min-width:700px){#ubicaciones .locations-grid{gap:18px;}#ubicaciones .location-card{padding:20px 16px 16px;}#ubicaciones .location-symbol{width:52px;height:52px;}#ubicaciones .location-symbol svg{width:34px;height:34px;}}

/* Dedicatoria: texto entre/encima de los hongos; hongos quedan bajo el texto. */
#intro.intro-dedication{padding:clamp(40px,8vw,64px) 24px clamp(96px,26vw,130px);}
#intro .intro-float{max-width:min(100%,320px);}
#intro .intro-title{max-width:26ch;margin:0 auto;font-family:var(--f-display),serif;font-style:italic;font-weight:500;font-size:clamp(1.05rem,4.6vw,1.4rem);line-height:1.4;letter-spacing:normal;text-transform:none;text-shadow:none;color:#F1F4F6;}

/* Sombrero: levita por partes (la sombra queda en el suelo), destellos orbitando, carta que se despliega. */
#secret-key.secret-key-finale .secret-hat-svg{animation:none;}
#secret-key.secret-key-finale :is(.hat-brim,.hat-brim-edge,.hat-crown,.hat-crown-shade,.hat-ribbon,.hat-ticket,.hat-ticket-text,.hat-stitch,.hat-glow,.hat-brim-dot){transform-box:view-box;transform-origin:55px 95px;animation:jimenaHatLevitate 4.8s ease-in-out infinite;}
#secret-key.secret-key-finale .hat-glow{animation:jimenaHatLevitate 4.8s ease-in-out infinite,hatGlowPulse 4.2s ease-in-out infinite;}
#secret-key.secret-key-finale .hat-shadow{transform-box:fill-box;transform-origin:center;fill:rgba(0,0,0,.5);animation:jimenaHatShadow 4.8s ease-in-out infinite;}
#secret-key.secret-key-finale.is-open :is(.hat-brim,.hat-brim-edge,.hat-crown,.hat-crown-shade,.hat-ribbon,.hat-ticket,.hat-ticket-text,.hat-stitch,.hat-glow,.hat-brim-dot){animation:none;transform:translateY(-26px) rotate(-8deg);transition:transform .5s cubic-bezier(.2,.9,.3,1.3);}
#secret-key.secret-key-finale .secret-key-trigger{position:relative;color:#C9D8F0;}
#secret-key.secret-key-finale .secret-key-trigger::before,
#secret-key.secret-key-finale .secret-key-trigger::after{content:'';position:absolute;inset:-4px 4px;pointer-events:none;}
#secret-key.secret-key-finale .secret-key-trigger::before{background:radial-gradient(circle 2.5px at 14% 30%,#C9D8F0 60%,transparent 100%),radial-gradient(circle 2px at 88% 62%,#E0657A 60%,transparent 100%);animation:jimenaOrbit 14s linear infinite,jimenaTwinkle 2.6s ease-in-out infinite;}
#secret-key.secret-key-finale .secret-key-trigger::after{background:radial-gradient(circle 2px at 78% 18%,#E0657A 60%,transparent 100%),radial-gradient(circle 2.5px at 22% 78%,#C9D8F0 60%,transparent 100%);animation:jimenaOrbit 19s linear infinite reverse,jimenaTwinkle 3.4s ease-in-out -1.2s infinite;}
#secret-key.secret-key-finale .secret-key-hint{color:#C9D8F0;animation:jimenaBreath 3s ease-in-out infinite;}
@keyframes jimenaHatLevitate{0%,100%{transform:translateY(0) rotate(-1.5deg);}50%{transform:translateY(-12px) rotate(1.5deg);}}
@keyframes jimenaHatShadow{0%,100%{transform:scale(1);opacity:.5;}50%{transform:scale(.7);opacity:.25;}}
@keyframes jimenaOrbit{to{transform:rotate(360deg);}}
@keyframes jimenaTwinkle{0%,100%{opacity:.35;}50%{opacity:1;}}
@keyframes jimenaBreath{0%,100%{opacity:.55;}50%{opacity:1;}}
@keyframes jimenaCardUnfold{from{clip-path:inset(0 0 100% 0);transform:translateY(-14px);opacity:0;}to{clip-path:inset(0);transform:none;opacity:1;}}
@keyframes jimenaCardFade{from{opacity:0;}to{opacity:1;}}
/* Carta: papel cobalto con doble marco, esquinas rizadas y sello de cera. */
#secret-key.secret-key-finale .secret-key-card{position:relative;width:min(100%,340px);margin-inline:auto;padding:30px 24px 24px;border:1px solid rgba(201,216,240,.4);border-radius:6px;background:linear-gradient(160deg,#14257A,#0A1236);box-shadow:0 18px 34px rgba(0,0,0,.5),inset 0 1px 0 rgba(201,216,240,.14);color:#F1F4F6;}
#secret-key.secret-key-finale .secret-key-card:not([hidden]){animation:jimenaCardUnfold .65s cubic-bezier(.2,.8,.2,1) both;}
#secret-key.secret-key-finale .secret-key-card::before{inset:7px;border:1px solid rgba(201,216,240,.22);border-radius:3px;}
#secret-key.secret-key-finale .secret-key-card::after{content:'';position:absolute;inset:9px;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C9D8F0' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M2 14C2 6 6 2 14 2M5 9C7 9 9 7 9 5'/%3E%3C/svg%3E") 0 0/18px 18px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C9D8F0' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M14 14C14 6 10 2 2 2M11 9C9 9 7 7 7 5'/%3E%3C/svg%3E") 100% 0/18px 18px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C9D8F0' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M2 2C2 10 6 14 14 14M5 7C7 7 9 9 9 11'/%3E%3C/svg%3E") 0 100%/18px 18px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C9D8F0' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M14 2C14 10 10 14 2 14M11 7C9 7 7 9 7 11'/%3E%3C/svg%3E") 100% 100%/18px 18px no-repeat;}
#secret-key.secret-key-finale .secret-key-eyebrow{color:#E0657A !important;font-size:.62rem;letter-spacing:.24em;}
#secret-key.secret-key-finale .secret-key-eyebrow::before,
#secret-key.secret-key-finale .secret-key-eyebrow::after{content:'◆';margin:0 .6em;font-size:.55rem;}
#secret-key.secret-key-finale .secret-key-title{font-family:'KC Alice',var(--f-display),serif;color:#F1F4F6 !important;font-weight:400;}
#secret-key.secret-key-finale .secret-key-message{max-width:30ch;margin:14px auto 0;color:#F1F4F6;font-size:1rem;line-height:1.65;}
#secret-key.secret-key-finale .secret-key-close{min-height:44px;margin-top:18px;padding:8px 22px;color:#C9D8F0;border:1px solid rgba(201,216,240,.55);border-radius:999px;background:transparent;}
#secret-key.secret-key-finale .secret-key-close:hover{background:rgba(201,216,240,.1);}
@media (prefers-reduced-motion:reduce){
  #secret-key.secret-key-finale :is(.hat-brim,.hat-brim-edge,.hat-crown,.hat-crown-shade,.hat-ribbon,.hat-ticket,.hat-ticket-text,.hat-stitch,.hat-glow,.hat-brim-dot,.hat-shadow,.secret-key-hint),
#secret-key.secret-key-finale .secret-key-trigger::before,
#secret-key.secret-key-finale .secret-key-trigger::after{animation:none;}
  #secret-key.secret-key-finale .secret-key-card:not([hidden]){animation:jimenaCardFade .4s ease both;}
}

/* HS-07 · props dibujados en código (art/src/wonder-props.ts): decoran, nunca tapan texto ni toques. */
#ubicaciones .location-card{isolation:isolate;overflow:visible;}
#ubicaciones .locations-grid{margin-top:44px;}
.hs-prop{position:absolute;display:block;height:auto;pointer-events:none;z-index:0;}
#ubicaciones .hs-prop-corner{width:62px;top:-41px;right:-4px;z-index:2;}
#ubicaciones .location-card-reception .hs-prop-corner{right:auto;left:-4px;transform:scaleX(-1);}
#ubicaciones.locations-forest .hs-prop-ground{position:absolute;left:50%;bottom:0;width:min(100%,640px);transform:translateX(-50%);transform-origin:50% 100%;animation:hsSway 7s ease-in-out infinite;}
#captura.captura-momento{position:relative;}
#captura .captura-copy,
#captura .captura-camera-wrap{position:relative;z-index:1;}
#captura .hs-prop-cards{left:-14px;bottom:8px;width:clamp(120px,34vw,200px);opacity:.6;transform:rotate(-6deg);}
#captura .hs-prop-teacup{right:-8px;bottom:14px;width:clamp(100px,28vw,170px);opacity:.6;}
#secret-key .secret-key-stage{z-index:1;}
#secret-key .hs-prop-key{width:clamp(80px,22vw,130px);opacity:.5;animation:hsDrift 11s ease-in-out infinite;}
#secret-key .hs-prop-key-a{top:12%;left:4%;--r:-24deg;}
#secret-key .hs-prop-key-b{bottom:14%;right:3%;--r:160deg;animation-delay:-5s;}
#secret-key .hs-prop-petals{width:clamp(60px,16vw,96px);opacity:.75;animation:hsDrift 9s ease-in-out infinite;}
#secret-key .hs-prop-petals-a{top:8%;right:10%;--r:0deg;animation-delay:-2s;}
#secret-key .hs-prop-petals-b{bottom:8%;left:12%;--r:90deg;animation-delay:-6s;}
#secret-key .hs-prop-hatground{left:50%;bottom:-6px;width:200px;transform:translateX(-50%);opacity:.9;}
#secret-key.is-open .hs-prop-hatground{opacity:0;transition:opacity .3s;}
.wonderland-footer{position:relative;}
.wonderland-footer .hs-prop-edge{left:0;top:0;width:100%;}
/* El sombrero se queda a la vista al abrir: salta, y la carta sale de debajo (el donante lo ocultaba). */
#secret-key.secret-key-finale.is-open .secret-key-trigger{position:relative;opacity:1;transform:scale(.72);margin-bottom:-22px;pointer-events:none;}
#secret-key.secret-key-finale.is-open .secret-key-hint{opacity:0;animation:none;}
@keyframes hsSway{0%,100%{transform:translateX(-50%) rotate(-.6deg);}50%{transform:translateX(-50%) rotate(.6deg);}}
@keyframes hsDrift{0%,100%{transform:translateY(0) rotate(var(--r,0deg));}50%{transform:translateY(-10px) rotate(calc(var(--r,0deg) + 6deg));}}
@media (prefers-reduced-motion:reduce){.hs-prop{animation:none !important;}}

/* HS-08 · ajustes de revisión del CEO. */
/* Dedicatoria: columna ancha, nada de espagueti. */
#intro.intro-dedication{padding-inline:18px;}
#intro .intro-float{display:block;max-width:min(92vw,560px);margin:0 auto;}
#intro .intro-title{max-width:34ch;font-size:clamp(1.15rem,5vw,1.55rem);text-align:center;margin-bottom:0;}
/* Padres: tinta que se lee sobre el pergamino + divisor de enredadera. */
#padres.padres-parchment-section{--padres-text-top:13%;--padres-text-height:74%;}
#padres .padres-parchment-text{justify-content:space-evenly;}
#padres :is(.padres-eyebrow,.padres-title,.parent-name,.jimena-godparent-name){text-shadow:0 1px 2px rgba(40,20,8,.35);}
#padres .padres-eyebrow{color:#6A0F22;font-weight:600;font-size:clamp(.72rem,2.8vw,.86rem);letter-spacing:.14em;}
#padres :is(.parent-name,.jimena-godparent-name){color:#1A0C05;font-weight:600;font-size:clamp(1.02rem,4.6vw,1.28rem);}
#padres .parent-blessing-list{gap:10px;}
#padres .jimena-flourish{display:block;width:clamp(120px,40vw,160px);height:auto;margin:clamp(8px,2.6vw,16px) auto;fill:none;stroke:#5A3A1E;stroke-width:1.3;stroke-linecap:round;}
#padres .jimena-flourish-gem{fill:#750019;stroke:#4A2A12;stroke-width:.8;}
/* Ubicaciones: el suelo de hongos ES el borde; el itinerario arranca justo debajo. */
#ubicaciones{padding-bottom:clamp(64px,calc(min(100vw,640px) * .25),160px);}
#itinerario.itinerary-rabbit-hole{padding-top:clamp(18px,5vw,40px);}
/* Regalos: sobres y cajas envueltas al pie, sin hueco. */
#regalos.gift-envelope-rain{min-height:0;padding-bottom:clamp(84px,calc(min(100vw,600px) * .25 + 8px),160px);}
#regalos .hs-prop-gifts{left:50%;bottom:0;width:min(100%,600px);transform:translateX(-50%);}
/* Footer: la silueta con el conejo va hasta abajo. */
.wonderland-footer{padding-bottom:clamp(72px,calc(100vw * .15 + 14px),110px);}
.wonderland-footer .hs-prop-edge{top:auto;bottom:0;}

/* HS-09 · títulos con el azul de la línea del itinerario (#A9C8E2, centro de su degradado); textos chicos en el tono más tenue. */
:is(#intro,#countdown,#ubicaciones,#itinerario,#regalos,#rsvp,#captura,#secret-key) :is(h2,.intro-title,.location-name,.itinerary-label,.countdown-kicker){color:#A9C8E2 !important;-webkit-text-fill-color:#A9C8E2;text-shadow:0 0 12px rgba(169,200,226,.35) !important;}
:is(#intro,#ubicaciones,#itinerario,#regalos,#rsvp,#captura,#secret-key) :is(.locations-eyebrow,.itinerary-eyebrow,.gift-eyebrow,.kc-rsvp-eyebrow,.location-type,.location-city){color:#C9D8F0 !important;}

/* HS-11 · Revisión de la Darling: azul más claro y vivo, pintado a la acuarela (tapiz.js).
   Para recolorear el tapiz basta cambiar estos hex; el canvas los lee al pintar. */
:root{
  --tapiz-base:#22427F; --tapiz-base-2:#274A8B;
  --tapiz-deep:#132A63; --tapiz-wash:#2C5394; --tapiz-light:#7FA3D6; --tapiz-teal:#2A6A9C; --tapiz-violet:#4A4796;
  --tapiz-glow:#F4DDB0; --tapiz-line:#0B1C4D; --tapiz-accent:#9C192D; --tapiz-fleck:#E6EEF8;
}
[data-tapiz]{isolation:isolate;}
/* !important: #rsvp y .locations-forest vuelven relative a todos sus hijos; en flujo el canvas crecería sin fin. */
[data-tapiz] > .hs-tapiz{position:absolute !important;inset:0 !important;z-index:-1 !important;display:block;width:100% !important;height:100% !important;margin:0 !important;pointer-events:none;}
#intro.intro-dedication{background:linear-gradient(180deg,#0A0507 0,var(--tapiz-deep) 110px,var(--tapiz-base) 260px);}
#countdown.countdown-cheshire{background:var(--tapiz-base);}
#countdown .countdown-forest-layer{background:none;}
#padres.padres-parchment-section{background:linear-gradient(180deg,var(--tapiz-base) 0,#0A0F0D 140px,#0A0F0D);}
#ubicaciones.locations-forest{background:linear-gradient(180deg,#0A0F0D 0,var(--tapiz-deep) 140px,var(--tapiz-base) 55%,#040508);}
#dresscode.dress-wardrobe{background:linear-gradient(180deg,#060709 0,var(--tapiz-deep) 140px,var(--tapiz-base));}
#regalos.gift-envelope-rain{background:var(--tapiz-base);}
#rsvp.section{background:linear-gradient(180deg,var(--tapiz-base),var(--tapiz-base-2));}
#captura.captura-momento{background:linear-gradient(180deg,var(--tapiz-base-2),var(--tapiz-base));}
#secret-key.secret-key-finale{background:linear-gradient(180deg,var(--tapiz-base),var(--tapiz-deep));}
.wonderland-footer{background:linear-gradient(180deg,var(--tapiz-deep) 0,#2A0C3A 38%,#5A0A2A 72%,#750019 100%);}
/* Fotos de fondo: sin brillo; sombra focal neutra (negro tibio), nunca velo azul. */
#hero .hero-forest-vignette{background:radial-gradient(ellipse 78% 62% at 50% 42%,transparent 38%,rgba(12,7,3,.5) 100%),linear-gradient(180deg,rgba(12,7,3,.22),transparent 26%,transparent 52%,rgba(10,5,3,.9) 100%);}
#itinerario.itinerary-rabbit-hole .itinerary-hole-bg{filter:none;}
/* Dedicatoria completa: el remate de la invitación vuelve debajo del título, mismo aire. */
#intro .intro-text{max-width:34ch;margin:0 auto;font-family:var(--f-display),serif;font-style:italic;font-weight:500;font-size:clamp(1.05rem,4.5vw,1.4rem);line-height:1.5;text-align:center;}
#intro .intro-text::before{content:'';display:block;width:56px;height:1px;margin:.9em auto;background:linear-gradient(90deg,transparent,#A9C8E2,transparent);}
/* Mensaje secreto: firma a mano de Azula. */
#secret-key.secret-key-finale .secret-key-signature{margin:6px 0 0;font-family:'Pinyon Script',cursive;font-size:1.7rem;line-height:1.2;color:#C9D8F0 !important;}
/* Dress code: colores reservados con sus muestras. */
#dresscode .dress-swatches{display:flex;gap:10px;justify-content:flex-start;margin-top:10px;}
#dresscode .dress-swatch{width:22px;height:22px;border-radius:50%;border:1.5px solid #F1F4F6;box-shadow:0 2px 6px rgba(0,0,0,.35);}
#dresscode .dress-swatch-sky{background:#9CC8EC;}
#dresscode .dress-swatch-red{background:#C4182F;}
/* Dress code en la paleta de la casa (el donante venía en oro y vidrio negro). */
#dresscode.dress-wardrobe .dress-eyebrow{color:#C9D8F0;}
#dresscode.dress-wardrobe .dress-title{color:#A9C8E2;text-shadow:0 0 12px rgba(169,200,226,.35);}
#dresscode.dress-wardrobe .dress-subtitle{font-family:var(--f-display),serif;font-style:italic;font-size:1.08rem;color:#F1F4F6;}
#dresscode.dress-wardrobe .dress-note{color:#C9D8F0;}
#dresscode.dress-wardrobe .dress-rule{padding:14px 14px 14px 48px;border-color:rgba(201,216,240,.34);box-shadow:inset 0 1px 0 rgba(201,216,240,.14),0 12px 24px rgba(4,10,30,.4);}
#dresscode.dress-wardrobe .dress-rule-formal{background:linear-gradient(145deg,rgba(44,83,148,.6),rgba(14,30,80,.92));}
#dresscode.dress-wardrobe .dress-rule-red{border-color:rgba(224,101,122,.45);background:linear-gradient(145deg,rgba(156,25,45,.5),rgba(18,28,74,.94));}
#dresscode.dress-wardrobe .dress-rule::before{background:linear-gradient(180deg,#F1F4F6,#9FB6DA);box-shadow:8px 0 17px rgba(169,200,226,.16);}
#dresscode.dress-wardrobe .dress-rule-red::before{background:linear-gradient(180deg,#E0657A,#750019);}
#dresscode.dress-wardrobe .dress-rule-sigil{color:#C9D8F0;}
#dresscode.dress-wardrobe .dress-rule-red .dress-rule-sigil{color:#F3B4BF;}
#dresscode.dress-wardrobe .dress-rule-kicker{color:#C9D8F0;letter-spacing:.16em;}
#dresscode.dress-wardrobe .dress-rule-red .dress-rule-kicker{color:#F3C2CA;}
#dresscode.dress-wardrobe .dress-rule-title{color:#F1F4F6;}
/* Carmesí claro con 4.5:1 sobre el vidrio navy (eyebrow del mensaje y gemas del countdown). */
#secret-key.secret-key-finale .secret-key-eyebrow{color:#EC8496 !important;}
#countdown .cd-lbl-gem{color:#EC8496;}

/* HS-11 R2 · ajustes del CEO. */
/* Dedicatoria: baja y respira bajo el hero. */
#intro.intro-dedication{padding-top:clamp(84px,20vw,128px);}
/* Pergamino: tinta sepia densa con halo de papel (la sombra oscura la ensuciaba). */
#padres :is(.parent-name,.jimena-godparent-name){color:#120802;font-weight:700;text-shadow:0 0 6px rgba(244,225,190,.6),0 0 1px rgba(244,225,190,.8);}
#padres .padres-eyebrow{color:#5A0A1C;font-weight:700;text-shadow:0 0 6px rgba(244,225,190,.6);}
#padres .padres-title{color:#6A0016;font-weight:600;text-shadow:0 0 8px rgba(244,225,190,.55);}
/* Dress code: foto completa que se funde en un piso de tapiz; las reglas pisan solo el ajedrezado. */
#dresscode.dress-wardrobe .dress-editorial{grid-template-columns:1fr;max-width:520px;}
#dresscode.dress-wardrobe .dress-content{display:contents;}
#dresscode.dress-wardrobe .dress-visual-wrap{grid-area:1/1;padding-bottom:96px;}
#dresscode.dress-wardrobe .dress-mist-frame{aspect-ratio:auto;border-radius:0;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 9%,#000 80%,transparent),linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  -webkit-mask-composite:source-in;mask-image:linear-gradient(180deg,transparent,#000 9%,#000 80%,transparent),linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-composite:intersect;}
#dresscode.dress-wardrobe .dress-hero-img{height:auto;aspect-ratio:900/1193;border-radius:0;}
#dresscode.dress-wardrobe :is(.dress-mist-top,.dress-mist-left,.dress-mist-right,.dress-mist-bottom){display:none;}
#dresscode.dress-wardrobe .dress-mist-vignette{background:radial-gradient(ellipse 85% 75% at 50% 40%,transparent 55%,rgba(10,6,4,.4) 100%);}
#dresscode.dress-wardrobe .dress-rules{grid-area:1/1;align-self:end;justify-self:center;position:relative;z-index:4;width:calc(100% - 28px);max-width:420px;margin:0;}
#dresscode.dress-wardrobe .dress-rule{min-height:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);}
#dresscode.dress-wardrobe .dress-rule-formal{background:linear-gradient(145deg,rgba(44,83,148,.55),rgba(14,30,80,.82));}
#dresscode.dress-wardrobe .dress-rule-red{padding-right:76px;background:linear-gradient(145deg,rgba(156,25,45,.5),rgba(18,28,74,.86));}
#dresscode.dress-wardrobe .dress-rule-red .dress-swatches{position:absolute;right:16px;top:50%;margin:0;transform:translateY(-50%);}
#dresscode.dress-wardrobe .dress-rule-red .dress-ribbon{display:none;}
#dresscode.dress-wardrobe .dress-note{grid-area:2/1;margin-top:18px;}
/* Regalos pegados al texto y sin hueco antes del RSVP. */
#regalos.gift-envelope-rain{padding-bottom:clamp(78px,calc(min(100vw,600px) * .25 - 2px),150px);}
#regalos .gift-header{margin-bottom:12px;}
#rsvp.section{padding-top:clamp(36px,8vw,64px);}

/* HS-12 · Follow the White Rabbit — un instante robado al tiempo.
   El bosque se detiene a media respiración; lo único vivo es el reloj, que late y pide el toque.
   Reloj en f03 (941×1672): centro 570,826 px → 60.6% 49.4%, ⌀ ≈ 225 px (24%). Luz fría de plata: nada dorado. */
#gate{--awr-clock-left:60.6%;--awr-clock-top:49.4%;--gate-watch-hit:30%;--gate-watch-size:24%;--gate-light:238,244,250;}
/* Encuadre: rostro y reloj caben en 360–390 px; en desktop la columna 9:16 completa. */
#gate .gate-rabbit-frame{left:55vw;transform:translateX(-55%);}
@media (min-width:768px){#gate .gate-rabbit-frame{top:0;left:50%;transform:translateX(-50%);height:100vh;width:calc(100vh * 941 / 1672);}}
/* Capas: intro 2 · still 3 · break 4 · spotlight 6 · polvo 7 · aura 8 · destello 9 · toque 10. */
#gate .gate-hold{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:3;opacity:0;pointer-events:none;user-select:none;transition:opacity .45s ease;transform-origin:var(--awr-clock-left) var(--awr-clock-top);}
#gate.is-hold .gate-hold{opacity:1;animation:hsBreath 7s ease-in-out 1s infinite alternate;}
#gate .gate-break-video{z-index:4;}
#gate .gate-motes{position:absolute;inset:0;width:100%;height:100%;z-index:7;pointer-events:none;opacity:0;transition:opacity 1.6s ease .3s;}
#gate.is-hold .gate-motes{opacity:1;}
#gate.is-activated .gate-motes{opacity:0;transition:opacity .6s ease;}
/* Spotlight: la luz se cierra sobre el reloj y el bosque se apaga en tinta navy. */
#gate .gate-spotlight{z-index:6;background:radial-gradient(ellipse 46% 30% at var(--awr-clock-left) var(--awr-clock-top),transparent 0%,transparent 36%,rgba(5,9,26,.44) 68%,rgba(5,9,26,.86) 100%);}
#gate:not(.is-hold) .gate-spotlight{animation:none;opacity:0;}
#gate.is-hold .gate-spotlight{animation:hsSpotIn 1.2s var(--ease-silk) both,jimena-spotBreath 4s ease-in-out 1.2s infinite;}
#gate.is-hold.is-activated .gate-spotlight{animation:hsFadeOut .8s ease both;}
/* El reloj: un tic por segundo (anillo), su latido (halo) y un brillo que cruza el cristal. */
#gate .gate-watch-aura{position:absolute;left:var(--awr-clock-left);top:var(--awr-clock-top);width:var(--gate-watch-size);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;z-index:8;pointer-events:none;opacity:0;
  background:linear-gradient(115deg,transparent 45%,rgba(255,255,255,.5) 50%,transparent 55%) 150% 0/300% 100% no-repeat;}
#gate .gate-watch-aura::before,#gate .gate-watch-aura::after{content:'';position:absolute;inset:0;border-radius:50%;}
#gate .gate-watch-aura::before{border:2px solid rgba(255,255,255,.85);box-shadow:0 0 14px 2px rgba(var(--gate-light),.55),inset 0 0 10px rgba(var(--gate-light),.35);animation:hsTick 1s cubic-bezier(.2,.65,.3,1) infinite;}
#gate .gate-watch-aura::after{inset:-12%;background:radial-gradient(circle,transparent 46%,rgba(var(--gate-light),.4) 57%,transparent 71%);animation:hsBeat 1s ease-out infinite;}
#gate.is-hold .gate-watch-aura{animation:hsFadeIn .8s ease 1.2s both,hsGlint 4.2s ease-in-out 2.2s infinite;}
#gate.is-hold.is-activated .gate-watch-aura{animation:hsPress .45s ease-out both;}
/* TIC: el toque enciende el reloj y la luz sostiene hasta que el break tiene frames; tapa la costura. */
#gate .gate-rabbit-frame::after{content:'';position:absolute;inset:0;z-index:9;pointer-events:none;opacity:0;
  background:radial-gradient(circle at var(--awr-clock-left) var(--awr-clock-top),#FFFDF8 0%,rgba(250,248,242,.97) 46%,rgba(var(--gate-light),.82) 100%);}
#gate.is-activated .gate-rabbit-frame::after{animation:hsTicIn .14s ease-out both;}
#gate.is-activated.is-ticking .gate-rabbit-frame::after{animation:hsTicOut .6s cubic-bezier(.55,0,.75,.4) both;}
/* Toque y CTA solo existen en el instante congelado. */
#gate .gate-clock-touch-target{width:var(--gate-watch-hit);z-index:10;}
#gate:not(.is-hold) .gate-clock-touch-target{pointer-events:none;}
#gate:not(.is-hold) .gate-instruction{animation:none;opacity:0;}
#gate.is-hold .gate-instruction{animation:hsCtaIn .9s ease 1.3s both,jimena-flicker 5s ease-in-out 2.2s infinite;}
#gate.is-hold .gate-instruction.pulse-strong{animation:jimena-flickerStrong 2.5s ease-in-out infinite;}
#gate.is-hold.is-activated .gate-instruction{animation:hsFadeOut .35s ease both;}
/* Salida: disolución hacia la luz, no la implosión oscura de antes. */
#gate.kc-gate.is-exiting{opacity:0;transform:scale(1.03);filter:none;}
@keyframes hsBreath{to{transform:scale(1.012);}}

@keyframes hsSpotIn{from{opacity:0;}to{opacity:.85;}}
@keyframes hsFadeIn{from{opacity:0;}to{opacity:1;}}
@keyframes hsFadeOut{to{opacity:0;}}
@keyframes hsCtaIn{from{opacity:0;}to{opacity:.6;}}
@keyframes hsTick{from{transform:scale(1);opacity:.95;}to{transform:scale(1.7);opacity:0;}}
@keyframes hsBeat{0%{opacity:1;}30%{opacity:.45;}100%{opacity:.25;}}
@keyframes hsGlint{0%{background-position:150% 0;}35%,100%{background-position:-50% 0;}}
@keyframes hsPress{from{opacity:1;transform:translate(-50%,-50%) scale(1);}to{opacity:0;transform:translate(-50%,-50%) scale(1.6);}}
@keyframes hsTicIn{from{opacity:0;}to{opacity:.96;}}
@keyframes hsTicOut{from{opacity:.96;}to{opacity:0;}}
@media (prefers-reduced-motion:reduce){
  #gate.is-hold .gate-hold,#gate .gate-watch-aura::before,#gate .gate-watch-aura::after{animation:none;}
  #gate.is-hold .gate-watch-aura{animation:none;opacity:1;}
  #gate.is-hold .gate-spotlight{animation:none;opacity:.9;}
  #gate.is-hold .gate-instruction{animation:none;opacity:.9;}
}

/* HS-13 · Padres sobre el pergamino nuevo (pergahong.webp 729×1220, vertical, bosque nocturno).
   Recorte por CSS para que sobreviva si la foto se vuelve a editar: ventana x .075–.925, y .13–.895. */
#padres.padres-parchment-section{--padres-text-left:16.5%;--padres-text-width:67%;--padres-text-top:15.5%;--padres-text-height:68%;}
#padres .padres-parchment-stage{width:min(100%,600px);aspect-ratio:619.65/933.3;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent),linear-gradient(180deg,transparent,#000 4%,#000 96%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent),linear-gradient(180deg,transparent,#000 4%,#000 96%,transparent);}
#padres .padres-parchment-img{width:calc(100% / .85);margin-left:calc(-.075 / .85 * 100%);margin-top:calc(-.13 * 1220 / 729 / .85 * 100%);}
/* Tinta, no letras encima: multiply deja que el grano del papel atraviese el trazo. Nada claro. */
#padres .padres-parchment-text{justify-content:center;gap:clamp(12px,4.6vw,22px);mix-blend-mode:multiply;}
#padres :is(.padres-eyebrow,.padres-title,.parent-name,.jimena-godparent-name){text-shadow:0 0 1px rgba(33,17,10,.35);}
#padres .padres-eyebrow{color:#5B2410;font-size:clamp(.7rem,3.1vw,.84rem);}
#padres .padres-title{color:#6E0F1A;line-height:1;font-size:clamp(2.2rem,10.2vw,2.9rem);}
#padres .parent-blessing-list{gap:14px;}
#padres .jimena-godparents{gap:clamp(6px,2.3vw,11px);}
#padres :is(.parent-name,.jimena-godparent-name){color:#21110A;font-weight:600;line-height:1.18;text-wrap:balance;}
#padres .parent-divider.ornament{background:linear-gradient(90deg,transparent,#6E0F1A,transparent);}
#padres .jimena-flourish{stroke:#4A2A14;margin:clamp(8px,3vw,14px) auto;}
#padres .jimena-flourish-gem{fill:#6E0F1A;stroke:#3A1E0E;}

/* HS-13 · Footer: cielo rojo a la acuarela con el mismo pincel del tapiz (data-tapiz="neblina").
   Arriba nace del #132A63 con que termina #secret-key; abajo, horizonte encendido tras el pasto. */
.wonderland-footer{--tapiz-deep:#3A0A1E;--tapiz-violet:#4A1546;--tapiz-wash:#8E1A2C;--tapiz-teal:#6A1030;--tapiz-light:#E08A8A;--tapiz-glow:#F6C7A0;--tapiz-line:#2A0410;--tapiz-fleck:#F8E4E6;--tapiz-accent:#E0657A;
  background:linear-gradient(180deg,#132A63 0,#2A0C3A 30%,#5A0A2A 60%,#7E1024 84%,#9E2232 100%);}

/* HS-13 · Entrada al Hero: la luz del reloj no muere, aterriza en el bosque y se vuelve Azula.
   main.js pone --arrive-x/y en el centro de la silueta y .is-arriving al disolver el gate. Luz fría: nada dorado. */
#hero.hero-forest::before{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;opacity:0;
  background:radial-gradient(circle at var(--arrive-x,50%) var(--arrive-y,40%),rgba(255,253,248,.98) 0,rgba(236,244,250,.62) 9%,rgba(206,224,242,.22) 24%,transparent 48%);
  transform-origin:var(--arrive-x,50%) var(--arrive-y,40%);}
#hero.is-arriving::before{animation:hsArrive 2.8s cubic-bezier(.3,.1,.2,1) both;}
#hero.is-arriving .hero-forest-bg{transform-origin:50% 42%;animation:hsLand 6.5s cubic-bezier(.2,.65,.25,1) both;}
#hero .hero-fireflies{transform-origin:var(--arrive-x,50%) var(--arrive-y,40%);transform:scale(.12);transition:opacity 1.2s ease,transform 2.6s cubic-bezier(.16,1,.3,1);}
#hero .hero-fireflies.in{transform:scale(1);}
#hero .hero-silhouette-stage.in{animation:hsBorn 1.7s cubic-bezier(.2,.7,.2,1) both;}
#hero .hero-title.in{animation:hsCrystal 1.5s cubic-bezier(.2,.7,.2,1) both;}
#hero .hero-kicker.in{animation:hsCrystal 1.3s cubic-bezier(.2,.7,.2,1) both,jimena-kickerShimmer 4s ease-in-out 2s infinite;}
@keyframes hsArrive{0%{opacity:1;transform:scale(3.2);}42%{opacity:.95;transform:scale(.5);}55%{opacity:1;transform:scale(.62);}100%{opacity:0;transform:scale(1.5);}}
@keyframes hsLand{from{transform:scale(1.12);filter:brightness(1.45) saturate(.85);}to{transform:none;filter:none;}}
@keyframes hsBorn{from{opacity:0;transform:scale(.86);clip-path:circle(6% at 50% 50%);filter:blur(8px) drop-shadow(0 0 26px rgba(255,255,255,.95));}
  55%{opacity:1;filter:blur(1.5px) drop-shadow(0 0 18px rgba(236,244,250,.7));}
  to{opacity:1;transform:scale(1);clip-path:circle(150% at 50% 50%);filter:blur(0) drop-shadow(0 0 0 rgba(236,244,250,0));}}
@keyframes hsCrystal{from{opacity:0;filter:blur(10px);transform:scale(1.06);text-shadow:0 0 28px rgba(255,255,255,.95),0 0 8px rgba(236,244,250,.8);}to{opacity:1;filter:blur(0);transform:none;}}
@media (prefers-reduced-motion:reduce){
  #hero.is-arriving::before,#hero.is-arriving .hero-forest-bg,#hero .hero-silhouette-stage.in,#hero .hero-title.in,#hero .hero-kicker.in{animation:none !important;}
  #hero .hero-fireflies{transform:none;}
}

/* HS-15 · Gate: la firma de la casa al pie, el "Toca el reloj" sube y por fin se lee.
   Ambos viven dentro de #gate: se van con su disolución al Hero. Navy de halo, nunca oro. */
#gate .gate-kcs{position:absolute;left:50%;bottom:clamp(28px,8vh,60px);transform:translateX(-50%);z-index:10;margin:0;display:flex;align-items:center;gap:.9em;white-space:nowrap;
  font-family:'Cinzel',serif;font-size:.7rem;font-weight:600;letter-spacing:.32em;text-transform:uppercase;color:rgba(244,247,250,.92);
  text-shadow:0 1px 2px rgba(7,10,47,.95),0 0 12px rgba(7,10,47,.85);pointer-events:none;animation:hsFadeIn 1.6s ease .4s both;}
#gate .gate-kcs-name{margin-right:-.32em;}
#gate .gate-kcs-line{width:26px;height:1px;background:linear-gradient(90deg,transparent,rgba(244,247,250,.75));box-shadow:0 0 6px rgba(7,10,47,.8);}
#gate .gate-kcs-line:last-child{background:linear-gradient(90deg,rgba(244,247,250,.75),transparent);}
#gate .gate-instruction{bottom:calc(clamp(28px,8vh,60px) + 46px);font-size:.84rem;letter-spacing:.34em;padding:.5em 1.1em .5em 1.44em;color:#F4F7FA;
  text-shadow:0 1px 2px rgba(7,10,47,.95),0 0 10px rgba(7,10,47,.85),0 0 26px rgba(169,200,226,.5);}
#gate .gate-instruction::before{content:'';position:absolute;inset:-70% -16%;z-index:-1;pointer-events:none;background:radial-gradient(closest-side,rgba(7,10,47,.6),rgba(7,10,47,0));}
/* Aparece justo cuando el reloj entra en su loop; antes no hay nada que tocar. */
#gate.is-hold .gate-instruction{animation:hsCtaRise .6s ease .25s both,hsCtaBreathe 3.2s ease-in-out .85s infinite;}
#gate.is-hold .gate-instruction.pulse-strong{animation:hsCtaBreathe 1.8s ease-in-out infinite;}
@keyframes hsCtaRise{from{opacity:0;transform:translateX(-50%) translateY(6px);}to{opacity:1;transform:translateX(-50%);}}
@keyframes hsCtaBreathe{0%,100%{opacity:1;}50%{opacity:.8;}}

/* HS-15 · Hero: tema y fecha legibles, "Mis XV Años" con más presencia (halo navy debajo, brillo cielo encima). */
#hero .hero-kicker{font-size:clamp(1.5rem,6.4vw,2rem);color:#E6EEFA;}
#hero .hero-kicker.in{animation:hsCrystal 1.3s cubic-bezier(.2,.7,.2,1) both,hsKickerGlow 4s ease-in-out 2s infinite;
  text-shadow:0 1px 2px rgba(7,10,47,.9),0 0 14px rgba(7,10,47,.65),0 0 30px rgba(201,216,240,.5);}
@keyframes hsKickerGlow{0%,100%{text-shadow:0 1px 2px rgba(7,10,47,.9),0 0 14px rgba(7,10,47,.65),0 0 30px rgba(201,216,240,.45);}
  50%{text-shadow:0 1px 2px rgba(7,10,47,.9),0 0 14px rgba(7,10,47,.65),0 0 38px rgba(220,235,250,.8);}}
#hero .hero-kicker::before{content:'';position:absolute;z-index:-1;inset:-60% -16%;pointer-events:none;background:radial-gradient(closest-side,rgba(7,10,47,.7),rgba(7,10,47,.35) 60%,rgba(7,10,47,0));}
#hero .hero-copy{position:relative;}
#hero .hero-copy::before{content:'';position:absolute;z-index:-1;inset:-14% -12% -18%;pointer-events:none;background:radial-gradient(closest-side,rgba(7,10,47,.5),rgba(7,10,47,0));}
#hero .hero-theme-line{font-size:clamp(.78rem,3.3vw,.95rem);letter-spacing:.16em;margin-top:8px;color:#F4F7FA;
  text-shadow:0 1px 2px rgba(7,10,47,.95),0 0 14px rgba(7,10,47,.8);}
#hero .hero-theme-line.in{opacity:1;}
#hero .hero-date{font-size:clamp(.95rem,3.9vw,1.2rem);font-weight:600;letter-spacing:.26em;color:#F4F7FA;
  text-shadow:0 1px 2px rgba(7,10,47,.95),0 0 14px rgba(7,10,47,.8);}

/* HS-15 · Footer: KC-Universe abre el cierre; la firma de la casa se vuelve un botón que invita. */
.wonderland-footer .footer-universe{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;margin:6px 0 34px;}
.wonderland-footer .footer-universe::before{content:'';position:absolute;z-index:-1;top:-22px;left:50%;width:84px;height:84px;transform:translateX(-50%);pointer-events:none;background:radial-gradient(closest-side,rgba(248,228,230,.38),rgba(224,101,122,.12) 55%,transparent);}
.wonderland-footer .footer-universe-star{position:relative;width:40px;height:40px;overflow:hidden;
  clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  background:linear-gradient(160deg,#FFFFFF 0%,#E3E9F0 28%,#9FB0C2 52%,#F2D3DA 74%,#C9D8F0 100%);
  filter:drop-shadow(0 0 10px rgba(248,228,230,.55));animation:hsStarTwinkle 4.8s ease-in-out infinite;}
.wonderland-footer .footer-universe-star::after{content:'';position:absolute;inset:0;
  background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.95) 50%,transparent 65%);background-size:300% 100%;animation:hsGlint 5.5s ease-in-out 1s infinite;}
.wonderland-footer .footer-universe-word{font-family:'Cinzel',serif;font-weight:600;font-size:.9rem;letter-spacing:.32em;margin-right:-.32em;color:#F8EEF0;
  text-shadow:0 1px 2px rgba(42,4,16,.9),0 0 18px rgba(248,228,230,.35);}
@keyframes hsStarTwinkle{0%,100%{transform:scale(1) rotate(0);}50%{transform:scale(1.08) rotate(6deg);}}
.wonderland-footer:not(.is-visible) .footer-universe{opacity:0;transform:translateY(10px);}
.wonderland-footer .footer-universe{transition:opacity .9s ease,transform .9s ease;}
/* Sello: texto grande y notorio, sin caja. Todo el cierre baja hasta el pasto. */
footer.wonderland-footer{padding-top:calc(54px + 36px);padding-bottom:calc(100vw * .15 + 4px);}
footer.wonderland-footer .footer-kc-seal{min-height:46px;margin-top:22px;gap:10px;white-space:nowrap;font-family:'Cinzel',serif;font-size:clamp(.78rem,3.4vw,.95rem);font-weight:600;letter-spacing:.14em;color:#F8EEF0;text-shadow:0 1px 2px rgba(42,4,16,.9),0 0 14px rgba(248,228,230,.3);}
footer.wonderland-footer .footer-kc-seal:hover{color:#FFFFFF;}
footer.wonderland-footer .footer-instagram{width:18px;height:18px;opacity:1;}
footer.wonderland-footer .footer-seal-line{width:clamp(14px,4vw,32px);flex:0 0 auto;}

/* HS-15 · Captura el momento: el álbum abre el día del evento; cuando KC-Gallery está activo, su puerta reemplaza al aviso. */
#captura .captura-cta{max-width:100%;white-space:normal;text-align:center;justify-content:center;letter-spacing:.14em;line-height:1.45;padding:10px clamp(18px,5vw,30px);cursor:default;}
#captura .captura-helper{max-width:30em;margin-left:auto;margin-right:auto;line-height:1.7;}
#captura:has(.kc-gallery-cta) .captura-cta{display:none;}
#captura .kc-gallery-cta{position:relative;z-index:2;margin:18px auto 0;}
#captura .kc-gallery-cta__link{font-family:'Cinzel',serif;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:#F4F7FA;border-color:rgba(201,216,240,.6);background:rgba(7,10,47,.35);min-height:48px;opacity:1;}
#captura .kc-gallery-cta__hint{color:#C9D8F0;opacity:.85;}

@media (prefers-reduced-motion:reduce){
  #gate.is-hold .gate-instruction{animation:none;opacity:1;}
  #gate .gate-kcs,.wonderland-footer .footer-universe-star,.wonderland-footer .footer-universe-star::after{animation:none;}
  #hero .hero-kicker.in{animation:none !important;}
}

/* HS-15 R2 · Footer sin ornamento; Captura más arriba; sombrero que se va con el mensaje y vuelve. */
.wonderland-footer .footer-universe{margin-bottom:18px;}
#captura.captura-momento{padding-top:clamp(24px,6vw,52px);}
/* "Toca el sombrero": debajo del suelo de hongos, nunca tapado, legible. */
#secret-key.secret-key-finale .secret-key-stage{margin-bottom:34px;}
#secret-key.secret-key-finale .secret-key-hint{position:absolute;z-index:2;left:50%;top:100%;margin-top:16px;transform:translateX(-50%);white-space:nowrap;
  font-family:'Cinzel',serif;font-size:.78rem;font-weight:600;letter-spacing:.24em;color:#F4F7FA;
  text-shadow:0 1px 2px rgba(7,10,47,.95),0 0 10px rgba(7,10,47,.85),0 0 22px rgba(169,200,226,.45);animation:hsHintBreathe 3s ease-in-out infinite;}
@keyframes hsHintBreathe{0%,100%{opacity:1;}50%{opacity:.8;}}
/* Mientras el mensaje está abierto, el sombrero no está; al ocultarse el mensaje, regresa. */
#secret-key.secret-key-finale .secret-key-trigger{transition:opacity .5s ease .1s,visibility 0s;}
#secret-key.secret-key-finale.is-open .secret-key-trigger{position:absolute;opacity:0;visibility:hidden;transform:none;margin:0;pointer-events:none;transition:opacity .25s ease,visibility 0s linear .25s;}
/* Carta: naipe de Wonderland en papel marfil, tinta navy y carmesí; el 10/6 del sombrero en las esquinas. */
#secret-key.secret-key-finale .secret-key-card{width:min(100%,340px);padding:38px 28px 34px;border:0;border-radius:14px;color:#1A2547;
  background:radial-gradient(ellipse 80% 60% at 30% 20%,rgba(255,255,255,.55),transparent 70%),radial-gradient(ellipse 70% 50% at 80% 90%,rgba(158,34,50,.06),transparent 70%),linear-gradient(165deg,#F6F1E8,#EAE2D3);
  box-shadow:inset 0 0 0 8px #F2ECE1,inset 0 0 0 9px rgba(14,27,82,.6),inset 0 0 0 11px #F2ECE1,inset 0 0 0 11.75px rgba(14,27,82,.35),0 22px 44px rgba(3,6,30,.6),0 2px 6px rgba(3,6,30,.35);}
#secret-key.secret-key-finale .secret-key-card::before,
#secret-key.secret-key-finale .secret-key-card::after{content:'10/6';position:absolute;inset:auto;width:auto;height:auto;border:0;background:none;
  font-family:'Cinzel',serif;font-size:.7rem;font-weight:600;letter-spacing:.06em;color:#9E2232;line-height:1;pointer-events:none;}
#secret-key.secret-key-finale .secret-key-card::before{top:18px;left:20px;}
#secret-key.secret-key-finale .secret-key-card::after{bottom:18px;right:20px;}
#secret-key.secret-key-finale .secret-key-card .secret-key-eyebrow{color:#9E2232 !important;text-shadow:none !important;}
#secret-key.secret-key-finale .secret-key-card .secret-key-title{color:#0E1B52 !important;-webkit-text-fill-color:#0E1B52;text-shadow:none !important;}
#secret-key.secret-key-finale .secret-key-card .secret-key-message{color:#1A2547 !important;text-shadow:none !important;font-family:'Cormorant Garamond',serif;font-style:italic;font-size:1.05rem;}
#secret-key.secret-key-finale .secret-key-card .secret-key-signature{color:#9E2232 !important;text-shadow:none !important;}
@media (prefers-reduced-motion:reduce){#secret-key.secret-key-finale .secret-key-hint{animation: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;}

/* J01 · Azula: el color reservado es solo azul — la tarjeta deja el carmesí heredado. */
#dresscode .dress-swatch-blue{background:#1F4FA8;}
#dresscode.dress-wardrobe .dress-rule-red{border-color:rgba(122,166,232,.5);background:linear-gradient(145deg,rgba(31,79,168,.6),rgba(18,28,74,.9));}
#dresscode.dress-wardrobe .dress-rule-red::before{background:linear-gradient(180deg,#7AA6E8,#173C86);}
#dresscode.dress-wardrobe .dress-rule-red .dress-rule-sigil{color:#B9D2F4;}
#dresscode.dress-wardrobe .dress-rule-red .dress-rule-kicker{color:#C9DCF6;}
#padres .jimena-godparents-invite{font-family:var(--f-display);font-style:italic;color:#21110A;font-size:clamp(.88rem,3.9vw,1.05rem);line-height:1.3;margin:clamp(6px,2vw,12px) auto 0;max-width:24ch;text-wrap:balance;text-shadow:0 0 6px rgba(244,225,190,.6);}
/* J01 · Cuatro padrinos + la invitación caben en el pergamino: se aprieta el ritmo, no la letra de los nombres. */
#padres .padres-parchment-text{gap:clamp(5px,2vw,10px);}
#padres .padres-title{font-size:clamp(1.9rem,8.4vw,2.5rem);}
#padres .parent-blessing-list{gap:6px;}
#padres .jimena-flourish{margin:clamp(2px,1vw,6px) auto;width:clamp(100px,32vw,130px);}
#padres .jimena-godparents{gap:clamp(2px,.8vw,4px);}
@media (max-width:340px){#padres :is(.parent-name,.jimena-godparent-name){font-size:.92rem;}#padres .jimena-godparents-invite{font-size:.82rem;}}
/* J02 · Foto real del dress code (900×1124) y menos vacío entre dedicatoria y counter.
   El gato centra su carril alto en kicker.top/2 (cheshire-host.js): se recorta sin dejarlo sin cielo. */
#dresscode.dress-wardrobe .dress-hero-img{aspect-ratio:900/1124;}
#intro.intro-dedication{padding-bottom:clamp(44px,12vw,60px);}
#countdown.countdown-cheshire{min-height:clamp(430px,90vw,540px);}
