/* =========================================================
   XV Años · Vanya — Diseño 3 · juvenil y minimalista
   ========================================================= */

:root {
  --cielo: #dce8f6;
  --cielo-2: #c7daf2;
  --hielo: #eff5fc;
  --blanco: #ffffff;
  --marino: #1b2a4e;
  --gris: #6b7690;

  --guion: 'Allura', cursive;
  --serif: 'Gilda Display', Georgia, serif;
  --sans: 'Questrial', system-ui, sans-serif;
  --rebote: cubic-bezier(.34, 1.56, .64, 1);
  --suave: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--cielo);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .7), transparent 32%),
    radial-gradient(circle at 92% 38%, rgba(255, 255, 255, .55), transparent 30%),
    radial-gradient(circle at 6% 72%, rgba(255, 255, 255, .5), transparent 28%),
    var(--cielo);
  color: var(--marino);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.bloqueado { overflow: hidden; height: 100vh; height: 100dvh; }
img { display: block; max-width: 100%; }
/* sin seleccionar texto, sin guardar imágenes, sin zoom por doble toque */
html { touch-action: pan-x pan-y; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
img, svg { -webkit-user-drag: none; }
button { font: inherit; color: inherit; }

/* ---------- Tipos ---------- */
.mini {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gris);
}
.mini--claro { color: rgba(255, 255, 255, .7); }
.guion { font-family: var(--guion); font-weight: 400; line-height: 1; }
.titulo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 42px;
  font-size: clamp(38px, 11vw, 48px);
  line-height: 1.05;
}
.titulo--chico { margin-top: 6px; font-size: clamp(24px, 7vw, 30px); }
.nota { margin-top: 10px; font-size: 14px; color: var(--gris); line-height: 1.45; }
.pastilla {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 18px;
  border: 1.5px solid var(--marino);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--marino);
  color: var(--blanco);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--rebote), box-shadow .3s;
  box-shadow: 0 10px 20px -12px rgba(27, 42, 78, .7);
  -webkit-tap-highlight-color: transparent;
}
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: scale(.95); }
.boton--blanco { background: var(--blanco); color: var(--marino); box-shadow: 0 10px 20px -14px rgba(27, 42, 78, .5); }
.boton--mini { min-height: 40px; padding: 0 18px; font-size: 11px; margin-top: 14px; }

/* ---------- Stickers ---------- */
.brillo { position: absolute; width: 20px; height: 20px; color: var(--marino); animation: titilar 2.4s ease-in-out infinite; pointer-events: none; }

/* ---------- Tarjetas ---------- */
.pagina {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 16px 90px;
}
.tarjeta {
  position: relative;
  padding: 44px 26px;
  border-radius: 30px;
  background: var(--blanco);
  text-align: center;
  box-shadow: 0 18px 40px -26px rgba(27, 42, 78, .4);
}
.tarjeta--marino { background: var(--marino); color: var(--blanco); }
.tarjeta--cielo { background: var(--cielo-2); box-shadow: none; }

/* Aparición con rebote */
.pop { opacity: 0; transform: translateY(34px) scale(.96) rotate(-1.2deg); transition: opacity .6s var(--suave), transform .8s var(--rebote); }
.pop.visto { opacity: 1; transform: none; }

/* =========================================================
   PORTADA
   ========================================================= */
