@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('./assets/fonts/jost-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('./assets/fonts/jost-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('./assets/fonts/jost-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('./assets/fonts/jost-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 600; font-display: swap; src: url('./assets/fonts/jost-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 600; font-display: swap; src: url('./assets/fonts/jost-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 700; font-display: swap; src: url('./assets/fonts/jost-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 700; font-display: swap; src: url('./assets/fonts/jost-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============================================================================
   Nuestra Primera Célula · Invitación Cinematográfica Nocturna
   Estándar Orchex: orchex-invitaciones-fisica-motion + §23 (impeccable = [])
   ============================================================================ */

:root {
  --night-deep: #060e1c;
  --night-sky: #0b192f;
  --night-mid: #132849;
  --night-velvet: #0c1d38;
  --crimson: #881e23;
  --crimson-dark: #5f1216;
  --gold-bright: #f4dca1;
  --gold: #d9b464;
  --gold-deep: #a37b31;
  --ivory: #f8f0df;
  --ivory-muted: #d6cbb5;
  --emerald-ok: #1e6e4c;
  --emerald-bright: #2e9a6b;
  --ease-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', Georgia, serif;
  --font-sans: 'Jost', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--night-deep);
  color: var(--ivory);
  font-family: var(--font-sans);
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-font-smoothing: antialiased;
}

a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  font-size: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

button, a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus {
  outline: none;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

[hidden] {
  display: none !important;
}

/* Lienzo de cielo estrellado y destellos dorados 60fps */
.starfield-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Contenedor principal */
.invitation-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px 36px;
}

.invitation-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================================================
   PANTALLA 1: SOBRE CERRADO DE TERCIOPELO NOCTURNO
   ============================================================================ */
.envelope-cover {
  position: relative;
  width: 100%;
  max-width: 410px;
  min-height: 640px;
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--night-velvet);
  border: 1px solid rgba(229, 197, 123, 0.28);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.62);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 36px 24px 48px;
  transition: opacity 0.62s var(--ease-expo), transform 0.62s var(--ease-expo);
}

.cover-velvet-bg {
  position: absolute;
  inset: 0;
  background-color: var(--night-velvet);
  background-size: cover;
  background-position: center;
  opacity: 0.92;
  pointer-events: none;
}

.cover-stars-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 44%, rgba(244, 220, 161, 0.14) 0%, transparent 56%),
    linear-gradient(180deg, rgba(6, 14, 28, 0.15) 0%, rgba(6, 14, 28, 0.55) 100%);
  pointer-events: none;
}

.cover-flap-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56%;
  perspective: 1100px;
  z-index: 3;
  pointer-events: none;
}

.cover-flap {
  position: absolute;
  inset: 0;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 0.78s var(--ease-expo);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55));
}

.cover-flap-shape {
  position: absolute;
  inset: 0;
  background-color: #102444;
  background-size: cover;
  background-position: top center;
  clip-path: polygon(0 0, 100% 0, 50% 96%);
  border-top: 1px solid rgba(244, 220, 161, 0.3);
}

.cover-flap-shape::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244, 220, 161, 0.08) 0%, rgba(7, 17, 34, 0.25) 100%);
}

/* Sello de lacre dorado 3D clavado en la punta de la solapa */
.seal-trigger {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 118px;
  height: 118px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 6;
  display: grid;
  place-items: center;
}

.seal-art {
  position: relative;
  width: 108px;
  height: 108px;
  display: block;
  overflow: visible;
  transform-style: preserve-3d;
  will-change: transform;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.58));
  transition: transform 0.52s var(--ease-expo), opacity 0.45s ease;
}

.seal-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.seal-sheen-mask {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}

.seal-sheen {
  position: absolute;
  inset: -25%;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 248, 222, 0.48) 50%, transparent 64%);
  will-change: transform;
}

.cover-copy {
  position: relative;
  z-index: 4;
  text-align: center;
  margin-top: auto;
  padding-top: 24px;
}

.cover-headline {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cover-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.cover-script {
  font-family: var(--font-script);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--ivory);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
}

