/*
  Gala Esmeralda. La portada es un sobre verde oscuro con la esmeralda; al abrirlo,
  el interior sigue el arte original del evento: satín blanco, caligrafía verde y dorada.
*/
:root {
  /* Color: interior claro */
  --blanco: #fff;
  --marfil: #fffdf7;
  --champan: #f8eed6;
  --verde: #1f5a24;
  --verde-hondo: #143d19;
  --tinta: #1c2f1d;
  --tinta-suave: #4a5b49;
  --oro: #bf9000;
  --oro-texto: #846200;
  --oro-claro: #e9cf8e;
  --sobre-verde: #fffdf7;
  --alerta: #a3261c;

  /* Color: portada oscura */
  --noche: #04211a;
  --noche-alta: #06281e;
  --esmeralda: #0f8a56;
  --resplandor: rgba(20, 140, 90, 0.42);
  --halo-gema: rgba(60, 230, 160, 0.38);
  --sombra: rgba(0, 0, 0, 0.5);
  --sombra-suave: rgba(20, 61, 25, 0.22);
  --trazo-diez: rgba(191, 144, 0, 0.22);

  --degradado-verde: linear-gradient(135deg, #2f7a35, #1f5a24 55%, #143d19);
  --degradado-verde-alto: linear-gradient(135deg, #38893f, #24662a 55%, #184a1e);
  --degradado-champan: linear-gradient(120deg, #fdf8ea, #f6e9c8 60%, #ecdcae);
  --degradado-tablero: linear-gradient(#1d2a1e 0%, #1d2a1e 49%, #0c140d 50%, #162017 100%);
  --fulgor: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 1), rgba(214, 255, 236, 0.92) 34%, rgba(214, 255, 236, 0) 72%);
  --lamina-oro: linear-gradient(100deg, #1f5a24 0%, #1f5a24 36%, #bf9000 46%, #f3dc9c 50%, #bf9000 54%, #1f5a24 64%, #1f5a24 100%);
  --rayos: repeating-conic-gradient(from 0deg, rgba(120, 240, 185, 0.12) 0deg 5deg, rgba(120, 240, 185, 0) 5deg 20deg);
  --velo-satin: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55));

  /* Tipografía */
  --caligrafia: "Love Light", "Snell Roundhand", "Apple Chancery", cursive;
  --texto: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espacio */
  --e1: 4px;
  --e2: 8px;
  --e3: 12px;
  --e4: 16px;
  --e5: 24px;
  --e6: 36px;
  --e7: 48px;
  --e8: 64px;
  --e9: 112px;
  --canto: 20px;
  --seccion: clamp(var(--e8), 12vw, var(--e9));

  /* Forma */
  --bisel-boton: 10px;
  --talla-esmeralda: polygon(var(--b) 0, calc(100% - var(--b)) 0, 100% var(--b), 100% calc(100% - var(--b)), calc(100% - var(--b)) 100%, var(--b) 100%, 0 calc(100% - var(--b)), 0 var(--b));
  --radio-tablero: 6px;
  --gema-max: 290px;
  --toque: 52px;
  --foco: 2px;
  --banda-max: 900px;
  --logo-max: 300px;
  --ornamento-ancho: 260px;
  --hilo: 44px;

  --brillo-barrido: linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 60%);
  --gema-ornamento: 30px;
  --profundidad: 640px;

  --punto: 7px;

  /* Movimiento */
  --t-paso: 0.75s;
  --t-escribir: 1.25s;
  --curva-rebote: cubic-bezier(0.3, 1.5, 0.5, 1);
  --t-barrido: 6s;
  --t-corta: 0.2s;
  --t-media: 0.3s;
  --t-apertura: 0.9s;
  --t-latido: 3.2s;
  --t-fulgor: 1.3s;
  --t-lamina: 2.4s;
  --t-rayos: 60s;
  --t-guino: 3.6s;
  --t-trazo: 1.4s;
  --t-hilo: 2s;
  --curva-apertura: cubic-bezier(0.7, 0, 0.2, 1);
  --curva-salida: cubic-bezier(0.2, 0.7, 0.2, 1);
  --paso: 0.15s;

  --sombra-gema: drop-shadow(0 0 34px var(--halo-gema)) drop-shadow(0 18px 30px var(--sombra));
  --sombra-atajo: drop-shadow(0 8px 18px var(--sombra-suave));
  --sombra-tablero: 0 6px 14px var(--sombra-suave);
  --desenfoque: blur(6px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-snap-type: y proximity; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--marfil);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.cerrada { overflow: hidden; height: 100svh; background: var(--noche); }
body.cerrada main, body.cerrada .atajo { display: none; }

h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

h2 {
  font-family: var(--caligrafia);
  font-weight: 400;
  font-size: clamp(3.1rem, 14vw, 4.8rem);
  line-height: 1.15;
  color: var(--verde);
}

:focus-visible { outline: var(--foco) solid var(--verde); outline-offset: var(--e1); }
body.cerrada :focus-visible { outline-color: var(--oro-claro); }

#destellos {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

/* ---------- Portada: el sobre con la esmeralda ---------- */

.apertura {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--e7) var(--canto) var(--e8);
  color: var(--tinta);
  background: var(--velo-satin), var(--blanco) url("img/satin.webp") center / cover;
}

