/* ==========================================================================
   ESTILOS PRINCIPALES - EXPERIENCIA REGALO SILVIA
   Paleta inspirada en Lotus Thai Spa: Oro envejecido, negro obsidiana y bronce.
   ========================================================================== */

:root {
  /* Paleta cromática extraída de la tarjeta */
  --bg-deep: #080807;
  --bg-surface: #12110e;
  --bg-envelope: #191714;
  --bg-envelope-dark: #100f0d;
  
  --gold-light: #f5e2b3;
  --gold-primary: #d4af37;
  --gold-warm: #c5a059;
  --gold-dark: #8c6d32;
  --gold-shadow: rgba(212, 175, 55, 0.25);
  
  --text-primary: #f8f6f0;
  --text-muted: #b5aba0;
  --text-gold: #e2c88f;

  /* Tipografías */
  --font-display: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;

  /* Transiciones y curvas de animación fluidas */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y caja */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #1e1b15 0%, #0d0c0a 60%, #050504 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(3.5rem, 8vh, 6rem) 1rem calc(2rem + env(safe-area-inset-bottom));
}

/* Canvas de fondo para partículas mágicas sutiles */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Contenedor general */
.page-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Encabezado superior
   -------------------------------------------------------------------------- */
.main-header {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.lotus-header-icon {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.mini-lotus {
  width: 44px;
  height: 36px;
  color: var(--gold-warm);
  filter: drop-shadow(0 2px 8px var(--gold-shadow));
  animation: floatLotus 4s ease-in-out infinite;
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 2vw, 0.78rem);
  letter-spacing: 0.25em;
  color: var(--gold-warm);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.recipient-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.2);
}

/* --------------------------------------------------------------------------
   Indicación interactiva (Toca el sobre)
   -------------------------------------------------------------------------- */
.tap-hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding: 0.45rem 1.2rem;
  background: rgba(25, 23, 20, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 20px rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: opacity 0.5s ease, transform 0.5s ease;
  animation: pulseHint 2.5s infinite;
}

.tap-icon {
  color: var(--gold-primary);
  font-size: 0.8rem;
}

.tap-text {
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 2.2vw, 0.85rem);
  letter-spacing: 0.12em;
  color: var(--gold-light);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Escenario 3D del Sobre
   -------------------------------------------------------------------------- */
.experience-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1400px;
}

.envelope-scene {
  width: 100%;
  max-width: 480px;
  height: 310px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: margin-bottom 0.8s var(--ease-smooth);
}

.experience-stage.is-opened {
  padding-top: 1.5rem;
}

/* Cuando se abre: amplio margen superior (10rem+) para que la solapa de 160px
   y el loto no invadan la cabecera, y altura acotada para que la flecha quede pegada abajo */
.envelope-scene.is-opened {
  height: 290px;
  min-height: 290px;
  margin-top: clamp(9.5rem, 17vh, 12rem);
  margin-bottom: 0.5rem;
}

.envelope {
  position: relative;
  width: 92%;
  max-width: 460px;
  height: 290px;
  transform-style: preserve-3d;
  cursor: pointer;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 25px rgba(140, 109, 50, 0.2));
  transition: transform 0.6s var(--ease-smooth), filter 0.6s ease;
}

.envelope:hover:not(.is-opened) {
  transform: translateY(-4px) scale(1.015);
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 35px rgba(212, 175, 55, 0.35));
}

/* Pared trasera interior del sobre */
.envelope-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1b1915 0%, #11100e 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.85);
  border: 1px solid rgba(212, 175, 55, 0.25);
  z-index: 1;
}

.envelope-inner-texture {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(#d4af37 1px, transparent 1px);
  background-size: 16px 16px;
}

/* --------------------------------------------------------------------------
   Solapa Superior (Apertura 3D - Ritmo cinematográfico y deliberado)
   -------------------------------------------------------------------------- */
.flap.top-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  transform-origin: top center;
  transform-style: preserve-3d;
  z-index: 5;
  transition: transform 1.75s cubic-bezier(0.25, 0.1, 0.25, 1), z-index 0.4s ease;
}

.flap-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.6));
}

.flap-bg {
  fill: #1a1815;
}