.holly-svg {
  width: 104px;
  height: 24px;
  margin: 10px auto 0;
  display: block;
}

/* Estados de apertura continua en 1 gesto */
.envelope-cover.is-unsealing .seal-art {
  transform: translateY(-28px) scale(1.16) rotate(12deg);
  opacity: 0;
}

.envelope-cover.is-unsealing .cover-flap {
  transform: rotateX(-168deg);
}

.envelope-cover.is-fading {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(0.97);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
}

/* ============================================================================
   PANTALLA 2: INVITACIÓN CINEMATOGRÁFICA DESPLEGADA
   ============================================================================ */
.invitation-sheet {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 1;
  transition: opacity 0.55s var(--ease-expo);
}

.open-envelope-scene {
  position: relative;
  width: 100%;
  padding-top: 32px;
  display: flex;
  justify-content: center;
}

.sprig-left,
.sprig-right {
  position: absolute;
  width: 130px;
  top: 72px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  will-change: transform;
  transition: opacity 0.8s var(--ease-expo);
}

.sprig-left {
  left: -26px;
  transform-origin: 85% 92%;
}

.sprig-right {
  right: -26px;
  transform-origin: 15% 92%;
}

.open-envelope-wrapper {
  position: relative;
  width: 100%;
  max-width: 416px;
  z-index: 2;
}

.envelope-back-flap {
  position: relative;
  width: 100%;
  height: 150px;
  background-color: #0d2140;
  clip-path: polygon(0 100%, 50% 4%, 100% 100%);
  border-bottom: 1px solid rgba(229, 197, 123, 0.25);
  z-index: 1;
  overflow: hidden;
}

.envelope-liner-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Ranura que recorta la tarjeta al emerger desde dentro del bolsillo */
.arch-pocket-slot {
  position: relative;
  z-index: 3;
  margin-top: -128px;
  padding: 0 12px;
  overflow: hidden;
}

.arch-letter {
  position: relative;
  width: 100%;
  background-color: var(--night-sky);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(25, 54, 96, 0.72) 0%, rgba(11, 25, 47, 0.96) 62%, #081325 100%);
  border: 1px solid rgba(229, 197, 123, 0.36);
  border-radius: 190px 190px 18px 18px;
  padding: 36px 18px 26px;
  text-align: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
  will-change: transform, opacity;
}

.invitation-sheet.is-opening .arch-letter {
  animation: emergeFromPocket 0.96s var(--ease-expo) both;
}

@keyframes emergeFromPocket {
  from {
    transform: translate3d(0, 128px, 0) scale(0.95);
    opacity: 0.15;
  }
  to {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

.card-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.brand-line {
  width: 28px;
  height: 1px;
  background-color: var(--gold);
  opacity: 0.72;
}

.card-brand-text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--ivory);
}

/* Cinta carmesí superior (estilo referencia Ichis) */
.crimson-badge {
  display: inline-block;
  background-color: var(--crimson);
  background-image: linear-gradient(90deg, #6b151a 0%, #992429 50%, #6b151a 100%);
  color: var(--ivory);
  padding: 6px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.hero-title-serif {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--ivory);
  letter-spacing: 0.01em;
}

.hero-title-script {
  margin: -4px 0 -2px;
  font-family: var(--font-script);
  font-size: 64px;
  font-weight: 400;
  line-height: 0.92;
  color: var(--gold-bright);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

.hero-year-serif {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.04em;
}

.card-holly {
  margin: 8px auto 6px;
}

/* Escena Cinematográfica del Pesebre + Estrella de Belén */
.nativity-stage {
  position: relative;
  margin: 4px -10px 10px;
  overflow: hidden;
  border-radius: 12px;
}

.star-beacon {
  position: absolute;
  top: 2%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 232, 168, 0.38) 0%, rgba(255, 200, 96, 0.12) 45%, transparent 72%);
  pointer-events: none;
  z-index: 2;
  will-change: transform, opacity;
}

