@import url('/fonts/cormorant-garamond/cormorant-garamond.css');
@import url('/fonts/inter/inter.css');

/* ═══════════════════════════════════════════════════════════════
   Cielo — invitación de boda de una página, azul y plata.
   --s = 1 px de un diseño de 1440 px (crece y se achica con la pantalla). Re-tematizar = cambiar los tokens de :root.
   Movimiento: html.fx (solo fuera del editor, ver script.js). En el editor (html.is-ed) todo queda plano y quieto.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #F1F2FB;
  --bg-2: #E3E6F3;
  --ink: #0A3E95;
  --blue: #0A5AD6;
  --blue-d: #08438F;
  --muted: #4A5A7C;
  --line: rgba(10, 90, 214, .32);
  --on-blue: #F4F5FD;
  --s: min(calc(100vw / 1440), 1.3px);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, sans-serif;
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.65, 0, .35, 1);
  --e-soft: cubic-bezier(.33, 1, .68, 1);
  --rail: max(calc(var(--s) * 44), 30px);
  --hd-h: max(calc(var(--s) * 64), 56px);
  --pad-x: max(calc(var(--s) * 72), 18px);
}
html[data-theme="night"], html.zn {
  --bg: #0B1F44;
  --bg-2: #0E2858;
  --ink: #EEF1FC;
  --blue: #8DB4FF;
  --blue-d: #B9D0FF;
  --muted: #B8C4E0;
  --line: rgba(185, 208, 255, .35);
  --on-blue: #0B1F44;
}

* { box-sizing: border-box; }
html, body, button, input, select, textarea { font-family: var(--sans); }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; color: var(--ink); background: radial-gradient(120% 80% at 30% 20%, var(--bg-2), var(--bg) 60%) fixed; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; transition: color .8s var(--e-io); }
html.fx body { background: transparent; }
/* Adornos que se salen por los lados (estrellas del mensaje, arcos de la bienvenida): sin este recorte el celular hace
   la página más ancha (541 px en un teléfono de 390) y la achica, cabecera y barra de zipeea incluidas. El overflow del
   body no basta: en la vista previa de zipeea la plantilla vive dentro de otra página. clip (no hidden) para el sticky. */
main > section, .ft { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: var(--on-blue); padding: 10px 16px; border-radius: 99px; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.spk { width: 1em; height: 1em; fill: currentColor; display: block; }
.fx-note { display: none; }
html.is-ed .fx-note { display: flex; align-items: center; gap: 16px; max-width: min(760px, calc(100% - 32px)); margin: 24px auto 8px; box-sizing: border-box; padding: 16px 22px; border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent); border-radius: 18px;
  background: color-mix(in srgb, var(--blue) 7%, var(--bg)); box-shadow: 0 10px 30px -18px rgba(10, 40, 110, .45); color: var(--ink); }
html.is-ed .fx-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; }
html.is-ed .fx-ic svg { width: 20px; height: 20px; fill: currentColor; }
html.is-ed .fx-tx { display: grid; gap: 4px; }
html.is-ed .fx-tx b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--blue); }
html.is-ed .fx-tx span { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ─── Fondo: esferas (WebGL) + estela de destellos ─── */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sky canvas { width: 100%; height: 100%; display: block; }
html.is-ed .sky, html:not(.fx) .sky { display: none; }
.trail { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.trail .tr { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; color: var(--blue); animation: tr 900ms var(--e-soft) forwards; }
.trail .tr-b { animation: trb 1000ms linear forwards; }
@keyframes trb { 0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3) rotate(0); animation-timing-function: cubic-bezier(.16,1,.3,1); } 12% { opacity: 1; } 55% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) scale(1) rotate(120deg); } }
/* En pantallas táctiles no hay «pasar el mouse»: la estrella de cada indicación gira cuando aparece y al tocarla */
@media (hover: none) {
  html.fx .gd.up.is-vis .gd-spk { animation: gdspk 1.1s var(--e-out) calc(var(--d, 0s) + .3s) both; }
  html.fx .gd:active .gd-spk { transform: rotate(90deg) scale(1.2); transition: transform .5s var(--e-out); }
}
@keyframes gdspk { 0% { transform: rotate(-90deg) scale(.4); } 100% { transform: none; } }
@keyframes tr { 0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.2) rotate(0); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 18px)) scale(1) rotate(90deg); } }

/* ─── Cabecera y rieles ─── */
.hd { position: fixed; z-index: 50; top: 0; left: var(--rail); right: var(--rail); height: var(--hd-h); display: flex; align-items: center; gap: 24px; padding: 0 max(calc(var(--s) * 20), 12px); border-bottom: 1px solid var(--line); }
/* Al bajar, cada palabra del menú (y el monograma, la fecha acomodada y «Confirmar») lleva su propia pastilla translúcida
   esmerilada del color de la página: la franja sigue transparente, pero las letras se leen sobre cualquier cosa */
