.scene-diorama, #experience, body { background: #142b25; }
.scene-diorama {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(ellipse, #435b45, #142b25 78%);
}
.camera-viewport {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 580px);
  height: 100%;
  min-height: 100%;
  background: #6c8466;
}
.music-symbol { font: 24px Georgia, serif; }
.depth-haze {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 43%, #fff1bb, transparent 72%);
}
.card-bubble {
  width: min(350px, calc(100vw - 48px)); filter: none !important;
  --dawn: 1;
}
.card-bubble .cloud-shape, .card-bubble .clean-watercolor-content {
  width: 100%; max-width: 100% !important; padding: 25px 20px !important;
  border-radius: 24px; gap: 10px !important;
  background: rgba(13, 39, 32, .92);
  border: 1px solid rgba(233, 209, 143, .5);
  box-shadow: 0 15px 50px #0a211a40;
}
.card-bubble .cloud-shape::before, .card-bubble .cloud-shape::after { display: none; }
.card-bubble :is(h1,h2,p,span,a,u) {
  color: #f6edcd !important;
  text-shadow: 0 0 calc(var(--dawn) * 15px) #dfc47960 !important;
}
.card-bubble :is(.bubble-eyebrow,.clean-eyebrow,.bubble-pill-date) { color: #e5c982 !important; }
.card-bubble .clean-text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.card-bubble .footer-pill { background: transparent; font-size: calc((.62rem) * var(--invitation-text-scale, 1)); }
.journey-nav {
  display: none !important;
}
.journey-nav button, .journey-restart {
  border: 0; background: transparent; color: #f6edcd; cursor: pointer; min-width: 44px; min-height: 44px; font-size: calc((22px) * var(--invitation-text-scale, 1));
}
.journey-nav button:disabled { opacity: .25; cursor: default; }
.journey-label { font-family: var(--font-cinzel); font-size: calc((10px) * var(--invitation-text-scale, 1)); letter-spacing: 1.5px; text-align: center; }
.journey-track { position: absolute; height: 2px; bottom: 0; left: 28px; right: 28px; overflow: hidden; }
.journey-track span { display: block; width: 100%; height: 100%; background: #e5c982; transform: scaleX(0); transform-origin: left; }
.journey-restart { font-family: var(--font-cinzel); font-size: calc((11px) * var(--invitation-text-scale, 1)); text-decoration: underline; }
.journey-final-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
.journey-final-links a { font-size: calc((15px) * var(--invitation-text-scale, 1)); }
.music-btn { background: #102d25ed; color: #e5c982; border-color: #d6bf7970; }
:focus-visible { outline: 2px solid #efd596; outline-offset: 4px; }
@media (max-height: 560px) {
  .card-bubble .cloud-shape, .card-bubble .clean-watercolor-content { padding: 12px 16px !important; gap: 3px !important; }
  .card-bubble :is(h1,h2) { font-size: calc((1.8rem) * var(--invitation-text-scale, 1)); }
  .card-bubble { top: 43% !important; }
  .journey-nav { bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .welcome-unroll-clip { clip-path: none !important; -webkit-clip-path: none !important; }
  .welcome-roll-edge { display: none !important; }
}

/* Bosque en seis planos: fondo y cinco pasos de vegetación. */
.forest-stage, .forest-plane { position: absolute; inset: 0; pointer-events: none; }
.forest-stage { overflow: hidden; background: #203f30; }
.forest-background, .forest-plane img { width: 100%; height: 100%; object-fit: cover; display: block; }
.forest-background { transform-origin: 50% 48%; }
.forest-plane { transform-origin: 50% 46%; }
.forest-near-trees, .forest-near-canopy {
  position: absolute; inset: 0; pointer-events: none;
}
.near-tree {
  position: absolute; top: 0; bottom: 0; width: 62%; overflow: hidden;}
.near-tree-left {
  left: 0; transform-origin: 100% 46%;
}
.near-tree-left img {
  position: absolute; left: 0; top: 0;
  width: calc(100% / 0.62); height: 100%;
  object-fit: cover;
  transform-origin: 0% 46%;
  transform: scale(2.4);
}
.near-tree-right {
  right: 0; transform-origin: 0% 46%;
}
.near-tree-right img {
  position: absolute; right: 0; top: 0;
  width: calc(100% / 0.62); height: 100%;
  object-fit: cover;
  transform-origin: 100% 46%;
  transform: scale(2.8);
}
.near-leaves {
  position: absolute; inset: 0; pointer-events: none;}
.near-leaves-left {
  transform-origin: 0% 15%;
}
.near-leaves-left img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: 0% 0%;
  transform: scale(1.42);
}
.near-leaves-right {
  transform-origin: 100% 15%;
}
.near-leaves-right img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: 100% 0%;
  transform: scaleX(-1.42) scaleY(1.42);
}
.forest-plane-mid { transform-origin: 50% 45%; }
.forest-plane-mid-far {
  position: absolute;
  inset: -6%;
  transform-origin: 50% 44%;
}
.forest-plane-mid-far img { width: 100%; height: 100%; object-fit: cover; }
.forest-plane-distant {
  position: absolute;
  inset: -12%;
  transform-origin: 50% 43%;
}
.forest-plane-distant img { width: 100%; height: 100%; object-fit: cover; }
.forest-finale-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;}
.forest-finale-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}
.final-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 11;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 245, 215, 0.42) 0%, rgba(255, 225, 150, 0.22) 42%, rgba(20, 50, 40, 0.28) 72%, transparent 95%);
  mix-blend-mode: screen;}
