/* ════════════════════════════════════════════════════════
   STYLES.CSS — Plantilla "Reina Moderna" v2.0 · Invitae Studio
   Categoría: sociales (XV años) · No editar por cliente
   Concepto ancla: "La última tarde de niña, la primera noche
   de reina" — el scroll es un paseo por la orilla de Huatulco.
   Paleta: Espuma de Amanecer · Bugambilia de Costa ·
   Oro de Sol Poniente · Champagne de Arena · Noche de Bahía
   ════════════════════════════════════════════════════════ */

:root {
  --espuma: #fdf3f4; /* Espuma de Amanecer (base día) */
  --espuma2: #fae8ec;
  --bugambilia: #b4456a; /* Bugambilia de Costa */
  --coral: #8e2e50; /* Coral Profundo */
  --oro: #c9a14a; /* Oro de Sol Poniente */
  --champ: #e9d3a3; /* Champagne de Arena */
  --arena: #f0e2c8; /* arena seca */
  --arena-h: #dcc9a4; /* arena húmeda (sombra del tallado) */
  --noche: #1d1533; /* Noche de Bahía */
  --text: #3a2230;
  --muted: #7a5c68;
  --white: #fff;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--espuma);
  font-family: "Jost", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}
body.bloqueado {
  overflow: hidden;
  height: 100svh;
}
/* materia: grano fino en toda la pieza */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
#canvas-particulas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  display: none;
}
.page {
  position: relative;
  z-index: 2;
}

