/* ==========================================================
   Diseño "Recuerdos" · Boda · presentación cinematográfica de fotos
   Paleta clara: marfil, papel, tinta cálida, champán y rubor
   ========================================================== */

:root {
  --marfil: #f5f0e9;
  --papel: #fcfaf6;
  --tinta: #2e2824;
  --suave: #857a71;
  --champan: #b8976a;
  --champan-2: #94754b;
  --rubor: #ead6cb;
  --niebla: #e4e6e6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --italica: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --suave-curva: cubic-bezier(.22, .7, .18, 1);

  --s-fondo: var(--papel);
  --s-tinta: var(--tinta);
  --s-suave: var(--suave);
  --s-acento: var(--champan);
  --s-acento-tinta: #fff;
  --s-tarjeta: rgba(255, 255, 255, .86);
  --s-borde: rgba(46, 40, 36, .08);
  --s-radio: 18px;
  --s-sombra: 0 22px 40px -28px rgba(46, 40, 36, .45);
  --s-fuente: var(--serif);
  --s-titulo: var(--serif);
  --s-titulo-tam: clamp(2.4rem, 10vw, 3rem);
  --s-titulo-color: var(--tinta);
  --s-etiqueta: var(--sans);
  --s-num: var(--serif);
  --s-num-color: var(--tinta);
  --s-btn-linea-color: var(--tinta);
}

body {
  background: #ebe5dc;
  color: var(--tinta);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}