.forest-finale-character {
  position: absolute;
  bottom: 0;
  left: auto !important;
  right: -35% !important;
  transform: none !important;
  width: 118% !important;
  max-width: 650px !important;
  height: min(85vh, 800px) !important;
  pointer-events: none !important;
  z-index: 95 !important;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;}
.forest-finale-character img {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(6, 16, 12, 0.6));
}
.forest-garden, .forest-passage { position: absolute; inset: 0; pointer-events: none; }
.forest-garden {
  --opening: 12%;
  mask-image: radial-gradient(ellipse var(--opening) var(--opening) at 50% 48%, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse var(--opening) var(--opening) at 50% 48%, black 60%, transparent 100%);
}
.forest-reception {
  mask-image: none !important;
  -webkit-mask-image: none !important;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.reception-plane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 48%;}
.reception-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  pointer-events: none;
  transform-origin: 50% 48%;}
.reception-lanterns-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;}
.lantern-halo {
  animation: lanternPulse 4.2s ease-in-out infinite alternate;
}
.lantern-halo.halo-pillar {
  animation-duration: 5.2s;
  animation-delay: -1.6s;
}
.lantern-halo.halo-subtle {
  animation-duration: 3.6s;
  animation-delay: -2.4s;
}
@keyframes lanternPulse {
  0% {
    opacity: 0.70;
  }
  100% {
    opacity: 1.0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lantern-halo {
    animation: none !important;
  }
}
.forest-garden img, .forest-passage img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 48%; }
.forest-passage img { position: absolute; inset: 0; }
.forest-encounter { position: absolute; inset: 0; pointer-events: none; }
.encounter-princess {
  position: absolute; height: 49%; width: auto; max-width: 53%; object-fit: contain;
  right: 1%; bottom: 11%; transform-origin: 20% 50%;
  filter: drop-shadow(0 8px 8px #17251866);}
.encounter-frog {
  position: absolute; width: 23%; left: 10%; bottom: 14%; transform-origin: 80% 50%;}
.encounter-frog img { display: block; width: 100%; }
.frog-perch { clip-path: inset(54% 0 0 0); }
.frog-breath { position: absolute; inset: 0; clip-path: inset(0 0 46% 0); transform-origin: 50% 54%; }
.is-awake .frog-breath { animation: frogBreath 3.8s ease-in-out infinite; }
@keyframes frogBreath { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.018); } }
.frog-water { position: absolute; left: 3%; bottom: 11%; width: 36%; height: 20%; background: radial-gradient(ellipse, #103f35d9, #103f3540 50%, transparent 72%); }
/* =========================================================================
   📜 HOJA DECORATIVA / ESCENA INICIAL ("EL BOSQUE GUARDA UNA HISTORIA…")
   ========================================================================= */
.forest-welcome {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(345px, 82vw);
  max-width: 370px;
  z-index: 90; /* Por encima de la vegetación para que ninguna rama cruce los textos */
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;}

.welcome-leaf-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 1310;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 28px rgba(9, 24, 18, 0.7))
          drop-shadow(0 4px 10px rgba(9, 24, 18, 0.45));
}

/* Contenedor con máscara de recorte vertical para el desenrollado suave */
.welcome-unroll-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 0 calc((1 - var(--unroll, 1)) * 100%) 0);
  -webkit-clip-path: inset(0 0 calc((1 - var(--unroll, 1)) * 100%) 0);
  pointer-events: none;
  z-index: 2;
}

/* Borde enrollado cilíndrico en el límite inferior de revelado */
.welcome-roll-edge {
  position: absolute;
  left: 2%;
  width: 96%;
  height: 16px;
  top: calc(var(--unroll, 0) * 100%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;}

.welcome-roll-cylinder {
  position: relative;
  width: 100%;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(142, 112, 75, 0.90) 0%,
    rgba(218, 195, 156, 0.96) 18%,
    rgba(254, 248, 235, 1) 40%,
    rgba(255, 252, 244, 1) 50%,
    rgba(238, 218, 182, 0.98) 68%,
    rgba(182, 150, 110, 0.95) 88%,
    rgba(110, 80, 48, 0.92) 100%
  );
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.8) inset,
    0 -1px 2px rgba(85, 60, 32, 0.55) inset,
    0 4px 10px rgba(8, 24, 16, 0.55),
    0 1px 3px rgba(8, 24, 16, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(125, 95, 60, 0.7);
}

.welcome-roll-shadow {
  position: absolute;
  top: 55%;
  left: 3%;
  width: 94%;
  height: 8px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(8, 24, 16, 0.40) 0%, transparent 78%);
  pointer-events: none;
}

.welcome-leaf-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

.welcome-leaf-content {
  position: absolute;
  inset: 0;
  /* Márgenes interiores amplios para evitar los adornos esquineros y la doblez */
  padding: 21% 17% 18% 17%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  z-index: 2;
}

.welcome-eyebrow {
  font-family: var(--font-old-london);
  font-size: calc((clamp(0.92rem, 3.2vw, 1.15rem)) * var(--invitation-text-scale, 1));
  font-weight: normal;
  letter-spacing: 0.5px;
  text-transform: none;
  color: #1a4232; /* Verde bosque elegante */
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  margin-bottom: 5px;
}

.welcome-phrase {
  font-family: var(--font-old-london);
  font-size: calc((clamp(1.42rem, 5vw, 2.05rem)) * var(--invitation-text-scale, 1));
  line-height: 1.15;
  font-style: normal;
  font-weight: normal;
  color: #0d261c; /* Verde bosque muy oscuro sobre el papel */
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.65);
  margin: 4px 0 10px;
  max-width: 88%;
}