/* ═══ CIELOS — el reloj emocional del paseo ═══ */
.cielo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cielo-dia {
  background: linear-gradient(180deg, #fdf3f4 0%, #fae8ec 100%);
}
.cielo-tarde {
  background: linear-gradient(180deg, #fad9d2 0%, #f3b8a8 45%, #e9d3a3 100%);
  opacity: 0;
}
.cielo-noche {
  opacity: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 32% 8%, #e9d3a3, transparent),
    radial-gradient(1.8px 1.8px at 55% 22%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 72% 12%, #e9d3a3, transparent),
    radial-gradient(1.5px 1.5px at 88% 28%, #fff, transparent),
    radial-gradient(1px 1px at 20% 42%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 64% 38%, #e9d3a3, transparent),
    radial-gradient(1px 1px at 42% 55%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 8% 66%, #e9d3a3, transparent),
    radial-gradient(1px 1px at 84% 58%, #fff, transparent),
    linear-gradient(180deg, #1d1533 0%, #332050 55%, #53375c 100%);
}
body.modo-noche {
  --text: #f4e6ec;
  --muted: #cfb3c2;
}

/* ═══ SOBRE (firma N2 — no se toca la esencia) ═══ */
.sobre-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(160deg, #fae8ec 0%, #fdf3f4 55%, #f6e7d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sobre-escena {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}
.sobre {
  position: relative;
  width: min(320px, 82vw);
  aspect-ratio: 1.45/1;
  filter: drop-shadow(0 18px 40px rgba(142, 46, 80, 0.25));
}
.sobre-body {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  z-index: 2;
  overflow: hidden;
  background: linear-gradient(180deg, #fbf4ea 0%, #f1e2cd 100%);
}
.sobre-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(180, 69, 106, 0.07) 0 50%, transparent 50.5%),
    linear-gradient(245deg, rgba(180, 69, 106, 0.07) 0 50%, transparent 50.5%);
}
.sobre-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 58%;
  background: linear-gradient(180deg, #f1e2cd 0%, #e7d2b4 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 10px 10px 0 0;
  transform-origin: top center;
  z-index: 4;
  backface-visibility: hidden;
}
.sobre-carta {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 8%;
  bottom: 14%;
  z-index: 1;
  background: var(--espuma);
  border: 1px solid rgba(201, 161, 74, 0.35);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.carta-mini-titulo {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oro);
}
.carta-mini-nombre {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 600;
  font-style: italic;
  color: var(--bugambilia);
}
.sobre-sello {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 32% 28%,
    #e9d3a3 0%,
    #c9a14a 50%,
    #9a7430 100%
  );
  box-shadow:
    0 4px 14px rgba(154, 116, 48, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -3px 6px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
  animation: sello-pulso 2.2s ease-in-out infinite;
}
.sobre-sello::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
}
.sobre-sello span {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
@keyframes sello-pulso {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }
}
.sobre-para {
  margin-top: 26px;
  font-family: "Great Vibes", cursive;
  font-size: 24px;
  color: var(--bugambilia);
  text-align: center;
}
.sobre-hint {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.8;
  text-align: center;
  animation: hint-fade 2.4s ease-in-out infinite;
}
@keyframes hint-fade {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}

/* ═══ VINILO + CADUCIDAD ═══ */
.vinilo {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(180, 69, 106, 0.25);
  box-shadow: 0 4px 16px rgba(142, 46, 80, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out);
}
.vinilo:active {
  transform: scale(0.92);
}
.vinilo.playing svg {
  animation: girar 2.6s linear infinite;
}
.vinilo:not(.playing) svg {
  opacity: 0.45;
}
@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}
.caducidad-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--bugambilia);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  padding: 8px 12px;
}
.caducidad-despedida {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: var(--espuma);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  gap: 12px;
}
.caducidad-despedida h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  color: var(--bugambilia);
}
.caducidad-despedida p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
}

/* ═══ ESCENA 1 · LA ORILLA AL ATARDECER ═══ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 150px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.parallax-capa {
  will-change: transform;
}
.hero-pretitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  opacity: 0;
  transform: translateY(12px);
}
.hero-pretitle::before,
.hero-pretitle::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--oro));
}
.hero-pretitle::after {
  background: linear-gradient(to left, transparent, var(--oro));
}
.hero-invitado {
  font-family: "Great Vibes", cursive;
  font-size: 28px;
  color: var(--bugambilia);
  margin-bottom: 10px;
  position: relative;
  min-height: 38px;
}
.cal-wrap .cal-letra {
  opacity: 0;
  display: inline-block;
}
.cal-pluma {
  position: absolute;
  font-size: 14px;
  color: var(--oro);
  opacity: 0;
  pointer-events: none;
}
.corona-wrap {
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(14px);
  filter: drop-shadow(0 4px 14px rgba(201, 161, 74, 0.4));
}
.hero-nombre {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(56px, 15vw, 76px);
  font-weight: 600;
  font-style: italic;
  color: var(--bugambilia);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  opacity: 0;
  transform: translateY(16px);
}
.hero-apellidos {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
  opacity: 0;
  transform: translateY(12px);
}
.hero-frase {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 300px;
  opacity: 0;
  transform: translateY(10px);
}
.hero-mar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  pointer-events: none;
  opacity: 0.9;
}
.hero-mar svg {
  width: 100%;
  height: 100%;
  display: block;
}
.mar-glints line {
  animation: glint 3.4s ease-in-out infinite;
}
.mar-glints line:nth-child(2) {
  animation-delay: 0.7s;
}
.mar-glints line:nth-child(3) {
  animation-delay: 1.3s;
}
.mar-glints line:nth-child(4) {
  animation-delay: 2s;
}
.mar-glints line:nth-child(5) {
  animation-delay: 0.4s;
}
.mar-glints line:nth-child(6) {
  animation-delay: 1.7s;
}
@keyframes glint {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.85;
  }
}
.mar-espuma {
  animation: espuma-vaiven 6s ease-in-out infinite;
}
@keyframes espuma-vaiven {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}
.mariposas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mposa {
  position: absolute;
}
.mposa:nth-child(1) {
  top: 14%;
  left: 6%;
  animation: fly 5s ease-in-out infinite;
}
.mposa:nth-child(2) {
  top: 26%;
  right: 8%;
  animation: fly 4.5s ease-in-out infinite 1.2s;
}
.mposa:nth-child(3) {
  top: 9%;
  right: 20%;
  animation: fly 6s ease-in-out infinite 2.5s;
}
@keyframes fly {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-16px) rotate(6deg);
  }
}
.s-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: ph 2.8s ease-in-out infinite 1.8s;
  z-index: 2;
}
.s-hint span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  opacity: 0.7;
}
.s-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--coral), transparent);
}
@keyframes ph {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}
.destello-tap {
  position: fixed;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 50;
  background: radial-gradient(
    circle,
    #fff 0%,
    var(--champ) 40%,
    transparent 70%
  );
  border-radius: 50%;
}

/* ═══ ESCENAS — sistema base (ritmo de padding variado) ═══ */
.esc {
  position: relative;
  z-index: 2;
  padding: 0 20px 64px;
}
#s-fecha {
  padding-bottom: 0;
}
#s-cd {
  padding-bottom: 88px;
}
#s-lugar {
  padding-bottom: 72px;
}
#s-destino {
  padding-bottom: 96px;
}
#s-papas {
  padding-bottom: 80px;
}
#s-brindis {
  padding-bottom: 96px;
}
#s-dress {
  padding-bottom: 72px;
}
#s-regalos {
  padding-bottom: 88px;
}
#s-pass {
  padding-bottom: 96px;
}

