/* ==========================================================================
   El cielo de nosotros · Rotf Studio
   Diseñado primero para celular; se adapta a pantallas grandes.
   Las fuentes están en css/fuentes.css.
   ========================================================================== */

:root {
  --noche: #080D21;
  --noche-2: #0D1431;
  --estrella: #F8F3E7;
  --oro: #CDB885;
  --oro-claro: #F3E3BC;
  --oro-suave: rgba(205, 184, 133, 0.35);
  --texto-tenue: rgba(248, 243, 231, 0.7);
  --cristal: rgba(9, 14, 34, 0.52);
  --cristal-borde: rgba(205, 184, 133, 0.24);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --firma: "Pinyon Script", "Snell Roundhand", "Brush Script MT", cursive;
  --curva: cubic-bezier(0.22, 0.61, 0.36, 1);
  --resorte: cubic-bezier(0.34, 1.32, 0.64, 1);
  --seguro-arriba: env(safe-area-inset-top, 0px);
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--noche);
  color: var(--estrella);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body {
  position: fixed;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
button { font: inherit; }


/* ---------- Universo ---------- */
.lienzo {
  position: fixed;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
.lienzo:active { cursor: grabbing; }
.en-momento .lienzo { cursor: pointer; }
.en-momento[data-momento="encuentro"] .lienzo { cursor: grab; }

.vineta {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(130% 95% at 50% 48%, transparent 58%, rgba(2, 3, 10, 0.55) 100%),
    linear-gradient(180deg, rgba(3, 5, 15, 0.5) 0, transparent 130px);
}

/* Destello que acompaña los momentos grandes */
.destello-pantalla {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0;
  background: radial-gradient(60% 48% at 50% 46%, rgba(255, 240, 214, 0.9), rgba(255, 214, 170, 0.25) 55%, transparent 80%);
  mix-blend-mode: screen;
}
.destello-pantalla.activo { animation: destello 1.6s var(--curva) both; }
@keyframes destello {
  0% { opacity: 0; }
  12% { opacity: var(--intensidad, 0.5); }
  100% { opacity: 0; }
}

/* ---------- Nombres de las constelaciones ---------- */
.etiquetas, .indicadores, .botones-momento, .capa-momento {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.etiquetas { z-index: 5; }
.etiqueta {
  --acento: var(--oro-claro);
  position: absolute;
  left: 0; top: 0;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  max-width: 46vw;
  padding: 6px 12px 7px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--estrella);
  text-align: center;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
  will-change: transform;
}
.etiqueta.visible { opacity: 1; visibility: visible; transition: opacity 0.9s ease, visibility 0s; }
/* Al contemplar el final, el corazón y su nombre quedan limpios; los nombres vuelven con el teclado. */
.en-contemplar .etiqueta.visible { opacity: 0; }
.en-contemplar .etiqueta.visible:focus-visible { opacity: 1; }
.etiqueta__forma {
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--acento);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}
.etiqueta__nombre {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.15;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(2, 4, 14, 0.95), 0 0 3px rgba(2, 4, 14, 0.8);
}
.etiqueta.descubierta .etiqueta__forma::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 6px;
  vertical-align: 1px;
  background: var(--acento);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 3px var(--acento));
}
.etiqueta:focus-visible {
  outline: none;
  background: rgba(9, 14, 34, 0.6);
  box-shadow: 0 0 0 1px var(--acento), 0 0 0 6px rgba(205, 184, 133, 0.12);
}

/* ---------- Indicadores de constelaciones fuera de vista ---------- */
.indicadores { z-index: 6; }
.indicador {
  --acento: var(--oro-claro);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  padding: 0;
  border: 1px solid rgba(205, 184, 133, 0.22);
  border-radius: 50%;
  background: rgba(9, 14, 34, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, border-color 0.3s ease;
}
.indicador.visible { opacity: 0.9; pointer-events: auto; }
.indicador:hover { opacity: 1; border-color: var(--acento); }
.indicador__punto {
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--acento);
  box-shadow: 0 0 10px 2px var(--acento);
  animation: latido 2.2s ease-in-out infinite;
}
.indicador__flecha {
  position: absolute;
  inset: 0;
  transform: rotate(var(--ang, 0rad));
}
.indicador__flecha::after {
  content: "";
  position: absolute;
  right: -9px; top: 50%;
  width: 0; height: 0;
  margin-top: -4px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--acento);
  filter: drop-shadow(0 0 3px var(--acento));
}
.indicador::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--acento);
  opacity: 0;
  animation: onda-indicador 2.6s ease-out infinite;
}
.indicador.descubierta::before { animation: none; }
@keyframes onda-indicador {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes latido {
  0%, 100% { transform: scale(0.8); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}
/* ---------- Barra superior ---------- */
.barra {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + var(--seguro-arriba)) 14px 8px 18px;
  pointer-events: none;
  z-index: 20;
}
.barra > * { pointer-events: auto; }
.marcador {
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 1.2s ease, transform 1.2s var(--curva);
  pointer-events: none;
}
.en-universo .marcador { opacity: 1; transform: none; }
.marcador__estrellas { display: flex; gap: 7px; }
.marcador__estrella {
  position: relative;
  width: 11px; height: 11px;
  background: rgba(248, 243, 231, 0.32);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  transition: background 0.6s ease, transform 0.6s var(--resorte);
}
.marcador__estrella.encendida {
  background: var(--oro-claro);
  transform: scale(1.25);
  filter: drop-shadow(0 0 4px rgba(205, 184, 133, 0.9));
}
.marcador__texto {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--texto-tenue);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.barra__acciones { display: flex; gap: 10px; margin-left: auto; }

.boton-icono {
  --cometa: var(--oro-claro);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--cristal-borde);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(34, 42, 65, 0.88), rgba(8, 13, 33, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--oro);
  cursor: pointer;
  translate: var(--mx, 0px) var(--my, 0px);
  transition: border-color 0.3s ease, background 0.3s ease, opacity 1.2s ease, transform 0.3s ease, translate 0.5s var(--resorte);
}
.boton-icono svg { width: 20px; height: 20px; flex: none; transition: transform 0.5s var(--resorte); }
.boton-icono:hover { border-color: var(--oro); }
.boton-icono:hover svg { transform: scale(1.12); }
.boton-icono:active { transform: scale(0.92); }
.boton-icono:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
/* Un cometa pequeño recorre el borde al pasar el cursor (y siempre mientras suena la música) */
.boton-icono::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--cometa-giro), transparent 0deg 210deg, rgba(255, 244, 220, 0) 210deg, var(--cometa) 318deg, #fff 342deg, transparent 352deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.boton-icono:hover::after,
.boton-icono:focus-visible::after,
.boton-musica.sonando::after { opacity: 1; animation: cometa 3.4s linear infinite; }

#boton-vista {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s, border-color 0.3s ease, transform 0.3s ease;
}
.en-universo #boton-vista, .en-contemplar #boton-vista {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0s, border-color 0.3s ease, transform 0.3s ease;
}
.en-momento #boton-vista, .en-final:not(.en-contemplar) #boton-vista {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.boton-musica { opacity: 0; }
.listo .boton-musica { opacity: 1; transition-delay: 2.4s; }
.boton-musica .tachado { transition: opacity 0.3s ease; }
.boton-musica.sonando .tachado { opacity: 0; }
.boton-musica.sonando { background: rgba(205, 184, 133, 0.16); }
.boton-musica.sonando svg { animation: vaiven 3s ease-in-out infinite; }
.boton-musica__texto { display: none; font-size: 13px; letter-spacing: 0.08em; color: var(--estrella); }
.en-bienvenida .boton-musica { width: auto; padding: 0 16px 0 13px; border-radius: 14px; }
.en-bienvenida .boton-musica__texto { display: inline; }
@keyframes vaiven { 50% { transform: translateY(-1.5px); } }