.nav-a, .hd-mark, .hd-dock, .hd-cta { transition: background-color .4s linear; }
.nav-a { padding: 0 10px; border-radius: 99px; }
.nav-a::after { left: 10px; right: 10px; }
.hd-mark { padding: 0 12px; border-radius: 99px; }
.hd-nav ul { gap: max(calc(var(--s) * 10), 4px); }
@media (min-width: 861px) {
  html.is-scrolled .nav-a, html.is-scrolled .hd-mark, html.is-scrolled .hd-cta { background: color-mix(in srgb, var(--bg) 58%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  html.is-scrolled .nav-a { min-height: 30px; margin: 7px 0; }
  html.is-scrolled .nav-a::after { bottom: 7px; }
  html.is-scrolled .hd-cta:hover { background: var(--blue); }
}
html.is-ed .hd { position: sticky; left: 0; right: 0; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hd-mark { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.mono { font-family: var(--serif); font-size: 26px; letter-spacing: .02em; color: var(--blue); }
.mono i { font-size: .7em; margin: 0 2px; }
.hd-dock { flex: 1; align-self: stretch; position: relative; }
.hd-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: max(calc(var(--s) * 26), 14px); }
.nav-a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; position: relative; }
.nav-a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 12px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--e-out); }
.nav-a:hover::after, .nav-a.is-on::after { transform: scaleX(1); transform-origin: left; }
.hd-end { display: flex; align-items: center; gap: 12px; }
.hd-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 18px; border: 1px solid var(--blue); border-radius: 99px; text-decoration: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); transition: background .3s, color .3s; }
.hd-cta:hover { background: var(--blue); color: var(--on-blue); }
.hd-burger { display: none; }
.rail { position: fixed; z-index: 49; top: 0; bottom: 0; width: var(--rail); display: flex; flex-direction: column; align-items: center; padding: 18px 0; gap: 18px; color: var(--blue); }
.rail-l { left: 0; border-right: 1px solid var(--line); }
.rail-r { right: 0; border-left: 1px solid var(--line); }
.rail-mark { width: 12px; height: 12px; margin-top: calc(var(--hd-h) / 2 - 24px); }
.rail-tx { writing-mode: vertical-rl; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; transition: opacity .3s; }
.rail-l .rail-tx { margin-top: auto; margin-bottom: 120px; transform: rotate(180deg); }
.rail-prog { flex: 1; width: 1px; background: var(--line); position: relative; overflow: hidden; }
.rail-fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--blue); transform-origin: top; transform: scaleY(var(--prog, 0)); }
html.is-ed .rail { display: none; }
.theme { position: fixed; z-index: 51; left: 0; bottom: 18px; width: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.theme-b { writing-mode: vertical-rl; transform: rotate(180deg); min-width: 24px; min-height: 44px; padding: 6px 0; border: 0; background: none; color: var(--blue); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; opacity: .45; }
.theme-b[aria-pressed="true"] { opacity: 1; }
html.is-ed .theme { display: none; }

/* ─── Portada ─── */
/* En la portada la unidad también depende del alto: en pantallas anchas y bajas todo se achica para caber sin taparse */
.hero { --s: min(calc(100vw / 1440), calc(100vh / 900), 1.3px); position: relative; min-height: 100svh; padding: calc(var(--hd-h) + max(calc(var(--s) * 28), 18px)) calc(var(--rail) + var(--pad-x)) max(calc(var(--s) * 40), 28px); display: grid; grid-template-rows: auto auto 1fr auto; }
html.is-ed .hero { padding-top: 32px; min-height: 0; }
.hero-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.hero-top > :last-child { text-align: right; }
.kick { margin: 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); }
.hero-title { position: relative; z-index: 4; margin: 0; display: flex; align-items: center; justify-content: center; gap: 18px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: max(calc(var(--s) * 40), 26px); line-height: 1.1; color: var(--blue); }
.hero-title::before, .hero-title::after { content: ''; width: max(calc(var(--s) * 70), 36px); height: 1px; background: currentColor; opacity: .45; }
.names { position: relative; z-index: 4; margin: max(calc(var(--s) * 18), 10px) 0 0; display: grid; grid-template-columns: auto auto auto; justify-content: center; align-items: end; font-family: var(--serif); font-weight: 300; line-height: .82; color: var(--blue); }
.nm { display: block; font-size: max(calc(var(--s) * 170), 60px); letter-spacing: -.035em; }
.nm-1 { font-style: italic; }
.nm-2 { text-align: right; grid-column: 3; padding-top: max(calc(var(--s) * 76), 36px); }
.amp { position: relative; align-self: center; font-family: var(--serif); font-style: normal; font-weight: 400; font-size: max(calc(var(--s) * 120), 50px); line-height: 1; padding: 0 max(calc(var(--s) * 90), 8px); }
.amp-spk { position: absolute; width: .32em; height: .32em; right: 0; top: -.1em; }
.hero-mid { position: relative; display: grid; place-items: center; margin-top: calc(var(--s) * 10); }
.arch { position: relative; margin: 0; width: max(calc(var(--s) * 300), 200px); aspect-ratio: 1; }
.arch-ph { position: absolute; inset: 0; z-index: 1; border-radius: 50%; overflow: hidden; background: var(--bg-2); }
/* Aro blanco grueso separado de la foto por un hueco, con una línea fina por fuera (detrás de la corona) */
.arch::before { content: ''; position: absolute; inset: calc(max(calc(var(--s) * 18), 10px) * -1); z-index: 1; border-radius: 50%; pointer-events: none;
  border: max(calc(var(--s) * 9), 5px) solid #FBFCFF; box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue) 30%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--blue) 18%, transparent), 0 24px 50px -24px rgba(10, 40, 110, .5); }
html.is-ed .arch::before { display: none; }
html.fx .arch::before { opacity: 0; transform: scale(.85); }
html.fx.is-in .arch::before { opacity: 1; transform: none; transition: opacity .8s linear .7s, transform 1.4s var(--e-out) .7s; }
.arch-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--e-io), transform 6s linear; transform: scale(1.06); }
.arch-ph img.on { opacity: 1; transform: scale(1); }
html.is-ed .arch-ph img { position: relative; opacity: 1; transform: none; height: auto; aspect-ratio: 3 / 4; }
html.is-ed .arch-ph { position: relative; display: grid; gap: 8px; border-radius: 0; border: 0; box-shadow: none; overflow: visible; background: none; }
html.is-ed .arch { aspect-ratio: auto; }
html.is-ed .hero-mid { margin-top: 28px; }
.orb-star { position: absolute; left: 100%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; color: var(--blue); }
/* El aro gira (invisible: es un círculo) y lleva la estrella; ella además gira sobre sí. Solo transform: lo hace la GPU */
html.fx .arch-ring { animation: ringspin 15s linear infinite; }
html.fx .orb-star { animation: obspin 5s linear infinite; }
@keyframes ringspin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.orb-star .spk { width: 100%; height: 100%; }
.orb-big { position: absolute; z-index: 3; right: -8%; top: -10%; width: 22%; aspect-ratio: 1; color: var(--blue); pointer-events: none; }
.orb-big svg { display: block; width: 100%; height: 100%; fill: currentColor; animation: obspin 22s linear infinite; }
@keyframes obspin { to { transform: rotate(360deg); } }
html.is-ed .orb-big, html:not(.fx) .orb-big { display: none; }
html.fx .orb-big { opacity: 0; transform: scale(.2) rotate(-120deg); }
html.fx.is-in .orb-big { opacity: 1; transform: none; transition: opacity .6s linear 1.4s, transform 1.4s cubic-bezier(.34, 1.56, .64, 1) 1.4s; }

/* Grupo de adornos: escalera de cuadraditos que titilan (script.js › pixels) y ramito azul que se mece */
.deco { display: none; }
html.fx .deco { display: block; position: absolute; left: calc(var(--rail) + var(--pad-x) + max(calc(var(--s) * 60), 40px)); bottom: max(calc(var(--s) * 36), 24px); width: max(calc(var(--s) * 270), 180px); height: max(calc(var(--s) * 250), 170px); pointer-events: none; z-index: 0; }
.px { position: absolute; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(8, max(calc(var(--s) * 19), 12px)); gap: max(calc(var(--s) * 4), 3px); }
.px i { display: block; aspect-ratio: 1; border: 1px solid var(--blue); border-radius: 3px; opacity: 0; transform: scale(.4); transition: background-color .5s linear, opacity .5s linear, transform .6s var(--e-out); }
.px i.no { visibility: hidden; }
html.fx.is-in .px i { opacity: 1; transform: none; transition-delay: calc(1.2s + var(--k) * 25ms); }
.px i.on { background: var(--blue); transition-delay: 0s; }
.wr { position: absolute; inset: 0; z-index: 2; pointer-events: none; will-change: transform; } /* gira al bajar: script.js › update */
html.is-ed .wr { display: none; }
.wr-f { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(var(--fr, 0deg)); }
.wr-f img { display: block; width: 100%; height: 100%; filter: brightness(1.16) saturate(.72) drop-shadow(0 6px 14px rgba(10, 40, 110, .28)); transform: scale(0) rotate(-100deg); }
html:not(.fx) .wr-f img { transform: none; }
html.fx.is-in .wr-f img { transform: none; transition: transform 1.2s cubic-bezier(.34, 1.56, .64, 1) calc(1s + var(--k) * 55ms); animation: wrSway var(--w, 6s) var(--e-io) calc(2.4s + var(--k) * 55ms) infinite alternate; }
@keyframes wrSway { from { transform: rotate(0deg) scale(1); } to { transform: rotate(5deg) scale(1.04); } }
/* En el celular la corona se mece entera, como una sola capa (25 flores animadas por separado eran 25 capas que el
   teléfono volvía a armar en cada cuadro). rotate/scale se suman al giro de la corona al bajar */
@media (max-width: 860px) {
  html.fx.is-in .wr-f img { animation: none; }
  html.fx.is-in .wr { animation: wrBreath 7s var(--e-io) 2.4s infinite alternate; }
}
@keyframes wrBreath { from { rotate: -1.5deg; scale: 1; } to { rotate: 1.5deg; scale: 1.02; } }
/* Sección fuera de pantalla: sus animaciones sin fin quedan en pausa (script.js › .zz) */
html.fx .zz, html.fx .zz *, html.fx .zz *::before, html.fx .zz *::after, html.fx .pin-cue:not(.is-on) .cue-line::after { animation-play-state: paused !important; }
.arch-ring { position: absolute; z-index: 3; left: 50%; top: 50%; width: 116%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--blue) 45%, transparent); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
html.is-ed .arch-ring, html.is-ed .orb-big { display: none; }
.dt { position: absolute; inset: 0; margin: 0; pointer-events: none; font-family: var(--serif); color: var(--blue); }
.dt-row { position: absolute; left: 0; right: 0; top: 46%; display: grid; grid-template-columns: 1fr max(calc(var(--s) * 640), 180px) 1fr; column-gap: max(calc(var(--s) * 70), 24px); font-size: max(calc(var(--s) * 64), 26px); font-weight: 300; line-height: 1; letter-spacing: -.01em; }
.dt-a { justify-self: end; }
.dt-b { grid-column: 3; justify-self: start; }
.dt-ch { display: inline-block; will-change: transform; }
.dt-day { position: absolute; left: calc(50% + max(calc(var(--s) * 320), 90px) + max(calc(var(--s) * 70), 24px)); top: calc(46% + max(calc(var(--s) * 72), 30px)); margin: 0; font-family: var(--serif); font-style: italic; font-size: max(calc(var(--s) * 30), 20px); color: var(--blue); }
html.is-ed .dt { position: relative; inset: auto; margin-top: 16px; }
html.is-ed .dt-row { position: relative; justify-content: center; gap: 4px; }
html.is-ed .dt-day { position: relative; text-align: center; }
.hero-bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 24px; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--blue); }
.cue-line { width: 1px; height: 64px; background: var(--line); position: relative; overflow: hidden; }
.cue-line::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--blue); animation: cue 2.2s var(--e-io) infinite; }
.pin-cue { display: none; }
html.fx .pin-cue { display: flex; position: fixed; z-index: 40; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); flex-direction: column; align-items: center; gap: 6px; padding: 8px 14px 6px;
  border-radius: 999px; background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--blue); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; pointer-events: none;
  opacity: 0; transform: translate(-50%, 10px); transition: opacity .4s linear, transform .5s var(--e-out); }