.amp { font-family: var(--italica); font-style: italic; color: var(--champan-2); }
.solo-lector { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ================= INTRO ================= */
.rec {
  position: relative;
  width: min(100%, 520px);
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  background: radial-gradient(90% 60% at 50% 0%, #fffdf9, var(--marfil) 70%);
  box-shadow: 0 0 60px -30px rgba(46, 40, 36, .35);
}
.rec__fondo { position: absolute; inset: -40px; opacity: .2; filter: blur(34px) saturate(1.1); }
.rec__fondo img { width: 100%; height: 100%; object-fit: cover; }
.rec::after {                                   /* grano de película muy sutil */
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grano);
  opacity: .5;
  pointer-events: none;
}

.rec__inicio {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: calc(env(safe-area-inset-top) + 24px) 22px calc(env(safe-area-inset-bottom) + 24px);
  transition: opacity .7s ease, transform .7s var(--suave-curva);
}
.rec.reproduciendo .rec__inicio { opacity: 0; transform: scale(.96); }

/* Tarjeta tipo "recuerdo" con pila de fotos detrás */
.tarjeta {
  position: relative;
  width: min(100%, 360px);
  border-radius: 26px;
  background: var(--papel);
  box-shadow: 0 30px 60px -30px rgba(46, 40, 36, .5), 0 2px 6px rgba(46, 40, 36, .06);
  animation: llegar 1.1s var(--suave-curva) both;
}
@keyframes llegar { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.tarjeta__pila i {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 10px 30px -18px rgba(46, 40, 36, .45);
}
.tarjeta__pila i:first-child { transform: rotate(-4deg) translate(-6px, 6px); background: #f7efe6; }
.tarjeta__pila i:last-child { transform: rotate(3deg) translate(7px, 4px); background: #efe7dd; }

.mosaico {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 4px;
  aspect-ratio: 1 / 1.02;
  padding: 8px 8px 0;
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  background: var(--papel);                   /* tapa la pila de fotos de atrás */
}
.mosaico__f { margin: 0; overflow: hidden; border-radius: 6px; background: var(--niebla); }
.mosaico__f:first-child { border-top-left-radius: 18px; }
.mosaico__f--1 { grid-row: 1 / 4; }
.mosaico__f--2 { border-top-right-radius: 18px; }
.mosaico__f img { display: block; width: 100%; height: 100%; object-fit: cover; animation: deriva 14s ease-in-out infinite alternate; }
.mosaico__f--2 img { animation-delay: -4s; animation-duration: 12s; }
.mosaico__f--3 img { animation-delay: -8s; animation-duration: 16s; }
.mosaico__f--4 img { animation-delay: -2s; animation-duration: 13s; }
@keyframes deriva { from { transform: scale(1.04) translate(-1.5%, 1%); } to { transform: scale(1.16) translate(1.5%, -1.5%); } }
.mosaico__brillo {                             /* destello que cruza el mosaico */
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: brillo 5.5s 1.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes brillo { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }

.tarjeta__cuerpo {
  position: relative;
  padding: 22px 22px 26px;
  text-align: center;
  border-radius: 0 0 26px 26px;
  background: var(--papel);
}
.tarjeta__tipo {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--champan-2);
}
.tarjeta__punto { opacity: .6; }
.rec-icono { flex: none; }
.tarjeta__nombres {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 10vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.tarjeta__meta { margin: 6px 0 0; font-family: var(--sans); font-size: .78rem; letter-spacing: .06em; color: var(--suave); }
.tarjeta__para { margin: 10px 0 0; font-style: italic; font-size: 1.05rem; color: var(--suave); }
.tarjeta__para b { font-style: normal; font-weight: 600; color: var(--tinta); }

/* Botón ▶ Ver recuerdos */
.btn-play {
  all: unset;
  box-sizing: border-box;
  position: relative;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 6px 24px 6px 6px;
  border-radius: 999px;
  background: var(--tinta);
  color: #fff;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 30px -16px rgba(46, 40, 36, .8);
  transition: transform .2s ease, box-shadow .3s;
}
.btn-play__icono {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--tinta);
}
.btn-play__icono svg { margin-left: 3px; }
.btn-play__icono::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .6);
  animation: onda 2.2s ease-out infinite;
}
@keyframes onda { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
.btn-play:active { transform: scale(.96); }
.btn-play:focus-visible { outline: 2px solid var(--champan); outline-offset: 4px; }

.rec__nota {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--suave);
  animation: llegar 1.1s .4s var(--suave-curva) both;
}
.rec__ondas { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.rec__ondas i { width: 2px; height: 40%; border-radius: 1px; background: var(--champan); animation: barra 1s ease-in-out infinite alternate; }
.rec__ondas i:nth-child(2) { animation-delay: -.35s; }
.rec__ondas i:nth-child(3) { animation-delay: -.7s; }

/* ---------- Portada final ---------- */
.rec__portada { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; }
.portada__foto { position: absolute; inset: 0; overflow: hidden; }
.portada__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: portadaKB 22s ease-out both; }
@keyframes portadaKB { from { transform: scale(1.22) translateY(2%); } to { transform: scale(1.04); } }
.portada__velo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(252, 250, 246, 0) 30%, rgba(252, 250, 246, .78) 58%, var(--papel) 82%),
    linear-gradient(180deg, rgba(46, 40, 36, .25), transparent 22%);
}
.portada__texto {
  position: relative;
  padding: 0 24px calc(env(safe-area-inset-bottom) + 72px);
  text-align: center;
}
.portada__eyebrow { margin: 0; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .36em; text-transform: uppercase; color: var(--champan-2); }
.portada__nombres { margin: 6px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 15vw, 4rem); line-height: .98; letter-spacing: -.01em; }
.portada__n { display: block; }
.portada__nombres .amp { display: block; margin: 4px 0; font-size: .46em; line-height: 1; }
.portada__fecha {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--suave);
}
.portada__dia {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--champan);
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0;
  color: var(--tinta);
}
.portada__acciones { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn-rec {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--tinta);
  color: #fff;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background-color .3s;
}
.btn-rec--linea { background: rgba(255, 255, 255, .7); color: var(--tinta); border: 1px solid rgba(46, 40, 36, .18); }
.btn-rec:active { transform: scale(.96); }
.btn-rec:focus-visible { outline: 2px solid var(--champan); outline-offset: 3px; }