/* El sobre cerrado es oscuro; el interior (estado por defecto) es claro. */
body.cerrada .apertura {
  color: var(--champan);
  background:
    radial-gradient(90% 60% at 50% 38%, var(--resplandor), transparent 70%),
    radial-gradient(120% 80% at 50% 110%, var(--noche-alta), transparent 60%),
    var(--noche);
}

#polvo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.estandarte { display: none; }

.apertura-para {
  font-family: var(--caligrafia);
  font-size: clamp(2.3rem, 10.5vw, 3.4rem);
  line-height: 1.15;
  max-width: 11em;
  text-wrap: balance;
}

.gema-boton {
  position: relative;
  appearance: none;
  border: 0;
  padding: 0;
  margin: clamp(var(--e5), 5svh, var(--e7)) 0;
  background: none;
  color: var(--oro-claro);
  cursor: pointer;
  width: min(58vw, 34svh, var(--gema-max));
  -webkit-tap-highlight-color: transparent;
}

/* Rayos de luz que giran muy despacio detrás de la gema */
.gema-boton::before {
  content: "";
  position: absolute;
  inset: -55%;
  z-index: -1;
  background: var(--rayos);
  border-radius: 50%;
  mask-image: radial-gradient(closest-side, #000 25%, transparent 78%); /* ds-allow-hardcode: el negro solo define la máscara */
  animation: girar var(--t-rayos) linear infinite;
}
@keyframes girar { to { rotate: 1turn; } }

.gema-boton svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: var(--sombra-gema);
}