.welcome-hint {
  font-family: var(--font-serif);
  font-size: calc((clamp(0.95rem, 3vw, 1.12rem)) * var(--invitation-text-scale, 1));
  font-weight: normal;
  font-style: italic;
  letter-spacing: 0.5px;
  text-transform: none;
  color: #2b5542;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}
.card-bubble .cloud-shape, .card-bubble .clean-watercolor-content {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.card-bubble::before {
  content: ''; position: absolute; inset: -45px -30px; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse, #fff2d2f5 0%, #fff2d2d9 32%, #fff2d26e 53%, transparent 72%);
}
.card-bubble :is(h1,h2,p,span,a,u), .card-bubble :is(.bubble-eyebrow,.clean-eyebrow,.bubble-pill-date) {
  color: #203623 !important;
  text-shadow: 0 1px 9px #fff6d8, 0 0 calc(var(--dawn) * 20px) #fff0bd !important;
}
.card-bubble .bubble-title {
  font-family: var(--font-old-london) !important;
  font-size: calc((clamp(2.5rem, 8.5vw, 3.8rem)) * var(--invitation-text-scale, 1)) !important;
  font-style: normal !important;
  font-weight: normal !important;
}
.card-bubble .journey-restart { color: #203623; }
.card-bubble .footer-pill { border: 0; }
.journey-nav { background: #102d25c7; }
.reserved-color { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.reserved-color i { flex: 0 0 19px; width: 19px; height: 19px; border-radius: 50%; background: #246548; border: 1px solid #c6a65e; box-shadow: 0 0 0 3px #24654815; }

/* ══════════════════════════════════════════════════════════════════════════
   TARJETA DE FECHA: HOJA DE CUENTO CALENDARIO (#card2)
   ══════════════════════════════════════════════════════════════════════════ */
#card2::before {
  display: none !important;
}

#card2.date-calendar-card {
  width: min(290px, 56%) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  pointer-events: none;
  z-index: 25;}

.date-calendar-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 1310;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 28px rgba(9, 24, 18, 0.7))
          drop-shadow(0 4px 10px rgba(9, 24, 18, 0.45));
}

.date-calendar-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

.date-calendar-content {
  position: absolute;
  inset: 0;
  /* Márgenes interiores amplios para que los textos no invadan los adornos ni dobleces */
  padding: 19% 15% 16% 15%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  z-index: 2;
}

/* 1. Día de la semana (subtítulo) */
#card2 .cal-day-name {
  font-family: var(--font-old-london);
  font-size: calc((clamp(1rem, 3.5vw, 1.25rem)) * var(--invitation-text-scale, 1));
  font-weight: normal;
  letter-spacing: 0.5px;
  text-transform: none;
  color: #1a4232 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6) !important;
  margin: 0;
  line-height: 1.1;
}

/* 2. Número del día (muy grande y protagonista) */
#card2 .cal-day-number {
  font-family: var(--font-old-london);
  font-size: calc((clamp(3.2rem, 11vw, 4.3rem)) * var(--invitation-text-scale, 1));
  line-height: 0.88;
  font-weight: normal;
  color: #0c241a !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65) !important;
  margin: 1px 0 2px 0;
  letter-spacing: 0;
}

/* 3. Mes (subtítulo) */
#card2 .cal-month-name {
  font-family: var(--font-old-london);
  font-size: calc((clamp(1.05rem, 3.5vw, 1.3rem)) * var(--invitation-text-scale, 1));
  font-weight: normal;
  letter-spacing: 0.5px;
  text-transform: none;
  color: #1a4232 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6) !important;
  margin: 0;
  line-height: 1.1;
}

/* 4. Año (más pequeño) */
#card2 .cal-year-name {
  font-family: var(--font-old-london);
  font-size: calc((clamp(0.92rem, 3vw, 1.12rem)) * var(--invitation-text-scale, 1));
  font-style: normal;
  font-weight: normal;
  letter-spacing: 1px;
  color: #2b5542 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5) !important;
  margin: 1px 0 0 0;
  line-height: 1.1;
}

/* 5. Cuenta regresiva al pie de la hoja */
#card2 .cal-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(26, 66, 50, 0.22);
  width: 88%;
}

#card2 .cal-cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 26px;
}

#card2 .cal-cd-val {
  font-family: var(--font-old-london);
  font-size: calc((clamp(0.88rem, 2.8vw, 1.05rem)) * var(--invitation-text-scale, 1));
  font-weight: normal;
  color: #0c241a !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6) !important;
  line-height: 1.05;
}

#card2 .cal-cd-tag {
  font-family: var(--font-serif);
  font-size: calc((clamp(0.48rem, 1.3vw, 0.58rem)) * var(--invitation-text-scale, 1));
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2b5542 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5) !important;
  margin-top: 1px;
}

#card2 .cal-cd-sep {
  font-family: var(--font-old-london);
  font-size: calc((clamp(0.72rem, 2.2vw, 0.85rem)) * var(--invitation-text-scale, 1));
  font-weight: normal;
  color: #3f6854 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5) !important;
  margin-bottom: 6px;
  user-select: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   TARJETA 3: CEREMONIA RELIGIOSA — LETRERO DE MADERA EN EL CAMINO (#card3)
   ══════════════════════════════════════════════════════════════════════════ */
#card3::before {
  display: none !important; /* Elimina fondo de niebla completamente */
}

