/* ==========================================================================
   Jorge & Miguel · 18.09.2027 — Hoja de estilos · OPCIÓN B "El viaje"
   --------------------------------------------------------------------------
   Concepto: la boda como un viaje. Tarjeta de embarque, funda de documentos,
   sellos de pasaporte, panel de salidas, postal y etiquetas de equipaje.
   Misma paleta que la opción A: papel de algodón, acuarela azul, tinta azul
   profundo y un acento dorado. Añade DM Mono para los textos "de billete".
   Índice:
     1. Tipografías y tokens
     2. Base · 3. Utilidades · 4. Botones
     5. Portada de entrada (funda con la tarjeta de embarque)
     6. Tarjeta de embarque (componente)
     7. Sellos de pasaporte y ruta de vuelo
     8. Navegación y menú
     9. Portada
    10. Fecha de salida
    11. Nuestra ruta (historia)
    12. El gran día (panel de salidas)
    13. Destino (postal)
    14. Alojamiento (etiquetas de equipaje)
    15. Formularios (check-in) · Autocar · Fotos
    16. Pie, reproductor y avisos
    17. Animaciones y responsive
   ========================================================================== */

/* 1. TIPOGRAFÍAS Y TOKENS --------------------------------------------------- */
@font-face { font-family: "Corinthia"; src: url("../fonts/corinthia-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../fonts/dm-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../fonts/dm-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;

  --ink: #1B2E45;          /* azul profundo · tinta */
  --ink-2: #2A4260;
  --slate: #687D92;        /* azul grisáceo */
  --petrol: #3F6B74;       /* azul petróleo suave */
  --mist: #DCE4EA;
  --paper: #F6F3EC;        /* papel de algodón */
  --linen: #F3F1EC;        /* lino */
  --ivory: #FBFAF7;        /* marfil */
  --sand: #D6C9B2;
  --sand-2: #E9E2D5;
  --gold: #A88A5A;         /* acento dorado */
  --gold-light: #D9C08F;
  --error: #9B3D36;
  --text: #2B3442;
  --text-light: #E8ECF0;
  --line: rgba(27, 46, 69, .16);
  --line-light: rgba(243, 241, 236, .24);

  --f-display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", Georgia, serif;
  --f-body: "Jost", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --f-script: "Corinthia", "Snell Roundhand", "Apple Chancery", cursive;
  --f-mono: "DM Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --t-xs: .75rem;
  --t-sm: .875rem;
  --t-md: 1.0625rem;
  --t-lg: 1.2rem;
  --t-xl: clamp(1.5rem, 3vw, 2rem);
  --t-2xl: clamp(2.5rem, 6.5vw, 4.1rem);

  --gutter: max(20px, 4.5vw);
  --section: clamp(5rem, 11vw, 8.5rem);
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .7, .2, 1);

  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .16 0 0 0 0 .27 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Avión para ornamentos (máscara) */
  --plane: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8c.8 0 1.4.9 1.4 2.1v5.3l7.8 4.7v2.1l-7.8-2.4v4.7l2.3 1.7v1.5L12 20.6l-3.7.9V20l2.3-1.7v-4.7l-7.8 2.4v-2.1l7.8-4.7V3.9c0-1.2.6-2.1 1.4-2.1z'/%3E%3C/svg%3E");
}

/* 2. BASE -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper) var(--paper-grain);
  color: var(--text);
  font-family: var(--f-body); font-weight: 300; font-size: var(--t-md); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use, .ic, .letter__sprig { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--linen); padding: .6rem 1rem; text-decoration: none; }
.skip:focus { top: 16px; }

/* 3. UTILIDADES, TIPOGRAFÍA Y ORNAMENTOS --------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding-block: var(--section); position: relative; }
.section__head { text-align: center; display: grid; gap: 1rem; justify-items: center; margin-bottom: clamp(3rem, 7vw, 5rem); }

.eyebrow { font-family: var(--f-body); font-weight: 500; font-size: var(--t-xs); letter-spacing: .3em; text-transform: uppercase; color: var(--petrol); }
.eyebrow--light { color: var(--sand); }
.title { font-family: var(--f-display); font-size: var(--t-2xl); line-height: 1.04; color: var(--ink); letter-spacing: -.01em; }
.title--light { color: var(--linen); }
.lead { font-size: var(--t-lg); line-height: 1.6; max-width: 34em; color: var(--text); }
.lead--light { color: var(--text-light); }
.note { font-size: var(--t-sm); color: var(--slate); font-style: italic; line-height: 1.6; }
.note a { color: var(--ink); }
.center { text-align: center; }
.subhead { display: flex; align-items: center; gap: .6rem; margin-top: 2.5rem; margin-bottom: 1rem; font-weight: 500; font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }

/* Ornamento común: filete fino con un rombo dorado (como en la tarjeta) */
.ornament { display: flex; align-items: center; justify-content: center; gap: .7rem; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .7; }
.ornament i { width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid currentColor; }
.ornament--left { justify-content: flex-start; }
.ornament--left::before { display: none; }
.ornament--light { color: var(--sand); }

.tiles--light { height: 18px; background: transparent var(--tile-light) center / 18px 18px repeat-x; }

/* Logo JM (símbolo "i-logo"; toma el color del texto) */
.logo { display: inline-flex; color: inherit; line-height: 0; }
.logo-mark { width: 100%; height: auto; display: block; aspect-ratio: 1184 / 1014; }
.logo--sm { width: 44px; }
.logo--lg { width: clamp(84px, 18vw, 120px); }
#i-logo path, .logo-mark use, .gate__mark use, .seal use, .invite__emboss use, .thanks__logo use { stroke: none; }

/* El logo "se dibuja": se descubre con un trazo de izquierda a derecha */
.logo-draw { clip-path: inset(0 100% 0 0); animation: draw 1.6s .2s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes draw { to { clip-path: inset(0 0 0 0); } }

/* 4. BOTONES ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: .9rem 1.7rem;
  font-family: var(--f-body); font-weight: 500; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 1px; cursor: pointer; position: relative;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--ink { background: var(--ink); color: var(--linen); }
.btn--ink:hover { background: var(--ink-2); }
.btn--line { background: transparent; color: var(--ink); border-color: rgba(27, 46, 69, .3); }
.btn--line:hover { border-color: var(--ink); }
.btn--light { background: var(--linen); color: var(--ink); }
.btn--framed::after { content: ""; position: absolute; inset: -7px; border: 1px solid currentColor; opacity: .3; transition: inset .5s var(--ease), opacity .5s; }
.btn--ink.btn--framed::after { border-color: var(--ink); }
.btn--framed:hover::after { inset: -4px; opacity: .5; }
.btn--sm { min-height: 42px; padding: .6rem 1.1rem; font-size: .7rem; letter-spacing: .16em; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Opción B: rótulos "de billete" en letra mono y ornamento con avión */
.eyebrow { font-family: var(--f-mono); font-weight: 500; letter-spacing: .24em; font-size: .72rem; }
.ornament::before, .ornament::after { height: 0; background: none; border-top: 1px dashed currentColor; width: 52px; opacity: .8; }
.ornament i { width: 15px; height: 15px; border: 0; transform: rotate(90deg); background: currentColor; -webkit-mask: var(--plane) center / contain no-repeat; mask: var(--plane) center / contain no-repeat; }
.ic--plane { fill: currentColor; stroke: none; transform: rotate(45deg); }
.ic--plane use { stroke: none; }
.subhead { font-family: var(--f-mono); letter-spacing: .2em; }

/* 5. PORTADA DE ENTRADA: FUNDA CON LA TARJETA DE EMBARQUE ------------------------ */
.gate { display: none; }
.js .gate {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; overflow: hidden;
  background: var(--paper);
  padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px));
  transition: opacity 1s var(--ease), visibility 0s 1s;
}
.gate::after { content: ""; position: absolute; inset: 0; background: var(--paper-grain); pointer-events: none; }
.gate.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
html.js.is-sealed, html.js.is-sealed body { overflow: hidden; height: 100%; }