/* reveal independiente de GSAP: IO agrega .visto */
.sec {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.sec.visto {
  opacity: 1;
  transform: none;
}

/* voz de escena — narra el paseo (nunca el mismo tag centrado) */
.esc-voz {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--coral);
  max-width: 270px;
  margin: 0 0 22px 6px;
  position: relative;
  padding-left: 16px;
}
.esc-voz::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--oro), transparent);
  border-radius: 2px;
}
.esc-voz-der {
  margin: 0 6px 22px auto;
  text-align: right;
  padding-left: 0;
  padding-right: 16px;
}
.esc-voz-der::before {
  left: auto;
  right: 0;
  background: linear-gradient(to bottom, var(--bugambilia), transparent);
}
body.modo-noche .esc-voz {
  color: var(--champ);
}
.esc-voz-noche {
  color: var(--champ);
}

/* ═══ SIGNATURE · HUELLAS EN LA ARENA (descalzas → tacones) ═══ */
.paso {
  position: relative;
  height: 96px;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}
.paso svg {
  position: absolute;
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.paso.visto svg {
  opacity: 0.55;
  transform: scale(1);
}
.paso.visto svg:nth-child(1) {
  transition-delay: 0s;
}
.paso.visto svg:nth-child(2) {
  transition-delay: 0.18s;
}
.paso.visto svg:nth-child(3) {
  transition-delay: 0.36s;
}
body.modo-noche .paso.visto svg {
  opacity: 0.4;
}
.huella-fill {
  fill: var(--arena-h);
}
body.modo-noche .huella-fill {
  fill: rgba(233, 211, 163, 0.5);
}

/* ═══ ESCENA 2-3 · ESCRITO EN LA ARENA ═══ */
.esc-arena {
  background: linear-gradient(180deg, var(--arena) 0%, #e9d8b8 100%);
  margin: 0;
  padding-left: 28px;
  padding-right: 28px;
  position: relative;
}
.esc-arena::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='0.06'/%3E%3C/svg%3E");
}
/* borde orgánico de la franja de arena (línea de marea) */
.esc-arena-abre {
  padding-top: 52px;
  border-radius: 60% 40% 0 0/26px 34px 0 0;
  margin-top: 26px;
}
.esc-arena-abre::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background:
    radial-gradient(
      ellipse 60% 100% at 30% 100%,
      rgba(255, 255, 255, 0.55),
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 100% at 75% 100%,
      rgba(255, 255, 255, 0.45),
      transparent 70%
    );
}
.esc-arena-cierra {
  border-radius: 0 0 45% 55%/0 0 30px 24px;
  padding-top: 8px;
}
.esc-arena .esc-voz {
  color: var(--coral);
}
/* números "tallados" en la arena */
.tallado {
  color: #b39562;
  text-shadow:
    0 1.5px 0 rgba(255, 255, 255, 0.75),
    0 -1px 1px rgba(122, 92, 44, 0.55);
}
.arena-fecha {
  position: relative;
  z-index: 1;
  text-align: center;
}
.fecha-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 18px;
}
.fecha-blk {
  text-align: center;
}
.fecha-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.fecha-num-sm {
  font-size: 46px;
}
.fecha-lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a7430;
  display: block;
  margin-top: 5px;
}
.fecha-concha {
  opacity: 0.8;
}
.hora-linea {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.hora-big {
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}
.hora-nota {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a7430;
}
.btn-arena {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid rgba(154, 116, 48, 0.5);
  color: #7c5e28;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms var(--ease-out),
    background 160ms;
}
.btn-arena:active {
  transform: scale(0.97);
  background: rgba(154, 116, 48, 0.12);
}
.cd-arena {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  position: relative;
  z-index: 1;
}
.cd-cell {
  text-align: center;
  padding: 14px 2px;
  position: relative;
}
.cd-cell:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -6px;
  top: 38%;
  color: #9a7430;
  opacity: 0.5;
}
.cd-n {
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.cd-l {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a7430;
  display: block;
  margin-top: 6px;
}

/* ═══ ESCENA 4 · LA BAHÍA DIBUJADA ═══ */
.bahia {
  text-align: center;
  position: relative;
}
.bahia-mapa {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 6px;
}
.bahia-costa {
  transition: stroke-dashoffset 2.2s var(--ease-in-out);
}
.sec.visto .bahia-costa {
  stroke-dashoffset: 0;
}
.bahia-marca {
  transform-origin: center;
  transform-box: fill-box;
}
.lugar-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 6px;
}
.lugar-nombre {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 600;
  font-style: italic;
  color: var(--coral);
  margin-bottom: 6px;
  line-height: 1.15;
}
body.modo-noche .lugar-nombre {
  color: var(--champ);
}
.lugar-dir {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.btn-oro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--oro), #b08838);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    box-shadow 160ms;
  box-shadow: 0 4px 18px rgba(154, 116, 48, 0.4);
  -webkit-tap-highlight-color: transparent;
}
.btn-oro:active {
  transform: scale(0.97);
  box-shadow: none;
}
.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}