body.cerrada .gema-boton svg { animation: latido var(--t-latido) ease-in-out infinite; }
@keyframes latido {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

.gema-engaste { fill: none; stroke: var(--oro-claro); stroke-width: 2.4; stroke-linejoin: round; }
.gema-engaste.fino { stroke: var(--oro); stroke-width: 0.8; opacity: 0.7; }
.gema-guino { fill: var(--blanco); transform-box: fill-box; transform-origin: center; animation: guino var(--t-guino) ease-in-out infinite; }
.gema-guino:nth-of-type(2n) { animation-delay: calc(var(--t-guino) * -0.4); }
.gema-guino:nth-of-type(3n) { animation-delay: calc(var(--t-guino) * -0.7); }
@keyframes guino {
  0%, 62%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  78% { opacity: 1; transform: scale(1) rotate(45deg); }
}

.apertura-pista { font-size: 0.95rem; letter-spacing: 0.02em; }
body.cerrada .apertura-pista { color: var(--oro-claro); }

/* Estallido de luz que cubre el paso del sobre al interior */
.fulgor { position: fixed; inset: 0; z-index: 15; background: var(--fulgor); opacity: 0; pointer-events: none; }
.fulgor.activo { animation: fulgor var(--t-fulgor) ease-out both; }
@keyframes fulgor {
  0% { opacity: 0; transform: scale(0.3); }
  20% { opacity: 1; transform: scale(2); }
  45% { opacity: 1; transform: scale(3); }
  100% { opacity: 0; transform: scale(3); }
}

/* ---------- Interior: portada abierta ---------- */

.titular, .desliza { display: none; }

body.abierta .apertura { justify-content: flex-start; padding-top: 0; }
body.abierta .apertura-para,
body.abierta .apertura-pista,
body.abierta .gema-boton,
body.abierta #polvo { display: none; }

body.abierta .estandarte {
  display: block;
  position: relative;
  overflow: hidden;
  width: calc(100% + var(--canto) * 2);
  max-width: var(--banda-max);
  margin: 0 calc(var(--canto) * -1);
  cursor: pointer;
  animation: bajar var(--t-apertura) var(--curva-salida) var(--paso) both;
}
.estandarte img { width: 100%; }
/* Un destello de luz recorre el banner cada pocos segundos */
.estandarte::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brillo-barrido) 150% 0 / 250% 100% no-repeat;
  animation: barrido var(--t-barrido) ease-in-out infinite;
  pointer-events: none;
}
@keyframes barrido { 0%, 55% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@keyframes bajar {
  from { opacity: 0; transform: translateY(-12%) scale(1.06); }
  to { opacity: 1; transform: none; }
}

body.abierta .titular { display: block; margin: auto 0; padding: var(--e5) 0 var(--e8); }

.titular > * { animation: revelar var(--t-apertura) var(--curva-salida) both; }
.titular > :nth-child(1) { animation-delay: calc(var(--paso) * 3); }
.titular > :nth-child(2) { animation-delay: calc(var(--paso) * 4); }
.titular > :nth-child(3) { animation-delay: calc(var(--paso) * 6); }
.titular > :nth-child(4) { animation-delay: calc(var(--paso) * 7); }

@keyframes revelar {
  from { opacity: 0; transform: translateY(1.1rem); filter: var(--desenfoque); }
  to { opacity: 1; transform: none; filter: none; }
}

.titular-anfitrion { font-size: 0.95rem; font-weight: 500; color: var(--tinta-suave); }

h1 {
  font-family: var(--caligrafia);
  font-weight: 400;
  font-size: clamp(4.2rem, 21vw, 8.5rem);
  line-height: 0.95;
  margin: 0.14em 0 0.1em;
  color: var(--verde);
}
h1 span { display: block; }
h1 span:first-child {
  padding: 0.1em 0.1em 0.16em;
  background: var(--lamina-oro) 100% 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lamina var(--t-lamina) var(--curva-apertura) calc(var(--paso) * 8) both;
}
h1 span:last-child { font-size: 0.72em; }
@keyframes lamina { from { background-position: 100% 0; } to { background-position: 0 0; } }

.titular-lema { font-family: var(--caligrafia); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.15; color: var(--oro-texto); }
.titular-fecha { margin-top: 1.2em; font-weight: 600; color: var(--verde-hondo); }

body.abierta .desliza {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--e4);
  font-size: 0.82rem;
  color: var(--oro-texto);
  animation: revelar var(--t-apertura) var(--curva-salida) calc(var(--paso) * 12) both;
}
.desliza::after {
  content: "";
  display: block;
  width: 1px;
  height: var(--hilo);
  margin: var(--e1) auto 0;
  background: linear-gradient(var(--oro), transparent);
  transform-origin: top;
  animation: hilo var(--t-hilo) ease-in-out infinite;
}
@keyframes hilo {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(60%); opacity: 0; }
}

/* ---------- Secciones ---------- */

/* Cada sección es un paso a pantalla completa */
main > section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--seccion) var(--canto);
  text-align: center;
  scroll-snap-align: start;
}
.apertura, .pie { scroll-snap-align: start; }
main .columna { width: 100%; }

