/* ==========================================================================
   LAURA'S QUINCEAÑERA: NOCHE ESTRELLADA CELESTIAL
   Dirección Artística: Flujo Continuo Orgánico bajo las Estrellas
   Cero cajas rectangulares genéricas repetidas.
   ========================================================================== */

:root {
  /* Paleta Celestial Profunda */
  --space-dark: #030611;
  --space-navy: #060e22;
  --space-indigo: #0a1536;
  --space-nebula: #0f1f4d;

  /* Oro Real y Estelar */
  --gold-starlight: #fff8d6;
  --gold-foil: #f7d674;
  --gold-accent: #dfae39;
  --gold-burnished: #9e7520;
  --gold-gradient: linear-gradient(135deg, #fff9de 0%, #f7d674 35%, #dfae39 70%, #996e1a 100%);
  --gold-glow: 0 0 16px rgba(247, 214, 116, 0.45);
  --gold-glow-soft: 0 0 8px rgba(247, 214, 116, 0.25);

  /* Superficies y Bordes de Filigrana */
  --glass-ethereal: rgba(10, 21, 54, 0.55);
  --border-filigree: rgba(247, 214, 116, 0.3);
  --border-filigree-hover: rgba(247, 214, 116, 0.6);

  /* Textos */
  --text-pure: #ffffff;
  --text-parchment: #f8fafc;
  --text-gold: #f9e29b;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;

  /* Tipografías */
  --font-display: 'Cinzel Decorative', Georgia, serif;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-script: 'Alex Brush', cursive;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-clock: 'Russo One', sans-serif;

  /* Dimensiones y Radios */
  --radius-full: 9999px;
  --radius-pill: 28px;
  --radius-soft: 18px;
}

/* --------------------------------------------------------------------------
   RESET & LIENZO BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--space-dark);
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(20, 45, 110, 0.35) 0%, transparent 65%),
    radial-gradient(circle at 20% 45%, rgba(15, 30, 75, 0.3) 0%, transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(18, 38, 95, 0.3) 0%, transparent 55%),
    linear-gradient(to bottom, #030611 0%, #060e22 50%, #030611 100%);
  background-attachment: fixed;
  color: var(--text-parchment);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Flujo Celestial Móvil Central */
.celestial-flow {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 20px 18px 70px;
  position: relative;
  z-index: 10;
}

/* Accesibilidad y Foco */
:focus-visible {
  outline: 2px solid var(--gold-foil);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --------------------------------------------------------------------------
   CANVAS DE ESTRELLAS Y COMETAS
   -------------------------------------------------------------------------- */
#celestial-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   BOTÓN FLOTANTE DE MÚSICA COMPACTO (JOYA DORADA)
   -------------------------------------------------------------------------- */
.floating-music-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(6, 14, 34, 0.85);
  border: 1.5px solid rgba(247, 214, 116, 0.6);
  color: var(--gold-starlight);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), var(--gold-glow-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.floating-music-btn:hover {
  transform: scale(1.08);
  border-color: var(--gold-foil);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), var(--gold-glow);
}

.music-icon-wrap {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-note-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.music-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.wave-bar {
  width: 2.5px;
  background: var(--gold-foil);
  border-radius: 2px;
  height: 3px;
  transition: height 0.2s ease;
}

.floating-music-btn.playing .bar-1 {
  animation: waveBarPulse 1s infinite alternate ease-in-out 0.1s;
}
.floating-music-btn.playing .bar-2 {
  animation: waveBarPulse 0.8s infinite alternate ease-in-out 0.3s;
}
.floating-music-btn.playing .bar-3 {
  animation: waveBarPulse 1.2s infinite alternate ease-in-out 0.2s;
}

@keyframes waveBarPulse {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* --------------------------------------------------------------------------
   1. PANTALLA CEREMONIAL: SOBRE 3D CELESTIAL
   -------------------------------------------------------------------------- */
.ceremonial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 35%, #0b183b 0%, #030611 85%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 16px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.ceremonial-overlay.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ceremonial-stars {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 30px 40px, #ffffff, transparent),
    radial-gradient(2px 2px at 120px 180px, #f7d674, transparent),
    radial-gradient(1.5px 1.5px at 220px 90px, #ffffff, transparent),
    radial-gradient(2px 2px at 310px 270px, #fff8d6, transparent);
  background-size: 340px 340px;
  opacity: 0.65;
  pointer-events: none;
  animation: cosmicDrift 28s linear infinite;
}

@keyframes cosmicDrift {
  from { background-position: 0 0; }
  to { background-position: 0 -340px; }
}

.ceremonial-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  text-align: center;
  margin: auto;
}

.ceremonial-eyebrow {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold-foil);
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: var(--gold-glow-soft);
}

.ceremonial-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  filter: drop-shadow(0 2px 10px rgba(247, 214, 116, 0.45));
}

.envelope-scene {
  perspective: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.envelope-container {
  position: relative;
  width: 320px;
  height: 200px;
  margin: 0 auto;
  overflow: visible;
  transition: transform 0.4s ease;
}

.envelope-back-plate {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #07132c 0%, #030814 100%);
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 20px rgba(247, 214, 116, 0.15);
  z-index: 1;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  transform-origin: top center;
  transform-style: preserve-3d;
  transform: rotateX(0deg) translateZ(12px);
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 12;
}

.flap-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

.envelope-pocket {
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, #091738 0%, #050d22 100%);
  border: 1.5px solid rgba(247, 214, 116, 0.4);
  border-radius: 8px;
  z-index: 4;
  transform: translateZ(8px);
  pointer-events: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.pocket-crease-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 130px;
}

.pocket-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 -3px 5px rgba(0, 0, 0, 0.35));
}

.envelope-decorations {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.envelope-star {
  position: absolute;
  color: var(--gold-foil);
  font-size: 0.9rem;
  opacity: 0.85;
  text-shadow: var(--gold-glow);
}
.star-tl { top: 12px; left: 16px; }
.star-tr { top: 12px; right: 16px; }
.star-bl { bottom: 12px; left: 16px; }
.star-br { bottom: 12px; right: 16px; }

.envelope-monogram {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold-starlight);
  opacity: 0.85;
  text-shadow: var(--gold-glow-soft);
}

.envelope-seal-btn {
  position: absolute;
  top: 86px;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(14px);
  width: 62px;
  height: 62px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 15;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, filter 0.3s ease;
  min-height: 44px;
  min-width: 44px;
}

.envelope-seal-btn:hover {
  transform: translate(-50%, -50%) translateZ(14px) scale(1.08);
  filter: drop-shadow(0 0 14px rgba(247, 214, 116, 0.8));
}

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

.seal-glow-ring {
  position: absolute;
  inset: -5px;
  border: 1.5px solid rgba(247, 214, 116, 0.5);
  border-radius: 50%;
  animation: pulseSealAura 2.4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pulseSealAura {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 6px rgba(247, 214, 116, 0.25);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(247, 214, 116, 0.7);
    opacity: 0.95;
  }
}

.envelope-letter {
  position: absolute;
  top: 10px;
  left: 15px;
  width: 290px;
  background: linear-gradient(135deg, #091530 0%, #0d1e44 100%);
  border: 1.5px solid var(--gold-accent);
  border-radius: 8px;
  padding: 20px 16px 18px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(15px) translateZ(4px);
  transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.45s, 
              opacity 0.4s ease 0.4s, 
              visibility 0.4s ease 0.4s, 
              box-shadow 0.6s ease 0.5s;
}

.envelope-container.opening .envelope-flap {
  transform: rotateX(180deg) translateZ(-6px);
  z-index: 2;
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1), z-index 0.01s linear 0.4s;
}

.envelope-container.opening .envelope-seal-btn {
  transform: translate(-50%, -50%) translateZ(14px) scale(0.8);
  opacity: 0;
  pointer-events: none;
}

.envelope-container.opening .envelope-letter {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-140px) translateZ(35px);
  z-index: 25;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.85), var(--gold-glow);
}