/* ═══ ESCENA 5 · POSTALES DE HUATULCO ═══ */
.postales {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.postal {
  background: linear-gradient(175deg, #fffdf8 0%, #f7ecd9 100%);
  border: 1px solid rgba(154, 116, 48, 0.28);
  border-radius: 6px;
  padding: 22px 20px 20px;
  position: relative;
  text-align: left;
  transform: rotate(var(--rot, 0deg));
  box-shadow: 0 6px 22px rgba(142, 46, 80, 0.14);
}
.postal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(154, 116, 48, 0.3);
  border-radius: 4px;
  pointer-events: none;
}
.postal-icono {
  display: block;
  margin-bottom: 10px;
}
.postal-titulo {
  font-family: "Great Vibes", cursive;
  font-size: 26px;
  font-weight: 400;
  color: var(--coral);
  margin-bottom: 8px;
}
.postal-texto {
  font-size: 13px;
  color: #6b5346;
  line-height: 1.65;
}
.postal-timbre {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--bugambilia);
  border: 1.5px solid rgba(180, 69, 106, 0.5);
  border-radius: 3px;
  padding: 5px 6px;
  transform: rotate(6deg);
  background: rgba(180, 69, 106, 0.06);
}
.hotel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed rgba(154, 116, 48, 0.3);
  padding: 10px 2px;
  text-decoration: none;
}
.hotel-item:last-child {
  border-bottom: none;
}
.hotel-nombre {
  font-size: 13px;
  font-weight: 600;
  color: #4a3a2c;
  text-align: left;
  display: block;
}
.hotel-det {
  font-size: 11px;
  color: #8a7358;
  display: block;
  margin-top: 1px;
}
.hotel-arrow {
  color: var(--oro);
  font-size: 14px;
  flex-shrink: 0;
}

/* ═══ ESCENA 6 · DOS SILLAS FRENTE AL MAR ═══ */
.papas-frase {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 21px;
  font-weight: 600;
  color: var(--coral);
  text-align: center;
  line-height: 1.4;
  margin-bottom: 10px;
}
body.modo-noche .papas-frase {
  color: var(--champ);
}
.papas-orilla {
  text-align: center;
}
.papas-escena {
  width: 100%;
  height: auto;
  display: block;
}
.papas-corazon-svg {
  animation: latir 1.4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes latir {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.22);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.1);
  }
  56% {
    transform: scale(1);
  }
}
.papas-nombres {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: -6px;
  padding: 0 24px;
}
.papa-role {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 4px;
}
.papa-nombre {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--coral);
  line-height: 1.2;
}
body.modo-noche .papa-nombre {
  color: #f4e6ec;
}