.portada {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .85), transparent 55%),
    radial-gradient(circle at 10% 10%, rgba(199, 218, 242, .9), transparent 35%),
    radial-gradient(circle at 90% 90%, rgba(199, 218, 242, .9), transparent 35%),
    var(--cielo);
  overflow: hidden;
  transition: opacity .6s .7s, visibility .6s .7s;
}
.portada.abierta { opacity: 0; visibility: hidden; }
.portada__tarjeta {
  position: relative;
  width: 86vw;
  max-width: 380px;
  padding: 112px 24px 40px;
  border-radius: 34px;
  background: var(--blanco);
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(27, 42, 78, .45);
  animation: entrarTarjeta .9s var(--rebote) both;
  transition: transform .9s cubic-bezier(.55, 0, .75, .2) .25s;
}
.portada.abierta .portada__tarjeta { transform: translateY(115vh) rotate(8deg); }
.portada__mono {
  position: absolute;
  top: -84px;
  left: 50%;
  width: 226px;
  height: 188px;
  margin-left: -113px;
  border: 0;
  background: none;
  cursor: pointer;
  animation: menear 2.6s ease-in-out 1s infinite;
  -webkit-tap-highlight-color: transparent;
}
.portada__mono svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(27, 42, 78, .2)); }
.portada.abierta .portada__mono { animation: soltar .7s cubic-bezier(.55, 0, .75, .2) forwards; }
/* Marco cosido */
.portada__tarjeta::before {
  content: "";
  position: absolute;
  top: 12px; right: 12px; bottom: 12px; left: 12px;
  border: 1.5px dashed rgba(27, 42, 78, .28);
  border-radius: 24px;
  pointer-events: none;
}
.portada__xv {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 104px;
  font-size: clamp(96px, 30vw, 128px);
  line-height: .9;
  background: linear-gradient(110deg, var(--marino) 40%, #8fb2e3 50%, var(--marino) 60%) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(4px 4px 0 var(--cielo-2));
  animation: destello 4s ease-in-out infinite;
}
/* Confeti flotando */
.portada__confeti { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.confeti-fondo { position: fixed; z-index: 0; }
.pagina { position: relative; z-index: 1; }
.flota {
  position: absolute;
  bottom: -30px;
  width: var(--s);
  height: var(--s);
  color: var(--blanco);
  opacity: .9;
  animation: subir var(--d) linear var(--t) infinite;
}
.flota--c { color: #9dbbe6; }
.flota--punto { border-radius: 50%; background: var(--marino); opacity: .25; }
.portada__nombre { margin-top: -6px; font-size: 80px; font-size: clamp(72px, 22vw, 96px); }
.portada__apellidos { margin-top: 2px; }
.hero__nombre { margin-top: 6px; }
.portada__hint {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--marino);
  animation: parpadeo 2s ease-in-out infinite;
}
.brillo--1 { top: 40px; left: 28px; }
.brillo--2 { top: 110px; right: 30px; width: 14px; height: 14px; animation-delay: -.8s; }
.brillo--3 { bottom: 70px; left: 40px; width: 12px; height: 12px; animation-delay: -1.6s; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: 40px; padding-bottom: 40px; overflow: hidden; background: radial-gradient(circle at 50% 30%, var(--blanco) 40%, var(--hielo) 100%); }
/* marco cosido como en la portada */
.hero::before { content: ""; position: absolute; inset: 12px; border: 1.5px dashed rgba(27, 42, 78, .28); border-radius: 24px; pointer-events: none; }
.hero > * { position: relative; }
.hero .brillo { position: absolute; z-index: 1; }
.hero__adorno { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 4px; color: var(--cielo-2); }
.hero__adorno::before, .hero__adorno::after { content: ""; width: 60px; border-top: 1px solid var(--cielo-2); }
.hero__adorno svg { width: 16px; height: 16px; }
.hero__fecha { background: var(--marino); border-color: var(--marino); color: var(--blanco); box-shadow: 0 10px 20px -10px rgba(27, 42, 78, .6); }
.polaroid {
  position: relative;
  padding: 12px 12px 0;
  background: var(--blanco);
  box-shadow: 0 16px 30px -16px rgba(27, 42, 78, .5), 0 0 0 1px rgba(27, 42, 78, .05);
}
.polaroid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--hielo); }
.mazo .polaroid { display: flex; flex-direction: column; padding-bottom: 40px; }
.mazo .polaroid img { flex: 1; min-height: 0; aspect-ratio: auto; }
.polaroid figcaption { padding: 10px 0 14px; font-size: 34px; text-align: center; }
.polaroid--hero { width: 78%; max-width: 280px; margin: 0 auto 26px; transform: rotate(-3deg); }
.cinta-washi {
  position: absolute;
  top: -14px;
  left: 50%;
  z-index: 2;
  width: 96px;
  height: 28px;
  margin-left: -48px;
  background: repeating-linear-gradient(135deg, rgba(199, 218, 242, .9) 0 8px, rgba(220, 232, 246, .9) 8px 16px);
  transform: rotate(4deg);
  box-shadow: 0 2px 4px rgba(27, 42, 78, .12);
}
.hero__xv { font-family: var(--serif); font-weight: 400; font-size: 64px; font-size: clamp(56px, 17vw, 76px); line-height: 1; margin-top: 2px; }
.brillo--h1 { top: 26px; right: 26px; }
.brillo--h2 { top: 46%; left: 18px; width: 14px; height: 14px; animation-delay: -1.2s; }
.brillo--h3 { top: 70px; left: 24px; width: 16px; height: 16px; animation-delay: -.6s; }