.letter-border {
  border: 1px solid rgba(247, 214, 116, 0.3);
  border-radius: 4px;
  padding: 12px 10px;
}

.letter-crest {
  width: 40px;
  height: 24px;
  margin: 0 auto 6px;
}

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

.letter-subtitle {
  font-family: var(--font-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-foil);
  text-transform: uppercase;
}

.letter-honoree {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--gold-starlight);
  line-height: 1.1;
  margin: 2px 0 6px;
  text-shadow: 0 0 12px rgba(247, 214, 116, 0.4);
}

.letter-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--gold-foil);
  font-size: 0.7rem;
  margin: 6px 0;
}

.divider-line {
  width: 30px;
  height: 1px;
  background: var(--gold-gradient);
}

.letter-date-loc {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-pure);
  letter-spacing: 0.05em;
}

.letter-time-loc {
  font-size: 0.75rem;
  color: var(--gold-starlight);
  margin-top: 2px;
  font-weight: 500;
}

.letter-enter-btn {
  margin-top: 14px;
  width: 100%;
  padding: 10px 16px;
  background: var(--gold-gradient);
  border: none;
  border-radius: var(--radius-full);
  color: #030611;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), var(--gold-glow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.letter-enter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), var(--gold-glow);
}

.envelope-hint-wrapper {
  margin-top: 28px;
}