/* ═══ ESCENA 7 · BRINDIS BAJO LAS ESTRELLAS ═══ */
/* sin card: la escena se funde con el cielo nocturno que ya llegó */
.brindis-escena-wrap {
  text-align: center;
  position: relative;
  touch-action: pan-y;
}
.brindis-hint {
  font-size: 13px;
  font-weight: 500;
  color: rgba(233, 211, 163, 0.9);
  margin-bottom: 18px;
}
.brindis-escena {
  position: relative;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 90px;
  user-select: none;
}
.copa {
  filter: drop-shadow(0 4px 14px rgba(201, 161, 74, 0.45));
  will-change: transform;
}
.brindis-chispa {
  position: absolute;
  left: 50%;
  top: 26%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 34px;
  color: var(--champ);
  pointer-events: none;
  text-shadow: 0 0 18px rgba(233, 211, 163, 0.9);
}
.brindis-arena {
  width: min(300px, 80%);
  height: 26px;
  display: block;
  margin: -10px auto 0;
}
.brindis-frase {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 19px;
  color: var(--champ);
  line-height: 1.55;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(8px);
}

/* ═══ ESCENA 8 · PIEDRAS DE MAR (dresscode) ═══ */
.dress-orilla {
  text-align: center;
  position: relative;
}
.dc-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 6px;
}
body.modo-noche .dc-title {
  color: var(--champ);
}
.dc-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 290px;
  margin-left: auto;
  margin-right: auto;
}
.dc-paleta {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.dc-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
/* piedras pulidas por la marea: formas orgánicas, cada una distinta */
.dc-swatch {
  width: 46px;
  height: 40px;
  border: none;
  box-shadow:
    inset 0 3px 5px rgba(255, 255, 255, 0.35),
    inset 0 -4px 6px rgba(0, 0, 0, 0.28),
    0 3px 10px rgba(0, 0, 0, 0.25);
}
.dc-color:nth-child(1) .dc-swatch {
  border-radius: 58% 42% 50% 50%/55% 48% 52% 45%;
}
.dc-color:nth-child(2) .dc-swatch {
  border-radius: 45% 55% 60% 40%/50% 58% 42% 50%;
  height: 44px;
}
.dc-color:nth-child(3) .dc-swatch {
  border-radius: 52% 48% 44% 56%/60% 44% 56% 40%;
  height: 38px;
}
.dc-color:nth-child(4) .dc-swatch {
  border-radius: 60% 40% 55% 45%/45% 55% 45% 55%;
  height: 42px;
}
.dc-color:nth-child(5) .dc-swatch {
  border-radius: 48% 52% 58% 42%/52% 46% 54% 48%;
  height: 40px;
}
.dc-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.dress-linea-marea {
  height: 1px;
  margin: 26px auto 0;
  width: 70%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(233, 211, 163, 0.6),
    transparent
  );
}

/* ═══ ESCENA 9 · LO QUE TRAE LA MAREA (regalos) ═══ */
.regalos-intro {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 20px;
}
.regalo-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  padding: 18px 20px;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 10px;
  background: rgba(253, 243, 244, 0.07);
  border: 1px solid rgba(233, 211, 163, 0.3);
  backdrop-filter: blur(3px);
  transition:
    transform 160ms var(--ease-out),
    background 160ms;
  -webkit-tap-highlight-color: transparent;
}
.regalo-btn:last-child {
  margin-bottom: 0;
}
.regalo-btn:active {
  transform: scale(0.98);
  background: rgba(233, 211, 163, 0.14);
}
.regalo-btn.clabe {
  border-style: dashed;
  cursor: default;
}
.regalo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(233, 211, 163, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--champ);
}
.regalo-info {
  flex: 1;
  text-align: left;
}
.regalo-nombre {
  font-size: 15px;
  font-weight: 600;
  color: var(--champ);
  display: block;
  line-height: 1.2;
}
.regalo-sub {
  font-size: 11px;
  font-weight: 500;
  color: rgba(233, 211, 163, 0.6);
  display: block;
  margin-top: 2px;
  letter-spacing: 0.03em;
}
.regalo-arrow {
  font-size: 16px;
  color: rgba(233, 211, 163, 0.5);
  flex-shrink: 0;
}
/* de día (por si el flag atardecer se apaga) los botones siguen legibles */
body:not(.modo-noche) .regalo-btn {
  background: rgba(142, 46, 80, 0.06);
  border-color: rgba(154, 116, 48, 0.35);
}
body:not(.modo-noche) .regalo-nombre {
  color: var(--coral);
}
body:not(.modo-noche) .regalo-sub {
  color: var(--muted);
}
body:not(.modo-noche) .regalo-icon {
  color: var(--coral);
  background: rgba(201, 161, 74, 0.14);
}
body:not(.modo-noche) .regalo-arrow {
  color: var(--oro);
}