/* Acuarela: composición horizontal (pantallas anchas) y vertical (móvil) */
.gate__wash, .hero__wash { position: absolute; inset: 0; pointer-events: none; }
.wash { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wash--port { display: none; }
@media (max-aspect-ratio: 1/1) { .wash--land { display: none; } .wash--port { display: block; } }

.gate__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: clamp(10px, 2vh, 22px); text-align: center; }
.gate__mark { width: clamp(56px, 8vh, 84px); color: var(--ink); transition: opacity .6s; }
.gate__hint { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; color: var(--ink); font-weight: 500; transition: opacity .6s; animation: rise 1s 1.2s var(--ease) both; }
.gate__tap { font-family: var(--f-display); font-style: italic; font-size: clamp(1rem, 2.2vh, 1.2rem); color: var(--ink); transition: opacity .6s; animation: rise 1s 2s var(--ease) both; }
.gate__enter { opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .3s, transform .3s; }

/* Funda: su anchura manda; la tarjeta de dentro se mide en cqi */
.sleeve {
  position: relative; width: clamp(260px, min(86vw, 44vh), 380px);
  padding: 0 5.5% 4%; margin-top: clamp(30px, 7vh, 80px);
  animation: envIn 1.1s 1.5s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes envIn { from { opacity: 0; transform: translateY(26px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
.sleeve__back, .sleeve__front { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 10px; transition: transform 1.1s cubic-bezier(.4, 0, .2, 1), opacity .9s ease; will-change: transform, opacity; }
.sleeve__back { top: 9%; background: #22395A; box-shadow: 0 30px 46px -26px rgba(27, 46, 69, .6); }
.sleeve__back::before { content: ""; position: absolute; left: 50%; top: -1px; width: 28%; height: 7%; transform: translateX(-50%); background: inherit; border-radius: 0 0 40px 40px / 0 0 30px 30px; }
.sleeve__pass { position: relative; z-index: 1; transition: transform 1.2s cubic-bezier(.45, 0, .2, 1); will-change: transform; }
.sleeve__front {
  top: 17%; z-index: 2; color: var(--gold-light);
  background: linear-gradient(170deg, #263F62, var(--ink) 60%) ;
  box-shadow: 0 -10px 24px -16px rgba(0, 0, 0, .55);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%;
  padding: 6% 8% 7%;
  -webkit-mask: radial-gradient(circle 26px at 50% 0, #0000 98%, #000);
          mask: radial-gradient(circle 26px at 50% 0, #0000 98%, #000);
}
.sleeve__front::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(217, 192, 143, .45); border-radius: 6px; pointer-events: none; }
.sleeve__front::after { content: ""; position: absolute; inset: 0; background: var(--paper-grain); opacity: .8; pointer-events: none; border-radius: inherit; }
.sleeve__names { font-family: var(--f-script); font-size: clamp(2rem, 4.2vh, 2.6rem); line-height: 1; color: var(--gold-light); white-space: nowrap; }
.sleeve__label { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; color: rgba(217, 192, 143, .9); }

/* Sello dorado: "CHECK-IN" alrededor y el JM en el centro */
.seal {
  position: relative; z-index: 3; width: clamp(84px, 12vh, 104px); aspect-ratio: 1; flex: none;
  border: 0; padding: 0; cursor: pointer; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #E9D3A4, #BF9A60 52%, #8A6838 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35), inset 0 0 0 3px rgba(138, 104, 56, .55), inset 0 0 14px rgba(0, 0, 0, .25);
  display: grid; place-items: center; transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .45s;
  animation: pulse 2.6s 3s ease-in-out infinite;
}
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal__ring text { font-family: var(--f-mono); font-size: 8.4px; letter-spacing: .9px; fill: #5E4422; }
.seal__logo { width: 46%; color: #5E4422; filter: drop-shadow(0 1px 0 rgba(255, 236, 200, .6)); }
.seal__logo use { stroke: none; }
.seal:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Fases de la apertura (las añade ui.js en orden) */
.gate.s1 .seal { animation: none; opacity: 0; transform: scale(.7) rotate(-20deg); pointer-events: none; }
.gate.s1 .gate__tap, .gate.s1 .gate__hint, .gate.s1 .gate__mark { opacity: 0; animation: none; }
.gate.s2 .sleeve__pass { transform: translateY(-34%); }
.gate.s3 .sleeve__pass { transform: translateY(-9%) scale(1.06); transition-duration: 1.1s; }
.gate.s3 .sleeve__back, .gate.s3 .sleeve__front { opacity: 0; transform: translateY(40%); }
.gate .bpass__stamp { opacity: 0; transform: scale(1.8) rotate(var(--rot, -14deg)); }
.gate.s4 .bpass__stamp { opacity: 1; transform: scale(1) rotate(var(--rot, -14deg)); transition: opacity .25s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.gate.s5 .gate__enter { opacity: 1; pointer-events: auto; transform: none; transition: opacity .7s, transform .7s; }
.gate.no-anim, .gate.no-anim * { transition: none !important; animation: none !important; }

/* 6. TARJETA DE EMBARQUE ---------------------------------------------------------
   Vertical cuando el hueco es estrecho (móvil, funda) y horizontal cuando es ancho.
   Todo se mide en cqi = % del ancho de la tarjeta. */
.pass-wrap { container-type: inline-size; width: 100%; }
.bpass {
  --notch: 3.4cqi; --r: 2.6cqi;
  position: relative; display: grid; text-align: left; color: var(--ink);
  filter: drop-shadow(0 16px 22px rgba(27, 46, 69, .2)) drop-shadow(0 2px 3px rgba(27, 46, 69, .12));
}
.bpass__main, .bpass__stub { position: relative; background: var(--ivory) var(--paper-grain); }
.bpass__main {
  border-radius: var(--r) var(--r) 0 0; overflow: hidden;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.bpass__stub {
  border-radius: 0 0 var(--r) var(--r);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6cqi; align-items: center; padding: 4.6cqi 6.5cqi 5cqi;
}
/* línea perforada */
.bpass__stub::before { content: ""; position: absolute; top: 0; left: calc(var(--notch) + 2cqi); right: calc(var(--notch) + 2cqi); border-top: 1.5px dashed rgba(27, 46, 69, .28); }

.bpass__band {
  display: flex; align-items: center; justify-content: space-between; gap: 2cqi;
  background: var(--ink) var(--paper-grain); color: var(--linen);
  padding: 3.4cqi 6.5cqi; font-family: var(--f-mono); font-weight: 500; font-size: 2.6cqi; line-height: 1; letter-spacing: .2em; text-transform: uppercase;
}
.bpass__band span:last-child { color: var(--gold-light); }
.bpass__logo { width: 7.5cqi; height: auto; color: var(--gold-light); flex: none; }
.bpass__logo use { stroke: none; }
.bpass__body { padding: 5cqi 6.5cqi 5.5cqi; display: grid; gap: 4cqi; }
.bpass__label { font-family: var(--f-mono); font-size: 2.55cqi; letter-spacing: .22em; text-transform: uppercase; color: var(--petrol); font-weight: 500; line-height: 1.3; }
.bpass__names { font-family: var(--f-script); font-weight: 400; font-size: 15.5cqi; line-height: .95; color: var(--ink); white-space: nowrap; margin-top: 1cqi; }
.bpass__names .amp { font-size: .78em; padding: 0 .05em; }
.bpass__names--guest { font-size: 11cqi; white-space: normal; text-wrap: balance; }
.bpass__route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 3cqi; padding: 3.6cqi 0; border-block: 1px solid var(--line); }
.bpass__port { display: grid; gap: .6cqi; }
.bpass__port b { font-family: var(--f-display); font-weight: 400; font-size: 12cqi; line-height: .95; letter-spacing: .02em; color: var(--ink); }
.bpass__port small, .bpass__path small { font-family: var(--f-mono); font-size: 2.35cqi; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); white-space: nowrap; }
.bpass__port--to { text-align: right; }
.bpass__path { position: relative; display: grid; justify-items: center; gap: 1.6cqi; padding-top: 2.5cqi; }
.bpass__line { position: absolute; left: 0; right: 0; top: calc(2.5cqi + 3cqi); border-top: 1.5px dashed rgba(27, 46, 69, .35); }
.bpass__plane { position: relative; width: 6cqi; height: 6cqi; color: var(--gold); transform: rotate(90deg); background: var(--ivory); border-radius: 50%; padding: .6cqi; box-sizing: content-box; }
.bpass__plane use { stroke: none; }
.bpass__fields { margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3.6cqi 3cqi; }
.bpass__fields > div { grid-column: span 2; min-width: 0; }
.bpass__fields > .bpass__wide { grid-column: span 3; }
.bpass__fields dt { font-family: var(--f-mono); font-size: 2.4cqi; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); margin-bottom: .8cqi; }
.bpass__fields dd { margin: 0; font-family: var(--f-mono); font-weight: 500; font-size: 4.1cqi; color: var(--ink); white-space: nowrap; letter-spacing: -.01em; }
.bpass__stubinfo { display: grid; gap: .6cqi; }
.bpass__flight { font-family: var(--f-mono); font-weight: 500; font-size: 5cqi; color: var(--ink); line-height: 1.1; white-space: nowrap; }
.bpass__mini { font-family: var(--f-mono); font-size: 2.5cqi; letter-spacing: .14em; color: var(--slate); white-space: nowrap; }
.bpass__code { display: grid; gap: 1.2cqi; justify-items: stretch; }
.barcode { width: 100%; height: 12cqi; color: var(--ink); display: block; }
.bpass__code p { font-family: var(--f-mono); font-size: 2.1cqi; letter-spacing: .14em; color: var(--slate); text-align: center; white-space: nowrap; }
.bpass__stamp { --rot: -14deg; position: absolute; right: 5cqi; top: 51%; width: 30cqi; pointer-events: none; transform: rotate(var(--rot)); }
.bpass__stamp .stamp { width: 100%; height: auto; }

@container (min-width: 640px) {
  .bpass { --notch: 1.7cqi; --r: 1.3cqi; grid-template-columns: minmax(0, 1fr) 25%; }
  .bpass__main {
    border-radius: var(--r) 0 0 var(--r);
    -webkit-mask: radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
            mask: radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  }
  .bpass__stub {
    border-radius: 0 var(--r) var(--r) 0; grid-template-columns: minmax(0, 1fr); align-content: space-between; gap: 2cqi; padding: 6.4cqi 2.6cqi 2.6cqi 2.8cqi;
    -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
            mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  }
  .bpass__stub::before { top: calc(var(--notch) + 1cqi); bottom: calc(var(--notch) + 1cqi); left: 0; right: auto; border-top: 0; border-left: 1.5px dashed rgba(27, 46, 69, .28); }
  /* la franja azul continúa en el resguardo */
  .bpass__stub::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4.3cqi; background: var(--ink) var(--paper-grain); border-radius: 0 var(--r) 0 0; }
  .bpass__band { padding: 1.5cqi 3.2cqi; font-size: 1.15cqi; height: 4.3cqi; }
  .bpass__logo { width: 3.4cqi; }
  .bpass__body { padding: 2.6cqi 3.2cqi 2.8cqi; grid-template-columns: auto minmax(0, 1fr); column-gap: 4cqi; row-gap: 2.2cqi; align-items: end; }
  .bpass__label { font-size: 1.15cqi; }
  .bpass__names { font-size: 7.4cqi; }
  .bpass__names--guest { font-size: 5cqi; }
  .bpass__route { border-block: 0; padding: 0 0 .8cqi; gap: 1.8cqi; }
  .bpass__port b { font-size: 5.4cqi; }
  .bpass__port small, .bpass__path small { font-size: 1.05cqi; }
  .bpass__path { gap: .8cqi; padding-top: 1.2cqi; }
  .bpass__path small { display: none; }
  .bpass__line { top: calc(1.2cqi + 1.4cqi); }
  .bpass__plane { width: 2.8cqi; height: 2.8cqi; padding: .3cqi; }
  .bpass__fields { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 2cqi; border-top: 1px solid var(--line); padding-top: 2cqi; }
  .bpass__fields dt { font-size: 1.05cqi; margin-bottom: .4cqi; }
  .bpass__fields dd { font-size: 1.75cqi; }
  .bpass__stubinfo { gap: .3cqi; position: relative; z-index: 1; }
  .bpass__flight { font-size: 2.3cqi; }
  .bpass__mini { font-size: 1.15cqi; }
  .bpass__code { gap: .6cqi; }
  .barcode { height: 5.4cqi; }
  .bpass__code p { font-size: .9cqi; letter-spacing: .08em; }
  .bpass__stamp { right: 28%; top: 44%; width: 13cqi; }
}

/* 7. SELLOS DE PASAPORTE Y RUTA DE VUELO ------------------------------------------ */
.stamp { display: block; overflow: visible; transform: rotate(var(--rot, 0deg)); mix-blend-mode: multiply; }
.stamp--petrol { color: rgba(55, 100, 110, .9); }
.stamp--ink { color: rgba(27, 46, 69, .82); }
.stamp--gold { color: rgba(146, 110, 56, .92); }
.stamp text { fill: currentColor; stroke: none; font-family: var(--f-mono); }
.stamp__sm { font-size: 10px; letter-spacing: 1.6px; font-weight: 500; }
.stamp__lg { font-size: 30px; font-weight: 500; letter-spacing: 1px; }
.stamp--rect .stamp__lg { font-size: 34px; }
.stamp--rect .stamp__lg--long { font-size: 25px; letter-spacing: 0; }

.flight { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: var(--ink); }
.flight__path { fill: none; stroke: rgba(27, 46, 69, .35); stroke-width: 1.6; stroke-dasharray: 2 11; stroke-linecap: round; }
.flight__plane { color: var(--ink); opacity: .75; }
.flight__plane use { stroke: none; }
@media (max-aspect-ratio: 1/1) { .flight__path { stroke-width: 2.6; } .flight__plane use { transform: scale(1.5); } }

/* 8. NAVEGACIÓN ------------------------------------------------------------------ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); color: var(--ink); transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease); }
.nav__inner { max-width: 1320px; margin-inline: auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { text-decoration: none; display: inline-flex; align-items: center; gap: .8rem; }
.nav__flight { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .18em; padding-left: .8rem; border-left: 1px solid var(--line); line-height: 1.6; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__links a { text-decoration: none; font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat; padding-block: 4px; transition: background-size .45s var(--ease); }
.nav__links a:hover, .nav__links a.is-current { background-size: 100% 1px; }
.nav__links .nav__cta { border: 1px solid currentColor; padding: .65rem 1rem; background: none; }
.nav__links .nav__cta:hover { background: var(--ink); color: var(--linen); }
.nav.is-solid { background: rgba(251, 250, 247, .92); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav.is-open { background: transparent; color: var(--linen); box-shadow: none; backdrop-filter: none; }
.nav.is-open .nav__flight { border-color: var(--line-light); }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--ink) var(--paper-grain); color: var(--linen); display: flex; flex-direction: column; justify-content: center; padding: calc(90px + env(safe-area-inset-top, 0px)) var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.menu__head { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .24em; color: var(--gold-light); margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line-light); }
.menu__links { display: grid; gap: .35rem; }
.menu__links a { font-family: var(--f-display); font-size: clamp(1.7rem, 7.5vw, 2.5rem); line-height: 1.25; text-decoration: none; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.menu.is-visible .menu__links a { opacity: 1; transform: none; }
.menu__links a:nth-child(2) { transition-delay: .04s; } .menu__links a:nth-child(3) { transition-delay: .08s; }
.menu__links a:nth-child(4) { transition-delay: .12s; } .menu__links a:nth-child(5) { transition-delay: .16s; }
.menu__links a:nth-child(6) { transition-delay: .2s; } .menu__links a:nth-child(7) { transition-delay: .24s; }
.menu__foot { margin-top: 3rem; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .3em; color: var(--sand); }
body.menu-open { overflow: hidden; }
html.is-sealed .nav, html.is-sealed .player { opacity: 0; pointer-events: none; }
@media (max-width: 1180px) { .nav__links { display: none; } .nav__toggle { display: block; } }

/* 9. PORTADA ---------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: max(640px, 100svh); display: grid; place-items: center; padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter) 110px; text-align: center; color: var(--ink); }
.hero__wash { z-index: -2; }
.hero .flight { z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper-grain); pointer-events: none; }
.hero__content { display: grid; justify-items: center; gap: 1.4rem; width: 100%; max-width: 860px; }
.hero__eyebrow { display: inline-flex; gap: .7em; align-items: center; color: var(--ink); }
.hero__arrow { color: var(--gold); }
.hero__pass { width: min(100%, 860px); }
.hero__phrase { margin-top: .6rem; font-family: var(--f-display); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.55; max-width: 28em; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: .6rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 54px; background: var(--line); transform: translateX(-50%); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: scrollcue 2.4s var(--ease) infinite; }
@keyframes scrollcue { to { top: 110%; } }
html.is-opened .hero__content > * { animation: rise 1.1s var(--ease) both; }
html.is-opened .hero__content > :nth-child(2) { animation: passin 1.3s .1s cubic-bezier(.2, .8, .2, 1) both; }
html.is-opened .hero__content > :nth-child(3) { animation-delay: .45s; }
html.is-opened .hero__content > :nth-child(4) { animation-delay: .45s; }
html.is-opened .hero__content > :nth-child(5) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes passin { from { opacity: 0; transform: translateY(30px) rotate(-1.2deg); } to { opacity: 1; transform: none; } }

/* 10. FECHA DE SALIDA ---------------------------------------------------------------- */
.savedate { background: var(--ivory) var(--paper-grain); }
.savedate__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(3rem, 7vw, 6rem); align-items: center; }
.savedate__text { display: grid; gap: 1.4rem; }
.savedate__title { font-family: var(--f-display); color: var(--ink); display: flex; align-items: center; gap: .3em; line-height: 1; }
.savedate__day { font-size: clamp(6rem, 18vw, 10.5rem); letter-spacing: -.04em; line-height: .8; }
.savedate__month { font-style: italic; font-size: clamp(1.6rem, 4.4vw, 2.5rem); line-height: 1.1; }
.savedate__venue { font-size: var(--t-lg); line-height: 1.5; }
.savedate__venue strong { font-family: var(--f-display); font-weight: 400; font-size: 1.5em; color: var(--ink); }
.countdown { margin-top: .6rem; padding-top: 1.6rem; border-top: 1px dashed rgba(27, 46, 69, .3); }
.countdown__label { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--petrol); font-weight: 500; margin-bottom: .9rem; }
/* Cuenta atrás como un marcador de aeropuerto */
.countdown__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; max-width: 440px; }
.countdown__grid > div { display: grid; gap: .45rem; justify-items: center; }
.countdown__grid span {
  position: relative; width: 100%; text-align: center; padding: .35rem 0 .3rem;
  font-family: var(--f-mono); font-weight: 500; font-size: clamp(1.6rem, 5.4vw, 2.3rem); line-height: 1.15; color: var(--linen);
  background: linear-gradient(180deg, #24395A 0 50%, var(--ink) 50% 100%); border-radius: 6px;
  box-shadow: 0 10px 18px -12px rgba(27, 46, 69, .7); font-variant-numeric: tabular-nums;
}
.countdown__grid span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .45); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.countdown__grid small { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); }
.countdown.is-done .countdown__grid { display: none; }
.addcal { display: grid; gap: .7rem; padding-top: 1.4rem; border-top: 1px dashed rgba(27, 46, 69, .3); }
.addcal__label { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--petrol); font-weight: 500; }
.addcal__btns { display: flex; flex-wrap: wrap; gap: .6rem; }

.calendar { position: relative; background: var(--paper) var(--paper-grain); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: 0 30px 60px -40px rgba(27, 46, 69, .45), 0 0 0 1px var(--line); outline: 1px solid rgba(168, 138, 90, .45); outline-offset: -10px; transform: rotate(1.2deg); max-width: 440px; justify-self: center; width: 100%; }
.calendar__head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: .9rem; margin-bottom: .9rem; }
.calendar__month { font-family: var(--f-display); font-size: 1.7rem; color: var(--ink); font-style: italic; }
.calendar__year { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .3em; color: var(--slate); }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: .25rem 0; font-variant-numeric: tabular-nums; }
.calendar__dow { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; color: var(--slate); font-weight: 500; padding-bottom: .4rem; }
.calendar__d { font-size: .95rem; color: var(--text); line-height: 2.3; position: relative; }
.calendar__d.is-weekend { color: var(--slate); }
.calendar__d.is-day { color: var(--ink); font-weight: 500; }
.calendar__ring { position: absolute; left: 50%; top: 50%; width: 3.1em; height: 2.6em; transform: translate(-50%, -52%) rotate(-8deg); overflow: visible; pointer-events: none; }
.calendar__ring path { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 120; stroke-dashoffset: 0; }
.calendar.is-armed .calendar__ring path { stroke-dashoffset: 120; transition: stroke-dashoffset 1.6s .5s var(--ease); }
.calendar.is-armed.is-in .calendar__ring path { stroke-dashoffset: 0; }
.calendar__foot { margin-top: 1rem; text-align: center; font-family: var(--f-script); font-size: 2.6rem; color: var(--ink); line-height: 1; }
.calendar__stamp { position: absolute; right: -28px; bottom: -34px; width: 118px; }
.calendar__stamp .stamp { --rot: 14deg; width: 100%; height: auto; }
.calendar.is-armed .calendar__stamp { opacity: 0; transform: scale(1.6); }
.calendar.is-armed.is-in .calendar__stamp { opacity: 1; transform: none; transition: opacity .3s 1.4s, transform .5s 1.4s cubic-bezier(.3, 1.6, .5, 1); }