.portada__eyebrow, .portada__n, .portada__nombres .amp, .portada__fecha, .portada__acciones { opacity: 0; }
.rec.final .portada__eyebrow { animation: revelar 1.1s .3s var(--suave-curva) both; }
.rec.final .portada__n:first-child { animation: revelar 1.3s .55s var(--suave-curva) both; }
.rec.final .portada__nombres .amp { animation: revelar 1.1s .85s var(--suave-curva) both; }
.rec.final .portada__n:last-child { animation: revelar 1.3s 1.05s var(--suave-curva) both; }
.rec.final .portada__fecha { animation: revelar 1.1s 1.4s var(--suave-curva) both; }
.rec.final .portada__acciones { animation: revelar 1.1s 1.8s var(--suave-curva) both; }
@keyframes revelar { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.rec .desliza-c { z-index: 4; color: var(--suave); font-family: var(--sans); }

/* ================= PRESENTACIÓN ================= */
.visor {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(30, 26, 23, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: visorEntra .6s ease both;
  user-select: none;
  -webkit-user-select: none;
}
.visor.cerrando { animation: visorSale .8s ease both; }
@keyframes visorEntra { from { opacity: 0; } }
@keyframes visorSale { to { opacity: 0; } }
.visor__marco {
  position: relative;
  width: min(100%, 520px);
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--marfil);
  touch-action: manipulation;
}
.visor__diapos { position: absolute; inset: 0; }

/* Diapositiva genérica */
.rd { position: absolute; inset: 0; overflow: hidden; visibility: hidden; opacity: 0; background: var(--marfil); }
.rd.activa, .rd.sale { visibility: visible; opacity: 1; }
.rd.activa { z-index: 2; }
.rd.sale { z-index: 1; }

/* Transiciones de entrada (según data-t de la diapositiva nueva) */
.rd.activa[data-t="fundido"] { animation: tFundido 1.2s ease both; }
.rd.activa[data-t="desliza"] { animation: tDesliza 1s var(--suave-curva) both; }
.rd.activa[data-t="desliza-izq"] { animation: tDeslizaIzq 1s var(--suave-curva) both; }
.rd.activa[data-t="zoom"] { animation: tZoom 1.15s var(--suave-curva) both; }
.rd.activa[data-t="cortina"] { animation: tCortina 1.1s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes tFundido { from { opacity: 0; } }
@keyframes tDesliza { from { transform: translateX(100%); } }
@keyframes tDeslizaIzq { from { transform: translateX(-100%); } }
@keyframes tZoom { from { opacity: 0; transform: scale(1.28); filter: blur(6px); } }
@keyframes tCortina { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

/* …y de salida de la anterior (data-ts = transición de la que entra) */
.rd.sale[data-ts="fundido"] { animation: sFundido 1.2s ease both; }
.rd.sale[data-ts="desliza"] { animation: sDesliza 1s var(--suave-curva) both; }
.rd.sale[data-ts="desliza-izq"] { animation: sDeslizaIzq 1s var(--suave-curva) both; }
.rd.sale[data-ts="zoom"] { animation: sZoom 1.15s var(--suave-curva) both; }
.rd.sale[data-ts="cortina"] { animation: sCortina 1.1s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes sFundido { to { opacity: 0; } }
@keyframes sDesliza { to { transform: translateX(-32%); filter: brightness(.7); } }
@keyframes sDeslizaIzq { to { transform: translateX(32%); filter: brightness(.7); } }
@keyframes sZoom { to { opacity: 0; transform: scale(.9); } }
@keyframes sCortina { to { transform: translateX(-12%); } }

/* Foto con Ken Burns (las variables las pone el JS según data-kb) */
.rd__marco { position: absolute; inset: 0; overflow: hidden; }
.rd__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: var(--kb-ox, 50%) var(--kb-oy, 50%);
  will-change: transform;
}
.rd.activa .rd__img, .rd.sale .rd__img { animation: kenBurns var(--kb-dur, 6.5s) linear both; }
@keyframes kenBurns {
  from { transform: translate(var(--kb-x0, 0), var(--kb-y0, 0)) scale(var(--kb-s0, 1)); }
  to { transform: translate(var(--kb-x1, 0), var(--kb-y1, 0)) scale(var(--kb-s1, 1.15)); }
}
.rd__velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 14, .38), transparent 22%, transparent 70%, rgba(20, 16, 14, .42)); pointer-events: none; }
.rd__cap {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: calc(env(safe-area-inset-bottom) + 34px);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--italica);
  font-style: italic;
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
  opacity: 0;
}
.rd__cap-linea { width: 26px; height: 1px; background: currentColor; opacity: .8; transform-origin: left; }
.rd.activa .rd__cap { animation: capEntra 1.2s .7s var(--suave-curva) both; }
.rd.activa .rd__cap-linea { animation: linea 1s .7s var(--suave-curva) both; }
@keyframes capEntra { from { opacity: 0; transform: translateY(12px); letter-spacing: .06em; } to { opacity: 1; transform: none; } }
@keyframes linea { from { transform: scaleX(0); } }