/* ═══ ESCENA 10 · TU PASE A LA BAHÍA ═══ */
.pass-wrap {
  text-align: center;
}
.pass-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
  max-width: 290px;
  margin-left: auto;
  margin-right: auto;
}
.pass-preview {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
  transform: rotate(-1.2deg);
}

/* ═══ ESCENA 11 · MENSAJE EN LA BOTELLA (rsvp) ═══ */
.rsvp-noche {
  text-align: center;
  position: relative;
  padding-top: 8px;
}
.rsvp-botella {
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 6px 16px rgba(201, 161, 74, 0.35));
}
.rsvp-h {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 30px;
  font-weight: 600;
  color: var(--champ);
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.15;
}
body:not(.modo-noche) .rsvp-h {
  color: var(--coral);
}
.rsvp-s {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 290px;
  margin-left: auto;
  margin-right: auto;
}
.rsvp-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.rsvp-opt {
  background: rgba(253, 243, 244, 0.06);
  border: 1.5px solid rgba(233, 211, 163, 0.3);
  border-radius: 18px;
  padding: 20px 10px;
  text-align: center;
  color: var(--champ);
  cursor: pointer;
  transition:
    transform 200ms var(--ease-out),
    background 200ms,
    border-color 200ms;
  -webkit-tap-highlight-color: transparent;
  font-family: "Jost", sans-serif;
}
body:not(.modo-noche) .rsvp-opt {
  background: rgba(142, 46, 80, 0.05);
  border-color: rgba(154, 116, 48, 0.35);
  color: var(--coral);
}
.rsvp-opt:active {
  transform: scale(0.96);
}
.rsvp-opt.sel-si {
  background: var(--bugambilia);
  border-color: var(--bugambilia);
  color: #fff;
}
.rsvp-opt.sel-no {
  background: rgba(233, 211, 163, 0.2);
  border-color: var(--oro);
}
.ro-ico {
  display: block;
  margin: 0 auto 10px;
  height: 30px;
}
.ro-txt {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
}
.rsvp-in {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(233, 211, 163, 0.35);
  border-radius: 14px;
  background: rgba(253, 243, 244, 0.07);
  font-family: "Jost", sans-serif;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
  transition:
    border-color 200ms,
    box-shadow 200ms;
  -webkit-appearance: none;
}
body:not(.modo-noche) .rsvp-in {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(154, 116, 48, 0.35);
}
.rsvp-in::placeholder {
  color: var(--muted);
  opacity: 0.75;
}
.rsvp-in:focus {
  outline: none;
  border-color: var(--champ);
  box-shadow: 0 0 0 3px rgba(233, 211, 163, 0.18);
}
.rsvp-cta {
  width: 100%;
  padding: 17px;
  background: linear-gradient(135deg, var(--bugambilia), var(--coral));
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms;
  box-shadow: 0 6px 24px rgba(142, 46, 80, 0.45);
  margin-top: 4px;
}
.rsvp-cta:active {
  transform: scale(0.98);
  box-shadow: none;
}
.gracias {
  display: none;
  text-align: center;
  padding: 16px 0 8px;
}
.g-ani {
  display: block;
  margin-bottom: 14px;
  animation: gbounce 0.6s var(--ease-back);
}
@keyframes gbounce {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.g-tit {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 600;
  color: var(--champ);
  margin-bottom: 6px;
}
body:not(.modo-noche) .g-tit {
  color: var(--bugambilia);
}
.g-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ═══ FOOTER ═══ */
.footer {
  padding: 36px 20px 64px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}
.footer.visto {
  opacity: 1;
}
.ft-ola {
  display: block;
  margin: 0 auto 14px;
}
.ft-txt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champ);
  opacity: 0.85;
}
body:not(.modo-noche) .ft-txt {
  color: var(--bugambilia);
}
.ft-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  opacity: 0.6;
}