/* ---------- Botones: oro suave, cristal oscuro y esquinas redondeadas ---------- */
@property --cometa-giro { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes cometa { to { --cometa-giro: 360deg; } }

.boton {
  --borde: rgba(205, 184, 133, 0.5);
  --fondo: rgba(8, 13, 33, 0.55);
  --cometa: var(--oro-claro);
  --cometa-opacidad: 0;
  --luz: 0;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 16px;
  background: none;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.025em;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  color: var(--estrella);
  cursor: pointer;
  translate: var(--mx, 0px) var(--my, 0px);
  transition: translate 0.5s var(--resorte), transform 0.3s var(--resorte), color 0.3s ease, box-shadow 0.4s ease;
}
/* Fondo: noche con estrellas diminutas y una luz que sigue al cursor */
.boton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border: 1px solid var(--borde);
  border-radius: inherit;
  background:
    radial-gradient(74px 48px at var(--px, 50%) var(--py, 50%), rgba(255, 241, 212, var(--luz)), transparent 72%),
    radial-gradient(1px 1px at 12% 32%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(1px 1px at 27% 74%, rgba(255, 255, 255, 0.45), transparent 70%),
    radial-gradient(1.4px 1.4px at 46% 22%, rgba(255, 243, 218, 0.85), transparent 70%),
    radial-gradient(1px 1px at 63% 78%, rgba(255, 255, 255, 0.5), transparent 70%),
    radial-gradient(1.2px 1.2px at 81% 30%, rgba(255, 255, 255, 0.75), transparent 70%),
    radial-gradient(1px 1px at 93% 66%, rgba(255, 255, 255, 0.4), transparent 70%),
    var(--fondo);
  box-shadow: inset 0 1px 0 rgba(255, 245, 220, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease;
}
/* El cometa: una luz con cola que da vueltas al borde */
.boton::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--cometa-giro), transparent 0deg 200deg, rgba(255, 244, 220, 0) 200deg, var(--cometa) 318deg, #fff 342deg, transparent 352deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: var(--cometa-opacidad);
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.boton--whatsapp::after,
.boton:hover::after,
.boton:focus-visible::after { animation: cometa 4.6s linear infinite; }
.boton:hover, .boton:focus-visible { --cometa-opacidad: 1; --luz: 0.16; }
.boton svg { width: 16px; height: 16px; flex: none; transition: transform 0.6s var(--resorte); }
.boton:focus-visible { outline: 2px solid var(--oro); outline-offset: 4px; }
.boton:active { transform: scale(0.96); }

.boton--principal {
  --borde: #f5dfac;
  --fondo: linear-gradient(135deg, #f8e8c2, #d5b576);
  --cometa-opacidad: 0;
  color: #252033;
  box-shadow: 0 5px 22px rgba(205, 184, 133, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.boton--principal svg { color: #4a3b28; }
.boton--principal:hover { --luz: 0.16; box-shadow: 0 8px 30px rgba(205, 184, 133, 0.3); }
.boton--principal:hover svg { transform: rotate(30deg) scale(1.1); }
@keyframes respirar-boton { 50% { box-shadow: 0 0 48px rgba(205, 184, 133, 0.34); } }

.boton--contorno {
  --borde: rgba(205, 184, 133, 0.6);
  --borde: color-mix(in srgb, var(--acento, #cdb885) 58%, transparent);
  --cometa: var(--acento, var(--oro-claro));
}
.boton--contorno:hover {
  --borde: var(--acento, var(--oro));
  --fondo: rgba(205, 184, 133, 0.14);
  --fondo: color-mix(in srgb, var(--acento, #cdb885) 14%, rgba(8, 13, 33, 0.5));
}

.boton--cristal {
  --borde: rgba(248, 243, 231, 0.16);
  --fondo: var(--cristal);
  padding: 0 22px;
  color: var(--texto-tenue);
}
.boton--cristal:hover, .boton--cristal:focus-visible { --borde: var(--cristal-borde); color: var(--estrella); }
.boton--cristal:hover svg { transform: translateX(-3px); }

.boton--sutil { padding: 0 18px; color: var(--texto-tenue); }
.boton--sutil::before { border-color: transparent; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.boton--sutil::after {
  inset: auto 26px 12px;
  height: 1px;
  padding: 0;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, var(--oro-claro), transparent);
  -webkit-mask: none;
  mask: none;
  opacity: 1;
  transform: scaleX(0);
  transition: transform 0.6s var(--curva);
}
.boton--sutil:hover::after, .boton--sutil:focus-visible::after { animation: none; transform: scaleX(1); }
.boton--sutil:hover { color: var(--estrella); }

.boton--whatsapp {
  --acento: #63e29a;
  --borde: rgba(99, 226, 154, 0.62);
  --fondo: linear-gradient(180deg, rgba(37, 211, 102, 0.3), rgba(37, 211, 102, 0.1)), rgba(8, 13, 33, 0.4);
  --cometa: #b4f8d0;
  --cometa-opacidad: 1;
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.22);
}
.boton--whatsapp svg { width: 20px; height: 20px; color: #9ff2c2; }
.boton--whatsapp:hover svg { transform: rotate(-12deg) scale(1.12); }

/* Estrellitas que saltan al tocar cualquier botón */
.chispero { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.chispero__chispa {
  position: absolute;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  will-change: transform, opacity;
}
.chispero__onda {
  --tam: 96px;
  position: absolute;
  width: var(--tam);
  height: var(--tam);
  margin: calc(var(--tam) / -2) 0 0 calc(var(--tam) / -2);
  border: 1.5px solid;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 236, 200, 0.25);
}

.ornamento {
  display: block;
  position: relative;
  width: 132px;
  height: 9px;
  margin: 0 auto;
}
.ornamento::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--oro), transparent);
}
.ornamento::after {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 7px; height: 7px;
  margin-left: -4px;
  border: 1px solid var(--oro);
  background: var(--noche);
  transform: rotate(45deg);
}

/* ---------- 1. Bienvenida ---------- */
.bienvenida {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(18vh + var(--seguro-arriba)) 26px calc(48px + var(--seguro-abajo));
  text-align: center;
  z-index: 10;
  pointer-events: none;
  background: radial-gradient(90% 46% at 50% 34%, rgba(4, 7, 20, 0.55), transparent 75%);
}
.bienvenida__contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  max-width: 620px;
  pointer-events: auto;
}
.bienvenida__para, .bienvenida .ornamento, #boton-entrar {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.8s var(--curva), transform 1.8s var(--curva);
}
.listo .bienvenida__para { opacity: 1; transform: none; transition-delay: 1.6s; }
.listo .bienvenida .ornamento { opacity: 1; transform: none; transition-delay: 4.2s; }
.listo #boton-entrar { opacity: 1; transform: none; transition-delay: 4.8s; }

.bienvenida__para {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--oro);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
.bienvenida__mensaje {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 8.6vw, 60px);
  line-height: 1.14;
  letter-spacing: 0.005em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(2, 4, 14, 0.85);
}
.palabra {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(12px);
  transition: opacity 1.4s var(--curva), filter 1.4s var(--curva), transform 1.4s var(--curva);
  transition-delay: calc(2.1s + var(--i) * 0.14s);
}
.listo .palabra { opacity: 1; filter: blur(0); transform: none; }
.marca {
  position: absolute;
  bottom: calc(18px + var(--seguro-abajo));
  left: 0; right: 0;
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(248, 243, 231, 0.4);
  opacity: 0;
  transition: opacity 2s ease 5.2s;
}
.listo .marca { opacity: 1; }

.bienvenida.saliendo .bienvenida__para,
.bienvenida.saliendo .palabra,
.bienvenida.saliendo .ornamento,
.bienvenida.saliendo #boton-entrar,
.bienvenida.saliendo .marca {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(-14px);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
  transition-delay: 0s;
}

/* ---------- 2. Ayuda ---------- */
.ayuda {
  position: fixed;
  left: 50%;
  bottom: calc(22px + var(--seguro-abajo));
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 10px 18px 10px 11px;
  border: 1px solid var(--cristal-borde);
  border-radius: 999px;
  background: rgba(8, 12, 30, 0.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 1s ease, transform 1s var(--curva);
  pointer-events: none;
  z-index: 15;
}
.ayuda.visible { opacity: 1; transform: translate(-50%, 0); }
.ayuda__gesto {
  position: relative;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(205, 184, 133, 0.3);
}
.ayuda__gesto span {
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--oro-claro);
  box-shadow: 0 0 10px rgba(205, 184, 133, 0.9);
  animation: deslizar 2.6s var(--curva) infinite;
}
@keyframes deslizar {
  0% { transform: translateX(-9px); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: translateX(9px); opacity: 1; }
  100% { transform: translateX(9px); opacity: 0; }
}
.ayuda__textos { display: flex; flex-direction: column; gap: 3px; }
.ayuda__principal { font-size: 13px; letter-spacing: 0.02em; color: var(--estrella); text-wrap: balance; }
.ayuda__secundaria {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--texto-tenue);
  max-height: 2.6em;
  overflow: hidden;
  transition: opacity 0.6s ease, max-height 0.6s ease;
}
.ayuda.arrastrado .ayuda__secundaria { opacity: 0; max-height: 0; }
.ayuda.arrastrado .ayuda__gesto span { animation: latido 2.2s ease-in-out infinite; }

/* ---------- Zoom (computadora) ---------- */
.zoom {
  position: fixed;
  right: 18px;
  bottom: calc(24px + var(--seguro-abajo));
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 15;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
@media (hover: hover) and (pointer: fine) {
  .zoom { display: flex; }
  .en-universo .zoom, .en-contemplar .zoom { opacity: 1; visibility: visible; transition: opacity 0.6s ease, visibility 0s; }
  .en-momento .zoom, .en-final:not(.en-contemplar) .zoom { opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
}
.en-momento .marcador { opacity: 0.55; }

/* ---------- 3. Momento de cada constelación ---------- */
.momento {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(70px + var(--seguro-arriba)) 18px calc(20px + var(--seguro-abajo));
  pointer-events: none;
  text-align: center;
  z-index: 12;
  opacity: 0;
  outline: none;
  transition: opacity 0.7s ease;
}
.momento.visible { opacity: 1; transition-delay: 0.5s; }
.momento__cabecera { display: flex; flex-direction: column; align-items: center; }
.momento__forma {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--oro);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
.momento__nombre {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(29px, 7.4vw, 44px);
  line-height: 1.08;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(2, 4, 14, 0.9);
}
.momento__indicacion {
  max-width: 34ch;
  margin: 12px 0 0;
  min-height: 2.8em;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: rgba(248, 243, 231, 0.96);
  text-wrap: balance;
  text-shadow: 0 0 2px rgba(2, 4, 14, 0.95), 0 1px 4px rgba(2, 4, 14, 0.9), 0 1px 12px rgba(0, 0, 0, 0.95);
  position: relative;
  isolation: isolate;
}
/* Sombra suave detrás de la instrucción para que se lea sobre las estrellas brillantes (p. ej. el anillo de "revelado"). */
.momento__indicacion:not(:empty)::before {
  content: "";
  position: absolute;
  inset: -12px -28px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(5, 8, 22, 0.82), rgba(5, 8, 22, 0.55) 60%, rgba(5, 8, 22, 0));
  pointer-events: none;
}
.momento__indicacion.cambio { animation: aparecer-texto 0.9s var(--curva) both; }
@keyframes aparecer-texto {
  from { opacity: 0; filter: blur(4px); transform: translateY(4px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
.momento__puntos {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 7px;
  margin-top: 6px;
}
.momento__puntos span {
  width: 7px; height: 7px;
  background: rgba(248, 243, 231, 0.24);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  transition: background 0.4s ease, transform 0.5s var(--resorte);
}
.momento__puntos span.encendido { background: var(--oro-claro); transform: scale(1.5); }
.momento__acciones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  pointer-events: auto;
}
.momento__acciones .boton { min-height: 46px; }

/* Capa con nombres, frases y el anillo que siguen al dedo */
.capa-momento { z-index: 11; }
.frase {
  position: absolute;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
  color: #fff8ec;
  text-shadow: 0 0 18px rgba(255, 214, 160, 0.55), 0 2px 16px rgba(2, 4, 14, 0.95);
  animation: frase 4.6s var(--curva) both;
}
.frase--grande {
  font-size: clamp(26px, 6.6vw, 38px);
  animation-name: frase-grande;
  animation-duration: 5.2s;
}
@keyframes frase {
  0% { opacity: 0; filter: blur(8px); transform: translateY(12px); }
  14% { opacity: 1; filter: blur(0); transform: translateY(0); }
  72% { opacity: 1; filter: blur(0); transform: translateY(-22px); }
  100% { opacity: 0; filter: blur(4px); transform: translateY(-40px); }
}
@keyframes frase-grande {
  0% { opacity: 0; filter: blur(12px); transform: scale(0.94); }
  18% { opacity: 1; filter: blur(0); transform: scale(1); }
  78% { opacity: 1; filter: blur(0); transform: scale(1.02); }
  100% { opacity: 0; filter: blur(6px); transform: scale(1.04); }
}
.frase--ranura { animation: frase-ranura 5.6s var(--curva) both; }
.frase--ranura.saliendo { animation: frase-salida 0.45s ease both; }
@keyframes frase-ranura {
  0% { opacity: 0; filter: blur(8px); transform: translateY(8px); }
  12% { opacity: 1; filter: blur(0); transform: none; }
  82% { opacity: 1; filter: blur(0); transform: none; }
  100% { opacity: 0; filter: blur(4px); transform: translateY(-8px); }
}
@keyframes frase-salida { to { opacity: 0; filter: blur(6px); transform: translateY(-10px); } }

/* La foto que se revela dentro del marco de polvo de estrellas */
.revelado {
  --revelado: 0;
  position: absolute;
  left: 0; top: 0;
  overflow: hidden;
  border-radius: 3px;
  opacity: 0;
  box-shadow: 0 0 calc(10px + var(--revelado) * 40px) rgba(255, 228, 190, 0.28);
  will-change: transform, opacity;
}
.revelado img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(calc((1 - var(--revelado)) * 14px)) sepia(calc(1 - var(--revelado))) saturate(calc(0.35 + var(--revelado) * 0.75)) brightness(calc(0.3 + var(--revelado) * 0.75));
  transform: scale(calc(1.1 - var(--revelado) * 0.1));
}

.alma-nombre {
  position: absolute;
  left: 0; top: 0;
  translate: -50% 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  white-space: nowrap;
  color: var(--estrella);
  text-shadow: 0 0 14px rgba(255, 220, 180, 0.5), 0 1px 10px rgba(2, 4, 14, 0.95);
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: transform;
}
.alma-nombre.visible { opacity: 1; }

.anillo {
  position: absolute;
  left: 0; top: 0;
  width: 96px; height: 96px;
  margin: -48px 0 0 -48px;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: transform;
}
.anillo.visible { opacity: 1; }
.anillo__pista { fill: none; stroke: rgba(248, 243, 231, 0.16); stroke-width: 1.2; }
.anillo__progreso {
  fill: none;
  stroke: var(--oro-claro);
  stroke-width: 2;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 4px rgba(243, 227, 188, 0.9));
  transition: stroke-dashoffset 0.12s linear;
}
.anillo.guia .anillo__pista { stroke: rgba(243, 227, 188, 0.5); animation: guia 2.2s ease-in-out infinite; transform-origin: 50% 50%; }
.anillo.guia .anillo__progreso { opacity: 0; }
@keyframes guia {
  0%, 100% { transform: scale(0.82); opacity: 0.4; }
  50% { transform: scale(1); opacity: 1; }
}

/* Botones invisibles: los usa el teclado para atrapar luces */
.botones-momento { z-index: 13; }
.boton-momento {
  position: absolute;
  left: 0; top: 0;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  outline: none;
}
.boton-momento:focus-visible {
  box-shadow: 0 0 0 1.5px rgba(243, 227, 188, 0.9), 0 0 0 7px rgba(205, 184, 133, 0.16);
}

/* ---------- Velos y tarjetas ---------- */
.velo {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px + var(--seguro-arriba)) 16px calc(16px + var(--seguro-abajo));
  background: radial-gradient(120% 90% at 50% 40%, rgba(5, 8, 22, 0.45), rgba(3, 5, 15, 0.86));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 30;
  opacity: 0;
  transition: opacity 0.7s ease;
  touch-action: pan-y;
}
.velo.visible { opacity: 1; }

.carta {
  position: relative;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(205, 184, 133, 0.3);
  border-radius: 22px;
  background: linear-gradient(170deg, rgba(20, 29, 64, 0.97) 0%, rgba(10, 16, 41, 0.98) 70%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 70px rgba(205, 184, 133, 0.08), inset 0 1px 0 rgba(255, 245, 220, 0.08);
  outline: none;
  transform: scale(0.6) translateY(20px);
  opacity: 0;
  transition: transform 0.95s var(--curva), opacity 0.6s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--oro-suave) transparent;
  -webkit-user-select: text;
  user-select: text;
  touch-action: pan-y;
}
.velo.visible .carta { transform: none; opacity: 1; }

/* ---------- Tarjeta de recuerdo ----------
   Llega de espaldas y se voltea; tiene un marco dorado que gira, esquinas de
   astrolabio, polvo de estrellas que titila y un brillo holográfico. */
@property --marco-giro { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.recuerdo {
  --acento: var(--oro-claro);
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  max-height: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: linear-gradient(175deg, #151d43 0%, #0b1130 58%, #080d25 100%);
  background:
    radial-gradient(120% 46% at 50% 0%, color-mix(in srgb, var(--acento) 15%, transparent), transparent 72%),
    radial-gradient(90% 36% at 50% 100%, color-mix(in srgb, var(--acento) 10%, transparent), transparent 72%),
    linear-gradient(175deg, #151d43 0%, #0b1130 58%, #080d25 100%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 100px rgba(205, 184, 133, 0.12);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 100px color-mix(in srgb, var(--acento) 16%, transparent);
  outline: none;
  opacity: 0;
  transform: perspective(1600px) translateY(14px) scale(0.94) rotateX(0deg) rotateY(0deg);
  transition: transform 0.6s var(--curva), opacity 0.45s ease;
  -webkit-user-select: text;
  user-select: text;
}
.velo.visible .recuerdo {
  opacity: 1;
  transform: perspective(1600px) translateY(0) scale(1) rotateX(var(--rx)) rotateY(var(--ry));
  animation: voltear-tarjeta 1.3s linear backwards;
}
.recuerdo.inclinando { transition: transform 0.3s ease-out, opacity 0.45s ease; }
@keyframes voltear-tarjeta {
  0% {
    opacity: 0;
    transform: perspective(1600px) translateY(60px) scale(0.68) rotateX(8deg) rotateY(-180deg);
    animation-timing-function: cubic-bezier(0.4, 0.1, 0.8, 0.5);
  }
  14% { opacity: 1; }
  46% {
    transform: perspective(1600px) translateY(10px) scale(0.9) rotateX(3deg) rotateY(-90deg);
    animation-timing-function: cubic-bezier(0.18, 0.8, 0.3, 1.12);
  }
  100% { opacity: 1; transform: perspective(1600px) translateY(0) scale(1) rotateX(0deg) rotateY(0deg); }
}

/* El contenido se desplaza por dentro; los adornos se quedan quietos sobre la tarjeta */
.recuerdo__desplazable {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: inherit;
  scrollbar-width: thin;
  scrollbar-color: var(--oro-suave) transparent;
  touch-action: pan-y;
}

.recuerdo__polvo, .recuerdo__polvo::before, .recuerdo__polvo::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.recuerdo__polvo { z-index: 0; }
.recuerdo__polvo::before, .recuerdo__polvo::after { content: ""; }
.recuerdo__polvo::before {
  background:
    radial-gradient(1.3px 1.3px at 8% 12%, #fff, transparent 70%),
    radial-gradient(1px 1px at 22% 46%, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(1.5px 1.5px at 41% 7%, #fff3dc, transparent 70%),
    radial-gradient(1px 1px at 64% 36%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(1.3px 1.3px at 87% 15%, #fff, transparent 70%),
    radial-gradient(1px 1px at 93% 53%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(1.4px 1.4px at 11% 81%, #fff3dc, transparent 70%),
    radial-gradient(1px 1px at 36% 93%, rgba(255, 255, 255, 0.6), transparent 70%),
    radial-gradient(1.3px 1.3px at 74% 88%, #fff, transparent 70%),
    radial-gradient(1px 1px at 55% 63%, rgba(255, 255, 255, 0.5), transparent 70%);
  animation: titilar-capa 4.6s ease-in-out infinite;
}
.recuerdo__polvo::after {
  background:
    radial-gradient(1px 1px at 16% 25%, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(1.4px 1.4px at 31% 63%, #fff, transparent 70%),
    radial-gradient(1px 1px at 52% 18%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(1.3px 1.3px at 70% 51%, #fff3dc, transparent 70%),
    radial-gradient(1px 1px at 82% 74%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(1.4px 1.4px at 95% 33%, #fff, transparent 70%),
    radial-gradient(1px 1px at 4% 58%, rgba(255, 255, 255, 0.6), transparent 70%),
    radial-gradient(1.2px 1.2px at 46% 82%, #fff, transparent 70%);
  animation: titilar-capa 5.8s ease-in-out -2.6s infinite;
}
@keyframes titilar-capa { 0%, 100% { opacity: 0.22; } 50% { opacity: 0.95; } }

/* Marco dorado vivo */
.recuerdo__marco {
  position: absolute;
  inset: 0;
  z-index: 6;
  padding: 1.6px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from var(--marco-giro), rgba(243, 227, 188, 0.75), #fffaf0 7%, rgba(243, 227, 188, 0.4) 15%, rgba(205, 184, 133, 0.18) 28%, rgba(165, 150, 255, 0.4) 40%, rgba(243, 227, 188, 0.55) 52%, rgba(255, 250, 235, 0.85) 58%, rgba(205, 184, 133, 0.2) 72%, rgba(130, 200, 255, 0.35) 86%, rgba(243, 227, 188, 0.75));
  background: conic-gradient(from var(--marco-giro),
    color-mix(in srgb, var(--acento) 75%, transparent),
    #fffaf0 7%,
    color-mix(in srgb, var(--acento) 45%, transparent) 15%,
    rgba(205, 184, 133, 0.18) 28%,
    rgba(165, 150, 255, 0.4) 40%,
    color-mix(in srgb, var(--acento) 60%, transparent) 52%,
    rgba(255, 250, 235, 0.85) 58%,
    rgba(205, 184, 133, 0.2) 72%,
    rgba(130, 200, 255, 0.35) 86%,
    color-mix(in srgb, var(--acento) 75%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: girar-marco 10s linear infinite;
}
@keyframes girar-marco { to { --marco-giro: 360deg; } }

/* Esquinas de astrolabio y un filo interior */
.recuerdo__esquinas {
  position: absolute;
  inset: 8px;
  z-index: 6;
  border: 1px solid rgba(243, 227, 188, 0.12);
  border-color: color-mix(in srgb, var(--acento) 15%, transparent);
  border-radius: 17px;
  pointer-events: none;
}
.esquina {
  position: absolute;
  width: 30px;
  height: 30px;
  overflow: visible;
  fill: none;
  stroke: #f3e3bc;
  stroke: color-mix(in srgb, var(--acento) 80%, #fff);
  stroke-width: 1.2;
  stroke-linecap: round;
}
.esquina circle, .esquina .esquina__estrella { fill: #f3e3bc; fill: color-mix(in srgb, var(--acento) 85%, #fff); stroke: none; }
.esquina--1 { left: -4px; top: -4px; }
.esquina--2 { right: -4px; top: -4px; transform: scaleX(-1); }
.esquina--3 { right: -4px; bottom: -4px; transform: scale(-1, -1); }
.esquina--4 { left: -4px; bottom: -4px; transform: scaleY(-1); }
.esquina__linea { stroke-dasharray: 42; stroke-dashoffset: 42; }
.velo.visible .esquina__linea { animation: trazar-esquina 1.1s var(--curva) 1.15s forwards; }
.esquina__estrella { transform-box: fill-box; transform-origin: center; opacity: 0; }
.velo.visible .esquina__estrella { animation: titilar 3.2s ease-in-out 1.6s infinite; }
.velo.visible .esquina--2 .esquina__estrella, .velo.visible .esquina--4 .esquina__estrella { animation-delay: 2.4s; }
@keyframes trazar-esquina { to { stroke-dashoffset: 0; } }
@keyframes titilar { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.18); } }

/* Brillo holográfico que cruza la tarjeta y luz que sigue al cursor o al dedo */
.recuerdo__brillo {
  position: absolute;
  inset: 0;
  z-index: 7;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.recuerdo__brillo::before {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -60%;
  width: 60%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 240, 210, 0) 20%, rgba(255, 240, 210, 0.15) 42%, rgba(200, 180, 255, 0.13) 52%, rgba(160, 230, 255, 0.09) 60%, transparent 80%);
  transform: translateX(0) skewX(-12deg);
  mix-blend-mode: screen;
  opacity: 0;
}
.velo.visible .recuerdo__brillo::before { animation: barrido-tarjeta 8s ease-in-out 1.25s infinite; }
@keyframes barrido-tarjeta {
  0% { opacity: 1; transform: translateX(0) skewX(-12deg); }
  28% { opacity: 1; transform: translateX(390%) skewX(-12deg); }
  28.1%, 100% { opacity: 0; transform: translateX(390%) skewX(-12deg); }
}
.recuerdo__brillo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(44% 34% at var(--gx, 50%) var(--gy, 20%), rgba(255, 246, 225, 0.14), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.recuerdo.con-brillo .recuerdo__brillo::after { opacity: 1; }

/* Número romano enorme, como marca de agua */
.recuerdo__marca-agua {
  position: absolute;
  right: 18px;
  bottom: -0.16em;
  z-index: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 200px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 227, 188, 0.14);
  -webkit-text-stroke: 1px color-mix(in srgb, var(--acento) 18%, transparent);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.6s ease 1.2s, transform 2.2s var(--curva) 1.2s;
}
.velo.visible .recuerdo__marca-agua { opacity: 1; transform: none; }

/* Reverso: se ve mientras la tarjeta se voltea */
.recuerdo__dorso {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: #0b1130;
  background:
    radial-gradient(1px 1px at 18% 20%, #fff, transparent 70%),
    radial-gradient(1.4px 1.4px at 80% 14%, #fff3dc, transparent 70%),
    radial-gradient(1px 1px at 12% 76%, #fff, transparent 70%),
    radial-gradient(1.2px 1.2px at 86% 82%, #fff, transparent 70%),
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--acento) 30%, #0c1232) 0%, #0b1130 46%, #070b21 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.recuerdo__dorso::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(243, 227, 188, 0.35);
  border-color: color-mix(in srgb, var(--acento) 40%, transparent);
  border-radius: 16px;
}
.velo.visible .recuerdo__dorso { animation: dorso-tarjeta 1.3s linear both; }
@keyframes dorso-tarjeta {
  0%, 45% { opacity: 1; visibility: visible; }
  46%, 100% { opacity: 0; visibility: hidden; }
}
.recuerdo__dorso-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: scaleX(-1);
}
.recuerdo__dorso-emblema { position: relative; width: 190px; height: 190px; }
.recuerdo__dorso-anillos {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(243, 227, 188, 0.45);
  stroke: color-mix(in srgb, var(--acento) 55%, transparent);
  stroke-width: 0.8;
}
.recuerdo__dorso-anillos .punteado { stroke-dasharray: 2 5; }
.recuerdo__dorso-figura { position: absolute; inset: 42px; width: calc(100% - 84px); height: calc(100% - 84px); overflow: visible; }
.recuerdo__dorso-figura line { stroke: #fff3dc; stroke: color-mix(in srgb, var(--acento) 60%, #fff); stroke-width: 0.9; stroke-linecap: round; opacity: 0.85; }
.recuerdo__dorso-figura circle { fill: #fffaf0; }
.recuerdo__dorso-numero {
  margin: 6px 0 0;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--acento);
}
.recuerdo__dorso-forma { margin: 0; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--estrella); }

/* Foto sola (recuerdo.foto sin galería) */
.recuerdo__foto {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--noche-2);
}
.recuerdo__foto::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(12, 19, 46, 0.96));
}
.recuerdo__foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease 0.35s, transform 6s var(--curva) 0.35s;
}
.velo.visible .recuerdo__foto img { opacity: 1; transform: none; }

/* Texto */
.recuerdo__texto {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 26px 30px;
  text-align: center;
}
.recuerdo--foto .recuerdo__texto { margin-top: -46px; }
.recuerdo__texto > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s ease, transform 0.9s var(--curva);
}
.velo.visible .recuerdo__texto > * { opacity: 1; transform: none; }
.velo.visible .recuerdo__fecha { transition-delay: 1.15s; }
.velo.visible .recuerdo__titulo { transition-delay: 1.25s; }
.velo.visible .recuerdo__separador { transition-delay: 1.4s; }
.velo.visible .recuerdo__lista { transition-delay: 1.5s; }
.velo.visible .recuerdo__sorpresa { transition-delay: 1.9s; }
.velo.visible #boton-cerrar-recuerdo { transition-delay: 2.1s; }

/* Medallón con el número de la constelación */
.recuerdo__sello {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  margin: -58px auto -2px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fffaf0 0%, #f3e3bc 32%, #c9a865 70%, #4a361c 100%);
  background: radial-gradient(circle at 34% 28%, #fffaf0 0%, color-mix(in srgb, var(--acento) 70%, #f3e3bc) 32%, color-mix(in srgb, var(--acento) 55%, #8a6a35) 70%, #4a361c 100%);
  box-shadow: 0 0 0 4px #0e1536, 0 0 0 5px rgba(243, 227, 188, 0.5), 0 10px 24px rgba(0, 0, 0, 0.55), 0 0 34px rgba(243, 227, 188, 0.35);
  box-shadow: 0 0 0 4px #0e1536, 0 0 0 5px color-mix(in srgb, var(--acento) 50%, transparent), 0 10px 24px rgba(0, 0, 0, 0.55), 0 0 34px color-mix(in srgb, var(--acento) 45%, transparent);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 21px;
  line-height: 1;
  color: #22183a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.recuerdo__sello::before {
  content: "";
  position: absolute;
  inset: -11px;
  border: 1px dashed rgba(243, 227, 188, 0.4);
  border-color: color-mix(in srgb, var(--acento) 45%, transparent);
  border-radius: 50%;
  animation: girar 26s linear infinite;
}
.velo.visible .recuerdo__sello { animation: sello-entra 1s var(--resorte) 1s both; }
@keyframes sello-entra { from { opacity: 0; transform: scale(0.2) rotate(-140deg); } to { opacity: 1; transform: none; } }
@keyframes girar { to { transform: rotate(360deg); } }

.recuerdo__fecha {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 15px 7px 16px;
  border: 1px solid rgba(243, 227, 188, 0.28);
  border-color: color-mix(in srgb, var(--acento) 30%, transparent);
  border-radius: 999px;
  background: rgba(243, 227, 188, 0.06);
  background: color-mix(in srgb, var(--acento) 8%, transparent);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--acento);
}
.recuerdo__fecha::before, .recuerdo__fecha::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0.85;
}
.recuerdo__titulo {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(31px, 8.2vw, 40px);
  line-height: 1.08;
  text-wrap: balance;
  color: #fffaf0;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .recuerdo__titulo {
    background: linear-gradient(100deg, #fffaf0 0%, #fffaf0 38%, #f3e3bc 50%, #fffaf0 62%, #fffaf0 100%);
    background: linear-gradient(100deg, #fffaf0 0%, #fffaf0 38%, color-mix(in srgb, var(--acento) 80%, #fff) 50%, #fffaf0 62%, #fffaf0 100%);
    background-size: 280% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .velo.visible .recuerdo__titulo { animation: brillo-titulo 2.6s ease-in-out 1.35s both; }
}
@keyframes brillo-titulo { from { background-position: 100% 0; } to { background-position: 0% 0; } }

.recuerdo__separador { position: relative; display: block; width: 110px; height: 11px; }
.recuerdo__separador::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acento), transparent);
  opacity: 0.7;
}
.recuerdo__separador::after {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 11px; height: 11px;
  margin-left: -5.5px;
  background: var(--acento);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

/* El mensaje aparece palabra por palabra, como escrito con luz */
.recuerdo__mensaje {
  margin: 0;
  font-family: var(--serif);
  font-size: 19.5px;
  line-height: 1.55;
  color: rgba(248, 243, 231, 0.92);
  text-wrap: pretty;
}
.recuerdo__texto > .recuerdo__mensaje { opacity: 1; transform: none; }
.recuerdo__mensaje .pm {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(6px);
  transition: opacity 0.8s ease, filter 0.9s ease, transform 0.9s var(--curva);
  transition-delay: calc(1.45s + var(--i, 0) * 0.04s);
}
.velo.visible .recuerdo__mensaje .pm { opacity: 1; filter: blur(0); transform: none; }
.recuerdo--con-lista .recuerdo__mensaje { font-style: italic; font-size: 18px; color: var(--texto-tenue); }

.recuerdo__lista {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  width: 100%;
  text-align: left;
  counter-reset: renglon;
}
.recuerdo__lista li {
  counter-increment: renglon;
  position: relative;
  padding: 13px 4px 13px 46px;
  border-top: 1px solid rgba(205, 184, 133, 0.13);
  border-top-color: color-mix(in srgb, var(--acento) 16%, transparent);
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.38;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.8s ease, transform 0.8s var(--curva);
  transition-delay: calc(1.7s + var(--i, 0) * 0.22s);
}
.recuerdo__lista li:last-child {
  border-bottom: 1px solid rgba(205, 184, 133, 0.13);
  border-bottom-color: color-mix(in srgb, var(--acento) 16%, transparent);
}
.recuerdo__lista li::before {
  content: counter(renglon, upper-roman);
  position: absolute;
  left: 4px; top: 14px;
  width: 30px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--acento);
}
.recuerdo__lista li::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--acento), transparent 75%);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0.7;
}
.velo.visible .recuerdo__lista li { opacity: 1; transform: none; }
.velo.visible .recuerdo__lista li::before { animation: encender-numeral 1.5s ease both; animation-delay: calc(1.85s + var(--i, 0) * 0.22s); }
.velo.visible .recuerdo__lista li::after { animation: trazar-renglon 1.2s var(--curva) both; animation-delay: calc(1.9s + var(--i, 0) * 0.22s); }
@keyframes encender-numeral {
  0% { opacity: 0.15; text-shadow: none; }
  35% { opacity: 1; text-shadow: 0 0 16px var(--acento), 0 0 3px #fff; }
  100% { opacity: 1; text-shadow: 0 0 9px rgba(255, 220, 170, 0.4); }
}
@keyframes trazar-renglon { 0% { transform: scaleX(0); opacity: 0.9; } 100% { transform: scaleX(1); opacity: 0.25; } }

#boton-cerrar-recuerdo { margin-top: 12px; }

/* Aviso flotante cuando hay una sorpresa más abajo */
.recuerdo__aviso {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 16px;
  border: 1px solid rgba(243, 227, 188, 0.5);
  border-color: color-mix(in srgb, var(--acento) 55%, transparent);
  border-radius: 999px;
  background: rgba(8, 12, 32, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--estrella);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(243, 227, 188, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px color-mix(in srgb, var(--acento) 30%, transparent);
  cursor: pointer;
  translate: -50% 14px;
  opacity: 0;
  transition: opacity 0.5s ease, translate 0.6s var(--resorte);
}
.recuerdo__aviso.visible { opacity: 1; translate: -50% 0; animation: rebote-aviso 2.4s ease-in-out 1s infinite; }
.recuerdo__aviso svg { width: 15px; height: 15px; color: var(--acento); }
.recuerdo__aviso:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
@keyframes rebote-aviso { 0%, 100% { translate: -50% 0; } 50% { translate: -50% -5px; } }

/* ---------- Tarjetas con lámina celeste (recuerdos sin foto) ---------- */
.recuerdo__lamina { display: none; }
.recuerdo--lamina { max-width: 460px; }
.recuerdo--lamina .recuerdo__lamina:not([hidden]) {
  position: relative;
  display: block;
  height: 200px;
  margin: 14px 14px 0;
  overflow: hidden;
  border: 1px solid rgba(205, 184, 133, 0.2);
  border-color: color-mix(in srgb, var(--acento) 26%, transparent);
  border-radius: 14px;
  background-color: rgba(4, 7, 22, 0.55);
  background-image:
    radial-gradient(1px 1px at 9% 18%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 23% 74%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.4px 1.4px at 37% 12%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 61% 86%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.2px 1.2px at 78% 22%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 91% 63%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 51% 38%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 15% 46%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(70% 90% at 50% 50%, rgba(205, 184, 133, 0.1), transparent 70%);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 1s ease 0.9s;
}
.velo.visible .recuerdo--lamina .recuerdo__lamina { opacity: 1; }
.recuerdo__carta-celeste {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(248, 243, 231, 0.09);
  stroke-width: 0.8;
}
.recuerdo__carta-celeste .punteado { stroke-dasharray: 2 6; }
.recuerdo__mapa {
  position: absolute;
  top: 20px; bottom: 36px; left: 24px; right: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 56px);
  overflow: visible;
}
.recuerdo__mapa .traza {
  fill: none;
  stroke: #f3e3bc;
  stroke: color-mix(in srgb, var(--acento) 55%, #fff6e6);
  stroke-width: 0.55;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.8;
}
.recuerdo__mapa .traza--punteada { stroke-dasharray: 1.6 2.2; stroke-dashoffset: 0; opacity: 0; }
.recuerdo__mapa .traza--anillo { opacity: 0.55; }
.recuerdo__mapa .astro {
  fill: #fffaf0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}
.recuerdo__mapa .astro--principal { fill: #fff3dc; fill: color-mix(in srgb, var(--acento) 35%, #fff); }
.velo.visible .recuerdo__mapa .traza { animation: trazar 1.1s var(--curva) both; animation-delay: calc(1.2s + var(--i, 0) * 0.11s); }
.velo.visible .recuerdo__mapa .traza--punteada { animation: aparecer-traza 1.2s ease both; animation-delay: calc(1.2s + var(--i, 0) * 0.11s); }
.velo.visible .recuerdo__mapa .astro { animation: brotar 0.8s var(--resorte) both; animation-delay: calc(1s + var(--i, 0) * 0.07s); }
@keyframes trazar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes aparecer-traza { from { opacity: 0; } to { opacity: 0.7; } }
@keyframes brotar { from { transform: scale(0); } to { transform: scale(1); } }
/* La constelación real del universo, retratada para la tarjeta */
.recuerdo__retrato {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.08);
  filter: blur(6px);
}
.velo.visible .recuerdo__retrato {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 1.4s ease 0.9s, transform 2.6s var(--curva) 0.9s, filter 1.6s var(--curva) 0.9s;
}
.recuerdo__lamina.con-retrato .recuerdo__mapa { display: none; }
.recuerdo__lamina.con-retrato .recuerdo__carta-celeste { opacity: 0.55; z-index: 1; }
.recuerdo__lamina.con-retrato::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 45%, transparent 55%, rgba(3, 5, 16, 0.55) 100%),
    linear-gradient(0deg, rgba(3, 5, 16, 0.6) 0, transparent 36px);
}
.recuerdo__lamina .recuerdo__rotulo { z-index: 2; }

/* La constelación en 3D dentro de la tarjeta */
.recuerdo__vitrina, .recuerdo__gira { display: none; }
.recuerdo__lamina.con-vitrina .recuerdo__vitrina {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
  opacity: 0;
  transform: scale(1.06);
}
.recuerdo__lamina.con-vitrina .recuerdo__vitrina:active { cursor: grabbing; }
.velo.visible .recuerdo__lamina.con-vitrina .recuerdo__vitrina {
  opacity: 1;
  transform: none;
  transition: opacity 1.2s ease 0.8s, transform 2.4s var(--curva) 0.8s;
}
.recuerdo__lamina.con-vitrina .recuerdo__mapa,
.recuerdo__lamina.con-vitrina .recuerdo__carta-celeste { display: none; }
.recuerdo__lamina.con-vitrina::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(3, 5, 16, 0.6) 0, transparent 36px);
}
.recuerdo__lamina.con-vitrina .recuerdo__gira {
  display: block;
  position: absolute;
  top: 10px; right: 14px;
  z-index: 2;
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(248, 243, 231, 0.6);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.recuerdo__lamina.con-vitrina .recuerdo__gira::before {
  content: "";
  display: inline-block;
  width: 14px; height: 8px;
  margin-right: 7px;
  vertical-align: 0;
  border: 1px solid currentColor;
  border-top: 0;
  border-radius: 0 0 50% 50%;
  opacity: 0.8;
}
.velo.visible .recuerdo__lamina.con-vitrina .recuerdo__gira { opacity: 1; transition: opacity 1s ease 3s; }
.velo.visible .recuerdo__lamina.con-vitrina .recuerdo__gira.usada { opacity: 0; transition: opacity 0.5s ease; }

.recuerdo__rotulo {
  position: absolute;
  left: 16px; right: 16px; bottom: 11px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(248, 243, 231, 0.55);
}
.recuerdo__rotulo span:last-child { color: var(--acento); }

/* ---------- Galería: fotos instantáneas que se deslizan ---------- */
.recuerdo--galeria { max-width: 440px; }
.galeria {
  --ancho: min(64vw, 256px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px 16px 52px;
  overflow: hidden;
  outline: none;
}
.galeria:focus-visible { outline: 2px solid var(--oro); outline-offset: -8px; border-radius: 20px; }
.galeria__fondo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask: linear-gradient(180deg, #000 50%, transparent 100%);
  mask: linear-gradient(180deg, #000 50%, transparent 100%);
}
.galeria__fondo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(26px) saturate(1.4) brightness(0.72);
  transform: scale(1.35);
  opacity: 0.62;
  transition: opacity 0.45s ease;
}
.galeria__fondo.cambiando img { opacity: 0; }
.galeria__mazo {
  position: relative;
  z-index: 1;
  width: var(--ancho);
  height: calc(var(--ancho) + 58px);
  touch-action: pan-y;
}
.polaroid {
  --acento-cinta: rgba(255, 210, 170, 0.6);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  margin: 0;
  padding: 10px 10px 0;
  border-radius: 3px;
  background: linear-gradient(170deg, #fdfaf2 0%, #f3ede0 60%, #e8e0cd 100%);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5), 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transform-origin: 50% 60%;
  transition: transform 0.6s var(--resorte), opacity 0.45s ease, box-shadow 0.4s ease;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  will-change: transform;
}
.galeria--una .polaroid { cursor: default; }
.polaroid--arriba { box-shadow: 0 30px 54px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.polaroid--arrastrando { transition: none; cursor: grabbing; }
.polaroid--volando { transition: transform 0.42s cubic-bezier(0.45, 0, 0.75, 0.55), opacity 0.42s ease; }
.polaroid--quieta { transition: none !important; }
/* Cinta adhesiva del color de la constelación */
.polaroid::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 2;
  width: 76px;
  height: 21px;
  margin-left: -38px;
  background: rgba(255, 220, 230, 0.55);
  background: color-mix(in srgb, var(--acento) 50%, rgba(255, 255, 255, 0.55));
  opacity: 0.62;
  transform: rotate(var(--cinta, -4deg));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.polaroid__foto { position: relative; aspect-ratio: 1; overflow: hidden; background: #1b1e30; }
.polaroid__foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.2) 0%, transparent 34%, transparent 72%, rgba(255, 255, 255, 0.06));
  pointer-events: none;
}
.polaroid__foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: filter 2.8s ease, transform 3.2s var(--curva);
}
/* Recién sacada: lechosa, y se revela al quedar arriba */
.polaroid.por-revelar img { filter: brightness(1.85) contrast(0.42) saturate(0.15) sepia(0.4) blur(1.5px); transform: scale(1.05); }
.polaroid__pie {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin: 0;
  padding: 4px 4px 8px;
  font-family: var(--firma);
  font-size: 23px;
  line-height: 1.2;
  color: #2d2950;
  text-align: center;
  text-wrap: balance;
}
.galeria__control { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; }
.galeria__flecha { width: 42px; height: 42px; }
.galeria__puntos { display: flex; gap: 8px; }
.galeria__puntos span {
  width: 8px;
  height: 8px;
  background: rgba(248, 243, 231, 0.3);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  transition: background 0.3s ease, transform 0.4s var(--resorte);
}
.galeria__puntos span.activo { background: var(--acento); transform: scale(1.6); }
.galeria__pista {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(248, 243, 231, 0.62);
  transition: opacity 0.5s ease;
}
.galeria__pista-icono { display: inline-flex; width: 24px; color: var(--acento); animation: vaiven-lado 1.8s ease-in-out infinite; }
.galeria__pista-icono svg { width: 100%; height: auto; }
.galeria__pista.usada { opacity: 0; }
@keyframes vaiven-lado { 50% { transform: translateX(4px); } }
/* El mazo se asoma para invitar a deslizar */
.galeria--asomar .polaroid--arriba { animation: asomar 1.6s var(--curva) both; }
@keyframes asomar { 0% { translate: 0 0; } 30% { translate: -36px 0; } 62% { translate: 10px 0; } 100% { translate: 0 0; } }

/* ---------- Sorpresas que desbloquean los recuerdos ---------- */
.recuerdo__sorpresa { width: 100%; }
.sorpresa {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 10px 0 4px;
  padding: 22px 16px 22px;
  border: 1px solid rgba(243, 227, 188, 0.24);
  border-color: color-mix(in srgb, var(--acento) 28%, transparent);
  border-radius: 18px;
  background: rgba(5, 8, 24, 0.5);
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--acento) 14%, transparent), transparent 70%), rgba(5, 8, 24, 0.5);
  text-align: center;
}
.sorpresa__aviso {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--acento);
}
.sorpresa__aviso::before, .sorpresa__aviso::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: titilar 2.4s ease-in-out infinite;
}
.sorpresa__aviso::after { animation-delay: -1.2s; }
.sorpresa__pista { margin: 0; font-size: 12.5px; letter-spacing: 0.04em; color: var(--texto-tenue); }
.sorpresa__dedicatoria { margin: 0; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.4; color: var(--texto-tenue); }
.sorpresa__error { margin: 0; font-size: 13px; color: #ffc4c4; }

/* La cita: candado, llave y boleto dorado */
.cofre { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cerradura {
  position: relative;
  width: 140px;
  height: 128px;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: radial-gradient(closest-side, rgba(243, 227, 188, 0.16), transparent);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acento) 22%, transparent), transparent);
  color: var(--acento);
  cursor: pointer;
}
.cerradura:focus-visible { outline: 2px solid var(--oro); outline-offset: 4px; }
.cerradura .icono { position: absolute; display: block; pointer-events: none; }
.cerradura__candado {
  left: 30px; top: 19px;
  width: 80px; height: 90px;
  filter: drop-shadow(0 0 16px rgba(243, 227, 188, 0.45));
  transition: transform 0.4s var(--resorte);
}
.cerradura:hover .cerradura__candado { transform: scale(1.05) rotate(-3deg); }
.cerradura__candado svg, .cerradura__llave svg { display: block; width: 100%; height: 100%; overflow: visible; }
.candado__arco { transform-box: view-box; transform-origin: 45px 33px; transition: transform 0.55s var(--resorte); }
.candado__ojo { transform-box: view-box; transform-origin: 32px 49px; }
.cerradura__llave {
  left: 115px; top: 22px;
  width: 72px; height: 26px;
  color: #ffe2bf;
  color: color-mix(in srgb, var(--acento) 70%, #fff);
  filter: drop-shadow(0 0 8px rgba(255, 210, 170, 0.6));
  transform: translate(-50%, -50%) rotate(-38deg);
  animation: flotar-llave 2.6s ease-in-out infinite;
  transition: left 0.75s var(--curva), top 0.75s var(--curva), transform 0.75s var(--curva), opacity 0.35s ease 0.55s;
}
@keyframes flotar-llave { 50% { translate: -3px -6px; } }
.sorpresa--cita.girando .cerradura__llave {
  left: 70px; top: 80px;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.3);
  opacity: 0;
  animation: none;
}
.sorpresa--cita.girando .candado__ojo { animation: girar-ojo 0.45s var(--curva) 0.6s forwards; }
@keyframes girar-ojo { to { transform: rotate(90deg); } }
.sorpresa--cita.girando .cerradura__candado { filter: drop-shadow(0 0 22px rgba(255, 236, 200, 0.9)); }
.sorpresa--cita.abierta .candado__arco { transform: translateY(-9px) rotate(26deg); }
.sorpresa--cita.abierta .cerradura__candado { animation: candado-se-abre 0.6s ease 0.25s forwards; }
@keyframes candado-se-abre { to { opacity: 0; transform: scale(1.3); } }
.sorpresa--cita.girando .sorpresa__pista { opacity: 0; transition: opacity 0.3s ease; }

.boleto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  opacity: 0;
  transform: perspective(900px) rotateX(-75deg) scale(0.92);
  transform-origin: 50% 0;
  transition: transform 1.1s var(--resorte), opacity 0.5s ease;
}
.boleto.visible { opacity: 1; transform: none; }
.boleto__papel {
  position: relative;
  width: 100%;
  max-width: 330px;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(130% 90% at 30% 0%, #fff8e4 0%, #f4e4b8 45%, #dcc285 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 210, 170, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  color: #241c3d;
  text-align: center;
}
.boleto__papel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    radial-gradient(1.5px 1.5px at 14% 22%, #b89048, transparent 70%),
    radial-gradient(1.5px 1.5px at 86% 30%, #b89048, transparent 70%),
    radial-gradient(1.2px 1.2px at 24% 78%, #b89048, transparent 70%),
    radial-gradient(1.5px 1.5px at 72% 84%, #b89048, transparent 70%),
    radial-gradient(1.2px 1.2px at 50% 12%, #b89048, transparent 70%);
}
.boleto__papel::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -50%;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.boleto.visible .boleto__papel::after { animation: brillo-boleto 4s ease-in-out 0.9s infinite; }
@keyframes brillo-boleto { 0% { left: -50%; } 38%, 100% { left: 135%; } }
.boleto__cabeza { position: relative; padding: 20px 20px 14px; }
.boleto__folio { position: absolute; top: 12px; right: 14px; margin: 0; font-size: 9.5px; letter-spacing: 0.18em; color: rgba(36, 28, 61, 0.55); }
.boleto__antetitulo { margin: 0; font-size: 10.5px; letter-spacing: 0.34em; text-transform: uppercase; color: rgba(36, 28, 61, 0.7); }
.boleto__titulo { margin: 2px 0 0; font-family: var(--firma); font-weight: 400; font-size: 54px; line-height: 1.15; color: #2a1e4a; }
.boleto__estrellas { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
.boleto__estrellas span {
  width: 9px;
  height: 9px;
  background: #b08638;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.boleto__estrellas span:nth-child(2) { width: 12px; height: 12px; margin-top: -1.5px; }
.boleto__talon { position: relative; padding: 14px 20px 16px; border-top: 1.5px dashed rgba(36, 28, 61, 0.28); }
.boleto__talon::before, .boleto__talon::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0c1130;
}
.boleto__talon::before { left: -12px; }
.boleto__talon::after { right: -12px; }
.boleto__detalle { margin: 0; font-family: var(--serif); font-size: 17.5px; line-height: 1.4; color: #2e2648; text-wrap: balance; }
.boleto__pie {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 0;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(36, 28, 61, 0.62);
}
.boleto__nota { margin: 0; font-size: 12px; line-height: 1.5; color: var(--texto-tenue); text-wrap: balance; -webkit-user-select: text; user-select: text; }
.boleto__numero { white-space: nowrap; color: var(--estrella); }

/* La canción: un disco de sol que se libera y su letra */
.reproductor { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 360px; text-align: left; }
.disco {
  position: relative;
  flex: none;
  width: 104px;
  height: 104px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #ffd27a;
  cursor: pointer;
}
.disco:focus-visible { outline: 2px solid var(--oro); outline-offset: 5px; }
.disco .icono { position: absolute; display: grid; place-items: center; pointer-events: none; }
.disco__vinilo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #0e0e16 0 1.6px, #1c1c29 1.6px 3.2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07), 0 0 40px rgba(255, 210, 122, 0.3);
}
.disco::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 10%, rgba(255, 255, 255, 0.16) 15%, transparent 22% 55%, rgba(255, 255, 255, 0.1) 62%, transparent 70%);
  pointer-events: none;
}
.disco__etiqueta {
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3c8 0%, #ffd27a 48%, #e3953a 100%);
  color: #8a4f12;
}
.disco__etiqueta svg { width: 78%; height: 78%; }
.disco__icono {
  z-index: 2;
  left: 50%; top: 50%;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: rgba(20, 12, 36, 0.82);
  color: #fff3d6;
}
.disco__icono svg { width: 16px; height: 16px; }
.disco__pausa { display: none; }
.sorpresa--cancion.sonando .disco__play { display: none; }
.sorpresa--cancion.sonando .disco__pausa { display: block; }
.sorpresa--cancion.sonando .disco__vinilo { animation: girar 3.4s linear infinite; }
.disco__sello {
  z-index: 3;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6dc 0%, #ffd27a 40%, #c98a2e 80%, #8c5a1a 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 210, 122, 0.45), inset 0 -4px 10px rgba(120, 60, 10, 0.35);
  color: #7a4512;
  transition: transform 0.7s var(--resorte), opacity 0.5s ease;
  animation: latir-sello 2.2s ease-in-out infinite;
}
.disco__sello svg { width: 62%; height: 62%; animation: girar 18s linear infinite; }
.sorpresa--cancion:not(.sellada) .disco__sello { transform: scale(1.6) rotate(50deg); opacity: 0; animation: none; }
@keyframes latir-sello {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 34px rgba(255, 210, 122, 0.4), inset 0 -4px 10px rgba(120, 60, 10, 0.35); }
  50% { transform: scale(1.05); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 210, 122, 0.7), inset 0 -4px 10px rgba(120, 60, 10, 0.35); }
}
.reproductor__info { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-width: 0; }
.reproductor__titulo { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.15; color: var(--estrella); }
.reproductor__artista { margin: 0; min-height: 1em; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acento); }
.reproductor__barra { position: relative; height: 22px; margin-top: 6px; cursor: pointer; touch-action: none; outline: none; }
.reproductor__barra::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 10px;
  height: 2px;
  border-radius: 2px;
  background: rgba(248, 243, 231, 0.18);
}
.reproductor__barra:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; border-radius: 4px; }
.reproductor__relleno {
  position: absolute;
  left: 0; top: 10px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 210, 122, 0.5), var(--acento));
  box-shadow: 0 0 10px var(--acento);
}
.reproductor__relleno::after {
  content: "";
  position: absolute;
  right: -6px; top: -5px;
  width: 12px; height: 12px;
  background: #fff6e0;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.reproductor__tiempos { display: flex; justify-content: space-between; margin: 0; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--texto-tenue); }
.sellada .reproductor__barra, .sellada .reproductor__tiempos { visibility: hidden; }
.liberada .reproductor__titulo, .liberada .reproductor__artista { animation: aparecer-texto 0.9s var(--curva) both; }
@keyframes aparecer-texto { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } }

.letra {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.9s var(--curva), opacity 0.7s ease;
  -webkit-mask: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent);
  mask: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent);
}
.letra.visible { height: 200px; opacity: 1; }
.letra__carril {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 6px;
  transition: transform 0.8s var(--curva);
}
.letra__linea {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  color: rgba(248, 243, 231, 0.3);
  text-wrap: balance;
  transform: scale(0.96);
  transition: color 0.5s ease, transform 0.6s var(--curva);
}
.letra__linea--pausa { letter-spacing: 0.4em; }
.letra__linea.pasada { color: rgba(248, 243, 231, 0.42); }
.letra__linea.proxima { color: rgba(248, 243, 231, 0.62); }
.letra__linea.actual { color: #fffaf0; transform: scale(1.04); filter: drop-shadow(0 0 10px rgba(255, 210, 122, 0.45)); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .letra__linea.actual {
    background: linear-gradient(90deg, #ffe3a3 0%, #fff6dc var(--avance, 0%), rgba(255, 250, 240, 0.7) calc(var(--avance, 0%) + 0.5%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.letra-idiomas {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 16px auto 8px;
  border: 1px solid rgba(205, 184, 133, 0.22);
  border-radius: 14px;
  background: rgba(8, 13, 33, 0.65);
}
.letra-idiomas[hidden] { display: none; }
.letra-idiomas__boton {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font: 13px var(--sans);
  color: var(--texto-tenue);
  background: transparent;
  cursor: pointer;
}
.letra-idiomas__boton[aria-pressed="true"] { background: #eddbb2; color: #252033; }
.letra-idiomas__boton:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }

/* La línea de la canción que suena, mientras se explora el cielo */
.letra-viva {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--seguro-abajo));
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: min(88vw, 540px);
  margin: 0;
  pointer-events: none;
  text-align: center;
  opacity: 0;
  translate: -50% 10px;
  transition: opacity 0.8s ease, translate 0.8s var(--curva);
}
.letra-viva__nota { width: 16px; height: 16px; flex: none; color: #ffd27a; filter: drop-shadow(0 0 6px rgba(255, 210, 122, 0.7)); }
.letra-viva__texto {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 4.4vw, 22px);
  line-height: 1.3;
  color: #fff4dc;
  text-shadow: 0 2px 16px rgba(2, 4, 14, 0.95), 0 0 18px rgba(255, 210, 122, 0.35);
}
.con-cancion.en-universo:not(.en-momento):not(.en-recuerdo):not(.en-final) .letra-viva.con-texto { opacity: 1; translate: -50% 0; }
.letra-viva.cambio .letra-viva__texto { animation: letra-cambio 0.8s var(--curva); }
@keyframes letra-cambio { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } }

/* ---------- 4. Sorpresa final ---------- */
.final {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  padding: calc(76px + var(--seguro-arriba)) 24px calc(34px + var(--seguro-abajo));
  text-align: center;
  z-index: 14;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.final.visible { opacity: 1; }
.final::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(3, 5, 15, 0.82) 0%, rgba(3, 5, 15, 0.45) 45%, transparent 100%);
  opacity: 0;
  transition: opacity 2s ease;
  z-index: -1;
}
.final.mensaje::before { opacity: 1; }
.final__previo {
  position: absolute;
  left: 24px; right: 24px;
  top: calc(84px + var(--seguro-arriba));
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 5.6vw, 30px);
  color: var(--oro-claro);
  text-shadow: 0 2px 20px rgba(2, 4, 14, 0.9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.4s ease, transform 1.4s var(--curva);
}
.final.previo .final__previo { opacity: 1; transform: none; transition-delay: 0.4s; }
.final__mensaje {
  margin: 0;
  max-width: 620px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 7vw, 46px);
  line-height: 1.18;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(2, 4, 14, 0.95);
  opacity: 0;
  filter: blur(8px);
  transform: translateY(10px);
  transition: opacity 2s ease, filter 2.2s var(--curva), transform 2.6s var(--curva);
}
.final.mensaje .final__mensaje { opacity: 1; filter: blur(0); transform: none; }
#boton-carta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.2s ease, transform 1.2s var(--curva), background 0.3s ease;
  pointer-events: none;
}
#boton-carta.visible { opacity: 1; transform: none; pointer-events: auto; }