html.fx .pin-cue .cue-line { height: 26px; }
html.fx .pin-cue.is-on { opacity: 1; transform: translate(-50%, 0); }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* Entrada de la portada (html.fx): letras que suben, foto que se aclara, textos que aparecen */
html.fx .rv { opacity: 0; transform: translateY(14px); }
html.fx.is-in .rv { opacity: 1; transform: none; transition: opacity .9s var(--e-soft) var(--d, 0s), transform 1.1s var(--e-out) var(--d, 0s); }
html.fx .nm .ch { display: inline-block; transform: translateY(105%); opacity: 0; }
html.fx .nm { overflow: hidden; padding-bottom: .06em; }
html.fx.is-in .nm .ch { transform: none; opacity: 1; transition: transform 1.2s var(--e-out) calc(.2s + var(--k) * .06s), opacity .6s linear calc(.2s + var(--k) * .06s); }
html.fx.is-in .nm-2 .ch { transition-delay: calc(.45s + var(--k) * .06s); }
html.fx .amp { opacity: 0; transform: scale(.6) rotate(-20deg); }
html.fx.is-in .amp { opacity: 1; transform: none; transition: opacity .8s linear .7s, transform 1.2s var(--e-out) .7s; }
html.fx .arch-ph { clip-path: circle(0% at 50% 50%); }
html.fx.is-in .arch-ph { clip-path: circle(50% at 50% 50%); transition: clip-path 1.5s var(--e-io) .35s; }
html.fx .arch-ring { opacity: 0; transform: translate(-50%, -50%) scale(.8); }
html.fx.is-in .arch-ring { opacity: 1; transform: translate(-50%, -50%); transition: opacity 1s linear 1.1s, transform 1.8s var(--e-out) 1.1s; }
html.fx .dt-ch { opacity: 0; }
html.fx.is-in .dt-ch { opacity: 1; transition: opacity .6s linear calc(.8s + var(--k) * .05s); }

/* ─── Bienvenida: arcos que se dibujan y crecen (script.js escribe --p de 0 a 1 en la sección) ─── */
.welcome { position: relative; height: 240vh; }
.wl-pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: clip; color: var(--blue); }
.wl-arches { position: absolute; width: min(120vh, 96vw); height: auto; fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; overflow: visible; }
.wl-arc, .wl-base { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wl-spk { position: absolute; width: 22px; height: 22px; top: calc(50% - min(60vh, 48vw) * .62); }
.wl-txt { position: relative; text-align: center; }
.wl-h { margin: 0; font-family: var(--serif); font-weight: 300; font-size: max(calc(var(--s) * 120), 52px); line-height: 1; letter-spacing: -.02em; }
.wl-sub { margin: 14px 0 0; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; }
html.fx .wl-arches { transform: scale(calc(.55 + var(--p, 0) * .9)); }
html.fx .wl-arc { stroke-dashoffset: calc(1 - min(1, max(0, var(--p, 0) * 2.2 - var(--i) * .22))); }
html.fx .wl-base { stroke-dashoffset: calc(1 - min(1, var(--p, 0) * 3)); }
html.fx .wl-txt { opacity: min(1, calc(var(--p, 0) * 4 - .4)); transform: translateY(calc((1 - min(1, var(--p, 0) * 3)) * 40px)); }
html.fx .wl-spk { transform: rotate(calc(var(--p, 0) * 180deg)) scale(calc(.4 + var(--p, 0))); }
html.is-ed .welcome, html:not(.fx) .welcome { height: auto; }
html.is-ed .wl-pin, html:not(.fx) .wl-pin { position: relative; height: auto; min-height: 70vh; padding: 80px 0; }


/* ─── Mensaje: --p (0–1) lo escribe script.js mientras la sección está fija ─── */
.msg { position: relative; height: 300vh; }
.msg-pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; padding: calc(var(--hd-h) + 20px) calc(var(--rail) + 20px) 20px; }
.msg-card { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1.25fr; grid-template-rows: 1fr auto; gap: 32px max(calc(var(--s) * 90), 32px); align-items: center;
  padding: max(calc(var(--s) * 90), 32px) max(calc(var(--s) * 110), 24px); color: var(--on-blue); overflow: hidden; z-index: 2;
  --big: min(30vh, 230px); border-radius: var(--big) max(calc(var(--s) * 22), 14px) var(--big) max(calc(var(--s) * 22), 14px);
  background: var(--blue); }
/* Dibujo de fondo en su propia capa: se pinta una vez y se desliza con transform (antes background-position repintaba
   la tarjeta entera en cada cuadro; en el celular era lo que más pesaba de esta sección) */