.manger-glow {
  position: absolute;
  bottom: 10%;
  left: 50%;
  width: 210px;
  height: 110px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 184, 77, 0.24) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  will-change: opacity;
}

.nativity-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  will-change: transform;
}

/* Cinta carmesí inferior con laureles flotantes */
.crimson-ribbon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 4px -4px 4px;
}

.ribbon-laurel {
  width: 28px;
  height: 22px;
  flex-shrink: 0;
  will-change: transform;
}

.ribbon-laurel-l {
  transform-origin: 90% 80%;
}

.ribbon-laurel-r {
  transform-origin: 10% 80%;
}

.crimson-ribbon {
  background-color: var(--crimson);
  background-image: linear-gradient(90deg, #681419 0%, #9b2429 48%, #681419 100%);
  color: var(--ivory);
  padding: 9px 22px;
  clip-path: polygon(2% 4%, 98% 0, 100% 94%, 0 100%);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.42));
}

/* Bolsillo frontal del sobre abierto */
.envelope-front-pocket {
  position: relative;
  z-index: 5;
  margin-top: -18px;
  min-height: 132px;
  background-color: var(--night-velvet);
  background-size: cover;
  background-position: bottom center;
  border: 1px solid rgba(229, 197, 123, 0.3);
  border-top: 1px solid rgba(244, 220, 161, 0.42);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.52);
  overflow: hidden;
  padding: 18px 18px 16px;
}

.pocket-wings {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(156deg, rgba(244, 220, 161, 0.08) 0%, transparent 45%),
    linear-gradient(204deg, rgba(244, 220, 161, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.pocket-bottom-fold {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 10, 20, 0.5) 100%);
  pointer-events: none;
}

.pocket-front-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.postmark-svg {
  width: 112px;
  height: 78px;
  opacity: 0.9;
  will-change: transform;
}

.ticket-seal {
  background-color: #0b1a33;
  background-image: linear-gradient(145deg, #132a4e 0%, #091529 100%);
  outline: 1px solid rgba(244, 220, 161, 0.5);
  padding: 8px 14px;
  text-align: center;
  min-width: 116px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.42));
  will-change: transform;
}

.ticket-seal-top {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.ticket-seal-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-bright);
  margin: 2px 0;
}

.ticket-seal-bot {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ivory-muted);
}

/* ============================================================================
   BLOQUE DE DETALLES Y BOTÓN DE CONFIRMACIÓN 1-TOQUE
   ============================================================================ */
.rsvp-night-panel {
  width: 100%;
  max-width: 416px;
  background-color: var(--night-sky);
  background-image: linear-gradient(180deg, rgba(16, 36, 68, 0.92) 0%, rgba(9, 20, 38, 0.98) 100%);
  border: 1px solid rgba(229, 197, 123, 0.34);
  border-radius: 18px;
  padding: 26px 22px 28px;
  text-align: center;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
  will-change: transform;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 300px;
  margin: 0 auto 24px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.detail-icon {
  width: 24px;
  height: 24px;
  color: var(--gold-bright);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.detail-icon svg {
  width: 22px;
  height: 22px;
}

.detail-sep {
  width: 1px;
  height: 20px;
  background-color: rgba(229, 197, 123, 0.45);
  flex-shrink: 0;
}

.detail-text {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: 0.01em;
}

/* Botón de Confirmación 1-Toque (Check sin formularios) */
.confirm-box {
  padding: 18px 14px 16px;
  border-top: 1px solid rgba(229, 197, 123, 0.2);
  border-bottom: 1px solid rgba(229, 197, 123, 0.2);
  margin-bottom: 18px;
}

.confirm-inv-tag {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
}

.btn-confirm-check {
  position: relative;
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(255, 243, 209, 0.55);
  border-radius: 999px;
  background-color: var(--gold);
  background-image: linear-gradient(135deg, #f3d997 0%, #d4aa52 52%, #b58833 100%);
  color: #161006;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
  transition: transform 0.22s var(--ease-expo), background-color 0.35s ease, box-shadow 0.25s ease;
}

.btn-confirm-check:active {
  transform: scale(0.97);
}

.btn-check-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(22, 16, 6, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-expo), background-color 0.3s ease;
}

.check-svg {
  width: 17px;
  height: 17px;
}

.btn-confirm-check.is-sending {
  opacity: 0.88;
  cursor: wait;
}

.btn-confirm-check.is-confirmed {
  background-color: var(--emerald-ok);
  background-image: linear-gradient(135deg, #2b8f64 0%, #1d6b4a 100%);
  border-color: rgba(185, 245, 214, 0.55);
  color: #f6fff9;
  cursor: default;
}

.btn-confirm-check.is-confirmed .btn-check-circle {
  background-color: rgba(255, 255, 255, 0.22);
  transform: scale(1.1);
}

.confirm-status {
  margin: 11px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ivory-muted);
}

.confirm-status.is-ok {
  color: var(--gold-bright);
  font-weight: 500;
}

.wa-fallback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: #1c5f41;
  border: 1px solid rgba(185, 245, 214, 0.45);
  color: #f6fff9;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.closing-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.orn-line {
  flex: 1;
  max-width: 68px;
  height: 1px;
  background-color: rgba(229, 197, 123, 0.45);
}

.closing-holly {
  margin: 0;
  width: 82px;
  height: 20px;
}

.closing-script {
  margin: 0;
  font-family: var(--font-script);
  font-size: 36px;
  line-height: 1.12;
  color: var(--ivory);
}

/* Pie discreto solo en invitación abierta */
.sheet-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 416px;
  padding: 4px 0 12px;
}