.satin { background: var(--velo-satin), var(--blanco) url("img/satin.webp") center / cover; }
.champan { background: var(--degradado-champan); }

.columna { max-width: 34rem; margin: 0 auto; }
.columna.ancha { max-width: 62rem; }

main > .historia { position: relative; overflow: hidden; isolation: isolate; }
.historia p + p { margin-top: 1.1em; }
.historia-entrada {
  font-family: var(--caligrafia);
  font-size: clamp(2.1rem, 9.4vw, 3rem);
  line-height: 1.15;
  color: var(--verde);
  text-wrap: balance;
}
.historia .historia-nota { font-size: 0.86rem; font-style: italic; color: var(--tinta-suave); margin-top: var(--e7); }
.historia-nota::before { content: ""; display: block; width: var(--hilo); height: 1px; margin: 0 auto var(--e5); background: var(--oro); }

.diez {
  position: absolute;
  z-index: -1;
  right: -0.06em;
  top: -0.12em;
  font-family: var(--texto);
  font-size: clamp(15rem, 78vw, 30rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--trazo-diez);
  user-select: none;
}

/* Ornamento dorado bajo cada título: se dibuja al entrar en pantalla */
.ornamento { display: block; width: min(78%, var(--ornamento-ancho)); height: auto; margin: var(--e2) auto 0; }

/*
  Animaciones paso a paso. Cada elemento marcado con data-anima espera oculto hasta que su
  sección entra en pantalla (.en-escena) y aparece en su turno, según el retraso --d.
*/
.con-pasos [data-anima] {
  transition:
    opacity var(--t-paso) var(--curva-salida) var(--d, 0s),
    translate var(--t-paso) var(--curva-salida) var(--d, 0s),
    scale var(--t-paso) var(--curva-rebote) var(--d, 0s),
    transform var(--t-paso) var(--curva-salida) var(--d, 0s),
    clip-path var(--t-escribir) ease-in-out var(--d, 0s);
}
/* La caligrafía se revela de izquierda a derecha, como si se escribiera */
.con-pasos [data-anima="escribir"] { clip-path: inset(-40% -8% -40% -8%); }
.con-pasos .paso:not(.en-escena) [data-anima="escribir"] { clip-path: inset(-40% 108% -40% -8%); }
.con-pasos [data-anima="abrir"] { clip-path: inset(0 0); }
.con-pasos .paso:not(.en-escena) [data-anima="abrir"] { clip-path: inset(0 50%); }
.con-pasos .paso:not(.en-escena) [data-anima="subir"] { opacity: 0; translate: 0 1.8rem; }
.con-pasos .paso:not(.en-escena) [data-anima="brotar"] { opacity: 0; scale: 0.84; }
.con-pasos .paso:not(.en-escena) [data-anima="voltear"] { opacity: 0; transform: perspective(12rem) rotateX(-90deg); }

/* ---------- Te esperamos ---------- */

.cita-presencia { margin-top: var(--e5); }

/* Reloj tipo tablero, como en el arte original */
.cuenta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--e2);
  max-width: 24rem;
  margin: var(--e6) auto;
}
.cuenta b {
  display: block;
  padding: 0.28em 0;
  background: var(--degradado-tablero);
  border-radius: var(--radio-tablero);
  box-shadow: var(--sombra-tablero);
  font-size: clamp(2rem, 10vw, 3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--marfil);
  font-variant-numeric: tabular-nums lining-nums;
}
.cuenta span { display: block; margin-top: var(--e2); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tinta-suave); }
.cuenta.llego b { color: var(--oro-claro); }
.cuenta b.tic { animation: tic var(--t-media) var(--curva-salida); }
@keyframes tic { from { transform: perspective(12rem) rotateX(-55deg); } to { transform: none; } }