.envelope-hint-text {
  font-size: 0.85rem;
  color: var(--gold-starlight);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: pulseHint 2s infinite ease-in-out;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* ==========================================================================
   DISEÑO ORGÁNICO FLUIDO (ELIMINACIÓN TOTAL DE CAJAS REPETITIVAS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   ESCENA 1: HERO PORTRAIT
   -------------------------------------------------------------------------- */
.scene-hero {
  position: relative;
  text-align: center;
  margin-bottom: 50px;
  padding-top: 10px;
}

.hero-header-group {
  margin-bottom: 20px;
}

.hero-crown-wrap {
  width: 55px;
  height: 32px;
  margin: 0 auto 8px;
  filter: drop-shadow(0 2px 8px rgba(247, 214, 116, 0.6));
}

.crown-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-kicker {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold-foil);
  text-transform: uppercase;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 14vw, 4.4rem);
  line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(247, 214, 116, 0.5));
  margin: 4px 0 2px;
}

.hero-script {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--gold-starlight);
  line-height: 1;
  text-shadow: 0 0 12px rgba(247, 214, 116, 0.5);
}

/* Escenario del Retrato: Arco de Ensueño */
.hero-portrait-stage {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 0 auto 22px;
}

.portrait-arch {
  position: relative;
  border-radius: 175px 175px 24px 24px;
  overflow: hidden;
  border: 2px solid rgba(247, 214, 116, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), var(--gold-glow-soft);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
}

.portrait-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 65%, rgba(3, 6, 17, 0.75) 100%);
  pointer-events: none;
}

/* Estrellas Colgantes Laterales */
.hanging-star {
  position: absolute;
  top: -12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.star-left { left: 8px; }
.star-right { right: 8px; }

.thread {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent 0%, var(--gold-foil) 100%);
}

.star-glyph {
  color: var(--gold-foil);
  font-size: 1.1rem;
  text-shadow: var(--gold-glow);
  animation: floatStar 3s infinite ease-in-out alternate;
}

@keyframes floatStar {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(6px) rotate(8deg); }
}

.hero-date-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  background: rgba(8, 18, 44, 0.7);
  border: 1px solid rgba(247, 214, 116, 0.45);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.ribbon-sparkle {
  color: var(--gold-foil);
  font-size: 0.8rem;
  text-shadow: var(--gold-glow);
}

.ribbon-text {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-pure);
}