/* ═══ REDUCED MOTION — menos y más suave, no cero ═══ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sec {
    transform: none;
    transition: opacity 0.5s ease;
  }
  .paso svg {
    transform: none;
  }
  .mposa,
  .sobre-sello,
  .sobre-hint,
  .s-hint,
  .mar-glints line,
  .mar-espuma,
  .papas-corazon-svg,
  .vinilo.playing svg {
    animation: none !important;
  }
  .bahia-costa {
    stroke-dashoffset: 0 !important;
    transition: none;
  }
  .pass-preview {
    transform: none;
  }
}

/* ═══ APERTURA DEL SOBRE + ENTRADA DEL HERO (CSS puro, sin GSAP) ═══ */
.sobre-overlay {
  transition: opacity 0.5s ease;
}
.sobre-overlay.desvanece {
  opacity: 0;
}
.sobre {
  perspective: 900px;
}
.sobre-sello {
  transition: transform 0.35s var(--ease-in-out);
}
.sobre-overlay.abriendo .sobre-sello {
  animation: none;
  transform: translate(-50%, -50%) scale(0) rotate(90deg);
}
.sobre-overlay.abriendo .sobre-para,
.sobre-overlay.abriendo .sobre-hint {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sobre-flap {
  transition: transform 0.55s var(--ease-in-out) 0.18s;
}
.sobre-overlay.abriendo .sobre-flap {
  transform: rotateX(180deg);
}
.sobre-carta {
  transition: transform 0.6s var(--ease-out);
}
.sobre-overlay.carta-sube .sobre-carta {
  transform: translateY(-72%) scale(1.12);
  z-index: 10;
}
.hero-pretitle,
.corona-wrap,
.hero-nombre,
.hero-apellidos,
.hero-frase {
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.hero.va .hero-pretitle {
  opacity: 1;
  transform: none;
}

.hero.va .hero-nombre {
  opacity: 1;
  transform: none;
  transition-delay: 0.28s;
}
.hero.va .hero-apellidos {
  opacity: 1;
  transform: none;
  transition-delay: 0.42s;
}
.hero.va .hero-frase {
  opacity: 1;
  transform: none;
  transition-delay: 0.55s;
}
.paso-huella {
  position: absolute;
  display: block;
  transform: rotate(var(--rot, 0deg));
}
@media (prefers-reduced-motion: reduce) {
  .hero-pretitle,
  .corona-wrap,
  .hero-nombre,
  .hero-apellidos,
  .hero-frase {
    transform: none;
  }
}

/* ═══ FOTOS REALES · v2.1 (opcional, toggle por clase) ═══ */
.hero.hero--foto {
  background-image:
    linear-gradient(
      180deg,
      rgba(29, 21, 51, 0.5) 0%,
      rgba(58, 34, 48, 0.22) 40%,
      rgba(29, 21, 51, 0.55) 100%
    ),
    url("assets/images/hero_bg.webp");
  background-size: cover;
  background-position: center 22%;
}
.hero.hero--foto .hero-mar {
  display: none;
} /* el mar ya viene en la foto */
.hero.hero--foto .hero-pretitle,
.hero.hero--foto .hero-apellidos {
  color: var(--champ);
}
.hero.hero--foto .hero-nombre {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero.hero--foto .hero-frase {
  color: rgba(247, 239, 226, 0.9);
}
.hero.hero--foto .hero-pretitle::before,
.hero.hero--foto .hero-pretitle::after {
  background: linear-gradient(to right, transparent, var(--champ));
}
.hero.hero--foto .hero-pretitle::after {
  background: linear-gradient(to left, transparent, var(--champ));
}

#s-brindis.esc-brindis--foto {
  background-image:
    linear-gradient(
      180deg,
      rgba(16, 12, 32, 0.3) 0%,
      rgba(16, 12, 32, 0.7) 100%
    ),
    url("assets/images/brindis_bg.webp");
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
}