.cita-datos strong { color: var(--verde-hondo); }
.cita-lugar { margin: var(--e5) 0; font-family: var(--caligrafia); font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.25; color: var(--oro-texto); }
.cita-lugar span { display: block; }
.cita-lugar span:last-child { color: var(--verde); }
.cita-direccion { font-weight: 600; color: var(--verde-hondo); }
.cita-cierre { font-style: italic; font-size: 0.95rem; color: var(--tinta-suave); margin-top: var(--e5); }

.acciones { display: flex; flex-wrap: wrap; gap: var(--e3); justify-content: center; margin-top: var(--e5); }

.boton {
  --b: var(--bisel-boton);
  appearance: none;
  font: 600 1rem/1.2 var(--texto);
  text-decoration: none;
  text-align: center;
  padding: var(--e4) var(--e5);
  min-height: var(--toque);
  flex: 1 1 13rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  clip-path: var(--talla-esmeralda);
  transition: background-color var(--t-corta), transform var(--paso);
}
.boton:active { transform: scale(0.98); }
.boton[disabled] { opacity: 0.55; cursor: progress; }

.boton-verde { background-color: var(--verde); background-image: var(--degradado-verde); color: var(--sobre-verde); }
.boton-verde:hover { background-image: var(--degradado-verde-alto); }

.boton-linea { background-color: var(--marfil); color: var(--verde-hondo); box-shadow: inset 0 0 0 var(--foco) var(--verde); }
.boton-linea:hover { background-color: var(--champan); }

/* ---------- Dress code ---------- */

.vestuario-etiqueta { font-family: var(--caligrafia); font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.2; color: var(--oro-texto); margin-top: var(--e3); }
.vestuario-entrada { max-width: 32rem; margin: var(--e4) auto 0; }
.vestuario-paleta { width: 100%; max-width: 40rem; margin: var(--e6) auto 0; mix-blend-mode: multiply; }

/* En celular, damas y caballeros son un carrusel que se desliza con el dedo */
.vestuario-pestanas { display: flex; justify-content: center; gap: var(--e2); margin-top: var(--e7); }
.pestana {
  --b: var(--bisel-boton);
  appearance: none;
  border: 0;
  min-height: var(--toque);
  padding: 0 var(--e5);
  font: 600 0.95rem var(--texto);
  background-color: var(--marfil);
  color: var(--verde-hondo);
  box-shadow: inset 0 0 0 var(--foco) var(--verde);
  clip-path: var(--talla-esmeralda);
  cursor: pointer;
  transition: background-color var(--t-corta), color var(--t-corta);
}
.pestana[aria-pressed="true"] { background-color: var(--verde); color: var(--sobre-verde); }