#card3.forest-sign-card {
  width: min(440px, 92vw) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  pointer-events: none;
  z-index: 25;}

.forest-sign-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 28px rgba(5, 18, 10, 0.65))
          drop-shadow(0 4px 10px rgba(5, 18, 10, 0.4));
}

.forest-sign-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* Contenedor posicionado con precisión ÚNICAMENTE sobre la tabla verde,
   sin invadir los postes ni los adornos dorados de las 4 esquinas */
.forest-sign-content {
  position: absolute;
  top: 15.5%;
  left: 12%;
  right: 12%;
  height: 40.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding: 0 4px;
  z-index: 2;
}

/* 1. Encabezado de ceremonia (Subtítulo - Old London) */
#card3 .sign-eyebrow {
  font-family: var(--font-old-london);
  font-size: calc((clamp(0.95rem, 3.2vw, 1.2rem)) * var(--invitation-text-scale, 1));
  font-weight: normal;
  letter-spacing: 1.2px;
  text-transform: none;
  color: #eedca5 !important;
  text-shadow: 0 1px 3px rgba(3, 15, 8, 0.95) !important;
  margin: 0;
  line-height: 1.15;
}

/* 2. Título de la ceremonia (Old London) */
#card3 .sign-venue {
  font-family: var(--font-old-london);
  font-size: calc((clamp(1.65rem, 5.2vw, 2.25rem)) * var(--invitation-text-scale, 1));
  font-weight: normal;
  letter-spacing: 0.5px;
  text-transform: none;
  color: #fffaf0 !important;
  text-shadow: 0 2px 4px rgba(2, 12, 6, 0.95), 0 0 10px rgba(255, 245, 220, 0.25) !important;
  margin: 2px 0;
  line-height: 1.15;
  max-width: 96%;
  word-wrap: break-word;
}

/* 3. Hora y detalles (Cormorant Garamond) */
#card3 .sign-time {
  font-family: var(--font-serif);
  font-size: calc((clamp(0.92rem, 2.8vw, 1.05rem)) * var(--invitation-text-scale, 1));
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #ecdab2 !important;
  text-shadow: 0 1px 3px rgba(3, 15, 8, 0.95) !important;
  margin: 0;
  line-height: 1.25;
}

/* 4. Enlace a Google Maps (Cormorant Garamond) */
.sign-action {
  margin-top: 3px;
  display: flex;
  justify-content: center;
}

#card3 .sign-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 2px 8px;
  color: #fff3d1 !important;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: calc((clamp(0.92rem, 2.8vw, 1.05rem)) * var(--invitation-text-scale, 1));
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(238, 220, 165, 0.65);
  text-shadow: 0 1px 3px rgba(2, 12, 6, 0.95) !important;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#card3 .sign-map-link span {
  color: #fff3d1 !important;
  text-shadow: 0 1px 3px rgba(2, 12, 6, 0.95) !important;
}

#card3 .sign-map-link i {
  font-size: calc((0.65rem) * var(--invitation-text-scale, 1));
  color: #ffdf85 !important;
  text-shadow: 0 1px 3px rgba(2, 12, 6, 0.95) !important;
}

#card3 .sign-map-link:hover,
#card3 .sign-map-link:focus-visible {
  color: #ffffff !important;
  border-bottom-color: #ffe082;
  transform: translateY(-1px);
}

#card3 .sign-map-link:hover span {
  color: #ffffff !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   TARJETA 4: RECEPCIÓN Y FIESTA EN SALÓN NOCTURNO (#card4)
   ══════════════════════════════════════════════════════════════════════════ */

/* Desactivar niebla blanca y resplandor */
#card4::before,
#card4 .cloud-shape::before,
#card4 .cloud-shape::after {
  display: none !important;
}

#card4.reception-night-card {
  position: absolute;
  top: 32px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  width: min(380px, calc(100% - 32px)) !important;
  max-width: 400px;
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  pointer-events: auto;
}

/* Degradado azul noche muy tenue con bordes totalmente difuminados (sin forma de caja) */
#card4.reception-night-card::after {
  content: '';
  position: absolute;
  inset: -16px -28px;
  background: radial-gradient(
    ellipse 85% 75% at 50% 50%,
    rgba(6, 14, 25, 0.65) 0%,
    rgba(7, 17, 30, 0.44) 45%,
    rgba(9, 20, 34, 0.15) 72%,
    transparent 100%
  );
  filter: blur(18px);
  -webkit-filter: blur(18px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.reception-night-content {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 12px;
  box-sizing: border-box;
}

/* Neutralizar cualquier resplandor excesivo heredado de .card-bubble */
#card4.reception-night-card :is(h1, h2, p, span, a, u) {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85) !important;
}

/* 1. Subtítulo de recepción (Old London) */
#card4 .reception-eyebrow {
  display: block;
  font-family: var(--font-old-london);
  font-size: calc((clamp(0.95rem, 3.2vw, 1.2rem)) * var(--invitation-text-scale, 1));
  font-weight: normal;
  letter-spacing: 1.2px;
  text-transform: none;
  color: #d6ba6d !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

/* 2. Nombre del salón / Título (Old London) */
#card4 .reception-venue {
  display: block;
  font-family: var(--font-old-london);
  font-size: calc((clamp(1.65rem, 5.2vw, 2.25rem)) * var(--invitation-text-scale, 1));
  font-weight: normal;
  letter-spacing: 0.5px;
  color: #fffaf0 !important;
  text-shadow: 0 2px 6px rgba(0, 3, 8, 0.9) !important;
  margin: 0 0 6px 0;
  line-height: 1.15;
  max-width: 95%;
  word-wrap: break-word;
}