/* --------------------------------------------------------------------------
   ESCENA 2: DEDICATORIA DE PADRES (MEDALLÓN REAL)
   -------------------------------------------------------------------------- */
.scene-parents {
  text-align: center;
  margin-bottom: 54px;
  position: relative;
}

.scene-caption {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-foil);
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: var(--gold-glow-soft);
}

.parents-royalty-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold-starlight);
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* Medallón Oval Flotante */
.royal-medallion-wrap {
  position: relative;
  width: 170px;
  height: 230px;
  margin: 0 auto 22px;
}

.medallion-frame {
  width: 100%;
  height: 100%;
  border-radius: 50% / 50%;
  padding: 6px;
  background: linear-gradient(180deg, #fff7c2 0%, #dfae39 40%, #0a1536 80%, #f7d674 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--gold-glow-soft);
  position: relative;
}

.medallion-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% / 50%;
  display: block;
}

.medallion-filigree-top {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 6px rgba(247, 214, 116, 0.6));
}

.filigree-moon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.parents-poetic-note {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-parchment);
  line-height: 1.7;
  max-width: 360px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   ESCENA 3: REFLEXIÓN EMOTIVA
   -------------------------------------------------------------------------- */
.scene-quote {
  text-align: center;
  margin-bottom: 54px;
  padding: 0 10px;
}

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

.ornament-line {
  width: 45px;
  height: 1px;
  background: var(--gold-gradient);
}

.ornament-crown {
  font-size: 1.2rem;
  color: var(--gold-foil);
  filter: drop-shadow(0 0 6px rgba(247, 214, 116, 0.5));
}

.quote-statement {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--gold-starlight);
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(247, 214, 116, 0.3);
}

.quote-invitation {
  font-size: 0.98rem;
  color: var(--text-parchment);
  margin-bottom: 12px;
}

.highlight-guest {
  font-size: 1.15rem;
  color: var(--gold-foil);
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
  text-shadow: var(--gold-glow-soft);
}

.quote-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   ESCENA 4: CALENDARIO CELESTIAL & SAVE THE DATE
   -------------------------------------------------------------------------- */
.scene-calendar {
  text-align: center;
  margin-bottom: 54px;
}

.hanging-celestial-header {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.mobile-thread {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thread-line {
  width: 1px;
  height: 25px;
  background: var(--gold-foil);
}

.thread-moon {
  width: 24px;
  height: 24px;
  margin-top: 4px;
}

.celestial-tag {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--gold-foil);
}

.calendar-hero-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-pure);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  text-shadow: var(--gold-glow-soft);
}

/* Tablero Estelar */
.star-calendar-plate {
  position: relative;
  background: rgba(7, 16, 38, 0.65);
  border: 1.5px solid rgba(247, 214, 116, 0.4);
  border-radius: var(--radius-soft);
  padding: 22px 16px;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.plate-corner {
  position: absolute;
  color: var(--gold-foil);
  font-size: 0.9rem;
  text-shadow: var(--gold-glow);
}
.corner-1 { top: 6px; left: 8px; }
.corner-2 { top: 6px; right: 8px; }
.corner-3 { bottom: 6px; left: 8px; }
.corner-4 { bottom: 6px; right: 8px; }

.cal-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-foil);
  margin-bottom: 12px;
}

.cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-body .day {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-parchment);
  border-radius: 50%;
}

.cal-body .empty {
  visibility: hidden;
}

.gold-star-day {
  background: var(--gold-gradient);
  color: #030611 !important;
  font-weight: 800;
  position: relative;
  box-shadow: 0 0 16px rgba(247, 214, 116, 0.85);
  animation: pulseStarDay 2s infinite ease-in-out;
}

.star-badge {
  position: absolute;
  top: -6px;
  right: -2px;
  font-size: 0.65rem;
  color: #fff;
}

@keyframes pulseStarDay {
  0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(247, 214, 116, 0.6); }
  50% { transform: scale(1.1); box-shadow: 0 0 24px rgba(247, 214, 116, 0.95); }
}