/* 11. NUESTRA RUTA ------------------------------------------------------------------- */
.story { background: var(--paper) var(--paper-grain); }
.story__list { position: relative; display: grid; gap: clamp(3.5rem, 8vw, 6.5rem); }
/* Ruta de vuelo punteada que une las escalas */
.story__list::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed rgba(27, 46, 69, .3); -webkit-mask: linear-gradient(transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(transparent, #000 5%, #000 95%, transparent); }
.chapter { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; }
.chapter__pin { grid-column: 2; grid-row: 1; justify-self: center; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid rgba(168, 138, 90, .7); color: var(--gold); z-index: 1; box-shadow: 0 0 0 6px var(--paper); }
.chapter__pin svg { width: 17px; height: 17px; transform: rotate(180deg); }
.chapter__pin use { stroke: none; }
.chapter__photo { grid-column: 1; grid-row: 1; justify-self: end; width: min(100%, 470px); position: relative; }
.chapter__text { grid-column: 3; grid-row: 1; display: grid; gap: .9rem; max-width: 28rem; }
.chapter:nth-child(even) .chapter__photo { grid-column: 3; justify-self: start; }
.chapter:nth-child(even) .chapter__text { grid-column: 1; justify-self: end; text-align: right; }
.chapter__num { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--petrol); font-weight: 500; }
.chapter__title { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.15; color: var(--ink); }
.chapter__body { color: var(--text); }
.chapter:last-child .chapter__title { font-style: italic; }
.chapter__stamp { position: absolute; width: clamp(118px, 31%, 152px); height: auto; right: -7%; bottom: -3%; z-index: 2; pointer-events: none; }
.chapter:nth-child(even) .chapter__stamp { right: auto; left: -5%; }
.chapter.reveal.is-armed .chapter__stamp { opacity: 0; transform: rotate(var(--rot)) scale(1.7); }
.chapter.reveal.is-armed.is-in .chapter__stamp { opacity: 1; transform: rotate(var(--rot)) scale(1); transition: opacity .25s .9s, transform .5s .9s cubic-bezier(.3, 1.6, .5, 1); }

/* Fotografía con paspartú y pie manuscrito */
.mat { margin: 0; background: #FFFEFB; padding: 4.5% 4.5% 0; box-shadow: 0 1px 2px rgba(27, 46, 69, .08), 0 24px 44px -30px rgba(27, 46, 69, .5); }
.chapter:nth-child(odd) .mat { transform: rotate(-.8deg); }
.chapter:nth-child(even) .mat { transform: rotate(.7deg); }
.mat__caption { word-spacing: .12em; font-family: var(--f-script); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--ink); text-align: center; line-height: 1; padding: .55em 0 .5em; }

.ph { position: relative; overflow: hidden; aspect-ratio: 4 / 5; width: 100%; max-width: 100%; margin: 0; background: linear-gradient(155deg, var(--mist) 0%, #CBD6DE 55%, var(--sand-2) 100%); }
.ph img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.ph__empty { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: .5rem; padding: 1rem; text-align: center; color: var(--slate); }
.ph__empty span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; word-break: break-all; max-width: 22ch; line-height: 1.5; }
.ph.is-empty .ph__empty { display: grid; }

/* 12. EL GRAN DÍA: PANEL DE SALIDAS --------------------------------------------------- */
.day { background: var(--ivory) var(--paper-grain); }
.board { max-width: 1000px; margin: 0 auto 2.2rem; background: var(--ink) var(--paper-grain); color: var(--linen); border-radius: 14px; padding: clamp(1.2rem, 3vw, 2rem) clamp(1rem, 3vw, 2.2rem) clamp(.6rem, 2vw, 1rem); box-shadow: 0 40px 70px -46px rgba(27, 46, 69, .9), inset 0 0 0 1px rgba(255, 255, 255, .05); font-family: var(--f-mono); }
.board__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-light); }
.board__name { display: flex; align-items: center; gap: .7rem; font-size: clamp(1.1rem, 2.6vw, 1.45rem); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); font-weight: 500; }
.board__name span { font-size: .55em; color: var(--sand); letter-spacing: .2em; opacity: .8; }
.board__name .ic { width: 1em; height: 1em; transform: rotate(45deg); }
.board__name .ic use { stroke: none; fill: currentColor; }
.board__meta { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); opacity: .85; }
.board__cols, .board__row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 11.5rem; gap: 1rem; align-items: center; }
.board__cols { padding: .8rem 0 .4rem; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(214, 201, 178, .7); }
.board__cols span:last-child { text-align: right; }
.board__row { padding: 1.05rem 0; border-top: 1px dashed rgba(243, 241, 236, .14); }
.board__time { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 500; color: var(--linen); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.board__time time { display: inline-block; padding: .1rem .35rem; background: rgba(0, 0, 0, .22); border-radius: 4px; }
.board__what { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .9rem; align-items: start; }
.board__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-light); color: var(--sand); }
.board__icon svg { width: 18px; height: 18px; stroke-width: 1.2; }
.board__title { font-family: var(--f-mono); font-weight: 500; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--linen); line-height: 1.4; }
.board__text { font-family: var(--f-body); font-weight: 300; font-size: var(--t-sm); color: rgba(232, 236, 240, .78); line-height: 1.5; margin-top: .2rem; }
.board__status { text-align: right; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); font-weight: 500; }
.board__status span { display: inline-block; padding: .35rem .6rem; border: 1px solid rgba(217, 192, 143, .45); border-radius: 3px; white-space: nowrap; }
.board__row.is-key .board__time time { background: var(--gold); color: var(--ink); }
.board__row.is-key .board__status span { background: var(--gold-light); color: var(--ink); border-color: var(--gold-light); animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.day__note { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.day__extras { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: stretch; max-width: 1000px; margin-inline: auto; }
.letter { position: relative; background: var(--paper) var(--paper-grain); padding: clamp(2rem, 5vw, 2.8rem); outline: 1px solid rgba(168, 138, 90, .45); outline-offset: -10px; box-shadow: 0 24px 50px -40px rgba(27, 46, 69, .5); display: grid; gap: 1rem; align-content: start; }
.letter__label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--petrol); font-weight: 500; display: flex; align-items: center; gap: .6rem; }
.letter__label::before { content: "i"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid currentColor; font-size: .7rem; letter-spacing: 0; font-style: italic; font-family: var(--f-display); }
.letter h3 { font-family: var(--f-display); font-style: italic; font-size: 1.7rem; color: var(--ink); line-height: 1.2; }
.letter [data-adults] { display: grid; gap: .9rem; }
.letter__sign { font-family: var(--f-script); font-size: 2.6rem; color: var(--ink); line-height: 1; margin-top: .4rem; }
.dress { position: relative; display: grid; gap: .8rem; align-content: center; justify-items: center; text-align: center; padding: clamp(2rem, 5vw, 2.8rem); border: 1px dashed rgba(27, 46, 69, .35); border-radius: 10px; }
.dress .letter__label { position: absolute; top: -.75em; left: 50%; transform: translateX(-50%); background: var(--ivory); padding: 0 .8rem; }
.dress .letter__label::before { content: none; }
.dress__text { font-family: var(--f-display); font-size: 1.35rem; color: var(--ink); line-height: 1.45; }