.vestuario-pares {
  display: flex;
  margin: var(--e4) calc(var(--canto) * -1) 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.vestuario-pares::-webkit-scrollbar { display: none; }
.vestuario-pares article { flex: 0 0 100%; scroll-snap-align: center; padding: 0 var(--canto); }
.vestuario-pares img {
  margin: 0 auto var(--e3);
  max-width: min(100%, 30rem);
  transform: perspective(var(--profundidad)) rotateY(calc(var(--inclina-x, 0) * 9deg)) rotateX(calc(var(--inclina-y, 0) * -6deg));
  transition: transform var(--t-corta) ease-out;
}
.vestuario-pares h3 { font-family: var(--caligrafia); font-weight: 400; font-size: clamp(3rem, 13vw, 4rem); line-height: 1.1; color: var(--verde); }
.vestuario-frase { font-family: var(--caligrafia); font-size: clamp(1.8rem, 8vw, 2.3rem); line-height: 1.2; color: var(--oro-texto); margin-bottom: var(--e3); }

@media (min-width: 54em) {
  .vestuario-pestanas { display: none; }
  .vestuario-pares { margin: var(--e7) 0 0; overflow: visible; gap: var(--e7); }
  .vestuario-pares article { flex: 1 1 0; padding: 0; }
}

/* ---------- Confirmación ---------- */

.atuendos .vestuario-pestanas { margin-top: 0; }
.lugar .cita-lugar { margin-top: var(--e6); }

main > .confirmar { background: var(--champan) url("img/champan.webp") center / cover; }
.rsvp h2 { color: var(--oro-texto); text-wrap: balance; }
.rsvp p { margin-top: var(--e3); }
.rsvp .rsvp-limite { font-weight: 600; color: var(--verde-hondo); }
.rsvp .rsvp-error { color: var(--alerta); font-size: 0.95rem; }
.rsvp-chispa { display: block; width: var(--e7); height: var(--e7); margin: 0 auto var(--e2); fill: var(--oro); animation: chispa var(--t-guino) ease-in-out infinite; }
@keyframes chispa { 0%, 100% { transform: scale(0.86) rotate(-6deg); } 50% { transform: scale(1.06) rotate(6deg); } }

.enlace {
  appearance: none;
  background: none;
  border: 0;
  margin-top: var(--e4);
  padding: var(--e3);
  font: 600 0.95rem var(--texto);
  color: var(--verde-hondo);
  text-decoration: underline;
  text-underline-offset: var(--e1);
  cursor: pointer;
}

/* ---------- Pie ---------- */

.pie { text-align: center; padding-top: var(--e7); background: var(--blanco); }
.pie-logo { width: 62%; max-width: var(--logo-max); margin: 0 auto; }
.pie p { margin-top: var(--e3); font-size: 0.86rem; color: var(--tinta-suave); }
.pie-banda { width: 100%; max-width: var(--banda-max); margin: var(--e4) auto 0; }

/* ---------- Atajo fijo a la confirmación ---------- */

.atajo {
  --b: var(--bisel-boton);
  position: fixed;
  left: 50%;
  bottom: calc(var(--e4) + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 10;
  padding: var(--e4) var(--e5);
  background-color: var(--verde);
  background-image: var(--degradado-verde);
  color: var(--sobre-verde);
  font: 600 0.98rem/1 var(--texto);
  text-decoration: none;
  white-space: nowrap;
  clip-path: var(--talla-esmeralda);
  filter: var(--sombra-atajo);
  transition: opacity var(--t-media), translate var(--t-media), visibility var(--t-media);
}
.atajo[hidden] { display: block; opacity: 0; translate: 0 var(--e5); pointer-events: none; visibility: hidden; }
.atajo::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin: 0 0 0.2em var(--e2);
  border-right: var(--foco) solid currentColor;
  border-bottom: var(--foco) solid currentColor;
  rotate: 45deg;
  animation: asentir var(--t-hilo) ease-in-out infinite;
}
@keyframes asentir { 0%, 100% { translate: 0 -0.12em; } 50% { translate: 0 0.16em; } }

/* Puntos de avance, uno por paso */
.progreso { position: fixed; right: var(--e2); top: 50%; translate: 0 -50%; z-index: 9; display: grid; gap: var(--e2); transition: opacity var(--t-media); }
body.cerrada .progreso { opacity: 0; }
.progreso i { display: block; width: var(--punto); height: var(--punto); border-radius: 50%; background: var(--oro); opacity: 0.35; transition: opacity var(--t-media), scale var(--t-media), background-color var(--t-media); }
.progreso i.actual { opacity: 1; scale: 1.5; background: var(--verde); }

/* Profundidad al desplazar, solo donde el navegador lo admite */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .diez { animation: deriva linear both; animation-timeline: view(); }
  }
}
@keyframes deriva { from { translate: 0 18%; } to { translate: 0 -18%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.cerrada .gema-boton svg, .gema-boton::before, .gema-guino, .desliza::after, .cuenta b.tic, .rsvp-chispa { animation: none; }
  .gema-guino { opacity: 0; }
  .fulgor.activo, .titular > *, body.abierta .estandarte { animation: none; }
  h1 span:first-child { animation: none; background-position: 0 0; }
  .atajo, .vestuario-pares img, .progreso i { transition: none; }
  .atajo::after { animation: none; }
  html { scroll-snap-type: none; }
  .estandarte::after { animation: none; }
  .vestuario-pares { scroll-behavior: auto; }
}
.titular:focus { outline: none; }