/* ---------- Versículo ---------- */
.verso { padding: 50px 30px 44px; overflow: hidden; background: radial-gradient(circle at 50% 0%, #2a3d69 0%, var(--marino) 70%); }
/* marco fino interior */
.verso::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(199, 218, 242, .3); border-radius: 22px; pointer-events: none; }
.verso .brillo { color: var(--cielo-2); }
.brillo--v1 { top: 30px; left: 30px; }
.brillo--v2 { bottom: 34px; right: 32px; width: 14px; height: 14px; animation-delay: -1.4s; }
.verso__comilla { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: 220px; line-height: 1; color: rgba(199, 218, 242, .08); pointer-events: none; }
.verso__texto { position: relative; font-family: var(--serif); font-size: clamp(21px, 5.8vw, 25px); line-height: 1.4; margin-bottom: 18px; }
.verso__cita { display: inline-block; padding: 7px 18px; border-radius: 999px; background: #fbf5e8; color: var(--marino); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
/* sello: ícono en círculo con doble aro (versículo, padres, vestimenta, regalos) */
.sello { position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--marino); color: var(--blanco); box-shadow: 0 0 0 5px var(--blanco), 0 0 0 6px var(--cielo-2), 0 12px 22px -10px rgba(27, 42, 78, .55); }
.sello svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sello svg.sello__corazon { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.sello--claro { background: #fbf5e8; color: var(--marino); box-shadow: 0 0 0 6px rgba(255, 255, 255, .08); }

/* ---------- Padres ---------- */
.padres__nombre { margin-top: 16px; }
.padres__nombre .guion { display: block; font-size: clamp(34px, 9.6vw, 44px); }
.padres__apellido { display: block; margin-top: 4px; font-family: var(--serif); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gris); }
.padres { overflow: hidden; background: radial-gradient(circle at 50% 100%, var(--hielo) 0%, var(--blanco) 65%); }
/* esquinas decorativas */
.padres::before,
.padres::after { content: ""; position: absolute; width: 46px; height: 46px; border: 2px solid var(--cielo-2); pointer-events: none; }
.padres::before { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.padres::after { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.padres__y { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 6px; color: var(--marino); }
.padres__y::before,
.padres__y::after { content: ""; width: 56px; border-top: 1px solid var(--cielo-2); }
.padres__y .guion { display: grid; place-items: center; width: 42px; height: 42px; padding-top: 4px; border-radius: 50%; background: var(--hielo); font-size: 28px; }
.padres__y + .padres__nombre { margin-top: 0; }

/* ---------- Cuenta regresiva ---------- */
.cuenta__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.cuenta { overflow: hidden; background: linear-gradient(160deg, var(--cielo-2) 0%, var(--cielo) 55%, var(--hielo) 100%); }
.cuenta .brillo { color: var(--blanco); }
.brillo--c1 { top: 28px; left: 28px; }
.brillo--c2 { top: 64px; right: 30px; width: 14px; height: 14px; animation-delay: -.9s; }
.cuenta__fecha { margin: 0 auto 16px; background: var(--blanco); border-color: var(--blanco); }
.cuenta__tiles div { padding: 14px 0 10px; border-radius: 18px; background: var(--marino); color: var(--blanco); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 20px -12px rgba(27, 42, 78, .6); }
.cuenta__tiles b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 9vw, 38px); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.cuenta__tiles b.tic { animation: tic .45s var(--rebote); }
.cuenta__tiles span { font-size: 11px; color: var(--cielo-2); }
.cuenta__frase { margin: 18px 0 20px; font-size: 40px; }

/* ---------- Boletos ---------- */
.boletos { display: grid; gap: 14px; padding: 20px 0 6px; text-align: center; }
.boletos .titulo { margin-bottom: 4px; }
.boleto {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  border-radius: 24px;
  overflow: hidden;
  background: var(--blanco);
  text-align: left;
  box-shadow: 0 18px 40px -26px rgba(27, 42, 78, .4);
}
/* muescas del boleto */
.boleto::before,
.boleto::after {
  content: "";
  position: absolute;
  left: 96px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--cielo);
  z-index: 2;
}
.boleto::before { top: -11px; }
.boleto::after { bottom: -11px; }
.boleto__hora {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 20px 6px;
  background: var(--marino);
  color: var(--blanco);
  text-align: center;
}
.boleto__hora .mini { color: rgba(255, 255, 255, .7); font-size: 9.5px; letter-spacing: .16em; }
.boleto__hora b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.boleto__info { padding: 22px 20px 22px 24px; border-left: 2px dashed var(--cielo-2); }
.boleto h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.15; }
.boleto__lugar { margin-top: 8px; font-size: 14px; }
.boleto__dir { margin-top: 4px; font-size: 13px; color: var(--gris); line-height: 1.4; }

/* boleto que gira para ver la ubicación */
/* tarjeta del lugar: foto arriba, gira para ver la ubicación */
.lugar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 12px 26px;
  border-radius: 30px;
  background: var(--blanco);
  text-align: center;
  box-shadow: 0 18px 40px -26px rgba(27, 42, 78, .4);
}
.lugar--marino { padding: 30px 24px; background: var(--marino); color: var(--blanco); }
.lugar--marino .mini { color: rgba(255, 255, 255, .7); }
.lugar--marino .volteo__aviso { color: #fbf5e8; }
.lugar h3 { margin-top: 4px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.lugar > .mini { margin-top: 18px; }
.lugar--marino > .mini { margin-top: 0; }
.lugar__foto {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cielo-2), var(--hielo));
}
.lugar__foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lugar__hora {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--marino);
  color: var(--blanco);
  font-size: 12px;
  letter-spacing: .12em;
}
.lugar__hora b { font-family: var(--serif); font-weight: 400; font-size: 18px; letter-spacing: 0; }
.lugar__dir { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.volteo { perspective: 1200px; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.volteo__giro { display: grid; transform-style: preserve-3d; transition: transform .9s var(--rebote); }
.volteo.girada .volteo__giro { transform: rotateY(180deg); }
.volteo:focus-visible .volteo__giro { outline: 2px solid var(--marino); outline-offset: 4px; border-radius: 30px; }
.volteo__cara { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.volteo__reverso { transform: rotateY(180deg); }
/* la cara oculta no recibe toques ni foco; cambia a la mitad del giro */
.volteo__cara { transition: visibility 0s .4s; }
.volteo:not(.girada) .volteo__reverso, .volteo.girada .volteo__frente { visibility: hidden; }
.volteo__aviso { display: block; margin-top: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #3f74cf; }
.volteo__frente .volteo__aviso { position: relative; display: inline-flex; align-items: center; padding: 10px 18px; border: 1.5px solid currentColor; border-radius: 999px; animation: presionar 2.8s ease-in-out infinite; }
.volteo__mano { position: absolute; top: 45%; right: 6px; width: 40px; height: 40px; fill: var(--blanco); stroke: var(--marino); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 4px rgba(27, 42, 78, .25)); pointer-events: none; opacity: 0; animation: tocar 2.8s ease-in-out infinite; }
@keyframes tocar {
  0% { opacity: 0; transform: translate(18px, 22px); }
  22% { opacity: 1; transform: translate(0, 0) scale(1); }
  34% { transform: translate(0, 0) scale(.82); }
  46% { opacity: 1; transform: translate(0, 0) scale(1); }
  70%, 100% { opacity: 0; transform: translate(8px, 12px); }
}
@keyframes presionar { 0%, 28%, 42%, 100% { transform: scale(1); } 34% { transform: scale(.94); background: rgba(63, 116, 207, .1); } }
.volteo__pin { width: 34px; height: 34px; margin-bottom: 10px; fill: none; stroke: var(--blanco); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .volteo__giro { transition: none; } .volteo__frente .volteo__aviso, .volteo__mano { animation: none; } }

/* ---------- Itinerario ---------- */
.itinerario { overflow: hidden; padding-left: 14px; padding-right: 14px; background: linear-gradient(180deg, var(--blanco) 0%, var(--hielo) 100%); }
.brillo--i1 { top: 34px; left: 30px; }
.brillo--i2 { top: 96px; right: 34px; width: 14px; height: 14px; animation-delay: -1.1s; }
.itinerario__frase { margin-top: 2px; font-size: 32px; color: var(--gris); }
/* línea del tiempo en zigzag */
.itinerario__lista { position: relative; display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.itinerario__lista::before { content: ""; position: absolute; top: 0; bottom: -18px; left: 50%; border-left: 2px dashed var(--cielo-2); }
.itinerario__lista li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; }
.itinerario__icono {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--marino);
  box-shadow: 0 0 0 6px var(--hielo), 0 0 0 7px var(--cielo-2), 0 12px 22px -10px rgba(27, 42, 78, .6);
}
.itinerario__icono svg { width: 24px; height: 24px; fill: none; stroke: var(--blanco); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.itinerario__dato {
  grid-row: 1;
  position: relative;
  margin: 0 8px;
  padding: 12px 6px 10px;
  border-radius: 18px;
  background: var(--blanco);
  box-shadow: 0 12px 24px -16px rgba(27, 42, 78, .45);
}
.itinerario__lista li:nth-child(odd) .itinerario__dato { grid-column: 1; }
.itinerario__lista li:nth-child(even) .itinerario__dato { grid-column: 3; }
.itinerario__dato b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1; }
.itinerario__dato small { margin-left: 3px; font-family: var(--sans); font-size: 11px; letter-spacing: .12em; color: var(--gris); }
.itinerario__dato span { display: block; margin-top: 2px; font-size: 25px; line-height: 1.1; color: var(--marino); }
.itinerario__fin { position: relative; display: block; margin-top: 18px; font-size: 18px; color: var(--marino); }

/* ---------- Mazo de fotos ---------- */
.fotos { padding-bottom: 36px; overflow: hidden; }
.fotos { background-color: var(--blanco); background-image: radial-gradient(var(--cielo) 1.2px, transparent 1.4px); background-size: 18px 18px; }
.fotos .mini { margin-top: 6px; }
.fotos__frase { margin-top: 2px; font-size: 32px; color: #3f74cf; }
.mazo {
  position: relative;
  width: 72%;
  max-width: 260px;
  aspect-ratio: 4 / 6.1;
  margin: 34px auto 0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.carta {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  cursor: grab;
  transition: transform .5s var(--rebote);
  will-change: transform;
}
@supports not (aspect-ratio: 1) { .mazo::before { content: ""; display: block; padding-top: 152.5%; } }
.carta.arrastrando { transition: none; cursor: grabbing; }
.mazo__mano { position: absolute; top: 52%; left: 52%; z-index: 99; width: 46px; height: 46px; fill: var(--blanco); stroke: var(--marino); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 5px rgba(27, 42, 78, .3)); pointer-events: none; opacity: 0; }
.mazo.demo .mazo__mano { animation: deslizar 3.6s ease-in-out infinite; }
@keyframes deslizar {
  0% { opacity: 0; transform: translate(26px, 10px); }
  10% { opacity: 1; transform: translate(0, 0) scale(1); }
  15% { transform: translate(0, 0) scale(.86); }
  40% { opacity: 1; transform: translate(-110px, -8px) scale(.86); }
  48% { opacity: 0; transform: translate(-120px, -8px) scale(1); }
  100% { opacity: 0; transform: translate(-120px, -8px); }
}
.carta img { pointer-events: none; }
.puntos { display: flex; justify-content: center; margin-top: 28px; }
.puntos i { margin: 0 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--cielo-2); transition: width .3s var(--suave), background .3s; }
.puntos i.on { width: 20px; border-radius: 999px; background: var(--marino); }

/* ---------- Dúo ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo .tarjeta { padding: 30px 16px 26px; overflow: hidden; border-top: 6px solid var(--marino); }
.duo .sello { width: 48px; height: 48px; }
.duo .sello svg { width: 22px; height: 22px; }
.duo .nota { font-size: 13px; }
.punto-color { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--marino); vertical-align: -1px; margin-right: 4px; }

/* ---------- Hashtag ---------- */
.hashtag { overflow: hidden; }
.hashtag .mini { color: rgba(255, 255, 255, .7); }
.hashtag .brillo { color: var(--cielo-2); }
.brillo--t1 { top: 30px; left: 30px; }
.brillo--t2 { bottom: 34px; right: 30px; width: 14px; height: 14px; animation-delay: -1s; }
.hashtag__icono {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .05);
}
.hashtag__icono svg { width: 28px; height: 28px; fill: none; stroke: var(--blanco); stroke-width: 1.5; stroke-linejoin: round; }
.hashtag__frase { margin-top: 2px; font-size: 38px; color: var(--cielo-2); }
.hashtag__btn {
  display: block;
  margin: 14px auto 12px;
  padding: 14px 30px;
  border: 2px dashed var(--cielo-2);
  border-radius: 999px;
  background: var(--blanco);
  background-clip: padding-box;
  color: var(--marino);
  font-family: var(--serif);
  font-size: clamp(34px, 10vw, 44px);
  line-height: 1.1;
  box-shadow: 0 0 0 6px var(--blanco), 0 18px 30px -14px rgba(0, 0, 0, .5);
  cursor: pointer;
  transition: transform .4s var(--rebote);
  -webkit-tap-highlight-color: transparent;
}
.hashtag__btn:active { transform: scale(.94); }

/* ---------- Confirmación ---------- */
.invitado { margin-top: 20px; padding: 16px; border-radius: 20px; background: var(--hielo); }
.invitado__nombre { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin: 2px 0; }
.form { display: grid; gap: 12px; margin-top: 24px; text-align: left; }
.opciones { display: grid; gap: 8px; }
.opciones input { position: absolute; opacity: 0; pointer-events: none; }
.opciones span {
  display: block;
  padding: 15px 16px;
  border-radius: 18px;
  background: var(--hielo);
  text-align: center;
  font-size: 15px;
  cursor: pointer;
  transition: background .3s, color .3s, transform .35s var(--rebote);
}
.opciones input:checked + span { background: var(--marino); color: var(--blanco); transform: scale(1.02); }
.opciones input:focus-visible + span { outline: 2px solid var(--marino); outline-offset: 2px; }
.entrada,
.personas select {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: var(--hielo);
  color: var(--marino);
  font: 400 16px/1.4 var(--sans);
  resize: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s, background .3s;
}
.entrada::placeholder { color: #8b95ab; }
.entrada:focus, .personas select:focus { border-color: var(--cielo-2); background: var(--blanco); }
.personas { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: 4px; font-size: 15px; }
.personas select {
  width: 96px;
  padding: 12px 16px;
  text-align: center;
  background-image: linear-gradient(45deg, transparent 50%, var(--marino) 50%), linear-gradient(-45deg, transparent 50%, var(--marino) 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
#campoPersonas[hidden] { display: none; }
.form .boton { margin-top: 6px; }
/* tarjeta de confirmación y modal de pases */
.rsvp { display: flex; flex-direction: column; justify-content: center; }
.rsvp__icono { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 50%; background: var(--marino); color: var(--blanco); box-shadow: 0 0 0 6px var(--blanco), 0 0 0 7px var(--cielo-2), 0 14px 24px -10px rgba(27, 42, 78, .55); }
.rsvp__icono svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.rsvp__frase { margin-top: 4px; font-size: 34px; color: #3f74cf; }
.rsvp .nota b { color: var(--marino); }
.rsvp__boton { margin-top: 22px; }
/* frente: degradado cielo con marco cosido */
.rsvp__frente { overflow: hidden; background: radial-gradient(circle at 50% 0%, var(--blanco) 0%, var(--hielo) 45%, var(--cielo-2) 100%); }
.rsvp__frente::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgba(27, 42, 78, .22); border-radius: 22px; pointer-events: none; }
.rsvp__nota { margin: 14px 0 0; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .75); color: var(--marino); }
.brillo--r1 { top: 30px; left: 30px; }
.brillo--r2 { top: 70px; right: 34px; width: 14px; height: 14px; animation-delay: -1.3s; }
/* pases: tarjeta azul marino con muescas */
.rsvp__reverso { overflow: hidden; }
/* muescas alineadas con la línea punteada (26px = padding lateral de .tarjeta) */
.rsvp__cabeza::before,
.rsvp__cabeza::after { content: ""; position: absolute; bottom: -14px; width: 26px; height: 26px; border-radius: 50%; background: #556380; }
.rsvp__cabeza::before { left: -39px; }
.rsvp__cabeza::after { right: -39px; }
.rsvp__cabeza { position: relative; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 2px dashed rgba(255, 255, 255, .25); }
.rsvp__reverso .mini { color: rgba(255, 255, 255, .7); }
.rsvp__reverso .nota { color: rgba(255, 255, 255, .8); margin-top: 0; }
.rsvp__icono--claro { background: #fbf5e8; color: var(--marino); box-shadow: 0 0 0 6px rgba(255, 255, 255, .1); }
.rsvp__reverso .codigo__entrada { background: #fbf5e8; }
.rsvp__reverso .codigo__entrada:focus { background: var(--blanco); border-color: var(--cielo-2); }
.codigo[hidden] { display: none; }
.rsvp__error { margin-top: 12px; color: #ffd2cc; font-size: 14px; }
.pase-listo .nota { margin-bottom: 14px; }
.pase-img { display: block; width: auto; max-width: 100%; max-height: 58vh; margin: 0 auto 16px; border-radius: 16px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; pointer-events: auto; }
.pase-listo .boton { text-decoration: none; }
.codigo__entrada { text-align: center; font-size: 20px; letter-spacing: .3em; text-transform: uppercase; }
.codigo__entrada::placeholder { letter-spacing: .1em; text-transform: none; }
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 54; display: grid; place-items: center; padding: 20px 16px; }
.modal[hidden] { display: none; }
/* fondo: marino al 70% sobre cielo = #556380 (mismo color que las muescas) */
.modal--aviso { z-index: 56; }
.aviso-caja { position: relative; width: 100%; max-width: 340px; padding: 34px 24px 26px; animation: entrarTarjeta .45s var(--rebote); }
.aviso-caja .nota { margin: 10px 0 18px; }
.modal__fondo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(27, 42, 78, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fundir .3s ease-out; }
.modal__caja { width: 100%; max-width: 428px; max-height: 100%; overflow-y: auto; scrollbar-width: none; animation: entrarTarjeta .55s var(--rebote); }
.modal__caja::-webkit-scrollbar { display: none; }
/* con el pase a la vista: encabezado compacto para que todo quepa sin desplazarse */
.con-pase { padding-top: 26px; padding-bottom: 26px; }
.con-pase .rsvp__icono { display: none; }
.con-pase .rsvp__cabeza { padding-bottom: 12px; margin-bottom: 12px; }
.con-pase .titulo { font-size: 34px; }
.modal__cerrar { position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--blanco); font-size: 24px; line-height: 1; cursor: pointer; }
@keyframes fundir { from { opacity: 0; } }

/* ---------- Cierre ---------- */
.cierre { padding: 40px 0 20px; text-align: center; }
.cierre__mono { width: 120px; height: 100px; animation: menear 3s ease-in-out infinite; }
.cierre__txt { margin: 6px 0 8px; font-size: 64px; }
.firma { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 16px calc(18px + env(safe-area-inset-bottom)); color: var(--gris); text-decoration: none; }
.firma__txt { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
/* mismo logo que invitacionesweb.mx: ícono "iw" con corazón y nombre manuscrito */
.firma__marca { display: flex; align-items: center; gap: .7em; font-size: 9px; color: #1f1d36; transition: transform .3s; }
.firma:hover .firma__marca { transform: translateY(-2px); }
.firma__icono { display: grid; place-items: center; flex: none; width: 2.9em; height: 2.9em; border-radius: .8em; background: #1f1d36; font-size: .95em; }
.firma__icono b { position: relative; font: italic 400 1.5em/1 'Fraunces', Georgia, serif; color: #faf6f0; letter-spacing: -.04em; }
.firma__icono b span { color: #e7c98f; }
.firma__icono i { position: absolute; left: .25em; top: -.21em; font: normal .5em/1 system-ui, sans-serif; color: #e8604c; transform: rotate(15deg); }
.firma__nombre { font: 2.75em/1 'Great Vibes', cursive; white-space: nowrap; transform: translateY(.2em); }
.firma__nombre em { font-style: normal; color: #c94a3b; }
.firma__nombre small { font: 500 .3em 'Questrial', sans-serif; letter-spacing: .1em; color: #8a6830; }

/* ---------- Música / aviso / corazones ---------- */
/* seña de desplazar: la página sube y baja dos veces */
.pagina.asomar { animation: asomar 1.8s var(--suave); }
@keyframes asomar {
  0%, 50%, 100% { transform: none; }
  20% { transform: translateY(-70px); }
  70% { transform: translateY(-45px); }
}
/* aviso de desplazar */
.desliza {
  position: fixed;
  left: 50%;
  bottom: calc(30px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 22px 6px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  color: var(--marino);
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--cielo-2), 0 12px 26px -12px rgba(27, 42, 78, .35);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity .5s var(--suave), transform .6s var(--rebote);
  pointer-events: none;
}
.desliza.visible { opacity: 1; transform: translate(-50%, 0); animation: flotar 3s ease-in-out .6s infinite; }
.desliza span { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.desliza i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hielo);
  color: var(--marino);
}
.desliza svg { animation: bajar 1.4s ease-in-out infinite; }
@keyframes flotar { 50% { transform: translate(-50%, -5px); } }
@keyframes bajar { 50% { transform: translateY(3px); } }
.musica {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--blanco);
  color: var(--marino);
  font-size: 20px;
  box-shadow: 0 8px 20px -10px rgba(27, 42, 78, .5);
  cursor: pointer;
}
.musica[hidden] { display: none; }
.musica.sonando { animation: girar 4s linear infinite; }

.aviso {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 55;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--marino);
  color: var(--blanco);
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .3s, transform .4s var(--rebote);
  pointer-events: none;
}
.aviso.visible { opacity: 1; transform: translate(-50%, 0); }

.vuela {
  position: fixed;
  z-index: 60;
  width: 18px;
  height: 18px;
  color: var(--marino);
  pointer-events: none;
  animation: volar 1.1s var(--suave) forwards;
}

/* ---------- Keyframes ---------- */
@keyframes entrarTarjeta { from { opacity: 0; transform: translateY(40px) scale(.94); } }
@keyframes menear {
  0%, 100% { transform: rotate(0); }
  10% { transform: rotate(-7deg); }
  20% { transform: rotate(6deg); }
  30% { transform: rotate(-3deg); }
  40% { transform: rotate(0); }
}
@keyframes soltar { to { transform: translateY(-40px) scale(1.25) rotate(-12deg); opacity: 0; } }
@keyframes destello { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }
@keyframes subir {
  0% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(18px, -55vh) rotate(180deg); }
  100% { transform: translate(-10px, -110vh) rotate(360deg); }
}
@keyframes titilar { 50% { transform: scale(.55) rotate(20deg); opacity: .5; } }
@keyframes parpadeo { 50% { opacity: .65; } }
@keyframes tic { from { transform: scale(.7); opacity: .3; } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes volar {
  0% { transform: translate(0, 0) scale(.4); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--r)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