/* 3. Hora (Cormorant Garamond) */
#card4 .reception-time {
  display: block;
  font-family: var(--font-serif);
  font-size: calc((clamp(0.95rem, 2.9vw, 1.1rem)) * var(--invitation-text-scale, 1));
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #f7eedb !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85) !important;
  margin: 0 0 3px 0;
  line-height: 1.25;
}

/* 4. Dirección (Cormorant Garamond) */
#card4 .reception-address {
  display: block;
  font-family: var(--font-serif);
  font-size: calc((clamp(0.88rem, 2.6vw, 1.0rem)) * var(--invitation-text-scale, 1));
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #dfd4be !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85) !important;
  margin: 0 0 10px 0;
  line-height: 1.35;
  max-width: 92%;
  word-wrap: break-word;
}

/* 5. Enlace discreto (Cormorant Garamond) */
#card4 .reception-action {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

#card4 .reception-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 4px 8px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fff4d4 !important;
  font-family: var(--font-serif);
  font-size: calc((clamp(0.92rem, 2.8vw, 1.05rem)) * var(--invitation-text-scale, 1));
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 196, 128, 0.75);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.25s ease;
}

#card4 .reception-link span {
  color: #fff4d4 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  text-decoration: none !important;
}

#card4 .reception-link i {
  font-size: calc((0.72rem) * var(--invitation-text-scale, 1));
  color: #d6ba6d !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  transition: transform 0.2s ease;
}

#card4 .reception-link:hover,
#card4 .reception-link:focus-visible {
  color: #ffffff !important;
  border-bottom-color: #ffd875;
  transform: translateY(-1px);
}

#card4 .reception-link:hover span {
  color: #ffffff !important;
}

#card4 .reception-link:hover i {
  transform: scale(1.15);
}

/* ══════════════════════════════════════════════════════════════════════════
   TARJETA 5: CÓDIGO DE VESTIMENTA EN SALÓN NOCTURNO (#card5)
   ══════════════════════════════════════════════════════════════════════════ */
#card5::before,
#card5 .cloud-shape::before,
#card5 .cloud-shape::after {
  display: none !important;
}

#card5.vestimenta-night-card {
  position: absolute;
  top: 22px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  width: min(390px, calc(100% - 32px)) !important;
  max-width: 420px;
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  pointer-events: auto;
}

/* Degradado azul noche muy tenue con bordes totalmente difuminados (sin forma de caja) */
#card5.vestimenta-night-card::after {
  content: '';
  position: absolute;
  inset: -14px -24px;
  background: radial-gradient(
    ellipse 85% 75% at 50% 50%,
    rgba(6, 14, 25, 0.70) 0%,
    rgba(7, 17, 30, 0.48) 45%,
    rgba(9, 20, 34, 0.15) 72%,
    transparent 100%
  );
  filter: blur(18px);
  -webkit-filter: blur(18px);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

#card5.vestimenta-night-card :is(h1, h2, p, span, a, u) {
  text-shadow: none !important;
}

#card5 .vestimenta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}

#card5 .vestimenta-eyebrow {
  font-family: var(--font-old-london);
  font-size: calc((clamp(0.95rem, 3.2vw, 1.2rem)) * var(--invitation-text-scale, 1));
  letter-spacing: 1.5px;
  text-transform: none;
  color: #e5c982 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
  margin: 0;
  line-height: 1.2;
}

#card5 .vestimenta-type {
  font-family: var(--font-old-london);
  font-size: calc((clamp(1.65rem, 5.2vw, 2.25rem)) * var(--invitation-text-scale, 1));
  font-weight: normal;
  color: #fdfaf3 !important;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 20px rgba(229, 201, 130, 0.25) !important;
  margin: 0;
  line-height: 1.2;
}

#card5 .vestimenta-suggestion {
  font-family: var(--font-serif) !important;
  font-size: calc((clamp(0.95rem, 3vw, 1.12rem)) * var(--invitation-text-scale, 1)) !important;
  font-style: normal;
  color: #f4ecdc !important;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
  margin: 2px 0 4px;
  line-height: 1.25;
  max-width: 330px;
}

#card5 .reserved-color {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  padding: 4px 14px;
  background: rgba(10, 24, 20, 0.55);
  border: 1px solid rgba(214, 191, 121, 0.35);
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#card5 .reserved-color i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #246548;
  border: 1px solid #c6a65e;
  box-shadow: 0 0 6px rgba(36, 101, 72, 0.8);
  flex-shrink: 0;
}

#card5 .reserved-color .bubble-dress-note {
  font-family: var(--font-cormorant);
  font-size: calc((0.92rem) * var(--invitation-text-scale, 1));
  color: #e5c982 !important;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   RINCÓN NOCTURNO EXCLUSIVO DE CÓDIGO DE VESTIMENTA (.forest-vestimenta)
   ══════════════════════════════════════════════════════════════════════════ */
.forest-vestimenta {
  mask-image: none !important;
  -webkit-mask-image: none !important;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 15;
}

.vestimenta-plane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 65%;}

.vestimenta-scene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.vestimenta-exhibitor-g {
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.75))
          drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