.leer-carta {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--seguro-abajo));
  transform: translateX(-50%);
  z-index: 15;
  color: var(--estrella);
  border-color: var(--cristal-borde);
}
.leer-carta:active { transform: translateX(-50%) scale(0.97); }

/* Carta */
.velo--carta { background: radial-gradient(120% 90% at 50% 40%, rgba(5, 8, 22, 0.6), rgba(3, 5, 15, 0.92)); }
.carta {
  max-width: 580px;
  padding: 44px 28px 30px;
  text-align: left;
}
.carta__sello {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin: 0 auto 26px;
  border: 1px solid var(--oro-suave);
  border-radius: 50%;
  color: var(--oro-claro);
  box-shadow: 0 0 30px rgba(205, 184, 133, 0.18);
}
.carta__sello svg { width: 18px; height: 18px; filter: drop-shadow(0 0 6px rgba(205, 184, 133, 0.8)); }
.carta > *:not(.carta__acciones):not(.carta__cuerpo) {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.velo.visible .carta > * { opacity: 1; }
.velo.visible .carta__saludo { transition-delay: 0.5s; }
.velo.visible .carta__despedida { transition-delay: 2.6s; }
.carta__saludo {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 29px;
  color: var(--oro);
}
.carta__cuerpo p {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 19.5px;
  line-height: 1.52;
  color: rgba(248, 243, 231, 0.93);
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 1.1s ease, transform 1.1s var(--curva);
  transition-delay: calc(0.9s + var(--i, 0) * 0.35s);
}
.velo.visible .carta__cuerpo p { opacity: 1; transform: none; }
.carta__despedida {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--texto-tenue);
}
.carta__firma {
  display: inline-block;
  margin: 2px 0 0;
  padding-right: 12px;
  font-family: var(--firma);
  font-size: 50px;
  line-height: 1.25;
  color: var(--oro);
  text-shadow: 0 0 24px rgba(205, 184, 133, 0.3);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 2.4s cubic-bezier(0.45, 0.05, 0.35, 1) 3s, opacity 0.6s ease 3s !important;
}
.velo.visible .carta__firma { clip-path: inset(0 0 0 0); }
.carta__acciones {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(205, 184, 133, 0.16);
  opacity: 0;
  transition: opacity 1.2s ease 4.4s;
}
.velo.visible .carta__acciones { opacity: 1; }
.carta__acciones .boton { width: 100%; max-width: 340px; }