.msg-card::before { content: ''; position: absolute; left: -70px; top: -180px; right: -10px; bottom: -10px; z-index: -2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' fill='none' stroke='white' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M28 20v14M21 27h14M128 112v12M122 118h12'/%3E%3Cg transform='translate(112 34)'%3E%3Ccircle cy='-4' r='3'/%3E%3Ccircle cy='4' r='3'/%3E%3Ccircle cx='-4' r='3'/%3E%3Ccircle cx='4' r='3'/%3E%3C/g%3E%3Cg transform='translate(46 128)'%3E%3Ccircle cy='-4' r='3'/%3E%3Ccircle cy='4' r='3'/%3E%3Ccircle cx='-4' r='3'/%3E%3Ccircle cx='4' r='3'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 170px 170px; transform: translate3d(calc(var(--p, 0) * 60px * -1 + 60px), calc(var(--p, 0) * 170px * -1 + 170px), 0); will-change: transform; }
html[data-theme="night"] .msg-card::before, html.zn .msg-card::before { display: none; }
.msg-card::after { content: ''; position: absolute; inset: 0; background: var(--blue); opacity: .72; pointer-events: none; z-index: -1; }
html[data-theme="night"] .msg-card, html.zn .msg-card { background: #0A5AD6; color: #F4F5FD; }
.msg-frame { position: absolute; inset: 14px; border: 1px solid currentColor; opacity: .3; border-radius: max(calc(var(--s) * 20), 12px); pointer-events: none; }
.msg-spk { position: absolute; width: 16px; height: 16px; }
.msg-spk-1 { left: 30px; top: 30px; } .msg-spk-2 { right: 30px; bottom: 30px; }
.msg-kick { color: inherit; opacity: .8; }
.msg-h { margin: 16px 0 0; font-family: var(--serif); font-weight: 300; font-size: max(calc(var(--s) * 104), 48px); line-height: .95; letter-spacing: -.02em; }
.msg-body { border-left: 1px solid rgba(255, 255, 255, .35); padding-left: max(calc(var(--s) * 48), 20px); }
.msg-l { margin: 0 0 .9em; font-family: var(--serif); font-size: max(calc(var(--s) * 28), 20px); line-height: 1.45; }
.msg-sign { grid-column: 2; justify-self: end; text-align: right; }
.msg-s1 { margin: 0; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.msg-s2 { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: max(calc(var(--s) * 40), 26px); }
html.fx .msg-card { clip-path: inset(calc((1 - var(--g, 0)) * 14%) calc((1 - var(--g, 0)) * 20%)); }
/* Estrellas gigantes: entran girando desde dentro de la tarjeta (tapan sus esquinas mientras crece), se acomodan detrás de
   las esquinas grandes y al salir vuelven a crecer hacia adentro. --in = lo que falta de la entrada, --out = salida */
.ms-star, .ms-row, .msg-live { display: none; }
html.fx .ms-star { display: block; position: absolute; z-index: 3; width: min(62vh, 44vw); height: auto; overflow: visible; fill: #FBFCFF; stroke: var(--blue); stroke-width: 1; pointer-events: none; filter: drop-shadow(0 10px 30px rgba(10, 40, 110, .12)); }
html.fx .ms-star path { vector-effect: non-scaling-stroke; }
.ms-star-a { left: calc(var(--rail) + 20px); top: calc(var(--hd-h) + 20px);
  transform: translate(-50%, -50%) translate(calc(var(--in, 1) * 24vw + var(--out, 0) * 20vw), calc(var(--in, 1) * 22vh + var(--out, 0) * 24vh)) rotate(calc(var(--in, 1) * -80deg + var(--out, 0) * 100deg)) scale(calc(.8 + var(--in, 1) * .7 + var(--out, 0) * 2.6)); }
.ms-star-b { right: calc(var(--rail) + 20px); bottom: 20px;
  transform: translate(50%, 50%) translate(calc(var(--in, 1) * -24vw - var(--out, 0) * 20vw), calc(var(--in, 1) * -22vh - var(--out, 0) * 24vh)) rotate(calc(var(--in, 1) * 80deg - var(--out, 0) * 100deg)) scale(calc(.8 + var(--in, 1) * .7 + var(--out, 0) * 2.6)); }
html.fx .ms-row { display: flex; gap: 3px; position: absolute; z-index: 3; color: var(--blue); }
.ms-row-a { right: calc(var(--rail) + 56px); top: calc(var(--hd-h) + 2px); }
.ms-row-b { left: calc(var(--rail) + 56px); bottom: 2px; }
.ms-r { display: block; width: 15px; height: 15px; transform: scale(clamp(0, calc((var(--g, 0) - .7 - var(--i) * .06) * 7), 1)) rotate(calc((1 - clamp(0, calc((var(--g, 0) - .7 - var(--i) * .06) * 7), 1)) * -180deg)); }
.ms-r .spk { width: 100%; height: 100%; }
html.fx .msg-h { display: none; }
html.fx .msg-live { display: block; margin: 16px 0 0; font-family: var(--serif); font-weight: 300; font-size: max(calc(var(--s) * 104), 48px); line-height: .95; letter-spacing: -.02em; }
.msg-live.is-vis .cl-lt { animation: flick .42s linear var(--d) forwards; }
/* Estrellita que baja por la línea divisoria a medida que aparecen las líneas del mensaje */
html.fx .msg-body { position: relative; }
html.fx .msg-body::before { content: ''; position: absolute; left: -8px; top: calc(var(--lp, 0) * (100% - 16px)); width: 16px; height: 16px; background: currentColor;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); transform: rotate(calc(var(--lp, 0) * 180deg)); }
html.fx .msg-h, html.fx .msg-kick { opacity: calc(var(--g, 0) * 2 - .6); transform: translateY(calc((1 - var(--g, 0)) * 30px)); }
html.fx .msg-l { opacity: clamp(0, calc((var(--p, 0) - .26 - var(--i) * .08) * 9), 1); transform: translateY(calc(clamp(0, calc(1 - (var(--p, 0) - .26 - var(--i) * .08) * 9), 1) * 18px)); }
html.fx .msg-sign { opacity: clamp(0, calc((var(--p, 0) - .58) * 8), 1); }
html.fx .msg-spk { transform: rotate(calc(var(--p, 0) * 270deg)) scale(calc(.3 + var(--g, 0) * .7)); }
html.is-ed .msg, html:not(.fx) .msg { height: auto; }
html.is-ed .msg-pin, html:not(.fx) .msg-pin { position: relative; height: auto; padding: 40px var(--pad-x); }
html.is-ed .msg-card, html:not(.fx) .msg-card { height: auto; }

/* ─── Los novios ─── */
.cp { position: relative; padding: max(calc(var(--s) * 160), 80px) calc(var(--rail) + var(--pad-x)) max(calc(var(--s) * 180), 90px); }
.cp-head { text-align: center; }
.cp-h { margin: 14px 0 0; font-family: var(--serif); font-weight: 300; font-size: max(calc(var(--s) * 120), 52px); line-height: 1; letter-spacing: -.02em; color: var(--blue); }
.cp-wide { margin: max(calc(var(--s) * 80), 40px) calc(-1 * var(--pad-x)) 0; }
.cp-wide-in { overflow: hidden; aspect-ratio: 16 / 9; max-height: 86vh; width: 100%; }
.cp-wide img { width: 100%; height: 100%; object-fit: cover; }
html.fx .cp-wide-in { clip-path: inset(calc(var(--q, 0) * 7%) calc(var(--q, 0) * 12%) round calc(var(--q, 0) * 24px)); }
html.fx .cp-wide img { transform: scale(calc(1.18 - var(--q, 0) * .18)); }
.cp-duo { display: grid; grid-template-columns: 1fr max(calc(var(--s) * 120), 40px) 1fr; margin-top: max(calc(var(--s) * 140), 70px); align-items: start; }
.pp-b { grid-column: 3; margin-top: max(calc(var(--s) * 260), 80px); }
.pp-ph { margin: 0; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 4px; position: relative; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line), 14px 14px 0 -1px var(--bg), 14px 14px 0 0 var(--line); }
.pp-ph img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
html.is-ed .pp-ph img, html:not(.fx) .pp-ph img { height: 100%; }
.pp-txt { position: relative; margin-top: max(calc(var(--s) * 34), 24px); padding: 0 max(calc(var(--s) * 24), 8px); }
.pp-role { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 99px; background: var(--blue); color: var(--on-blue); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.pp-name { margin: 10px 0 0; font-family: var(--serif); font-weight: 300; color: var(--blue); line-height: .9; }
.pp-n { display: block; font-size: max(calc(var(--s) * 120), 54px); letter-spacing: -.03em; text-shadow: 0 0 30px var(--bg); }
.pp-last { display: block; font-style: italic; font-size: max(calc(var(--s) * 40), 24px); margin-top: 6px; }
.pp-fs { list-style: none; margin: 22px 0 0; padding: 0; max-width: 40ch; }
.pp-f { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--muted); }
.pp-f::before { content: ''; position: absolute; left: 4px; top: 19px; width: 8px; height: 8px; background: var(--blue); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
html.fx .up { opacity: 0; transform: translateY(26px); }
html.fx .up.is-vis { opacity: 1; transform: none; transition: opacity .9s var(--e-soft) var(--d, 0s), transform 1.2s var(--e-out) var(--d, 0s); }
html.fx .pp-n.up { transform: translateY(60%); clip-path: inset(0 0 100% 0); }
html.fx .pp-n.up.is-vis { transform: none; clip-path: inset(0 0 -20% 0); transition: transform 1.2s var(--e-out), clip-path 1.2s var(--e-out); }


/* Título por letras: cada letra se enciende con un parpadeo a su tiempo; una estrella entra girando en el hueco entre palabras */
.cp-live { display: none; margin: 14px 0 0; font-family: var(--serif); font-weight: 300; font-size: max(calc(var(--s) * 120), 52px); line-height: 1; letter-spacing: -.02em; color: var(--blue);
  transform: scale(calc(1 - var(--h, 0) * .22)); opacity: calc(1 - var(--h, 0)); }
html.fx .cp-h { display: none; }
html.fx .cp-live.up, html.fx .cp-live.up.is-vis { opacity: calc(1 - var(--h, 0)); transform: scale(calc(1 - var(--h, 0) * .22)); transition: none; }
html.fx .cp-live { display: block; }
.cl-lt { opacity: 0; }
.cp-live.is-vis .cl-lt { animation: flick .42s linear var(--d) forwards; }
@keyframes flick { 0% { opacity: 0; } 30% { opacity: 1; } 55% { opacity: .22; } 100% { opacity: 1; } }
.cl-gap { display: inline-block; width: .62em; height: .62em; margin: 0 .06em; vertical-align: .02em; }
.cl-gap .spk { width: 100%; height: 100%; color: var(--blue); opacity: 0; transform: scale(.1) rotate(-210deg); }
.cp-live.is-vis .cl-gap .spk { opacity: 1; transform: scale(calc(1 + var(--h, 0) * .9)) rotate(calc(var(--h, 0) * 120deg)); transition: transform .9s cubic-bezier(.34, 1.56, .64, 1) .35s, opacity .3s linear .35s; }

/* Línea que serpentea (script.js › cpLine): base azul, copia blanca recortada a la foto ancha, flores y estrella */
.cp-line { display: none; position: absolute; left: 0; top: 0; z-index: 1; overflow: visible; pointer-events: none; }
html.fx .cp-line { display: block; }
.pp-txt, .cp-head { z-index: 2; }
.cp-head { position: relative; }
.cl-base, .cl-over { fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: var(--len, 1); stroke-dashoffset: var(--len, 1); }
.cl-base { stroke: var(--blue); }
.cl-over { stroke: #fff; stroke-width: 1.5; }
.cp-line.is-drawn .cl-base, .cp-line.is-drawn .cl-over { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--e-out); }
.cl-tip { fill: var(--blue); opacity: 0; transition: opacity .4s linear .3s; }
.cp-line.is-drawn .cl-tip { opacity: 1; }
.cl-tip-in { transform: scale(var(--tz, 1)); }
.cl-fls { display: none; }
html.fx .cl-fls { display: block; position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 1; pointer-events: none; }
.fl { position: absolute; left: var(--x, 0); top: var(--y, 0); width: max(calc(var(--s) * 104), 70px); aspect-ratio: 1; margin: calc(max(calc(var(--s) * 104), 70px) / -2) 0 0 calc(max(calc(var(--s) * 104), 70px) / -2); }
.fl img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 6px 14px rgba(10, 40, 110, .25));
  transform: scale(0) rotate(calc(var(--dir, 1) * -140deg)); transition: transform .45s var(--e-io); }