/* 13. DESTINO: POSTAL --------------------------------------------------------------- */
.arrive { background: var(--paper) var(--paper-grain); }
.arrive__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 7vw, 6rem); align-items: center; }
.arrive__info { display: grid; gap: .8rem; align-content: start; }
.arrive__info .ornament { margin: .2rem 0 .8rem; }
.arrive__venue { font-family: var(--f-display); font-size: 1.9rem; color: var(--ink); line-height: 1.15; }
.arrive__town { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--slate); font-weight: 500; }
.address { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.address__copy { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--petrol); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sand); }
.address__copy:hover { color: var(--ink); text-decoration-color: var(--ink); }
.arrive__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.arrive__links { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: .4rem; font-size: var(--t-sm); }
.arrive__links a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--sand); }
.arrive__links a:hover { text-decoration-color: var(--ink); }
.steps { counter-reset: s; display: grid; gap: .9rem; margin-bottom: 1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2rem minmax(0, 1fr); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); color: var(--petrol); font-size: .85rem; line-height: 2; }

.postcard { margin: 0; position: relative; background: #FFFEFA var(--paper-grain); color: var(--ink); padding: clamp(1rem, 2.6vw, 1.6rem); display: grid; gap: 1rem; box-shadow: 0 1px 2px rgba(27, 46, 69, .1), 0 40px 70px -46px rgba(27, 46, 69, .7); transform: rotate(-1.2deg); }
.postcard__face { position: relative; background: linear-gradient(180deg, #EEF2F5, #F7F4EC); padding: clamp(2.6rem, 6vw, 3.6rem) clamp(.8rem, 2vw, 1.4rem) .6rem; overflow: hidden; }
.postcard__art { width: 100%; height: auto; display: block; stroke: var(--ink); --masia-bg: #F3F2EE; opacity: .9; }
.postcard__stamp {
  position: absolute; top: 12px; right: 12px; width: clamp(64px, 14%, 84px); aspect-ratio: 4 / 5;
  background: var(--ink); color: var(--gold-light); padding: 9px; display: grid; place-items: center; align-content: center; gap: 4px;
  -webkit-mask: linear-gradient(#000 0 0) center / calc(100% - 9px) calc(100% - 9px) no-repeat, radial-gradient(circle 3.4px, #0000 96%, #000) -4.5px -4.5px / 9px 9px round;
          mask: linear-gradient(#000 0 0) center / calc(100% - 9px) calc(100% - 9px) no-repeat, radial-gradient(circle 3.4px, #0000 96%, #000) -4.5px -4.5px / 9px 9px round;
  transform: rotate(3deg);
}
.postcard__stamp::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(217, 192, 143, .5); }
.postcard__stamp svg { width: 70%; }
.postcard__stamp use { stroke: none; }
.postcard__stamp span { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .2em; }
.postcard__postmark { position: absolute; top: 4px; right: clamp(66px, 13%, 90px); width: clamp(140px, 36%, 200px); color: rgba(27, 46, 69, .55); transform: rotate(-8deg); mix-blend-mode: multiply; filter: url(#ink); }
.postcard__postmark text { fill: currentColor; stroke: none; font-family: var(--f-mono); }
.pm__sm { font-size: 8px; letter-spacing: 1.4px; }
.pm__lg { font-size: 12px; letter-spacing: 1px; font-weight: 500; }
.postcard figcaption { display: grid; justify-items: center; gap: .15rem; text-align: center; padding-bottom: .4rem; }
.postcard__hello { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--slate); }
.postcard__name { word-spacing: .12em; font-family: var(--f-script); font-size: clamp(2.6rem, 4.4vw, 3.4rem); line-height: 1; color: var(--ink); }
.postcard__meta { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 500; }

/* 14. ALOJAMIENTO: ETIQUETAS DE EQUIPAJE ---------------------------------------------- */
.stay { background: var(--ivory) var(--paper-grain); }
.hotels { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(2.6rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2rem); margin-bottom: 2.5rem; padding-top: 2.4rem; }
.hotels > .hotel { flex: 0 1 300px; min-width: 0; }
.hotel { position: relative; filter: drop-shadow(0 18px 24px rgba(27, 46, 69, .14)) drop-shadow(0 1px 1px rgba(27, 46, 69, .12)); transition: transform .5s var(--ease); }
.hotel:hover { transform: translateY(-4px) rotate(-.6deg); }
/* cordel */
.hotel::before { content: ""; position: absolute; left: 50%; top: -2.4rem; width: 26px; height: 3.6rem; transform: translateX(-50%); border: 1.5px solid var(--gold); border-bottom: 0; border-radius: 14px 14px 0 0; z-index: 2; }
.tag {
  position: relative; height: 100%; background: var(--paper) var(--paper-grain);
  clip-path: polygon(22% 0, 78% 0, 100% 34px, 100% 100%, 0 100%, 0 34px);
  display: grid; grid-template-rows: auto auto 1fr;
  padding-top: 2.6rem;
}
.tag::after { content: ""; position: absolute; inset: 8px 8px 8px 8px; border: 1px dashed rgba(27, 46, 69, .2); clip-path: inherit; pointer-events: none; }
.tag__hole { position: absolute; left: 50%; top: 14px; width: 16px; height: 16px; transform: translateX(-50%); border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 4px var(--sand), inset 0 1px 2px rgba(0, 0, 0, .2); z-index: 1; }
.hotel .ph { aspect-ratio: 3 / 2; }
.hotel__head { display: grid; justify-items: center; gap: .1rem; padding: 1.2rem 1.5rem 0; text-align: center; }
.hotel__km { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.hotel__from { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); font-weight: 500; }
.hotel__body { display: grid; gap: .6rem; padding: 1rem 1.6rem 1.8rem; justify-items: center; text-align: center; align-content: start; grid-template-rows: auto auto 1fr auto; }
.hotel__body::before { content: ""; width: 60%; border-top: 1px dashed rgba(27, 46, 69, .25); margin-bottom: .4rem; }
.hotel__type { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--petrol); font-weight: 500; }
.hotel__name { font-family: var(--f-display); font-size: 1.45rem; color: var(--ink); line-height: 1.2; }
.hotel__desc { font-size: var(--t-sm); color: var(--text); line-height: 1.6; }
.hotel__meta { display: grid; gap: .35rem; font-size: var(--t-sm); color: var(--text); }
.hotel__meta span { display: flex; align-items: center; justify-content: center; gap: .55rem; }
.hotel__price { font-family: var(--f-display); font-style: italic; color: var(--ink); }
.hotel__link { margin-top: .6rem; display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid var(--line); transition: gap .4s var(--ease), border-color .4s; }
.hotel__link:hover { gap: .9rem; border-color: var(--ink); }

/* 15. FORMULARIOS (CHECK-IN) -------------------------------------------------------------------- */
.rsvp { background: var(--ink) var(--paper-grain); color: var(--text-light); }
.rsvp .section__head { margin-bottom: 3rem; }
.deadline { font-size: var(--t-sm); letter-spacing: .06em; color: var(--sand); }
.deadline strong { font-weight: 500; color: var(--linen); }
.rsvp__contact { font-size: var(--t-sm); color: var(--text-light); opacity: .85; }
.rsvp__contact a, .footer__contact a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--sand); white-space: nowrap; }
.contact { white-space: nowrap; }

.paper { background: var(--ivory) var(--paper-grain); color: var(--text); padding: clamp(1.6rem, 6vw, 3.4rem); outline: 1px solid rgba(168, 138, 90, .4); outline-offset: -10px; box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .55); }
.paper--soft { box-shadow: 0 0 0 1px var(--line); }

.form { display: grid; gap: 1.8rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.6rem; }
.field label, .form__q-label { font-size: var(--t-sm); letter-spacing: .02em; color: var(--text); font-weight: 400; line-height: 1.5; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-weight: 400; font-size: 1.05rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(27, 46, 69, .3); border-radius: 0; padding: .7rem 0; transition: border-color .3s, background-color .3s; appearance: none; -webkit-appearance: none; }
.field textarea { resize: vertical; min-height: 92px; border: 1px solid rgba(27, 46, 69, .22); padding: .8rem .9rem; background: rgba(255, 255, 255, .5); }
.field textarea::placeholder, .field input::placeholder { color: #8C98A6; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231B2E45' stroke-width='1.2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 1.6rem; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background-color: rgba(220, 228, 234, .35); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--ink); }
.field__error { font-size: .82rem; color: var(--error); line-height: 1.4; }
.field__error:empty { display: none; }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: var(--error); }

.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: .55rem 1.3rem; border: 1px solid rgba(27, 46, 69, .28); font-size: .95rem; color: var(--ink); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--linen); }
.choice input:focus-visible + span { outline: 2px solid var(--petrol); outline-offset: 3px; }
.choices--big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.choices--big .choice span { width: 100%; min-height: 76px; justify-content: center; text-align: center; font-family: var(--f-display); font-size: 1.2rem; padding: 1rem; }
.form__q { display: grid; gap: .7rem; min-width: 0; }
.form__q.is-invalid .choice span { border-color: var(--error); }
.reveal-yes { display: grid; gap: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); animation: fadein .6s var(--ease); }
.field[id]:not([hidden]), .field-row[id]:not([hidden]) { animation: fadein .5s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Formulario por pasos */
.stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; counter-reset: none; }
.stepper li { display: flex; align-items: center; gap: .55rem; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: #9AA6B3; transition: color .4s; min-width: 0; }
.stepper b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; font-family: var(--f-display); font-weight: 400; font-size: .85rem; letter-spacing: 0; transition: background-color .4s, color .4s; }
.stepper li.is-active, .stepper li.is-done { color: var(--ink); }
.stepper li.is-active b { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.stepper li.is-off { opacity: .35; }
.progress { height: 2px; background: var(--line); margin-top: -.6rem; overflow: hidden; }
.progress span { display: block; height: 100%; width: 33.33%; background: var(--gold); transition: width .6s var(--ease); }
.step { display: grid; gap: 1.6rem; animation: stepin .55s var(--ease); }
.step__title { font-family: var(--f-display); font-size: 1.6rem; color: var(--ink); line-height: 1.25; }
@keyframes stepin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.form__nav { display: flex; justify-content: space-between; gap: .8rem; padding-top: .6rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.form__nav [data-next], .form__nav [data-submit] { margin-left: auto; min-width: 200px; }
.form__submit { display: grid; gap: .8rem; }
.form__status { font-size: .9rem; color: var(--error); text-align: center; min-height: 1.4em; }
.btn .spinner { width: 14px; height: 14px; border: 1px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.thanks { display: grid; justify-items: center; text-align: center; gap: 1.1rem; padding-block: 1.6rem; animation: fadein 1s var(--ease); }
.thanks__logo { width: 96px; color: var(--ink); }
.thanks > h3 { font-family: var(--f-script); font-size: clamp(3.6rem, 10vw, 5rem); color: var(--ink); line-height: .9; }
.thanks > p { max-width: 30em; font-size: var(--t-lg); line-height: 1.6; }
.thanks > .thanks__demo { font-size: .78rem; color: var(--slate); font-style: italic; }
.thanks .btn { margin-top: .6rem; }

/* Billete del formulario: cabecera con muescas y línea perforada */
.ticket-wrap { filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .3)); }
.paper.ticket {
  --cut: 58px; outline: 0; box-shadow: none; border-radius: 12px; padding-top: 0;
  -webkit-mask: radial-gradient(circle 13px at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 13px at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket__head {
  height: var(--cut); margin: 0 calc(-1 * clamp(1.6rem, 6vw, 3.4rem)) clamp(1.6rem, 4vw, 2.4rem); padding: 0 clamp(1.6rem, 6vw, 3.4rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); font-weight: 500;
  background: var(--sand-2); border-bottom: 1.5px dashed rgba(27, 46, 69, .3);
}
.ticket__head > span:first-child { color: var(--petrol); }
.ticket--soft .ticket__head { background: var(--mist); }
.stepper li { font-family: var(--f-mono); letter-spacing: .14em; }
.stepper b { font-family: var(--f-mono); }

/* Gracias: la tarjeta de embarque personal */
.thanks__pass { max-width: 400px; margin-bottom: .6rem; }
.thanks__pass .bpass__stamp { animation: stampin .55s .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stampin { from { opacity: 0; transform: rotate(var(--rot)) scale(1.8); } to { opacity: 1; transform: rotate(var(--rot)) scale(1); } }

.bus { background: var(--paper) var(--paper-grain); }
.bus__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 7vw, 6rem); align-items: start; }
.bus__intro { display: grid; gap: 1.1rem; }
.bus__notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; margin-top: .6rem; padding: 1.2rem 1.4rem; background: var(--sand-2); color: var(--ink); border-left: 2px solid var(--gold); }
.bus__notice .ic { width: 26px; height: 26px; stroke-width: 1.1; margin-top: .1rem; }
.bus__notice p { font-family: var(--f-display); font-style: italic; font-size: 1.1rem; line-height: 1.5; }

/* Modo antes / después de la boda */
html:not(.is-after) [data-after] { display: none !important; }
html.is-after [data-before] { display: none !important; }

/* Fotos: diario de viaje */
.photos { background: var(--ivory) var(--paper-grain); }
.photos__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: clamp(3rem, 7vw, 6rem); align-items: center; }
.photos__text { display: grid; gap: 1rem; }
.photos__text .ornament { margin-bottom: .4rem; }
.photos__actions { margin-top: .8rem; }
.qr-card { margin: 0; justify-self: center; display: grid; justify-items: center; gap: 1rem; padding: 1.6rem 1.8rem 1.8rem; background: var(--paper) var(--paper-grain); border-radius: 12px; box-shadow: 0 30px 60px -40px rgba(27, 46, 69, .45), 0 0 0 1px var(--line); transform: rotate(-1deg); }
.qr-card__label { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--petrol); font-weight: 500; padding-bottom: .9rem; border-bottom: 1px dashed rgba(27, 46, 69, .3); width: 100%; text-align: center; }
.qr { width: min(220px, 56vw); height: auto; color: var(--ink); display: block; }
.qr-card figcaption { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); font-weight: 500; text-align: center; max-width: 20em; line-height: 1.6; }