.calendar-btn-cluster {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.celestial-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold-gradient);
  color: #030611;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), var(--gold-glow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 46px;
}

.celestial-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), var(--gold-glow);
}

.celestial-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(8, 18, 44, 0.6);
  border: 1.5px solid rgba(247, 214, 116, 0.45);
  color: var(--gold-starlight);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  min-height: 46px;
}

.celestial-btn-outline:hover {
  background: rgba(12, 26, 60, 0.8);
  border-color: var(--gold-foil);
}

/* --------------------------------------------------------------------------
   ESCENA 5: CUENTA REGRESIVA CON NÚMEROS FLOTANTES
   -------------------------------------------------------------------------- */
.scene-countdown {
  text-align: center;
  margin-bottom: 54px;
  position: relative;
}

.hanging-moons-decor {
  display: flex;
  justify-content: space-around;
  max-width: 280px;
  margin: 0 auto 12px;
}

.hanging-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gold-foil);
  font-size: 1.1rem;
}

.h-thread {
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, transparent, var(--gold-foil));
}

.countdown-hero-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  color: var(--gold-starlight);
  margin-bottom: 22px;
  text-shadow: var(--gold-glow-soft);
}

.cosmic-clock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.clock-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.num-glass {
  width: 58px;
  height: 62px;
  background: rgba(8, 18, 44, 0.7);
  border: 1.5px solid rgba(247, 214, 116, 0.45);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(247, 214, 116, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.clock-digit {
  font-family: var(--font-clock);
  font-size: 1.7rem;
  color: var(--gold-starlight);
  text-shadow: 0 0 10px rgba(247, 214, 116, 0.4);
}

.digit-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-foil);
  margin-top: 6px;
}

.clock-divider {
  font-family: var(--font-clock);
  font-size: 1.5rem;
  color: var(--gold-foil);
  margin-bottom: 22px;
}

.countdown-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   ESCENA 6: ITINERARIO / PROGRAM ESTELAR
   -------------------------------------------------------------------------- */
.scene-program {
  margin-bottom: 54px;
}

.program-header {
  text-align: center;
  margin-bottom: 28px;
}

.mini-constellation {
  color: var(--gold-foil);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  margin-bottom: 4px;
}

.program-script-title {
  font-family: var(--font-script);
  font-size: 3.2rem;
  color: var(--gold-starlight);
  line-height: 1;
  text-shadow: var(--gold-glow);
}

.celestial-timeline {
  position: relative;
  padding: 10px 0 10px 10px;
}

.constellation-axis {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-foil) 0%, rgba(247, 214, 116, 0.15) 100%);
}

.milestone-node {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
  position: relative;
}

.milestone-pin {
  width: 44px;
  height: 44px;
  background: rgba(7, 16, 38, 0.95);
  border: 1.5px solid var(--gold-foil);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(247, 214, 116, 0.35);
  z-index: 2;
}

.pin-svg {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.milestone-body {
  flex-grow: 1;
  padding-top: 4px;
}

.milestone-time {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-foil);
}

.milestone-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-pure);
  margin: 1px 0 3px;
  letter-spacing: 0.05em;
}

.milestone-loc {
  font-size: 0.82rem;
  color: var(--gold-starlight);
  font-weight: 600;
}

.milestone-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   ESCENA 7: GALERÍA DE RECUERDOS (FOTOGRAFÍAS REALES)
   -------------------------------------------------------------------------- */
.scene-gallery {
  text-align: center;
  margin-bottom: 54px;
}

.gallery-hero-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-pure);
  margin-bottom: 4px;
}

.gallery-hint {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.celestial-gallery-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-tile-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease;
  min-height: 44px;
  min-width: 44px;
}

.gallery-tile-btn:hover {
  transform: translateY(-4px);
}

.tile-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(247, 214, 116, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  background: #060e22;
}