.fl.is-bloom img { transform: none; transition: transform 1.3s cubic-bezier(.34, 1.56, .64, 1); }
.fl-star { width: max(calc(var(--s) * 84), 56px); margin: calc(max(calc(var(--s) * 84), 56px) / -2) 0 0 calc(max(calc(var(--s) * 84), 56px) / -2); }
.fl-st { display: block; width: 100%; height: 100%; transform: scale(0) rotate(-140deg); transition: transform .45s var(--e-io); }
.fl-st svg { display: block; width: 100%; height: 100%; fill: #FBFCFF; stroke: var(--blue); stroke-width: 1.4; overflow: visible;
  filter: drop-shadow(0 0 10px rgba(180, 205, 255, .55)); animation: obspin 22s linear infinite; }
.fl-star.is-bloom .fl-st { transform: none; transition: transform 1.3s cubic-bezier(.34, 1.56, .64, 1); }

/* Paso a la historia: resorte de anillos, estrella que lo atraviesa y palabras que suben (script.js › cpNext, --p 0–1) */
.cn { position: relative; margin: max(calc(var(--s) * 120), 60px) calc(-1 * (var(--rail) + var(--pad-x))) calc(-1 * max(calc(var(--s) * 180), 90px)); }
.cn-q { margin: 0 auto; padding: 40px var(--pad-x) 80px; max-width: 22ch; text-align: center; font-family: var(--serif); font-style: italic; font-size: max(calc(var(--s) * 48), 30px); line-height: 1.15; color: var(--blue); }
.cn-coil, .cn-star, .cn-words { display: none; }
html.fx .cn { height: 300vh; }
html.fx .cn-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
html.fx .cn-q { display: none; }
html.fx .cn-coil { display: block; position: absolute; left: 50%; top: 0; width: min(36vw, 540px); height: auto; overflow: visible; fill: none; stroke: var(--blue); stroke-width: 1; z-index: 0;
  transform: translate(-50%, var(--cy, 100vh)) rotate(var(--tilt, 0deg)) scale(var(--cz, 1)); opacity: var(--co, 1); will-change: transform, opacity; }