.flap-border {
  fill: none;
  stroke: url(#goldGradientFlap, #c5a059);
  stroke: #c5a059;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Bolsillo Frontal (Cubre la tarjeta hasta abrir)
   -------------------------------------------------------------------------- */
.envelope-pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

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

.pocket-left {
  fill: #171512;
  filter: drop-shadow(4px 0 8px rgba(0,0,0,0.5));
}

.pocket-right {
  fill: #151310;
  filter: drop-shadow(-4px 0 8px rgba(0,0,0,0.5));
}

.pocket-bottom {
  fill: #12100d;
  filter: drop-shadow(0 -4px 10px rgba(0,0,0,0.6));
}

.pocket-line {
  fill: none;
  stroke: #a88846;
  stroke-width: 1.5;
  opacity: 0.75;
}

.bottom-line {
  stroke: #c5a059;
  stroke-width: 2;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Sello Dorado de Cera (Wax Seal)
   -------------------------------------------------------------------------- */
.wax-seal {
  position: absolute;
  top: 145px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  z-index: 6;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
  user-select: none;
}

.seal-glow {
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.45) 0%, transparent 70%);
  border-radius: 50%;
  animation: sealPulse 3s ease-in-out infinite;
}

.seal-body {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd978 0%, #c59f48 50%, #7d5e1b 100%);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.7),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffe8a3;
}

.seal-svg {
  width: 82%;
  height: 82%;
}

.seal-rim {
  fill: none;
  stroke: #735314;
  stroke-width: 2;
}

.seal-inner-rim {
  fill: none;
  stroke: #ffd978;
  stroke-width: 1;
}

.seal-lotus {
  fill: #61440d;
}

.seal-text {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  fill: #543b09;
}

/* --------------------------------------------------------------------------
   Flor de Loto Floreciente (Animación mágica al abrir)
   -------------------------------------------------------------------------- */
.blooming-lotus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.1);
  width: 120px;
  height: 95px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: 
    transform 2.2s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lotus-glow {
  position: absolute;
  inset: -25px;
  background: radial-gradient(circle, rgba(255, 230, 140, 0.55) 0%, rgba(212, 175, 55, 0.2) 50%, transparent 75%);
  border-radius: 50%;
  filter: blur(8px);
}

.lotus-svg {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(255, 225, 120, 0.75));
}

.lotus-petal {
  fill: rgba(18, 16, 13, 0.9);
  stroke: #f5df9b;
  stroke-width: 2.2;
  transition: transform 2.0s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease;
  transform-origin: 100px 130px;
}

.lotus-core {
  fill: #ffd978;
  filter: drop-shadow(0 0 6px #fff);
}

/* --------------------------------------------------------------------------
   Tarjeta de Regalo (Gift Card)
   -------------------------------------------------------------------------- */
.gift-card-wrapper {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.88);
  width: 90%;
  max-width: 420px;
  aspect-ratio: 2481 / 1754; /* Proporción original de la tarjeta */
  z-index: 2;
  opacity: 0;
  transition: 
    transform 2.0s cubic-bezier(0.16, 1, 0.3, 1),
    width 2.0s cubic-bezier(0.16, 1, 0.3, 1),
    max-width 2.0s cubic-bezier(0.16, 1, 0.3, 1),
    top 2.0s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.2s ease,
    z-index 0.5s ease;
}

.gift-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.8),
    0 0 0 1.5px rgba(212, 175, 55, 0.4);
  background-color: #0b0a08;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gift-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.9),
    0 0 25px rgba(212, 175, 55, 0.45),
    0 0 0 2px var(--gold-light);
}

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

.card-shimmer {
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 240, 180, 0.15) 45%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 240, 180, 0.15) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.card-tap-zoom-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 13, 11, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
}

/* --------------------------------------------------------------------------
   ESTADOS DE APERTURA (IS-OPENED) - COREOGRAFÍA ESTILO APPLE
   -------------------------------------------------------------------------- */

/* 1. Solapa gira 180 grados con cadencia pausada y elegante */
.envelope.is-opened .top-flap {
  transform: rotateX(180deg);
  z-index: 1; /* Pasa detrás de la tarjeta */
  transition-delay: 0.25s;
}

/* 2. Sello se disuelve con suavidad */
.envelope.is-opened .wax-seal {
  transform: translate(-50%, -60px) scale(0.7);
  opacity: 0;
  pointer-events: none;
  transition-delay: 0.05s;
}

/* 3. La flor de loto florece y corona pausadamente sobre la tarjeta */
.envelope.is-opened .blooming-lotus {
  transform: translate(-50%, -285%) scale(0.85);
  opacity: 1;
  z-index: 10;
  transition-delay: 0.95s;
  animation: lotusCrownFloat 5s ease-in-out infinite alternate;
  animation-delay: 2.8s;
}

.envelope.is-opened .petal-outer-left {
  transform: rotate(-24deg) translate(-10px, -5px);
  transition-delay: 1.1s;
}
.envelope.is-opened .petal-outer-right {
  transform: rotate(24deg) translate(10px, -5px);
  transition-delay: 1.1s;
}
.envelope.is-opened .petal-mid-left {
  transform: rotate(-12deg) translate(-5px, -3px);
  transition-delay: 1.25s;
}
.envelope.is-opened .petal-mid-right {
  transform: rotate(12deg) translate(5px, -3px);
  transition-delay: 1.25s;
}

/* 4. La tarjeta asciende con expectación y elegancia */
.envelope.is-opened .gift-card-wrapper {
  top: -45px;
  width: 100%;
  max-width: 480px;
  z-index: 8;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  transition-delay: 1.75s;
}

.envelope.is-opened .card-shimmer {
  animation: shimmerSweep 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 3.5s;
}