.tile-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.tile-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 6px;
  background: linear-gradient(to top, rgba(3, 6, 17, 0.95), transparent);
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--gold-starlight);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
   ESCENA 8: SEDE & LOGÍSTICA
   -------------------------------------------------------------------------- */
.scene-location {
  text-align: center;
  margin-bottom: 54px;
}

.venue-monogram {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
}

.venue-pin-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.venue-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--gold-starlight);
  margin-bottom: 4px;
}

.venue-sub {
  font-size: 0.92rem;
  color: var(--text-parchment);
  margin-bottom: 20px;
}

.venue-action-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 46px;
}

.pill-btn.primary-gold {
  background: var(--gold-gradient);
  color: #030611;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), var(--gold-glow-soft);
}

.pill-btn.secondary-dark {
  background: rgba(8, 18, 44, 0.7);
  border: 1.5px solid rgba(247, 214, 116, 0.4);
  color: var(--gold-starlight);
}

.pill-btn.text-copy {
  background: rgba(6, 14, 34, 0.5);
  border: 1px dashed rgba(247, 214, 116, 0.35);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
}

.copy-tag {
  background: rgba(247, 214, 116, 0.2);
  color: var(--gold-foil);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  margin-left: 4px;
}

/* --------------------------------------------------------------------------
   ESCENA 9: LLUVIA DE SOBRES & DETALLES
   -------------------------------------------------------------------------- */
.scene-gifts {
  text-align: center;
  margin-bottom: 54px;
}

.celestial-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sep-wing {
  width: 40px;
  height: 1px;
  background: var(--gold-gradient);
}

.sep-gem {
  color: var(--gold-foil);
  font-size: 1.1rem;
}

.gifts-headline {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-pure);
  margin-bottom: 14px;
}

.gifts-message {
  font-size: 0.92rem;
  color: var(--text-parchment);
  line-height: 1.6;
  margin-bottom: 22px;
}

.gift-options-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.gift-feature-pill {
  background: rgba(8, 18, 44, 0.6);
  border: 1px solid rgba(247, 214, 116, 0.3);
  border-radius: 16px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--gold-foil);
  flex-shrink: 0;
}

.feature-info h4 {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--gold-starlight);
  margin-bottom: 2px;
}

.feature-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.zelle-account {
  color: var(--text-pure) !important;
  font-weight: 600;
  margin: 4px 0;
}

.btn-quick-copy {
  background: rgba(247, 214, 116, 0.15);
  border: 1px solid rgba(247, 214, 116, 0.4);
  color: var(--gold-foil);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.dress-code-badge {
  background: rgba(6, 14, 34, 0.7);
  border: 1px solid rgba(247, 214, 116, 0.35);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
}

.dress-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-foil);
  display: block;
  margin-bottom: 4px;
}

.dress-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.dress-note em {
  color: var(--gold-starlight);
}

/* --------------------------------------------------------------------------
   ESCENA 10: RSVP (EL FORMATO EMBLEMÁTICO DE LA REFERENCIA)
   -------------------------------------------------------------------------- */
.scene-rsvp {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 4px;
}

.rsvp-calligraphy-hero {
  margin-bottom: 12px;
}

.rsvp-sub {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--gold-foil);
  text-transform: uppercase;
  margin-bottom: -4px;
}

.rsvp-big-text {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 16vw, 5rem);
  line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.08em;
  filter: drop-shadow(0 4px 18px rgba(247, 214, 116, 0.5));
}

.rsvp-tagline {
  font-size: 0.92rem;
  color: var(--text-parchment);
  line-height: 1.6;
  margin-bottom: 16px;
}

.rsvp-date-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-foil);
  border-bottom: 1.5px solid var(--gold-foil);
  padding-bottom: 4px;
  margin-bottom: 24px;
}

/* Formulario Cósmico sin cajas cuadradas pesadas */
.cosmic-rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.cosmic-input-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cosmic-input-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-starlight);
}