.cn-star .spk { width: 100%; height: 100%; fill: #FBFCFF; stroke: var(--blue); stroke-width: 1.2; overflow: visible; }
.cn-star .spk path { vector-effect: non-scaling-stroke; }
.cn-coil ellipse { vector-effect: non-scaling-stroke; opacity: .45; transition: opacity .25s linear, stroke-width .25s linear; }
.cn-coil ellipse.is-lit { opacity: 1; stroke-width: 2; }
html.fx .cn-star { display: block; position: absolute; left: 50%; top: 42%; width: max(calc(var(--s) * 70), 46px); height: max(calc(var(--s) * 70), 46px); margin: min(calc(var(--s) * -35), -23px) 0 0 min(calc(var(--s) * -35), -23px); color: var(--blue); z-index: 0;
  transform: translateY(var(--sy, 0px)) scale(var(--sz, 1)) rotate(var(--sr, 0deg)); opacity: var(--so, 0); filter: drop-shadow(0 0 16px rgba(255, 255, 255, .9)) drop-shadow(0 6px 18px rgba(10, 40, 110, .18)); }
html.fx .cn-words { display: block; position: absolute; inset: 0; margin: 0; z-index: 1; }
.cn-w { position: absolute; top: var(--y); font-family: var(--serif); font-weight: 300; font-size: var(--fs, 64px); line-height: 1; letter-spacing: -.02em; color: var(--blue); white-space: nowrap;
  text-shadow: 0 0 24px var(--bg), 0 0 6px var(--bg);
  transform: translateY(var(--wy, 100vh)); opacity: var(--wo, 0); will-change: transform; }
.cn-w.is-l { left: var(--x); }
.cn-w.is-it { font-style: italic; }
.cn-w.is-r { right: var(--x); }

/* ─── Nuestra historia ───
   Editor y celular: lista de tarjetas. Escritorio con html.fx: html.st-on → escena fija (la altura la pone script.js). */
@property --rv { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.st { position: relative; padding: max(calc(var(--s) * 140), 70px) calc(var(--rail) + var(--pad-x)); }
.st-h { margin: 12px 0 0; font-family: var(--serif); font-weight: 300; font-size: max(calc(var(--s) * 72), 40px); line-height: 1; letter-spacing: -.02em; color: var(--blue); }
.st-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 28px; margin-top: 48px; }
.ch-ph { margin: 0; }
.ch-ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.ch-cap { margin-top: 10px; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.ch-y { margin: 18px 0 0; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--blue); }
.ch-t { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; color: var(--blue); }
.ch-p { margin: 10px 0 0; font-size: 14px; line-height: 1.75; color: var(--muted); max-width: 46ch; }
.st-year, .st-bar { display: none; }
html.fx .chap.up { opacity: 0; transform: translateY(30px); }
html.fx .chap.up.is-vis { opacity: 1; transform: none; transition: opacity .9s var(--e-soft), transform 1.2s var(--e-out); }

html.st-on .st { padding: 0; height: var(--st-h, 600vh); }
html.st-on .st-pin { position: sticky; top: 0; height: 100vh; overflow: clip; padding: calc(var(--hd-h) + max(calc(var(--s) * 36), 20px)) calc(var(--rail) + var(--pad-x)) 0; }
html.st-on .st-head { max-width: min(44vw, 640px); }
html.st-on .st-year { display: flex; position: absolute; left: calc(var(--rail) + var(--pad-x)); top: 33%; font-family: var(--serif); font-weight: 300; font-size: max(calc(var(--s) * 230), 120px); line-height: 1; letter-spacing: -.04em; color: var(--blue); height: 1em; overflow: hidden; }
.yr-col { display: block; height: 1em; overflow: hidden; }
.yr-reel { display: flex; flex-direction: column; transition: transform .9s var(--e-io) var(--d, 0s); }
.yr-reel span { display: block; height: 1em; text-align: center; }
html.st-on .st-list { display: block; margin: 0; position: absolute; inset: 0; pointer-events: none; }
html.st-on .chap { position: absolute; inset: 0; }
html.st-on .ch-ph { position: absolute; right: calc(var(--rail) + max(calc(var(--s) * 110), 40px)); top: calc(var(--hd-h) + 7vh); width: min(32vw, 58vh); pointer-events: auto;
  transform: translate3d(0, 120vh, 0) rotate(calc(4deg - var(--n) * 3deg)); transition: transform 1.1s var(--e-out), filter .9s linear, opacity .9s linear; }
html.st-on .ch-ph img { box-shadow: 0 24px 60px -30px rgba(10, 40, 100, .55); outline: 10px solid var(--bg); }
html.st-on .chap.is-cur .ch-ph { transform: translate3d(0, 0, 0) rotate(calc(2deg - (var(--n) % 3) * 2deg)); }
html.st-on .chap.is-past .ch-ph { transform: translate3d(calc(var(--back, 0) * -28px), calc(var(--back, 0) * -14px), 0) rotate(calc(-6deg + (var(--n) % 3) * 4deg)) scale(calc(1 - var(--back, 0) * .05)); filter: saturate(.3) brightness(1.08); opacity: calc(1 - var(--back, 0) * .25); }
html.st-on .ch-cap { margin-top: 18px; transition: opacity .4s linear; }
html.st-on .chap:not(.is-cur) .ch-cap { opacity: 0; }
html.st-on .ch-txt { position: absolute; left: calc(var(--rail) + var(--pad-x)); top: calc(33% + max(calc(var(--s) * 250), 130px)); width: min(40vw, 520px); pointer-events: auto; opacity: 0; visibility: hidden; transition: opacity .4s linear, visibility 0s .4s; }
html.st-on .chap.is-cur .ch-txt { opacity: 1; visibility: visible; transition: opacity .3s linear; }
html.st-on .ch-y { display: none; }
html.st-on .ch-t { margin: 0; font-size: max(calc(var(--s) * 40), 28px); }
html.st-on .ch-p { font-size: 15px; --rv: 0%; -webkit-mask: linear-gradient(to bottom, #000 var(--rv), transparent calc(var(--rv) + 1.8em)); mask: linear-gradient(to bottom, #000 var(--rv), transparent calc(var(--rv) + 1.8em)); }
html.st-on .chap.is-cur .ch-p { --rv: 110%; transition: --rv 1.6s linear .25s; }
html.st-on .ch-t { clip-path: inset(0 100% 0 0); }
html.st-on .chap.is-cur .ch-t { clip-path: inset(0 0 0 0); transition: clip-path .9s var(--e-io) .1s; }
html.st-on .st-bar { display: flex; align-items: center; gap: 28px; position: absolute; left: calc(var(--rail) + var(--pad-x)); right: calc(var(--rail) + var(--pad-x)); bottom: max(calc(var(--s) * 34), 20px); padding-top: 14px; border-top: 1px solid var(--line); color: var(--blue); }
.st-count { font-family: var(--serif); font-size: 22px; font-variant-numeric: tabular-nums; min-width: 4.5ch; }
.st-dots { flex: 1; list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.st-dots::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.st-dots::after { content: ''; position: absolute; left: 0; top: 50%; height: 1px; width: calc(var(--sp, 0) * 100%); background: var(--blue); }
.st-dot { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border: 0; background: var(--bg); color: var(--blue); font-size: 11px; letter-spacing: .14em; cursor: pointer; opacity: .5; transition: opacity .3s; }
.st-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; transition: background .3s, transform .3s; }
.st-dot.is-on { opacity: 1; }
.st-dot.is-on::before { background: currentColor; transform: scale(1.4); }
.st-nav { display: flex; gap: 8px; }
.st-btn { min-height: 36px; padding: 0 16px; border: 1px solid var(--blue); border-radius: 99px; background: none; color: var(--blue); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.st-btn:hover { background: var(--blue); color: var(--on-blue); }


/* ─── Paso a la noche (--p 0–1 lo escribe script.js; html.zn = zona de noche, cambia los tokens) ─── */
.nt { position: relative; height: 230vh; }
.nt-pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; padding: 0 calc(var(--rail) + var(--pad-x)); text-align: center; }
.nt-q, .nt-live { margin: 0; max-width: 17ch; font-family: var(--serif); font-weight: 300; font-size: max(calc(var(--s) * 92), 38px); line-height: 1.08; letter-spacing: -.015em; color: var(--ink); }
.nt-live { display: none; }
html.fx .nt-q { display: none; }
html.fx .nt-live { display: block; }
.nt-w { opacity: clamp(.14, calc((var(--p, 0) * 1.35 - var(--k) / var(--n)) * var(--n) * .9 + .14), 1); transition: opacity .2s linear; }
.nt-spk { position: absolute; top: 18%; left: 50%; width: 26px; height: 26px; color: var(--blue); transform: translateX(-50%) rotate(calc(var(--p, 0) * 360deg)); }
html.is-ed .nt, html:not(.fx) .nt { height: auto; }
html.is-ed .nt-pin, html:not(.fx) .nt-pin { position: relative; height: auto; padding: 100px var(--pad-x); }

/* ─── Fecha y lugar ─── */
.dv { position: relative; padding: max(calc(var(--s) * 60), 40px) calc(var(--rail) + var(--pad-x)) max(calc(var(--s) * 160), 80px); text-align: center; }
.dv-h { margin: 12px 0 0; font-family: var(--serif); font-weight: 300; font-size: max(calc(var(--s) * 72), 40px); line-height: 1; color: var(--ink); }
.db { position: relative; margin: max(calc(var(--s) * 50), 24px) 0 0; padding: max(calc(var(--s) * 40), 20px) 0; }
.db-date { margin: 0; font-family: var(--serif); font-weight: 300; line-height: .9; }
.db-row { display: inline-block; font-size: min(max(calc(var(--s) * 250), 64px), 20vw); letter-spacing: -.04em; white-space: nowrap; color: var(--ink); }
html.fx .db-ch { --cf: clamp(0%, calc((var(--f, 0) * 10.4 - var(--k)) * 100%), 100%); color: transparent; -webkit-text-stroke: 1px var(--ink); background: linear-gradient(90deg, var(--ink) var(--cf), transparent calc(var(--cf) + 1%)); -webkit-background-clip: text; background-clip: text; }
.db-ch { display: inline-block; }
html.fx .db-ch { transform: translateY(calc((1 - clamp(0, calc(var(--a, 0) * 1.6 - var(--k) * .06), 1)) * 40%)); opacity: clamp(0, calc(var(--a, 0) * 1.6 - var(--k) * .06), 1); }
.db-day { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: max(calc(var(--s) * 40), 24px); color: var(--blue); }
.tw { position: absolute; left: var(--x); top: var(--y); width: calc(26px * var(--z)); height: calc(26px * var(--z)); color: var(--blue); pointer-events: none; }
html.fx .tw { animation: tw var(--w) var(--e-io) infinite alternate; }
@keyframes tw { 0% { transform: scale(.25) rotate(0); opacity: .2; } 100% { transform: scale(1) rotate(45deg); opacity: 1; } }
.cd { display: flex; justify-content: center; gap: max(calc(var(--s) * 44), 16px); margin: max(calc(var(--s) * 40), 24px) 0 0; color: var(--ink); }
.cd-u { display: grid; justify-items: center; min-width: 64px; }
.cd-n { font-family: var(--serif); font-weight: 300; font-size: max(calc(var(--s) * 56), 34px); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-l { margin-top: 6px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.evs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 0; max-width: 1080px; margin: max(calc(var(--s) * 100), 56px) auto 0; text-align: left; border-top: 1px solid var(--line); }
.ev { padding: 34px max(calc(var(--s) * 40), 4px) 38px; border-bottom: 1px solid var(--line); }
.ev + .ev { border-left: 1px solid var(--line); }
.ev-top { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.ev-t { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--blue); }
.ev-h { font-family: var(--serif); font-size: max(calc(var(--s) * 64), 40px); font-weight: 300; line-height: 1; color: var(--ink); }
.ev-p { margin: 18px 0 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--ink); }
.ev-a { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.ev-map { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--line); }
.ev-map:hover { border-color: var(--blue); }

/* ─── Indicaciones: cabecera fija a la izquierda; cada fila dibuja su línea y gira su destello al entrar ─── */
.gds { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: max(calc(var(--s) * 80), 32px); padding: max(calc(var(--s) * 120), 64px) calc(var(--rail) + var(--pad-x)) max(calc(var(--s) * 160), 80px); }
.gds-head { position: sticky; top: calc(var(--hd-h) + 40px); align-self: start; }
.gds-h { margin: 12px 0 0; font-family: var(--serif); font-weight: 300; font-size: max(calc(var(--s) * 72), 40px); line-height: 1; color: var(--ink); }
.gds-s { margin: 20px 0 0; max-width: 34ch; font-size: 15px; color: var(--muted); }
/* 01, 02…: por contador; al borrar o agregar una tarjeta se renumeran solas (escritas a mano quedaban «01, 03» o «04, 04») */
.gds-list { display: grid; counter-reset: gd; }
.gd { counter-increment: gd; }
.gd-n::before { content: counter(gd, decimal-leading-zero); }
.gd { position: relative; display: grid; grid-template-columns: max(calc(var(--s) * 90), 52px) 1fr; gap: 0 18px; padding: 30px 0 32px; }
.gd::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; }
.gd:last-child::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.gd-n { font-family: var(--serif); font-weight: 300; font-size: max(calc(var(--s) * 44), 30px); line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.gd-spk { position: absolute; right: 0; top: 30px; width: 16px; height: 16px; color: var(--blue); }
.gd-t { margin: 0; padding-right: 30px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: max(calc(var(--s) * 34), 26px); line-height: 1.1; color: var(--ink); }
.gd-p { margin: 10px 0 0; max-width: 52ch; font-size: 15px; line-height: 1.7; color: var(--muted); }
html.fx .gd.up { transform: none; }
html.fx .gd.up::before { transform: scaleX(0); }
html.fx .gd.up .gd-spk { transform: scale(0) rotate(-90deg); }
html.fx .gd.up .gd-b, html.fx .gd.up .gd-n { opacity: 0; transform: translateY(18px); }
html.fx .gd.up.is-vis::before { transform: none; transition: transform 1.2s var(--e-io) var(--d, 0s); }
html.fx .gd.up.is-vis .gd-spk { transform: none; transition: transform 1s var(--e-out) calc(var(--d, 0s) + .5s); }
html.fx .gd.up.is-vis .gd-b, html.fx .gd.up.is-vis .gd-n { opacity: 1; transform: none; transition: opacity .9s var(--e-soft) calc(var(--d, 0s) + .25s), transform 1.1s var(--e-out) calc(var(--d, 0s) + .25s); }
html.fx .gd.up.is-vis .gd-n { transition-delay: calc(var(--d, 0s) + .15s); }
.gd:hover .gd-spk { transform: rotate(90deg) scale(1.2); transition: transform .5s var(--e-out); }

/* ─── Confirmar asistencia (vuelve el día) ─── */
.rs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: max(calc(var(--s) * 90), 32px); align-items: center; padding: max(calc(var(--s) * 140), 72px) calc(var(--rail) + var(--pad-x)); }
.rs-side { text-align: center; }
.rs-ring { position: relative; width: min(max(calc(var(--s) * 300), 200px), 70vw); margin: 0 auto 28px; color: var(--blue); }
.rs-c { display: block; width: 100%; height: auto; overflow: visible; will-change: transform; }
.rs-ring text { font-family: var(--sans); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; fill: currentColor; }
.rs-spk { position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; margin: -11% 0 0 -11%; color: var(--blue); will-change: transform; }
.rs-h { margin: 12px 0 0; font-family: var(--serif); font-weight: 300; font-size: max(calc(var(--s) * 80), 42px); line-height: 1; color: var(--ink); }
.rs-dl { margin: 18px auto 0; max-width: 34ch; font-size: 15px; color: var(--muted); }
.rs-form { display: grid; gap: 8px; padding: max(calc(var(--s) * 48), 26px) max(calc(var(--s) * 48), 20px); border: 1px solid var(--line); border-radius: max(calc(var(--s) * 24), 16px);
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.rs-l { margin: 14px 0 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.rs-l:first-child { margin-top: 0; }
.rs-in { width: 100%; min-height: 48px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--ink); font: inherit; font-size: 17px; }
.rs-in:focus { outline: none; border-bottom-color: var(--blue); box-shadow: 0 1px 0 0 var(--blue); }
.rs-in[aria-invalid="true"] { border-bottom-color: #C0392B; }
.rs-in::placeholder { color: var(--muted); opacity: .7; }
select.rs-in { appearance: none; -webkit-appearance: none; background: linear-gradient(45deg, transparent 50%, var(--blue) 50%) right 8px center / 7px 7px no-repeat; cursor: pointer; }
textarea.rs-in { resize: vertical; min-height: 84px; }
.rs-opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.rs-opt { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--blue); border-radius: 99px; color: var(--blue); font-size: 14px; cursor: pointer; transition: background .3s, color .3s; }
.rs-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rs-opt:has(input:checked) { background: var(--blue); color: var(--on-blue); }
.rs-opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.rs-guests[hidden] { display: none; }
.rs-err { min-height: 1.4em; margin: 6px 0 0; font-size: 13px; color: #C0392B; }
.rs-cta { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; margin-top: 4px; padding: 0 28px; border-radius: 99px; background: var(--blue); color: var(--on-blue);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; overflow: hidden; }
.rs-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-100%); }
.rs-cta:hover::before { transform: translateX(100%); transition: transform .9s var(--e-io); }
.rs-wa { width: 20px; height: 20px; flex: none; }

/* ─── Pie ─── */
.gfs { position: relative; max-width: 760px; margin: 0 auto; padding: max(calc(var(--s) * 40), 24px) var(--pad-x) max(calc(var(--s) * 130), 72px); text-align: center; }
.gfs::before { content: ''; display: block; width: 1px; height: max(calc(var(--s) * 70), 44px); margin: 0 auto 26px; background: var(--line); }
.gfs-spk { display: block; width: 14px; height: 14px; margin: 0 auto 14px; color: var(--blue); }
.gfs-h { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: max(calc(var(--s) * 56), 36px); line-height: 1.05; color: var(--ink); }
.gfs-s { margin: 16px auto 0; max-width: 46ch; font-size: 15px; line-height: 1.7; color: var(--muted); }
.gf-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 38px; border-top: 1px solid var(--line); }
.gf { padding: 26px 18px 28px; border-bottom: 1px solid var(--line); }
.gf + .gf { border-left: 1px solid var(--line); }
.gf-t { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--blue); }
.gf-p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.gf-a { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; margin-top: 4px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); text-decoration: none; border-bottom: 1px solid transparent; }
.gf-a:hover { border-bottom-color: currentColor; }
.gb { margin-top: 34px; }
.gb-q { margin: 0; font-size: 14px; color: var(--muted); }
.gb-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; padding: 0 20px; border: 1px solid var(--line); border-radius: 99px; background: none; color: var(--blue); font: inherit; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: border-color .3s; }
.gb-btn:hover, .gb-btn[aria-expanded="true"] { border-color: var(--blue); }
.gb-chev { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.gb-btn[aria-expanded="true"] .gb-chev { transform: translateY(1px) rotate(-135deg); }
.gb-data { display: none; max-width: 520px; margin: 18px auto 0; padding: 8px 22px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--bg) 70%, #fff); text-align: left; }
.gb-data.is-open { display: block; animation: gbIn .5s var(--e-out); }
@keyframes gbIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
html.is-ed .gb-data { display: block; }
.gb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.gb-row:last-child { border-bottom: 0; }
.gb-l { grid-column: 1; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gb-v { grid-column: 1; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gb-copy { grid-column: 2; grid-row: 1 / span 2; min-height: 40px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: none; color: var(--blue); font: inherit; font-size: 12px; cursor: pointer; }
.gb-copy:hover { border-color: var(--blue); }
.gb-copy.is-done { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.ft { position: relative; padding: max(calc(var(--s) * 120), 64px) calc(var(--rail) + var(--pad-x)) 28px; text-align: center; overflow: hidden; }
.ft-spk { margin: 0 auto; width: 30px; height: 30px; color: var(--blue); transform: rotate(calc(var(--a, 1) * 180deg)) scale(var(--a, 1)); }
.ft-names { margin: 18px 0 0; font-family: var(--serif); font-weight: 300; line-height: 1; }
.ft-row { display: inline-block; font-size: min(max(calc(var(--s) * 180), 56px), 15vw); letter-spacing: -.03em; color: var(--blue); white-space: nowrap; }
.ft-ch { display: inline-block; }
.ft-amp { font-style: italic; margin: 0 .08em; }
html.fx .ft-ch { --t: clamp(0, calc(var(--a, 0) * 2.2 - var(--k) * .07), 1); opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 60%)) rotate(calc((1 - var(--t)) * 8deg)); }
.ft-thanks { margin: 22px 0 0; font-family: var(--serif); font-style: italic; font-size: max(calc(var(--s) * 30), 22px); color: var(--ink); }
.ft-bot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: max(calc(var(--s) * 100), 56px); padding-top: 18px; border-top: 1px solid var(--line); }
.ft-c { margin: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ft-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); text-decoration: none; }