.envelope.is-opened .card-tap-zoom-hint {
  opacity: 0.9;
  transition-delay: 3.8s;
}

/* El sobre desciende ligeramente para que la tarjeta sea la protagonista */
.envelope.is-opened {
  cursor: default;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.9));
}

/* Ocultar la indicación de tocar con colapso fluido */
.experience-stage.is-opened .tap-hint {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-15px) scale(0.9);
  height: 0;
  margin-bottom: 0;
  padding: 0;
  border-color: transparent;
  transition: all 0.4s ease;
}

/* --------------------------------------------------------------------------
   Flecha Indicadora Inferior (Glow dorado que respira)
   -------------------------------------------------------------------------- */
.scroll-down-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  cursor: pointer;
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease, transform 0.8s ease;
  user-select: none;
  z-index: 10;
}

.scroll-down-indicator.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.scroll-down-indicator.scrolled-past {
  opacity: 0;
  pointer-events: none;
}

.scroll-arrow-svg {
  width: 36px;
  height: 22px;
  color: rgba(226, 200, 143, 0.65);
  animation: arrowBreathe 2.6s ease-in-out infinite;
}

@keyframes arrowBreathe {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.45;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.25));
  }
  50% {
    transform: translateY(8px);
    opacity: 0.95;
    filter: drop-shadow(0 0 15px rgba(255, 230, 140, 0.85));
  }
}

/* --------------------------------------------------------------------------
   Panel Posterior: Dedicatoria y Acciones (Aparición serena)
   -------------------------------------------------------------------------- */
.post-reveal-panel {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 1rem;
}

.post-reveal-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Tarjeta de Dedicatoria */
.dedication-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(26, 23, 19, 0.95) 0%, rgba(16, 14, 12, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 1.8rem 1.6rem;
  text-align: center;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.7),
    inset 0 0 20px rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(10px);
  position: relative;
}

.dedication-ornament {
  color: var(--gold-warm);
  font-size: 0.9rem;
  letter-spacing: 0.5em;
  opacity: 0.8;
}

.top-ornament {
  margin-bottom: 0.6rem;
}

.bottom-ornament {
  margin-top: 1rem;
}

.dedication-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--gold-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.dedication-message {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3.2vw, 1.3rem);
  line-height: 1.7;
  color: #ede7dc;
  font-style: italic;
  margin-bottom: 1.4rem;
}

.dedication-signers {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 0.9rem;
}

.signature-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gold-warm);
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.signature-names {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.6vw, 1.05rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   Botones de Acción
   -------------------------------------------------------------------------- */
.action-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 2.3vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #b8912e 50%, #8c6e26 100%);
  color: #12100a;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3), 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffd978 0%, #d4af37 50%, #9e7d2c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
  background: rgba(26, 23, 19, 0.85);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-secondary:hover {
  background: rgba(40, 36, 30, 0.95);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed rgba(212, 175, 55, 0.25);
  font-size: 0.8rem;
  min-height: 42px;
}

.btn-ghost:hover {
  color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(255, 255, 255, 0.03);
}

/* --------------------------------------------------------------------------
   Pie de página
   -------------------------------------------------------------------------- */
.main-footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #7d756c;
  line-height: 1.6;
}

.booking-notice {
  margin-top: 0.25rem;
  color: var(--gold-warm);
}

.booking-notice strong {
  color: var(--gold-light);
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Modal Lightbox (Pantalla Completa)
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 1rem;
}

.lightbox-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 3, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  width: 100%;
  max-width: 820px;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(212, 175, 55, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.lightbox-caption {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--gold-light);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Animaciones Keyframes
   -------------------------------------------------------------------------- */
@keyframes floatLotus {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 0.75; }
}

@keyframes lotusCrownFloat {
  0% { transform: translate(-50%, -285%) scale(0.85) rotate(0deg); }
  100% { transform: translate(-50%, -292%) scale(0.88) rotate(1deg); }
}

@keyframes shimmerSweep {
  0% { left: -150%; }
  100% { left: 150%; }
}

/* --------------------------------------------------------------------------
   Ajustes Responsive para Móvil (< 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  body {
    padding-top: clamp(2.5rem, 6vh, 4rem);
  }
  
  .main-header {
    margin-bottom: 1.5rem;
  }
  
  .envelope-scene {
    height: 260px;
    max-width: 380px;
  }

  .envelope-scene.is-opened {
    height: 250px;
    min-height: 250px;
    margin-top: clamp(8.5rem, 15vh, 10.5rem);
    margin-bottom: 0.25rem;
  }

  .envelope {
    height: 250px;
  }

  .wax-seal {
    top: 125px;
    width: 60px;
    height: 60px;
  }

  .flap.top-flap {
    height: 140px;
  }

  .envelope.is-opened .gift-card-wrapper {
    top: -30px;
    max-width: 95vw;
  }

  .dedication-card {
    padding: 1.4rem 1.1rem;
  }
}