@media (max-width: 500px) {
  #card2.date-calendar-card {
    width: min(310px, 82vw) !important;
  }
  #card2 .cal-day-number {
    font-size: calc((3.5rem) * var(--invitation-text-scale, 1));
  }
  #card3.forest-sign-card {
    width: min(390px, 94vw) !important;
  }
  #card3 .sign-venue {
    font-size: calc((clamp(0.88rem, 3.8vw, 1.12rem)) * var(--invitation-text-scale, 1));
  }
  #card3 .sign-eyebrow,
  #card3 .sign-time {
    font-size: calc((clamp(0.56rem, 2.2vw, 0.66rem)) * var(--invitation-text-scale, 1));
  }
}
@media (max-height: 560px) {
  .forest-welcome { width: min(280px, 72vw); top: 46%; }
  .welcome-phrase { font-size: calc((1.25rem) * var(--invitation-text-scale, 1)); margin: 2px 0 6px; }
  .welcome-eyebrow { font-size: calc((0.82rem) * var(--invitation-text-scale, 1)); margin-bottom: 2px; }
  .welcome-hint {
  font-family: var(--font-serif);
  font-size: calc((clamp(0.95rem, 3vw, 1.12rem)) * var(--invitation-text-scale, 1));
  font-weight: normal;
  font-style: italic;
  letter-spacing: 0.5px;
  text-transform: none;
  color: #2b5542;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}
  #card2.date-calendar-card { width: min(240px, 50%) !important; }
  #card2 .cal-day-name { font-size: calc((0.85rem) * var(--invitation-text-scale, 1)); }
  #card2 .cal-day-number { font-size: calc((2.5rem) * var(--invitation-text-scale, 1)); }
  #card2 .cal-month-name { font-size: calc((0.88rem) * var(--invitation-text-scale, 1)); }
  #card2 .cal-year-name { font-size: calc((0.78rem) * var(--invitation-text-scale, 1)); }
  #card2 .cal-countdown { margin-top: 3px; padding-top: 3px; }
  #card2 .cal-cd-val { font-size: calc((0.78rem) * var(--invitation-text-scale, 1)); }
  .card-bubble .bubble-title {
  font-family: var(--font-old-london) !important;
  font-size: calc((clamp(2.5rem, 8.5vw, 3.8rem)) * var(--invitation-text-scale, 1)) !important;
  font-style: normal !important;
  font-weight: normal !important;
}
  .encounter-princess { height: 52%; right: 0; bottom: 14%; }
  .encounter-frog { width: 14%; left: 6%; bottom: 14%; }
  .card-bubble { width: 55%; left: 44% !important; top: 34% !important; }
  .card-bubble .clean-place { font-size: calc((1.5rem) * var(--invitation-text-scale, 1)); }
  #card3.forest-sign-card {
    width: min(310px, 68vw) !important;
    left: 50% !important;
    top: 66% !important;
  }
  #card3 .sign-venue {
    font-size: calc((0.95rem) * var(--invitation-text-scale, 1));
    margin: 1px 0;
  }
  #card3 .sign-eyebrow,
  #card3 .sign-time {
    font-size: calc((0.58rem) * var(--invitation-text-scale, 1));
  }
  #card3 .sign-map-link {
    min-height: 24px;
    font-size: calc((0.55rem) * var(--invitation-text-scale, 1));
    margin-top: 1px;
  }
  #card4.reception-night-card {
    top: 14px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    width: min(360px, calc(100% - 24px)) !important;
  }
  #card4 .reception-venue {
    font-size: calc((1.45rem) * var(--invitation-text-scale, 1)) !important;
    margin-bottom: 2px !important;
  }
  #card4 .reception-eyebrow {
    font-size: calc((0.62rem) * var(--invitation-text-scale, 1)) !important;
    margin-bottom: 2px !important;
  }
  #card4 .reception-time {
    font-size: calc((0.72rem) * var(--invitation-text-scale, 1)) !important;
    margin-bottom: 1px !important;
  }
  #card4 .reception-address {
    font-size: calc((0.62rem) * var(--invitation-text-scale, 1)) !important;
    margin-bottom: 4px !important;
  }
  #card4 .reception-link {
    min-height: 28px !important;
    padding: 2px 6px !important;
    font-size: calc((0.62rem) * var(--invitation-text-scale, 1)) !important;
  }
  #card5.vestimenta-night-card {
    top: 10px !important;
    width: min(360px, calc(100% - 24px)) !important;
  }
  #card5 .vestimenta-eyebrow {
    font-size: calc((0.68rem) * var(--invitation-text-scale, 1)) !important;
  }
  #card5 .vestimenta-type {
    font-size: calc((1.08rem) * var(--invitation-text-scale, 1)) !important;
  }
  #card5 .vestimenta-suggestion {
  font-family: var(--font-serif) !important;
  font-size: calc((clamp(0.95rem, 3vw, 1.12rem)) * var(--invitation-text-scale, 1)) !important;
  font-style: normal;
  color: #f4ecdc !important;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
  margin: 2px 0 4px;
  line-height: 1.25;
  max-width: 330px;
}
  #card5 .reserved-color {
    padding: 2px 8px !important;
    margin-top: 1px !important;
  }
  #card5 .reserved-color .bubble-dress-note {
    font-size: calc((0.78rem) * var(--invitation-text-scale, 1)) !important;
  }
}

/* =========================================================================
   🌙 CIERRE FINAL CON CONFIRMACIÓN RSVP (#finalScreen)
   ========================================================================= */
#finalScreen.final-screen-card {
  top: 2% !important;
  left: 2% !important;
  transform: none !important;
  width: min(325px, 78vw) !important;
  max-width: 350px !important;
  z-index: 85;
  pointer-events: none;
}

.final-leaf-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 1310;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 14px 28px rgba(4, 14, 10, 0.75))
          drop-shadow(0 4px 10px rgba(4, 14, 10, 0.45));
}