.cosmic-input-field input,
.cosmic-input-field select,
.cosmic-input-field textarea {
  width: 100%;
  background: rgba(7, 16, 38, 0.85);
  border: 1px solid rgba(247, 214, 116, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  min-height: 46px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cosmic-input-field input:focus,
.cosmic-input-field select:focus,
.cosmic-input-field textarea:focus {
  outline: none;
  border-color: var(--gold-foil);
  box-shadow: 0 0 12px rgba(247, 214, 116, 0.35);
}

.input-error {
  font-size: 0.75rem;
  color: #f87171;
  min-height: 14px;
}

.rsvp-button-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

/* El botón ovalado dorado emblemático: CONFIRM */
.btn-confirm-oval {
  width: 100%;
  padding: 14px 20px;
  background: var(--gold-gradient);
  border: none;
  border-radius: var(--radius-full);
  color: #030611;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-confirm-oval:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 22px rgba(247, 214, 116, 0.7);
}

.btn-confirm-oval:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-wa-flow {
  width: 100%;
  padding: 12px 20px;
  background: rgba(37, 211, 102, 0.15);
  border: 1.5px solid #25d366;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-wa-flow:hover:not(:disabled) {
  background: rgba(37, 211, 102, 0.28);
  transform: translateY(-2px);
}

.wa-ico {
  width: 20px;
  height: 20px;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(3, 6, 17, 0.3);
  border-top-color: #030611;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-confirm-oval.loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.rsvp-foot-note {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 6px;
}

.rsvp-success-state {
  background: rgba(7, 16, 38, 0.9);
  border: 1.5px solid var(--gold-foil);
  border-radius: var(--radius-soft);
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), var(--gold-glow);
}

.rsvp-success-state.hidden {
  display: none;
}

.success-crown {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.success-heading {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--gold-starlight);
  margin-bottom: 8px;
}

.success-message {
  font-size: 0.95rem;
  color: var(--text-parchment);
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-reset-state {
  background: rgba(8, 18, 44, 0.7);
  border: 1px solid var(--gold-foil);
  color: var(--gold-foil);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   ESCENA 11: CIERRE & THANK YOU
   -------------------------------------------------------------------------- */
.scene-footer {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(247, 214, 116, 0.2);
}

.footer-tiara {
  width: 44px;
  height: 26px;
  margin: 0 auto 10px;
  filter: drop-shadow(0 2px 6px rgba(247, 214, 116, 0.5));
}

.footer-script-thanks {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--gold-starlight);
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: var(--gold-glow-soft);
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-pure);
  text-transform: uppercase;
}

.footer-parents-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.footer-stars-row {
  color: var(--gold-foil);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  margin: 14px 0 8px;
}

.footer-date-mark {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--gold-foil);
}

/* --------------------------------------------------------------------------
   MODAL LIGHTBOX
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 13, 0.94);
  backdrop-filter: blur(8px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid var(--gold-foil);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), var(--gold-glow);
}

.lightbox-close-btn {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 50%;
  color: #030611;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}

/* --------------------------------------------------------------------------
   TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast-notify {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(8, 18, 44, 0.95);
  border: 1px solid var(--gold-foil);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  color: var(--gold-starlight);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), var(--gold-glow-soft);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

.toast-notify.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   REVELADO SUAVE CON INTERSECTION OBSERVER
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   RESPONSIVE & PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .celestial-flow {
    max-width: 480px;
    padding: 30px 20px 80px;
  }
}

@media (max-width: 360px) {
  .envelope-container {
    width: 290px;
    height: 185px;
  }

  .envelope-letter {
    width: 260px;
    padding: 16px 12px;
  }

  .envelope-seal-btn {
    top: 75px;
    width: 54px;
    height: 54px;
  }

  .hero-name {
    font-size: 2.8rem;
  }

  .num-glass {
    width: 50px;
    height: 54px;
  }
  .clock-digit {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .envelope-container.opening .envelope-flap {
    transform: none !important;
  }

  .envelope-container.opening .envelope-letter {
    transform: translateY(-80px) !important;
  }
}