/* ─── Celular / tableta ─── */
@media (max-width: 860px) {
  .gf-list { grid-template-columns: 1fr; }
  .gf + .gf { border-left: 0; }
  :root { --rail: 0px; --pad-x: 18px; }
  .rail, .theme { display: none; }
  /* Celular: sin desenfoque de fondo ni sombras con filter (se repintan en cada cuadro y traban el desplazamiento) */
  .hd { left: 0; right: 0; background: color-mix(in srgb, var(--bg) 94%, transparent); }
  .rs-form { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .wr-f img { filter: brightness(1.16) saturate(.72); }
  .fl img, html.fx .ms-star, html.fx .cn-star, .fl-st svg { filter: none; }
  .hd-nav, .hd-cta { display: none; }
  .hd-burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--blue); cursor: pointer; }
  .bars, .bars::before { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s; }
  .bars::before { content: ''; position: absolute; top: 7px; width: 14px; }
  .hd-burger[aria-expanded="true"] .bars { transform: translateY(3.5px) rotate(45deg); }
  .hd-burger[aria-expanded="true"] .bars::before { top: 0; width: 22px; transform: rotate(-90deg); }
  .hero-top { grid-template-columns: 1fr 1fr; }
  .hero-top .hero-title { grid-column: 1 / -1; grid-row: 2; margin-top: 10px; }
  .names { grid-template-columns: 1fr; justify-content: stretch; margin-top: 18px; }
  .nm-2 { grid-column: 1; padding-top: 0; }
  .amp { justify-self: center; }
  .hero-mid { margin-top: 28px; }
  .arch { width: min(50vw, 240px); }
  html.fx .deco { right: auto; left: 18px; bottom: auto; top: calc(var(--hd-h) + 150px); width: 96px; height: 120px; }
  .px { grid-template-columns: repeat(8, 9px); gap: 2px; }
  .px i { border-radius: 2px; }
  .dt-row { position: relative; top: auto; display: flex; justify-content: center; gap: 0; margin-top: 23vw; font-size: 34px; }
  .dt { position: relative; inset: auto; }
  .dt-day { position: relative; text-align: center; left: auto; top: auto; }
  .hero-bot { flex-direction: column; align-items: center; text-align: center; }
  .welcome { height: 180vh; }
  /* Mensaje en el celular: el dedo desplaza rápido; las líneas salen antes y queda una pausa larga para leerlo entero
     antes de la salida (script.js › MSG_OUT). Sin clip-path animado: repinta la tarjeta entera en cada cuadro. */
  .msg { height: 340vh; }
  html.fx .msg-l { opacity: clamp(0, calc((var(--p, 0) - .1 - var(--i) * .06) * 9), 1); transform: translateY(calc(clamp(0, calc(1 - (var(--p, 0) - .1 - var(--i) * .06) * 9), 1) * 18px)); }
  html.fx .msg-sign { opacity: clamp(0, calc((var(--p, 0) - .4) * 8), 1); }
  html.fx .msg-card { clip-path: none; transform: translateY(calc((1 - var(--g, 0)) * 60px)) scale(calc(.94 + var(--g, 0) * .06)); }
  html.fx .ms-star { will-change: transform; }
  .msg-pin { padding: calc(var(--hd-h) + 12px) 12px 12px; }
  .msg-card { grid-template-columns: 1fr; grid-template-rows: auto; align-content: center; gap: 22px; padding: 44px 26px; --big: 90px; }
  html.fx .ms-star { width: 78vw; }
  .msg-body { padding-left: 16px; }
  .msg-l { font-size: 19px; }
  .msg-sign { grid-column: 1; }
  .cp-wide { margin-left: -18px; margin-right: -18px; }
  .cp-wide-in { aspect-ratio: 4 / 5; }
  .cp-duo { grid-template-columns: 1fr; gap: 64px; }
  .pp-b { grid-column: 1; margin-top: 0; }
  .pp-txt { margin-top: 26px; }
  .nt { height: 200vh; }
  .ev + .ev { border-left: 0; }
  .cd { gap: 10px; }
  .cd-u { min-width: 0; flex: 1; }
  html.fx .cn-coil { width: 64vw; }
  .gds { grid-template-columns: 1fr; gap: 24px; }
  .gds-head { position: relative; top: auto; }
  .gd { grid-template-columns: 44px 1fr; gap: 0 12px; padding: 24px 0 26px; }
  .rs { grid-template-columns: 1fr; }
  .rs-form { padding: 26px 20px; }
  .rs-opt { flex: 1; justify-content: center; padding: 0 12px; }
  .ft-bot { flex-direction: column-reverse; }
  /* Historia fija también en el celular: foto arriba a la derecha, año grande encima de su esquina, texto abajo */
  html.st-on .st-pin { --pw: max(130px, min(64vw, (100svh - var(--hd-h) - 400px) / 1.25)); height: 100svh; padding: calc(var(--hd-h) + 14px) 18px 0; }
  html.st-on .st-head { max-width: none; }
  html.st-on .st-h { font-size: 32px; }
  html.st-on .st-year { left: 18px; top: calc(var(--hd-h) + 96px + var(--pw) * 1.25 - .8 * min(26vw, 104px, var(--pw) * .5)); font-size: min(26vw, 104px, var(--pw) * .5); z-index: 2; }
  html.st-on .ch-ph { right: 18px; top: calc(var(--hd-h) + 96px); width: var(--pw); }
  html.st-on .ch-ph img { outline-width: 6px; }
  html.st-on .ch-cap { display: none; }
  html.st-on .ch-txt { left: 18px; right: 18px; top: auto; bottom: 112px; width: auto; }
  html.st-on .ch-t { font-size: 26px; }
  html.st-on .ch-p { font-size: 14px; line-height: 1.65; }
  html.st-on .st-bar { left: 18px; right: 18px; bottom: 14px; flex-wrap: wrap; gap: 4px 12px; padding-top: 0; border-top: 0; }
  html.st-on .st-dots { order: -1; flex: 1 1 100%; }
  html.st-on .st-dots::before, html.st-on .st-dots::after { top: 0; }
  html.st-on .st-dot { padding: 6px 2px 0; gap: 5px; background: none; font-size: 10px; letter-spacing: .06em; min-height: 36px; }
  html.st-on .st-count { font-size: 18px; margin-right: auto; }
  html.st-on .st-btn { min-height: 38px; padding: 0 14px; }
}
.mm[hidden] { display: none; }
.mm { position: fixed; inset: 0; z-index: 48; padding: calc(var(--hd-h) + 32px) 24px 32px; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; }
.mm ol { list-style: none; margin: 0; padding: 0; }
.mm-a { display: flex; align-items: baseline; gap: 16px; min-height: 52px; text-decoration: none; border-bottom: 1px solid var(--line); color: var(--blue); }
/* número por contador: al quitar una sección el editor quita su enlace y los demás se renumeran */
.mm ol { counter-reset: mm; }
.mm-a { counter-increment: mm; }
.mm-n::before { content: counter(mm, decimal-leading-zero); }
.mm-n { font-size: 11px; letter-spacing: .1em; }
.mm-t { font-family: var(--serif); font-size: 32px; line-height: 1.4; }
html.menu-open, html.menu-open body { overflow: hidden; }

/* La fecha de la portada se acomoda en la cabecera: tiene que quedar por encima de su fondo esmerilado */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