/* Collage que se arma solo */
.collage {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 6px;
  padding: calc(env(safe-area-inset-top) + 58px) 10px calc(env(safe-area-inset-bottom) + 12px);
  background: var(--papel);
}
.collage--izq { grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; grid-template-areas: "a b" "a c"; }
.collage--der { grid-template-columns: 1fr 1.15fr; grid-template-rows: 1fr 1fr; grid-template-areas: "b a" "c a"; }
.collage--arriba { grid-template-columns: 1fr 1fr; grid-template-rows: 1.3fr 1fr; grid-template-areas: "a a" "b c"; }
.cel--1 { grid-area: a; }
.cel--2 { grid-area: b; }
.cel--3 { grid-area: c; }
.cel {
  --dx: 0;
  --dy: 0;
  --giro: 0deg;
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--niebla);
  box-shadow: 0 18px 30px -22px rgba(46, 40, 36, .6);
  opacity: 0;
}
.cel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.desde-izq { --dx: -115%; --giro: -5deg; }
.desde-der { --dx: 115%; --giro: 5deg; }
.desde-arriba { --dy: -115%; --giro: 4deg; }
.desde-abajo { --dy: 115%; --giro: -4deg; }
.rd.activa .cel, .rd.sale .cel { animation: armar 1.05s var(--suave-curva) both; }
.rd.activa .cel--1 { animation-delay: .35s; }
.rd.activa .cel--2 { animation-delay: .95s; }
.rd.activa .cel--3 { animation-delay: 1.55s; }
.rd.sale .cel { animation-delay: 0s; }
@keyframes armar {
  from { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--giro)) scale(.86); }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
.rd.activa .cel img, .rd.sale .cel img { animation: celKB 8s linear both; }
.rd.activa .cel--2 img { animation-name: celKB2; }
@keyframes celKB { from { transform: scale(1.18); } to { transform: scale(1.02); } }
@keyframes celKB2 { from { transform: scale(1.04) translateX(-3%); } to { transform: scale(1.16) translateX(3%); } }
.rd.activa .collage { animation: asentar 6.5s ease-out both; }
@keyframes asentar { from { transform: scale(1); } to { transform: scale(1.035); } }