/* WhatsApp junto a los teléfonos */
.wa { display: inline-flex; align-items: center; gap: .3rem; margin-left: .55rem; padding: .15rem .55rem; border: 1px solid currentColor; border-radius: 999px; font-size: .72rem; letter-spacing: .08em; text-decoration: none !important; opacity: .9; vertical-align: middle; }
.wa:hover { opacity: 1; }
.wa .ic { width: 1em; height: 1em; }

/* 16. PIE ---------------------------------------------------------------------------- */
.footer { background: var(--ink) var(--paper-grain); color: var(--linen); text-align: center; }
.footer__route { display: flex; align-items: center; gap: 1rem; max-width: 760px; margin: 0 auto; padding: 3.2rem var(--gutter) 0; color: var(--gold-light); }
.footer__route span { flex: 1; border-top: 1px dashed rgba(217, 192, 143, .45); }
.footer__route svg { width: 22px; height: 22px; transform: rotate(90deg); }
.footer__route use { stroke: none; }
.footer__inner { padding: clamp(3rem, 8vw, 5rem) var(--gutter) calc(clamp(6rem, 12vw, 8rem) + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: center; gap: 1rem; }
.footer__phrase { font-family: var(--f-display); font-style: italic; font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.35; max-width: 22em; text-wrap: balance; }
.footer__names { font-family: var(--f-script); font-size: clamp(4rem, 12vw, 6.4rem); color: var(--linen); line-height: 1; margin-top: 1.6rem; }
.footer__names .amp { font-size: .75em; }
.footer__date { font-family: var(--f-display); letter-spacing: .44em; padding-left: .44em; font-variant-numeric: tabular-nums; }
.footer__place { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--sand); font-weight: 500; }
.footer__flight { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .24em; color: var(--gold-light); padding: .5rem 1rem; border: 1px dashed rgba(217, 192, 143, .45); border-radius: 4px; margin-top: .4rem; }
.footer__logo { width: 84px; color: var(--sand); margin-top: 1.8rem; }
.footer__contact { font-size: .8rem; color: var(--text-light); opacity: .7; margin-top: 1rem; }
.rsvp__contact a, .footer__contact a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--sand); white-space: nowrap; }
.contact { white-space: nowrap; }