.final-leaf-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

#finalScreen .final-leaf-content {
  position: absolute;
  inset: 0;
  padding: 15% 20% 13% 10% !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  gap: 2px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 2;
}

#finalScreen::before,
#finalScreen::after {
  display: none !important;
}

#finalScreen .bubble-final-title {
  font-family: var(--font-old-london) !important;
  font-size: calc((clamp(1.42rem, 4.6vw, 1.88rem)) * var(--invitation-text-scale, 1)) !important;
  letter-spacing: 0.5px !important;
  font-weight: normal !important;
  color: #0c241a !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7) !important;
  margin: 0 !important;
  line-height: 1.14 !important;
}

#finalScreen .bubble-final-sub {
  font-family: var(--font-old-london) !important;
  font-size: calc((clamp(0.85rem, 2.8vw, 1.06rem)) * var(--invitation-text-scale, 1)) !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
  line-height: 1.18 !important;
  color: #1a4232 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6) !important;
  margin: 1px 0 3px !important;
}

#finalScreen .bubble-cat-sub {
  font-family: var(--font-serif) !important;
  font-size: calc((clamp(0.74rem, 2.2vw, 0.86rem)) * var(--invitation-text-scale, 1)) !important;
  line-height: 1.25 !important;
  max-width: 96% !important;
  color: #243f33 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5) !important;
  margin: 0 0 4px !important;
}

#finalScreen .rsvp-cta {
  display: inline-block !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 3px 0 !important;
  margin: 3px auto 4px !important;
  color: #0c241a !important;
  font-family: var(--font-serif) !important;
  font-size: calc((clamp(0.96rem, 3vw, 1.1rem)) * var(--invitation-text-scale, 1)) !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  border-bottom: 1.5px solid #1a4232 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: color 0.25s, border-color 0.25s !important;
}

#finalScreen .rsvp-cta:hover {
  color: #2d6b4f !important;
  border-bottom-color: #2d6b4f !important;
}

#finalScreen .journey-restart {
  order: 6 !important;
  font-family: var(--font-serif) !important;
  font-size: calc((clamp(0.8rem, 2.4vw, 0.9rem)) * var(--invitation-text-scale, 1)) !important;
  color: #243f33 !important;
  text-decoration: underline !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5) !important;
  min-height: 24px !important;
  display: inline-block !important;
  margin: 2px auto !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

#finalScreen .footer-box {
  order: 10 !important;
  margin: 3px 0 0 !important;
}

#finalScreen .footer-pill,
#finalScreen #footerCreditText {
  font-family: var(--font-serif) !important;
  font-size: calc((clamp(0.68rem, 2.1vw, 0.76rem)) * var(--invitation-text-scale, 1)) !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: #3b5a4a !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5) !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

@media (min-width: 768px) {
  .forest-finale-character {
    right: 2% !important;
    max-width: 460px !important;
    height: min(78vh, 750px) !important;
  }
  #finalScreen.final-screen-card {
    width: 320px !important;
    top: 3% !important;
    left: 4% !important;
  }
  #finalScreen .bubble-final-title {
    font-size: calc((1.85rem) * var(--invitation-text-scale, 1)) !important;
  }
}
@media (max-height: 560px) {
  #finalScreen.final-screen-card {
    width: 44% !important;
    left: 4% !important;
    top: 2% !important;
  }
  #finalScreen .bubble-final-title { font-size: calc((1.35rem) * var(--invitation-text-scale, 1)) !important; }
  #finalScreen .cloud-shape { gap: 2px !important; padding: 4px 8px !important; }
  .forest-finale-character {
    height: 88vh !important;
    right: 0 !important;
    max-width: 340px !important;
  }
}

/* =========================================================================
   💡 LUCIÉRNAGA PROTAGONISTA
   ========================================================================= */
.firefly-tracker {
  position: absolute;
  top: 0;
  left: 0;
  width: 68px;
  height: 92px;
  pointer-events: none !important;
  z-index: 95;  transform: translate(-50%, -50%);
}

.firefly-bob {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fireflyHover 3.2s ease-in-out infinite alternate;
}

@keyframes fireflyHover {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(3px, -4px) rotate(3deg); }
  50%  { transform: translate(-3px, -2px) rotate(-2deg); }
  75%  { transform: translate(4px, -5px) rotate(3deg); }
  100% { transform: translate(-1px, 1px) rotate(-1deg); }
}

.firefly-body {
  position: relative;
  width: 50px;
  height: 74px;
}

.firefly-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(255, 220, 80, 0.45)) drop-shadow(0 4px 8px rgba(16, 32, 20, 0.45));
}

/* Resplandor cálido pulsante en el abdomen de la luciérnaga (abajo a la derecha) */
.firefly-glow {
  position: absolute;
  left: 61%;
  top: 75%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffde7 20%, #ffe082 50%, rgba(255, 179, 0, 0.55) 75%, transparent 100%);
  filter: blur(4px);
  pointer-events: none;
  z-index: 1;
  animation: fireflyAbdomenPulse 2.4s ease-in-out infinite alternate;
}