/* Tarjetas de texto */
.rd--texto { background: var(--papel); }
.rd-texto__fondo { position: absolute; inset: 0; overflow: hidden; }
.rd-texto__fondo i { position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; filter: blur(50px); opacity: .7; }
.rd-texto__fondo i:first-child { left: -30%; top: -12%; background: var(--rubor); animation: flotar1 9s ease-in-out infinite alternate; }
.rd-texto__fondo i:last-child { right: -34%; bottom: -14%; background: #e9dfcc; animation: flotar2 11s ease-in-out infinite alternate; }
@keyframes flotar1 { to { transform: translate(18%, 12%) scale(1.1); } }
@keyframes flotar2 { to { transform: translate(-16%, -10%) scale(1.15); } }
.rd-texto {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  text-align: center;
}
.rd-texto__eyebrow { margin: 0 0 18px; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--champan-2); opacity: 0; }
.rd-texto__frase { margin: 0; max-width: 13em; font-family: var(--italica); font-style: italic; font-weight: 400; font-size: clamp(2rem, 9.5vw, 2.6rem); line-height: 1.22; color: var(--tinta); }
.palabra { display: inline-block; opacity: 0; }
.rd-texto__nombre { margin: 16px 0 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--champan-2); opacity: 0; }
.rd-texto__filete { display: block; width: 46px; height: 1px; margin-top: 26px; background: var(--champan); transform: scaleX(0); }
.rd.activa .rd-texto__eyebrow { animation: revelar 1s .1s var(--suave-curva) both; }
.rd.activa .palabra { animation: palabra .9s var(--suave-curva) both; animation-delay: calc(var(--i, 0) * 130ms + 350ms); }
.rd.activa .rd-texto__nombre { animation: revelar 1.1s 1.6s var(--suave-curva) both; }
.rd.activa .rd-texto__filete { animation: filete 1.2s 1.2s var(--suave-curva) both; }
.rd.sale .palabra, .rd.sale .rd-texto__eyebrow, .rd.sale .rd-texto__nombre { opacity: 1; }
@keyframes palabra { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes filete { to { transform: scaleX(1); } }

/* Zonas táctiles (botones reales) */
.zona {
  all: unset;
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.zona--ant { left: 0; width: 28%; }
.zona--pausa { left: 28%; width: 44%; }
.zona--sig { right: 0; width: 28%; }
.zona:focus-visible { outline: 2px solid rgba(255, 255, 255, .85); outline-offset: -10px; border-radius: 18px; box-shadow: inset 0 0 0 4px rgba(46, 40, 36, .35); }

/* Barra de progreso y cabecera */
.visor__ui { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: calc(env(safe-area-inset-top) + 10px) 12px 0; pointer-events: none; transition: color .5s; color: #fff; }
.visor__ui::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(180deg, rgba(20, 16, 14, .32), transparent); transition: opacity .5s; z-index: -1; }
.visor.claro .visor__ui { color: var(--tinta); }
.visor.claro .visor__ui::before { opacity: 0; }
.barras { display: flex; gap: 4px; }
.barra { position: relative; flex: 1; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .38); box-shadow: 0 0 3px rgba(0, 0, 0, .12); transition: background-color .5s; }
.visor.claro .barra { background: rgba(46, 40, 36, .14); box-shadow: none; }
.barra i { position: absolute; inset: 0; background: currentColor; transform: scaleX(0); transform-origin: left; }
.barra.vista i { transform: scaleX(1); }
.barra.actual i { animation: llenar linear forwards; }
@keyframes llenar { to { transform: scaleX(1); } }
.visor__cab { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.visor__titulo { margin: 0 auto 0 4px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .2); }
.visor.claro .visor__titulo { text-shadow: none; }
.visor__btn, .visor__saltar {
  all: unset;
  box-sizing: border-box;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  color: inherit;
}
.visor__saltar { padding: 0 14px 0 16px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.visor.claro .visor__saltar { background: rgba(46, 40, 36, .07); }
.visor__btn:focus-visible, .visor__saltar:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ico-son__x { display: none; }
.visor__btn[aria-pressed="true"] .ico-son__x { display: inline; }
.visor__btn[aria-pressed="true"] .ico-son__onda { display: none; }

/* Indicador de pausa y pista */
.visor__pausa {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: 74px;
  height: 74px;
  margin: -37px 0 0 -37px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 50%;
  background: rgba(252, 250, 246, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s, transform .4s var(--suave-curva);
  pointer-events: none;
}
.visor__pausa i { width: 5px; height: 22px; border-radius: 2px; background: var(--tinta); }
.visor.pausado .visor__pausa { opacity: 1; transform: none; }
.visor__pista {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 10px);
  z-index: 6;
  margin: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
  pointer-events: none;
  animation: pista 5s 1.2s ease both;
}
@keyframes pista { 0% { opacity: 0; } 15%, 75% { opacity: 1; } 100% { opacity: 0; } }

/* Pausa: congela barra, Ken Burns, collages y textos */
.visor.pausado .rd *, .visor.pausado .rd, .visor.pausado .barra i { animation-play-state: paused !important; }

/* ================= INVITACIÓN ================= */
.contenido { position: relative; background: var(--papel); box-shadow: 0 0 60px -30px rgba(46, 40, 36, .35); }
.contenido::before { content: ""; position: absolute; inset: 0; background-image: var(--grano); opacity: .45; pointer-events: none; }
.s-titulo { letter-spacing: -.01em; }

.carta { padding-top: 70px; }
.carta__eyebrow { margin: 0 0 24px; font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--champan-2); }
.carta__foto {
  position: relative;
  width: min(82%, 320px);
  margin: 0;
  padding: 10px 10px 46px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 26px 44px -30px rgba(46, 40, 36, .6), 0 1px 3px rgba(46, 40, 36, .08);
  transform: rotate(-2deg);
}
.carta__foto.visible { transform: rotate(-2deg); }
.carta__foto img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.carta__pie { position: absolute; left: 0; right: 0; bottom: 12px; font-family: var(--italica); font-style: italic; font-size: 1.05rem; color: var(--suave); }
.carta__nombres { margin: 34px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 12vw, 3.3rem); line-height: 1.05; }
.carta__nombres .amp { font-size: .6em; }
.carta__texto { margin: 16px 0 0; max-width: 21em; font-size: 1.2rem; line-height: 1.6; font-style: italic; color: var(--tinta); }