.sin-js {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  font-family: var(--serif);
  font-size: 22px;
  text-align: center;
}

/* ---------- Sin 3D: los recuerdos en una página sencilla ---------- */
body.sin-3d-activo { position: static; overflow: auto; touch-action: auto; -webkit-user-select: text; user-select: text; }
.sin-3d {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  touch-action: pan-y;
  z-index: 40;
  background: radial-gradient(120% 70% at 50% 0%, var(--noche-2), var(--noche) 70%);
}
.sin-3d__contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 600px;
  margin: 0 auto;
  padding: calc(48px + var(--seguro-arriba)) 16px calc(48px + var(--seguro-abajo));
  text-align: center;
}
.sin-3d .bienvenida__para { opacity: 1; transform: none; }
.sin-3d__titulo {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.15;
  text-wrap: balance;
}
.sin-3d__aviso { margin: 0; max-width: 40ch; font-size: 14px; line-height: 1.5; color: var(--texto-tenue); }
#sin-3d-recuerdos { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.recuerdo--plano, .carta--plana { max-width: none; max-height: none; overflow: visible; opacity: 1; transform: none; animation: none; }
.recuerdo--plano { border: 1px solid rgba(205, 184, 133, 0.3); border-color: color-mix(in srgb, var(--acento) 34%, transparent); }
.recuerdo--plano .galeria { padding-top: 40px; }
.recuerdo--plano .recuerdo__texto { padding-top: 24px; }
.recuerdo--plano .recuerdo__texto > *, .recuerdo--plano .recuerdo__lista li, .carta--plana > * { opacity: 1 !important; transform: none; }
.recuerdo--plano .recuerdo__foto img { opacity: 1; transform: none; }
.carta--plana { padding: 40px 26px 30px; }
.carta__parrafo {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 19.5px;
  line-height: 1.52;
  color: rgba(248, 243, 231, 0.93);
}
.carta__firma--visible { clip-path: none; }