.footer-pill {
  background-color: rgba(14, 30, 56, 0.85);
  border: 1px solid rgba(229, 197, 123, 0.3);
  border-radius: 999px;
  color: var(--ivory-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-expo), color 0.2s ease, border-color 0.2s ease;
}

.footer-pill:hover {
  color: var(--gold-bright);
  border-color: rgba(244, 220, 161, 0.6);
}

.footer-pill:active {
  transform: scale(0.95);
}

/* Chispas doradas al abrir y confirmar */
.gold-spark {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold-bright);
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
}

/* ============================================================================
   ADAPTACIÓN NATIVA MÓVIL (100dvh PORTADA SIN BORDES + 344px SAFE)
   ============================================================================ */
@media (max-width: 520px) {
  .invitation-page {
    padding: 0;
    justify-content: flex-start;
  }

  .invitation-stage {
    max-width: 100%;
  }

  .envelope-cover {
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
    padding:
      calc(24px + env(safe-area-inset-top, 0px))
      20px
      calc(54px + env(safe-area-inset-bottom, 0px));
  }

  .envelope-cover.is-fading {
    left: 0;
    transform: scale(0.98);
  }

  .invitation-sheet {
    padding:
      calc(14px + env(safe-area-inset-top, 0px))
      12px
      calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .sprig-left,
  .sprig-right {
    width: 96px;
    top: 84px;
  }

  .sprig-left { left: -12px; }
  .sprig-right { right: -12px; }

  .hero-title-serif { font-size: 28px; }
  .hero-title-script { font-size: 56px; }
  .hero-year-serif { font-size: 23px; }
  .crimson-ribbon { font-size: 17px; padding: 8px 14px; }
  .closing-script { font-size: 32px; }
}

@media (max-width: 360px) {
  .arch-letter { padding: 30px 14px 22px; }
  .hero-title-serif { font-size: 25px; }
  .hero-title-script { font-size: 50px; }
  .detail-text { font-size: 15px; }
  .postmark-svg { width: 92px; height: 64px; }
  .ticket-seal { min-width: 100px; padding: 6px 10px; }
  .ticket-seal-num { font-size: 20px; }
}

/* Accesibilidad: Animaciones OFF o prefers-reduced-motion */
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .envelope-cover,
  .cover-flap,
  .seal-art,
  .invitation-sheet,
  .arch-letter,
  .btn-confirm-check {
    animation: none !important;
    transition: none !important;
  }
}