/* REPRODUCTOR Y AVISOS ------------------------------------------------------------ */
.player { position: fixed; z-index: 60; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: .7rem; padding: 6px 16px 6px 6px; background: rgba(251, 250, 247, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 999px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -18px rgba(27, 46, 69, .5); color: var(--ink); transition: transform .5s var(--ease), opacity .5s var(--ease); }
.player.is-tucked { opacity: 0; transform: translateY(16px); pointer-events: none; }
.player__btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: var(--linen); display: grid; place-items: center; cursor: pointer; transition: background-color .3s; }
.player__btn:hover { background: var(--ink-2); }
.player__icon { width: 18px; height: 18px; fill: currentColor; }
.player__icon--pause { display: none; }
.is-playing .player__icon--play { display: none; }
.is-playing .player__icon--pause { display: block; }
.player__meta { display: flex; align-items: center; gap: .55rem; }
.player__title { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 30%; background: currentColor; border-radius: 1px; opacity: .8; }
.is-playing .eq i { animation: eq 1.1s ease-in-out infinite; }
.is-playing .eq i:nth-child(2) { animation-delay: -.4s; }
.is-playing .eq i:nth-child(3) { animation-delay: -.75s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.toast { position: fixed; z-index: 130; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; background: var(--ink); color: var(--linen); padding: .8rem 1.3rem; font-size: .88rem; text-align: center; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); animation: fadein .4s var(--ease); }