/* ---------- Teclado ---------- */
.con-teclado .etiqueta.visible { pointer-events: auto; }

/* ---------- Pantallas pequeñas en altura ---------- */
@media (max-height: 660px) {
  .bienvenida { padding-top: calc(12vh + var(--seguro-arriba)); }
  .bienvenida__contenido { gap: 18px; }
  .bienvenida__mensaje { font-size: clamp(27px, 7.2vw, 42px); }
  .momento { padding-top: calc(60px + var(--seguro-arriba)); }
  .momento__nombre { font-size: 26px; }
  .momento__indicacion { margin-top: 8px; font-size: 13px; }
  .final__previo { top: calc(66px + var(--seguro-arriba)); }
}

/* ---------- Tabletas y computadora ---------- */
@media (min-width: 760px) {
  .barra { padding: calc(20px + var(--seguro-arriba)) 24px 10px 30px; }
  .bienvenida { padding-top: calc(20vh + var(--seguro-arriba)); }
  .momento { padding: 88px 32px 38px; }
  .momento__indicacion { font-size: 15px; }
  .etiqueta__nombre { font-size: 19px; }
  .etiqueta__forma { font-size: 10px; }
  .frase { font-size: 24px; }
  .ayuda { bottom: 30px; }
  .final { padding-bottom: 54px; }
  .recuerdo__texto { padding: 36px 38px 34px; }
  .recuerdo--lamina .recuerdo__texto { padding: 30px 40px 34px; }
  .recuerdo--lamina .recuerdo__lamina:not([hidden]) { height: 220px; margin: 14px 14px 0; }
  .carta { padding: 56px 58px 40px; }
  .carta__cuerpo p { font-size: 21px; }
  .carta__acciones { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .carta__acciones .boton { width: auto; }
}
@media (min-width: 900px) and (min-height: 560px) {
  .recuerdo { max-width: 500px; }
  .recuerdo--lamina { max-width: 520px; }
  /* Con foto o galería: la imagen a la izquierda y el texto a la derecha */
  .recuerdo--foto, .recuerdo--galeria { max-width: 900px; }
  .recuerdo--foto .recuerdo__desplazable,
  .recuerdo--galeria .recuerdo__desplazable {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
  }
  .recuerdo--foto .recuerdo__foto { aspect-ratio: auto; min-height: 100%; }
  .recuerdo--foto .recuerdo__foto::after {
    left: auto; top: 0; width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(12, 19, 46, 0.96));
  }
  .recuerdo--foto .recuerdo__texto,
  .recuerdo--galeria .recuerdo__texto {
    margin-top: 0;
    justify-content: center;
    text-align: left;
    align-items: flex-start;
    padding: 44px 44px 40px 34px;
  }
  .recuerdo--foto .recuerdo__sello,
  .recuerdo--galeria .recuerdo__sello { margin: 0 0 4px; }
  /* La galería llena toda la columna, para que su fondo de luz llegue hasta abajo */
  .recuerdo--galeria #recuerdo-galeria:not([hidden]) { display: flex; flex-direction: column; }
  .recuerdo--galeria .galeria { --ancho: 276px; flex: 1 1 auto; justify-content: center; padding: 48px 24px 44px; }
  .recuerdo--galeria .galeria__fondo {
    -webkit-mask: linear-gradient(90deg, #000 55%, transparent 100%);
    mask: linear-gradient(90deg, #000 55%, transparent 100%);
  }
  .recuerdo--galeria .recuerdo__sorpresa { text-align: center; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.25s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .frase { animation: frase-quieta 4.6s linear both !important; }
  .frase--grande { animation-duration: 5.2s !important; }
  @keyframes frase-quieta { 0%, 100% { opacity: 0; } 8%, 85% { opacity: 1; } }
  .destello-pantalla.activo { animation: destello 0.8s ease both !important; }
  .palabra, .bienvenida__para, .bienvenida .ornamento, #boton-entrar,
  .recuerdo, .carta, .recuerdo__foto img, .recuerdo__texto > *, .recuerdo__lista li,
  .carta__cuerpo p, #boton-carta, .final__mensaje, .final__previo, .marcador { transform: none !important; filter: none !important; }
  .carta__firma { clip-path: none !important; transition: opacity 0.25s ease !important; }
  .recuerdo__dorso { display: none !important; }
  .recuerdo__mensaje .pm, .polaroid img, .recuerdo__sello { filter: none !important; transform: none !important; }
  .polaroid.por-revelar img { filter: none !important; }
  .ayuda { transform: translate(-50%, 0) !important; }
}

/* ==========================================================================
   Mapa estelar: el cielo real de una noche (constelación con "mapaEstelar")
   Un cartel con la carta en 3D al centro; "Mirar desde…" entra a la cúpula.
   ========================================================================== */
.mapa {
  --acento: #ff7096;
  --d: clamp(230px, min(calc(100vw - 32px), calc(100vh - 476px)), 600px);
  position: fixed;
  inset: 0;
  z-index: 31;
  overflow: hidden;
  background: #04060f;
  color: var(--estrella);
  opacity: 0;
  transition: opacity 0.9s ease;
  outline: none;
}
@supports (height: 100svh) {
  .mapa { --d: clamp(230px, min(calc(100vw - 32px), calc(100svh - 476px)), 600px); }
}
.mapa.visible { opacity: 1; }
.mapa__lienzo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.mapa.en-cupula .mapa__lienzo { cursor: grab; }
.mapa.en-cupula .mapa__lienzo:active { cursor: grabbing; }
@keyframes aparecer-mapa { from { opacity: 0; transform: translateY(8px); } }

/* Cartel */
.mapa__cartel {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: calc(10px + var(--seguro-arriba)) max(16px, env(safe-area-inset-right, 0px)) calc(92px + var(--seguro-abajo)) max(16px, env(safe-area-inset-left, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  transition: opacity 0.9s ease 0.2s, visibility 0s linear 0s;
}
.mapa__cartel::-webkit-scrollbar { display: none; }
.mapa.en-cupula .mapa__cartel { opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }

.mapa__nombres {
  margin: 0;
  padding: 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.16em;
  max-width: 100%;
  font-family: var(--firma);
  font-size: clamp(31px, 9.2vw, 50px);
  line-height: 1.3;
  white-space: nowrap;
  color: var(--estrella);
  text-shadow: 0 0 24px rgba(255, 205, 200, 0.3);
}
.mapa__nombre { min-width: 0; }
.mapa__corazon {
  display: inline-flex;
  flex: none;
  width: 0.6em;
  height: 0.6em;
  margin: 0.1em 0.12em 0;
  filter: drop-shadow(0 0 10px rgba(255, 70, 115, 0.65));
  animation: latido-mapa 1.6s ease-in-out infinite;
}
.mapa__corazon svg { width: 100%; height: 100%; }
@keyframes latido-mapa {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.17); }
  28% { transform: scale(0.97); }
  42% { transform: scale(1.1); }
  62% { transform: scale(1); }
}
.mapa__hueco {
  position: relative;
  flex: none;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  touch-action: none;
  cursor: grab;
}
.mapa__hueco:active { cursor: grabbing; }
.mapa__vista { flex: none; min-height: 40px; padding: 0 18px 0 15px; font-size: 13.5px; letter-spacing: 0.05em; }
.mapa__vista svg { width: 19px; height: 19px; }
.mapa__vista:hover svg { transform: translateY(-2px) scale(1.08); }
/* Nota "¡Toca aquí!" para que se vea que el botón se puede tocar. */
.mapa__vista:not(.usado) { animation: vista-llama 2.4s ease-in-out 1.2s infinite; }
@keyframes vista-llama {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 227, 188, 0); }
  50% { box-shadow: 0 0 0 5px rgba(243, 227, 188, 0.16), 0 0 22px rgba(243, 227, 188, 0.35); }
}
.mapa__vista-nota {
  position: absolute;
  right: -12px;
  top: -15px;
  padding: 3px 9px 4px;
  border-radius: 9px;
  background: var(--oro-claro);
  color: #141a36;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transform-origin: 80% 100%;
  animation: nota-salta 1.8s ease-in-out infinite;
  transition: opacity 0.4s ease;
}
.mapa__vista-nota::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -4px;
  width: 8px; height: 8px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 1px;
}
@keyframes nota-salta {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(-4px) rotate(4deg); }
}
.mapa__vista.usado .mapa__vista-nota { opacity: 0; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .mapa__vista:not(.usado), .mapa__vista-nota { animation: none; }
}