@keyframes fireflyAbdomenPulse {
  0% {
    transform: translate(-50%, -50%) scale(calc(0.85 * var(--glow-scale, 1)));
    opacity: calc(0.7 * var(--glow-scale, 1));
    box-shadow: 0 0 calc(16px * var(--glow-scale, 1)) calc(8px * var(--glow-scale, 1)) rgba(255, 213, 79, 0.7);
  }
  50% {
    transform: translate(-50%, -50%) scale(calc(1.25 * var(--glow-scale, 1)));
    opacity: calc(1 * var(--glow-scale, 1));
    box-shadow: 0 0 calc(28px * var(--glow-scale, 1)) calc(12px * var(--glow-scale, 1)) rgba(255, 224, 130, 0.9);
  }
  100% {
    transform: translate(-50%, -50%) scale(calc(0.92 * var(--glow-scale, 1)));
    opacity: calc(0.8 * var(--glow-scale, 1));
    box-shadow: 0 0 calc(20px * var(--glow-scale, 1)) calc(9px * var(--glow-scale, 1)) rgba(255, 213, 79, 0.75);
  }
}

@media (min-width: 768px) {
  .firefly-tracker {
    width: 82px;
    height: 112px;
  }
  .firefly-body {
    width: 60px;
    height: 89px;
  }
  .firefly-glow {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .firefly-bob { animation: none !important; }
  .firefly-glow { animation: none !important; opacity: 0.8; }
  .ambient-fireflies-container,
  .ambient-firefly { display: none !important; }
}

/* =========================================================================
   ✨ LUCIÉRNAGAS AMBIENTALES (PEQUEÑAS Y ESPORÁDICAS)
   ========================================================================= */
.ambient-fireflies-container {
  position: absolute;
  inset: 0;
  pointer-events: none !important;
  z-index: 92;
  overflow: hidden;
}

.ambient-firefly {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fffdf0;
  box-shadow: 0 0 10px 4px rgba(255, 226, 120, 0.85),
              0 0 20px 8px rgba(255, 183, 3, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;  transform: translate(-50%, -50%);
}



/* Button-driven edition: one fixed stage, without a scroll runway or pin. */
html, body { height: 100%; overflow: hidden; background: #142b25; overscroll-behavior: none; }
#sceneDiorama {
  position: fixed; inset: 0; width: 100%;
  height: 100vh; height: 100dvh; min-height: 0; max-height: none;
  overflow: hidden;
}
.camera-viewport { height: 100%; min-height: 0; perspective: none; }
.forest-stage { bottom: 0; }
.journey-nav {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px; align-items: center;
  position: fixed; z-index: 10000;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  width: min(550px, calc(100% - 24px));
  padding: 6px 8px 9px;
  border: 1px solid #d6bf7970; border-radius: 18px;
  background: #102d25f5;
  box-shadow: 0 5px 18px #0004;
}
.journey-nav button {
  min-height: 46px; padding: 0 9px; border-radius: 11px;
  font: 600 14px system-ui, sans-serif; color: #f6edcd;
  touch-action: manipulation;
}
.journey-nav button:not(:disabled):active { background: #e5c98220; }
.journey-label { color: #f6edcd; font: 12px/1.3 system-ui, sans-serif; letter-spacing: 0; }
.journey-track { left: 16px; right: 16px; bottom: 4px; border-radius: 2px; background: #e5c98225; }
@media (max-width: 768px), (pointer: coarse) {
  .forest-garden, .forest-chapel { mask-image: none; -webkit-mask-image: none; }
  .welcome-leaf-wrapper, .date-calendar-wrapper, .forest-sign-wrapper,
  .final-leaf-wrapper, .vestimenta-exhibitor-g, .forest-finale-character img,
  .firefly-img { filter: none; }
  .near-tree, .near-leaves, .forest-plane-mid,
  .forest-plane-mid-far, .forest-plane-distant { will-change: transform; }
}
@media (max-height: 500px) {
  .journey-nav { width: min(550px, calc(100% - 24px)); bottom: 6px; padding-top: 2px; padding-bottom: 6px; }
  .journey-nav button { min-height: 40px; }
}

.asset-retry { border: 1px solid #142b25; border-radius: 12px; padding: 12px 18px; background: #142b25; color: #f6edcd; font: 16px system-ui; cursor: pointer; }

/* Discreet edge controls; the illustration remains unobstructed. */
.journey-nav {
  display: flex !important; justify-content: space-between;
  width: min(556px, calc(100% - 28px));
  bottom: max(14px, env(safe-area-inset-bottom));
  padding: 0; gap: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; pointer-events: none;
}
.journey-nav button {
  display: grid; place-items: center;
  width: 46px; height: 46px; min-height: 46px; min-width: 46px;
  padding: 0; border: 1px solid #f6edcd45; border-radius: 50%;
  background: #102d2570; color: #f6edcd;
  font: 26px/1 system-ui, sans-serif; pointer-events: auto;
}
.journey-nav button:last-of-type { margin-left: auto; }
.journey-nav button[hidden] { display: none; }
.journey-nav button:disabled { opacity: .35; }
.journey-nav .journey-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.journey-nav .journey-track { display: none; }

/* Keep the final portrait beside and slightly over the lower edge of the leaf. */
@media (max-width: 767px) and (min-height: 561px) {
  .forest-finale-character {
    right: -6% !important;
    height: 70% !important;
  }
}


/* Thirty percent larger reading text on phones; preserve desktop typography. */
@media (max-width: 767px) { :root { --invitation-text-scale: 1.3; } }
.journey-nav { justify-content: center; gap: 16px; width: auto; }
.journey-nav button:last-of-type { margin-left: 0; }
@media (max-width: 767px) {
  #finalScreen .journey-restart { align-self: flex-start; margin-left: 0 !important; margin-right: 0 !important; }
  #finalScreen .footer-box { align-self: flex-start; text-align: left; }
}