/* 17. ANIMACIONES AL HACER SCROLL Y RESPONSIVE ------------------------------------------- */
.reveal.is-armed { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-armed.is-in { opacity: 1; transform: none; }
.chapter.reveal.is-armed .mat { opacity: 0; }
.chapter.reveal.is-armed.is-in .mat { opacity: 1; transition: opacity 1.2s .1s var(--ease); }

@media (max-width: 960px) {
  .day__extras { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .board__cols { display: none; }
  .board__row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "time status" "what what"; gap: .7rem 1rem; }
  .board__time { grid-area: time; }
  .board__status { grid-area: status; }
  .board__what { grid-area: what; }
}
@media (max-width: 900px) {
  .savedate__grid, .arrive__grid, .bus__grid, .photos__grid { grid-template-columns: minmax(0, 1fr); }
  .calendar { transform: rotate(.8deg); width: calc(100% - 30px); justify-self: start; }
  .story__list::before { left: 16px; }
  .chapter { grid-template-columns: 34px minmax(0, 1fr); row-gap: 1.3rem; column-gap: 1rem; align-items: start; }
  .chapter__pin { grid-column: 1; grid-row: 1; }
  .chapter .chapter__photo, .chapter:nth-child(even) .chapter__photo { grid-column: 2; grid-row: 2; justify-self: start; width: min(100% - 22px, 440px); }
  .chapter .chapter__text, .chapter:nth-child(even) .chapter__text { grid-column: 2; grid-row: 1; justify-self: start; text-align: left; padding-top: .3rem; }
  .chapter .chapter__stamp, .chapter:nth-child(even) .chapter__stamp { left: auto; right: -18px; bottom: -4%; width: 118px; }
  .postcard { transform: rotate(-.8deg); }
}
@media (max-width: 560px) {
  :root { --t-md: 1rem; }
  html { scroll-padding-top: 68px; }
  .field-row, .choices--big { grid-template-columns: minmax(0, 1fr); }
  .choices--big .choice span { min-height: 62px; }
  .hero { padding-inline: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hero__actions .btn { letter-spacing: .14em; padding-inline: 1rem; }
  .savedate__title { gap: .2em; }
  .stepper span { display: none; }
  .stepper li { justify-content: center; }
  .form__nav [data-next], .form__nav [data-submit] { min-width: 0; flex: 1; }
  .player, .player.is-playing { padding: 5px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .player__meta { display: none; }
  .countdown__grid small { font-size: .56rem; letter-spacing: .1em; }
  .ticket__head { font-size: .6rem; letter-spacing: .14em; }
  .nav__flight { display: none; }
  .postcard__postmark { right: 60px; width: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .reveal.is-armed, .chapter.reveal.is-armed .mat { opacity: 1; transform: none; }
  .logo-draw { clip-path: none; }
  .flight__plane { display: none; }
}