.mapa__texto {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 460px;
  text-align: center;
}
.mapa__fecha {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: clamp(19px, 5.4vw, 25px);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--oro-claro);
}
.mapa__titulo {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(19px, 5.6vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--estrella);
}
.mapa__destacados {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  margin-top: 6px;
}
.mapa__destacado {
  --tono: var(--oro-claro);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 7px 2px 6px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: none;
  color: var(--texto-tenue);
  cursor: pointer;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.3s ease, transform 0.3s var(--resorte);
}
.mapa__destacado:hover { color: var(--estrella); background: rgba(255, 255, 255, 0.04); }
.mapa__destacado:active { transform: scale(0.95); }
.mapa__destacado:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }
.mapa__destacado[aria-pressed="true"] {
  color: var(--estrella);
  border-color: rgba(243, 227, 188, 0.4);
  border-color: color-mix(in srgb, var(--tono) 48%, transparent);
  background: rgba(243, 227, 188, 0.07);
  background: color-mix(in srgb, var(--tono) 11%, rgba(8, 13, 33, 0.35));
}
.mapa__destacado-icono {
  width: 34px;
  height: 34px;
  color: var(--tono);
  filter: drop-shadow(0 0 8px var(--tono));
  transition: transform 0.5s var(--resorte);
}
.mapa__destacado-icono svg { width: 100%; height: 100%; }
.mapa__destacado[aria-pressed="true"] .mapa__destacado-icono { transform: scale(1.14); }
.mapa__destacado-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mapa__destacado-titulo {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mapa__destacado-subtitulo { display: none; }
.mapa__detalle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 4.2em;
  max-width: 400px;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.36;
  color: var(--texto-tenue);
}
.mapa__detalle p { margin: 0; }
.mapa__mensaje { font-style: italic; text-wrap: balance; }
.mapa__detalle-titulo {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tono, var(--oro-claro));
}
.mapa__detalle-texto { color: var(--estrella); text-wrap: pretty; }
.mapa__detalle-posicion { font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; color: var(--oro); }
.mapa__detalle.con-destacado > * { animation: aparecer-mapa 0.6s var(--curva) backwards; }
.mapa__detalle.con-destacado > :nth-child(2) { animation-delay: 0.08s; }
.mapa__detalle.con-destacado > :nth-child(3) { animation-delay: 0.16s; }
.mapa__coordenadas {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  white-space: pre;
  color: var(--oro);
}
.mapa__lugar {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--estrella);
}
.mapa__lugar .icono { display: inline-flex; width: 15px; height: 15px; color: var(--acento); }
.mapa__lugar svg { width: 100%; height: 100%; }