.s-cuenta { background: linear-gradient(180deg, var(--papel), var(--marfil) 55%, var(--papel)); }
.s-cuenta__caja { border-radius: 14px; }

/* Línea de recuerdos */
.momentos__lista { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 26px; }
.momento {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  text-align: left;
}
.momento:nth-child(even) { grid-template-columns: 1fr 112px; }
.momento:nth-child(even) .momento__foto { order: 2; transform: rotate(3deg); }
.momento__foto { margin: 0; padding: 6px 6px 18px; background: #fff; border-radius: 4px; box-shadow: var(--s-sombra); transform: rotate(-3deg); }
.momento__foto img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.momento__anio { margin: 0; font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .26em; color: var(--champan-2); }
.momento__titulo { margin: 4px 0 0; font-family: var(--italica); font-style: italic; font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.momento__texto { margin: 6px 0 0; font-size: 1.02rem; line-height: 1.5; color: var(--suave); }

.s-evento__icono { background: var(--marfil); }
.s-evento__titulo { color: var(--champan-2); }
.s-evento__lugar { font-size: 1.2rem; }
.s-evento__dir { font-size: 1.02rem; }

.s-galeria__rejilla { gap: 8px; }
.s-foto { border-radius: 10px; }

.frase { padding-top: 30px; }
.frase__foto { margin: 0; width: min(88%, 360px); aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; box-shadow: var(--s-sombra); }
.frase__foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frase__txt { margin: 28px 0 0; max-width: 15em; font-family: var(--italica); font-style: italic; font-size: clamp(1.7rem, 7.5vw, 2.1rem); line-height: 1.3; }

.s-vestimenta { background: linear-gradient(180deg, var(--papel), var(--marfil) 55%, var(--papel)); }
.s-vestimenta__tipo { font-family: var(--italica); font-style: italic; font-size: 1.7rem; color: var(--champan-2); }
.s-paleta li { background: #fff; }
.s-rsvp__saludo { font-family: var(--italica); font-style: italic; font-size: 1.4rem; color: var(--champan-2); }
.s-btn--lleno { background: var(--tinta); color: #fff; }
.s-pie__n { font-family: var(--serif); font-weight: 500; }

.btn-musica { z-index: 55; background: var(--papel); color: var(--tinta); box-shadow: 0 6px 18px rgba(46, 40, 36, .2); }

/* ================= MOVIMIENTO REDUCIDO ================= */
@media (prefers-reduced-motion: reduce) {
  .mosaico__f img, .mosaico__brillo, .btn-play__icono::after, .rec__ondas i, .portada__foto img, .rd-texto__fondo i { animation: none !important; }
  .rd.activa .rd__img, .rd.sale .rd__img { animation: none; transform: scale(1.04); }
  .rd.activa[data-t], .rd.sale[data-ts] { animation-name: tFundido; animation-duration: .6s; }
  .rd.sale[data-ts] { animation-name: sFundido; }
  .rd.activa .cel, .rd.sale .cel { animation: tFundido .6s ease both; opacity: 1; }
  .rd.activa .cel img, .rd.activa .collage { animation: none; }
  .rd.activa .palabra { animation: tFundido .6s ease both; opacity: 1; }
  .rec.final .portada__eyebrow, .rec.final .portada__n, .rec.final .portada__nombres .amp, .rec.final .portada__fecha, .rec.final .portada__acciones { animation: none; opacity: 1; }
}