/* Aparición del cartel, por pasos */
.mapa__nombres, .mapa__fecha, .mapa__titulo, .mapa__destacados, .mapa__detalle, .mapa__coordenadas, .mapa__lugar {
  transition: opacity 1.1s ease, transform 1.1s var(--curva);
}
.mapa:not(.paso-1) .mapa__nombres { opacity: 0; transform: translateY(10px); }
.mapa:not(.paso-2) .mapa__fecha, .mapa:not(.paso-2) .mapa__titulo { opacity: 0; transform: translateY(10px); }
.mapa:not(.paso-3) .mapa__destacados, .mapa:not(.paso-3) .mapa__detalle { opacity: 0; transform: translateY(10px); }
.mapa:not(.paso-4) .mapa__coordenadas, .mapa:not(.paso-4) .mapa__lugar { opacity: 0; transform: translateY(8px); }
.mapa.paso-2 .mapa__titulo { transition-delay: 0.15s; }
.mapa.paso-3 .mapa__detalle { transition-delay: 0.2s; }
.mapa.paso-4 .mapa__lugar { transition-delay: 0.12s; }
.mapa.paso-3 .mapa__destacado { animation: aparecer-mapa 0.8s var(--curva) backwards; animation-delay: calc(var(--i, 0) * 0.09s); }
.mapa:not(.paso-1) .mapa__volver, .mapa:not(.paso-4) .mapa__vista, .mapa:not(.paso-4) .mapa__controles { opacity: 0; pointer-events: none; }
.mapa.paso-1 .mapa__volver, .mapa.paso-4 .mapa__vista { animation: aparecer-mapa 0.9s var(--curva) backwards; }
.mapa.paso-4 .mapa__controles { animation: aparecer-mapa 0.9s var(--curva) 0.15s backwards; }

/* Volver (arriba a la izquierda) */
.mapa__volver {
  position: absolute;
  z-index: 6;
  top: calc(10px + var(--seguro-arriba));
  left: max(12px, env(safe-area-inset-left, 0px));
  min-height: 44px;
  padding: 0 18px 0 12px;
  font-size: 13.5px;
}
.mapa__volver .icono { display: inline-flex; width: 18px; height: 18px; }
.mapa__volver .icono svg { width: 100%; height: 100%; }
@media (max-width: 599px) {
  .mapa:not(.en-cupula) .mapa__volver { width: 44px; padding: 0; }
  .mapa:not(.en-cupula) .mapa__volver-texto {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* Dentro de la cúpula */
.mapa__hud {
  position: absolute;
  z-index: 4;
  top: calc(66px + var(--seguro-arriba));
  left: 0;
  right: 0;
  padding: 0 16px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.mapa.en-cupula .mapa__hud { opacity: 1; transition: opacity 1s ease 1.5s; }
.mapa__hud-lugar {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: pre;
  color: var(--oro-claro);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}
.mapa__hud-pista {
  position: fixed;
  left: 50%;
  bottom: calc(98px + var(--seguro-abajo));
  transform: translateX(-50%);
  margin: 0;
  padding: 9px 16px;
  border: 1px solid var(--cristal-borde);
  border-radius: 999px;
  background: rgba(8, 13, 33, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--estrella);
  transition: opacity 0.6s ease;
}
.mapa__hud-pista.usada { opacity: 0; }

/* Barra de la noche */
.mapa__controles {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px max(16px, env(safe-area-inset-right, 0px)) calc(12px + var(--seguro-abajo)) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(to top, rgba(4, 6, 15, 0.95) 35%, rgba(4, 6, 15, 0.55) 72%, transparent);
}
@media (min-width: 700px) {
  .mapa__controles {
    left: 50%;
    right: auto;
    bottom: calc(16px + var(--seguro-abajo));
    width: min(720px, calc(100% - 48px));
    padding: 8px 20px 8px 10px;
    border: 1px solid var(--cristal-borde);
    border-radius: 20px;
    background: rgba(6, 9, 26, 0.64);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    translate: -50% 0;
  }
}
.mapa__reproducir { flex: none; }
.mapa__reproducir .icono { display: inline-flex; width: 20px; height: 20px; }
.mapa__reproducir .icono svg { width: 100%; height: 100%; }
.mapa__reproducir .icono-pausa { display: none; }
.mapa__reproducir.activo { background: rgba(205, 184, 133, 0.16); }
.mapa__reproducir.activo::after { opacity: 1; animation: cometa 3.4s linear infinite; }
.mapa__reproducir.activo .icono-reproducir { display: none; }
.mapa__reproducir.activo .icono-pausa { display: inline; }
.mapa__pista { position: relative; flex: 1 1 auto; min-width: 0; height: 44px; }
.mapa__hora {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  background: none;
  cursor: pointer;
}
.mapa__hora:focus { outline: none; }
.mapa__hora::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(205, 184, 133, 0.22), rgba(243, 227, 188, 0.75) 50%, rgba(205, 184, 133, 0.22));
}
.mapa__hora::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(205, 184, 133, 0.22), rgba(243, 227, 188, 0.75) 50%, rgba(205, 184, 133, 0.22));
}
.mapa__hora::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -10px;
  border: 1px solid var(--oro-claro);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 16%, var(--oro-claro) 26%, rgba(205, 184, 133, 0.28) 58%, rgba(8, 13, 33, 0.92) 61%);
  box-shadow: 0 0 14px rgba(243, 227, 188, 0.6);
}
.mapa__hora::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 1px solid var(--oro-claro);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 16%, var(--oro-claro) 26%, rgba(205, 184, 133, 0.28) 58%, rgba(8, 13, 33, 0.92) 61%);
  box-shadow: 0 0 14px rgba(243, 227, 188, 0.6);
}
.mapa__hora:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--oro); outline-offset: 3px; }
.mapa__hora:focus-visible::-moz-range-thumb { outline: 2px solid var(--oro); outline-offset: 3px; }
.mapa__marcas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.mapa__marca {
  position: absolute;
  top: 50%;
  left: calc(11px + (100% - 22px) * var(--x, 0));
  width: 5px;
  height: 5px;
  margin: 7px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--oro);
  opacity: 0.8;
}
.mapa__marca--sale { background: #a9d8ff; }
.mapa__marca--sePone { background: #ffb08a; }
.mapa__marca--anochece, .mapa__marca--amanece { width: 1px; height: 9px; margin: -4.5px 0 0; border-radius: 0; background: rgba(243, 227, 188, 0.65); }
.mapa__marca--nuestra { width: 12px; height: 12px; margin: -21px 0 0 -6px; background: none; opacity: 1; }
.mapa__marca--nuestra::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--acento);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 28.5C7.5 22.4 2.6 17.6 2.6 11.6 2.6 7.4 5.8 4.2 9.8 4.2c2.6 0 4.8 1.4 6.2 3.6 1.4-2.2 3.6-3.6 6.2-3.6 4 0 7.2 3.2 7.2 7.4 0 6-4.9 10.8-13.4 16.9z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 28.5C7.5 22.4 2.6 17.6 2.6 11.6 2.6 7.4 5.8 4.2 9.8 4.2c2.6 0 4.8 1.4 6.2 3.6 1.4-2.2 3.6-3.6 6.2-3.6 4 0 7.2 3.2 7.2 7.4 0 6-4.9 10.8-13.4 16.9z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 4px var(--acento));
}
.mapa__reloj {
  flex: none;
  min-width: 82px;
  text-align: right;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--oro-claro);
}
.mapa__volver-hora {
  position: absolute;
  z-index: 6;
  top: calc(10px + var(--seguro-arriba));
  right: max(12px, env(safe-area-inset-right, 0px));
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px 0 13px;
  border: 1px solid rgba(255, 112, 150, 0.45);
  border-radius: 14px;
  background: rgba(8, 13, 33, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 400 12.5px var(--sans);
  letter-spacing: 0.04em;
  color: var(--estrella);
  cursor: pointer;
  animation: aparecer-mapa 0.5s var(--curva) backwards;
}
.mapa__volver-hora:hover { border-color: var(--acento); }
.mapa__volver-hora:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.mapa__volver-hora .icono { display: inline-flex; width: 14px; height: 14px; }
.mapa__volver-hora svg { width: 100%; height: 100%; }
@media (max-width: 599px) {
  .mapa:not(.en-cupula) .mapa__volver-hora { top: auto; bottom: calc(84px + var(--seguro-abajo)); right: 50%; translate: 50% 0; }
}
.mapa__aviso {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: calc(86px + var(--seguro-abajo));
  margin: 0;
  padding: 9px 16px;
  border: 1px solid var(--cristal-borde);
  border-radius: 999px;
  background: rgba(8, 13, 33, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 400 13px var(--sans);
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--estrella);
  pointer-events: none;
  opacity: 0;
  translate: -50% 8px;
  transition: opacity 0.5s ease, translate 0.5s var(--curva);
}
.mapa__aviso.visible { opacity: 1; translate: -50% 0; }
@media (min-width: 700px) { .mapa__aviso { bottom: calc(92px + var(--seguro-abajo)); } }

/* Nombres sobre el cielo, retículas y lo que se tocó */
.mapa__etiquetas { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.mapa__etiqueta {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-family: var(--sans);
  color: var(--estrella);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
  will-change: transform;
}
.mapa__etiqueta--cardinal { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: 0.04em; color: var(--oro-claro); }
.mapa__etiqueta--cardinal.menor { font-family: var(--sans); font-size: 11.5px; font-weight: 400; letter-spacing: 0.14em; color: var(--oro); }
.mapa__etiqueta--constelacion { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(186, 202, 255, 0.62); }
.mapa__etiqueta--estrella { font-size: 12px; letter-spacing: 0.05em; color: rgba(248, 243, 231, 0.86); }
.mapa__etiqueta--cuerpo { font-size: 12.5px; letter-spacing: 0.06em; color: #ffd8ae; }
.mapa__etiqueta--centro { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(222, 208, 255, 0.78); }
.mapa__reticula { --tono: var(--oro-claro); position: absolute; left: 0; top: 0; width: 0; height: 0; }
.mapa__reticula::before, .mapa__reticula::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.mapa__reticula::before {
  left: -16px;
  top: -16px;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--tono);
  box-shadow: 0 0 12px var(--tono);
  animation: reticula-mapa 2.2s ease-in-out infinite;
}
.mapa__reticula::after {
  left: -24px;
  top: -24px;
  width: 48px;
  height: 48px;
  border: 1px dashed var(--tono);
  opacity: 0.55;
  animation: girar-reticula 14s linear infinite;
}
.mapa__reticula.grande::before { left: -25px; top: -25px; width: 50px; height: 50px; }
.mapa__reticula.grande::after { left: -33px; top: -33px; width: 66px; height: 66px; }
.mapa__reticula-nombre {
  position: absolute;
  left: 24px;
  bottom: 14px;
  font: 400 11.5px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--estrella);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9);
}
.mapa__reticula.grande .mapa__reticula-nombre { left: 32px; bottom: 24px; }
.mapa__reticula.izquierda .mapa__reticula-nombre { left: auto; right: 24px; }
.mapa__reticula.grande.izquierda .mapa__reticula-nombre { right: 32px; }
@keyframes reticula-mapa { 50% { transform: scale(1.12); opacity: 0.7; } }
@keyframes girar-reticula { to { transform: rotate(360deg); } }
.mapa__toque {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-top: -62px;
  padding: 7px 13px 8px;
  border: 1px solid var(--cristal-borde);
  border-radius: 12px;
  background: rgba(8, 13, 33, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  translate: -50% 4px;
  transition: opacity 0.35s ease, translate 0.35s var(--curva);
}
.mapa__toque.visible { opacity: 1; translate: -50% 0; }
.mapa__toque-titulo { font: 500 16px var(--serif); letter-spacing: 0.02em; color: var(--estrella); }
.mapa__toque-sub { font: 400 10px var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--oro); }
.mapa__toque-sub:empty { display: none; }

/* Computadora: la carta a la izquierda y el cartel a la derecha */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .mapa { --d: clamp(320px, min(calc(100vh - 170px), calc(52vw - 90px)), 700px); }
  .mapa__cartel {
    display: grid;
    grid-template-columns: var(--d) minmax(300px, 440px);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: "carta ." "carta nombres" "carta texto" "vista .";
    justify-content: center;
    align-content: center;
    align-items: center;
    column-gap: clamp(44px, 6vw, 100px);
    row-gap: 6px;
    padding: calc(16px + var(--seguro-arriba)) 48px calc(96px + var(--seguro-abajo));
  }
  .mapa__hueco { grid-area: carta; }
  .mapa__vista { grid-area: vista; justify-self: center; align-self: start; margin-top: 4px; }
  .mapa__nombres { grid-area: nombres; justify-content: flex-start; padding: 0; font-size: clamp(40px, 3.6vw, 56px); }
  .mapa__texto { grid-area: texto; align-items: flex-start; align-self: start; max-width: none; text-align: left; gap: 8px; }
  .mapa__fecha { margin-top: 0; }
  .mapa__titulo { font-size: clamp(24px, 2.2vw, 32px); }
  .mapa__destacados { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .mapa__destacado { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; }
  .mapa__destacado-icono { flex: none; width: 38px; height: 38px; }
  .mapa__destacado-titulo { font-size: 11px; }
  .mapa__destacado-subtitulo {
    display: block;
    font-family: var(--serif);
    font-size: 14.5px;
    font-style: italic;
    line-height: 1.2;
    color: var(--texto-tenue);
  }
  .mapa__detalle { min-height: 6.4em; max-width: none; margin-top: 4px; font-size: 17px; }
  .mapa__mensaje { text-wrap: pretty; }
}

/* Sin 3D: la carta dibujada en 2D dentro de la página sencilla */
.mapa-plano { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 18px 30px; text-align: center; }
.mapa-plano .mapa__nombres { padding: 0; font-size: clamp(32px, 8vw, 46px); }
.mapa-plano__carta { display: block; max-width: 100%; height: auto; border-radius: 50%; }
.mapa-plano .mapa__texto { align-items: center; }
.mapa-plano .mapa__mensaje { margin: 4px 0 0; max-width: 36ch; font-family: var(--serif); font-size: 17px; line-height: 1.4; color: var(--texto-tenue); }
.mapa-plano__destacados { list-style: none; display: grid; gap: 14px; max-width: 440px; margin: 12px 0 4px; padding: 0; text-align: left; }
.mapa-plano__destacado { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.mapa-plano__destacado p { margin: 0; }
.mapa-plano .mapa__detalle-texto { font-family: var(--serif); font-size: 16px; line-height: 1.38; }

@media (prefers-reduced-motion: reduce) {
  .mapa__corazon, .mapa__reticula::before, .mapa__reticula::after { animation: none !important; }
  /* La visibilidad del cartel cambia al instante, así el foco del teclado puede volver a él enseguida */
  .mapa__cartel, .mapa.en-cupula .mapa__cartel { transition: opacity 0.25s ease !important; }
}
