/* ==========================================================================
   BABY SHOWER · CUENTO DE BOSQUE Y MIEL
   Estilo editorial de alta gama inspirado en el Bosque de los Cien Acres
   ========================================================================== */

/* Variables de Color, Tipografía y Elevación */
:root {
  --bg-parchment: #fdfbf7;
  --bg-parchment-deep: #f7f0df;
  --surface-card: rgba(255, 254, 250, 0.96);
  --surface-card-border: rgba(180, 145, 100, 0.28);
  
  --text-main: #231407;
  --text-muted: #3d2410;
  --text-subtle: #4d2f17;
  
  --honey-primary: #8c4206;
  --honey-dark: #78350f;
  --honey-light: #fef3c7;
  --honey-glow: rgba(140, 66, 6, 0.22);
  
  --wood-brown: #3e240f;
  --wood-dark: #231407;
  --wood-light: #613917;
  
  --sage-green: #1a3c17;
  --sage-light: #eef6ec;
  --sage-border: rgba(26, 60, 23, 0.28);

  --font-serif: 'Lora', 'Playfair Display', Georgia, serif;
  --font-sans: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-hand: 'Caveat', cursive;

  --shadow-soft: 0 4px 14px rgba(62, 36, 15, 0.06);
  --shadow-card: 0 4px 16px rgba(62, 36, 15, 0.07);
  --shadow-float: 0 8px 22px rgba(62, 36, 15, 0.1);
  
  --radius-card: 18px;
  --radius-btn: 26px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset y 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-sans);
  background-color: var(--bg-parchment);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(254, 243, 199, 0.55) 0%, transparent 60%),
    radial-gradient(circle at 100% 35%, rgba(238, 246, 236, 0.45) 0%, transparent 50%),
    radial-gradient(circle at 0% 70%, rgba(254, 243, 199, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(238, 246, 236, 0.4) 0%, transparent 50%);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body.locked {
  overflow: hidden;
  height: 100vh;
}

/* Lienzo de Polen y Destellos */
.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Contenedor Editorial Central */
.storybook-wrapper {
  max-width: 450px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-parchment);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(254, 243, 199, 0.5) 0%, transparent 60%),
    radial-gradient(circle at 100% 35%, rgba(238, 246, 236, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 0% 70%, rgba(254, 243, 199, 0.35) 0%, transparent 50%);
  box-shadow: 0 0 35px rgba(62, 36, 15, 0.08);
  padding: 0 1.15rem 1.5rem 1.15rem;
  overflow: hidden;
}

/* ==========================================================================
   SOBRE 3D CEREMONIAL DE ENTRADA (252x320)
   ========================================================================== */
.envelope-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 18, 9, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.7s ease;
  padding: 1rem;
}

.envelope-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 340px;
}

.envelope-header-msg {
  text-align: center;
  margin-bottom: 0.9rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.envelope-subtag {
  display: inline-block;
  font-size: 0.75rem; /* 12px exactos */
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fde68a;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
}

.envelope-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 500;
  font-style: italic;
  color: #fefce8;
}

/* Caja física proporcional: 252px x 320px */
.envelope-box {
  position: relative;
  width: 252px;
  height: 320px;
  cursor: pointer;
  perspective: 900px;
  outline: none;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
  margin: 0 auto;
}

.envelope-box:hover,
.envelope-box:focus-visible {
  transform: translateY(-3px) scale(1.02);
}

/* Capa Trasera del sobre con forro abierto (014) */
.env-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 252px;
  height: 320px;
  z-index: 1;
  pointer-events: none;
}

.env-back-img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Carta interior que asciende (012) - Easing suave no elástico */
.env-letter {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 172px;
  z-index: 5;
  transition: transform 0.95s cubic-bezier(0.25, 1, 0.5, 1), z-index 0.2s 0.2s, opacity 0.4s ease;
  pointer-events: none;
  transform: translateY(0);
  opacity: 0;
}

.env-letter-card {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.letter-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
}

.letter-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.letter-seal-mini {
  width: 22px;
  height: 22px;
  margin: 0 auto 0.15rem auto;
}

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

.letter-intro {
  font-size: 0.75rem; /* 12px */
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #78350f; /* Contraste WCAG AAA > 8.5:1 */
  text-transform: uppercase;
}

.letter-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: #231407;
  line-height: 1.1;
  margin: 0.05rem 0;
}

.letter-honoring {
  font-size: 0.75rem; /* 12px */
  letter-spacing: 0.16em;
  font-weight: 800;
  color: #3e240f;
  margin-top: 0.05rem;
  text-transform: uppercase;
}

.letter-names {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 700;
  color: #231407;
  line-height: 1.05;
}

.letter-divider-line {
  font-size: 0.75rem; /* 12px */
  color: #78350f;
  letter-spacing: 0.12em;
  margin: 0.1rem 0;
}

.letter-date {
  font-size: 0.75rem; /* 12px */
  font-weight: 700;
  color: #3e240f;
}

/* Bolsillo frontal del sobre (015) */
.env-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 252px;
  height: 320px;
  z-index: 10;
  pointer-events: none;
}

.env-front-img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Solapa superior plegable exterior */
.env-flap-hinge {
  position: absolute;
  top: 0;
  left: 0;
  width: 252px;
  height: 140px;
  z-index: 20;
  transform-origin: top center;
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
  pointer-events: none;
}

.flap-exterior-img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Sello de Cera Artesanal Dorado con Colmena (031) */
.wax-seal {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  z-index: 30;
  transition: transform 0.35s ease, opacity 0.35s ease;
  cursor: pointer;
}

.wax-seal-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.55) 0%, transparent 70%);
  animation: pulseWaxGlow 2.2s infinite ease-in-out;
  pointer-events: none;
}

.wax-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

@keyframes pulseWaxGlow {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 0.9; }
}

/* Estados de Apertura del Sobre - Transición suave no elástica */
.envelope-box.is-open .env-flap-hinge {
  transform: rotateX(180deg);
  opacity: 0;
  z-index: 2;
}

.envelope-box.is-open .wax-seal {
  transform: translate(-50%, -50%) scale(1.2);
  opacity: 0;
  pointer-events: none;
}

.envelope-box.is-open .env-letter {
  transform: translateY(-135px);
  z-index: 25;
  opacity: 1;
}

/* Indicador de Apertura Simplificado */
.envelope-hint-wrapper {
  margin-top: 0.85rem;
  text-align: center;
}

.env-touch-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.4rem 1rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  animation: gentleHintFloat 2.5s infinite ease-in-out;
}

.hint-hand-icon {
  stroke: #fde047;
}

@keyframes gentleHintFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ==========================================================================
   BOTÓN FLOTANTE DE MÚSICA AMBIENTAL
   ========================================================================== */
.floating-music-widget {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 100;
}

.music-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 254, 250, 0.94);
  border: 1px solid var(--surface-card-border);
  padding: 0.35rem 0.7rem;
  border-radius: 25px;
  box-shadow: 0 3px 10px rgba(62, 36, 15, 0.1);
  cursor: pointer;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.music-toggle-btn:hover {
  transform: scale(1.04);
  border-color: var(--honey-primary);
}

.music-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.music-toggle-btn.is-playing .music-status-dot {
  background: #16a34a;
  box-shadow: 0 0 6px #16a34a;
}

.music-toggle-btn.is-playing .music-note-icon {
  animation: spinMusic 3s linear infinite;
}

@keyframes spinMusic {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   RAMAS SUPERIORES ENMARCANDO LA PORTADA (013 y 020)
   ========================================================================== */
.forest-branches-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 75px;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.forest-branches-frame .branch {
  position: absolute;
  top: -36px;
  width: 145px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 3px 6px rgba(62, 36, 15, 0.1));
}

.forest-branches-frame .branch-left {
  left: -12px;
  transform-origin: top left;
  animation: branchSwayLeft 6s ease-in-out infinite alternate;
}

.forest-branches-frame .branch-right {
  right: -12px;
  transform-origin: top right;
  animation: branchSwayRight 6.5s ease-in-out infinite alternate;
}

@keyframes branchSwayLeft {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(1.5deg); }
}

@keyframes branchSwayRight {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-1.5deg); }
}

/* ==========================================================================
   ESCENAS DEL CUENTO: CONTINUIDAD Y ESPACIOS COMPACTOS
   ========================================================================== */
.story-scene {
  position: relative;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   ESCENA 1: PORTADA + PERSONAJE + FECHA + CUENTA REGRESIVA
   ========================================================================== */
.hero-intro-scene {
  padding-top: 2.75rem;
  padding-bottom: 0.4rem;
  text-align: center;
  width: 100%;
}

/* Cita inicial integrada directamente en la escena */
.opening-quote-integrated {
  position: relative;
  margin: 0 auto 0.35rem auto;
  max-width: 345px;
  padding: 0.1rem 1.6rem 0.1rem 0.6rem;
}

.opening-quote-integrated .quote-bee-wrap {
  position: absolute;
  top: -6px;
  right: 0;
  width: 22px;
  height: 22px;
}

.flying-bee {
  width: 100%;
  height: auto;
  animation: beeFloat 3.5s ease-in-out infinite alternate;
}

.opening-quote-text {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.1rem;
}

.quote-author {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--honey-dark);
  font-style: normal;
  display: block;
}

/* Anuncio y Título */
.invitation-announcement {
  margin-bottom: 0.15rem;
}

.announcement-pill {
  display: inline-block;
  font-size: 0.76rem; /* 12.2px */
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--wood-brown);
  text-transform: uppercase;
  margin-bottom: 0.05rem;
}

.story-main-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--wood-dark);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* Escenario del Personaje Hero (Pooh y Piglet) */
.hero-character-stage {
  position: relative;
  width: 100%;
  max-width: 175px;
  margin: 0.15rem auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-pooh-piglet {
  width: 118px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(62, 36, 15, 0.11));
  animation: balloonFloat 5s ease-in-out infinite alternate;
}

.floating-butterfly {
  position: absolute;
  top: 15px;
  left: 5px;
  width: 22px;
  height: auto;
  z-index: 3;
  animation: butterflyFlutter 5.5s ease-in-out infinite alternate;
}

.bee-flight-trail {
  position: absolute;
  bottom: 15px;
  right: -5px;
  width: 55px;
  height: auto;
  opacity: 0.65;
  pointer-events: none;
}

.hero-character-stage .bee-hero {
  position: absolute;
  bottom: 50px;
  right: 5px;
  width: 18px;
  z-index: 3;
}

@keyframes balloonFloat {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
  100% { transform: translateY(-2px) rotate(-0.8deg); }
}

@keyframes butterflyFlutter {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(5px, -6px) rotate(5deg); }
  100% { transform: translate(2px, -3px) rotate(-3deg); }
}

@keyframes beeFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(3px, -3px) rotate(3deg); }
  100% { transform: translate(-2px, 2px) rotate(-2deg); }
}

/* Listón Vintage para Nombres de Padres (022) */
.honoring-ribbon-container {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: -2.8rem auto 0.1rem auto;
}

.ribbon-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vintage-ribbon-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(62, 36, 15, 0.09));
}

.ribbon-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1.6rem 0 1.6rem;
}

.ribbon-subtitle {
  font-size: 0.76rem; /* 12.2px */
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--wood-brown);
  text-transform: uppercase;
}

.ribbon-names {
  font-family: var(--font-hand);
  font-size: 1.68rem;
  color: var(--wood-dark);
  font-weight: 700;
  line-height: 1;
  margin-top: 0.02rem;
}

.baby-phrase {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.94rem;
  color: var(--honey-dark);
  margin-top: -1.6rem;
  margin-bottom: 0.35rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* Fecha y Hora Integradas en la Escena 1 (Totalmente visible dentro de 844px) */
.scene-date-block {
  width: 100%;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Viñeta tipográfica de fecha - Sin cajas pesadas */
.date-story-vignette {
  width: 100%;
  max-width: 350px;
  text-align: center;
  padding: 0.15rem 0;
}

.date-vignette-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.date-weekday-tag {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--honey-dark); /* Contraste WCAG AAA > 8.5:1 */
  text-transform: uppercase;
  flex-shrink: 0;
}

.date-calendar-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.6rem;
  border-left: 1.5px solid rgba(120, 53, 15, 0.35);
  border-right: 1.5px solid rgba(120, 53, 15, 0.35);
}

.date-core-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.05rem;
  font-weight: 700;
  color: var(--wood-dark);
  line-height: 1;
}

.date-core-month {
  font-size: 0.78rem; /* 12.5px */
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--honey-dark);
  text-transform: uppercase;
}

.date-core-year {
  font-size: 0.75rem; /* 12px */
  font-weight: 700;
  color: var(--text-subtle);
}

.date-time-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.date-hour-badge {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--wood-dark);
  letter-spacing: 0.05em;
}

.date-hour-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.25;
}

/* Reloj de Cuenta Regresiva Integrado */
.countdown-container {
  width: 100%;
  text-align: center;
  margin-top: 0.45rem;
}

.countdown-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--wood-brown);
  margin-bottom: 0.25rem;
}

.countdown-grid {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  padding: 0.15rem 0.35rem;
}

.countdown-unit-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  background: rgba(255, 254, 250, 0.85);
  border: 1px solid rgba(180, 145, 100, 0.3);
  border-radius: 10px;
  padding: 3px 6px;
  box-shadow: 0 2px 6px rgba(62, 36, 15, 0.04);
}

.cd-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wood-dark);
  line-height: 1;
}

.cd-tag {
  font-size: 0.75rem; /* 12px */
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-top: 0.05rem;
}

.cd-colon {
  font-size: 1.15rem;
  font-weight: bold;
  color: #78350f; /* Contraste WCAG AAA > 8.5:1 */
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   ESCENA 2: UBICACIÓN + BOTONES DE CALENDARIO
   ========================================================================== */
.woodland-gathering-scene {
  width: 100%;
  padding-top: 0.85rem;
}

.honey-tree-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 0.65rem;
  text-align: center;
}

.honey-tree-img {
  width: 180px;
  max-width: 55%;
  height: auto;
  margin: 0 auto 0.4rem auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(62, 36, 15, 0.08));
}

.tree-story-text {
  padding: 0.25rem 0.45rem 0 0.45rem;
}

.woodland-heading {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  color: var(--wood-dark);
  margin-bottom: 0.2rem;
}

.woodland-subheading {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 350px;
  margin: 0 auto;
}

/* Cartel Rústico de Madera Colgado (033) */
.wooden-sign-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hanging-sign-box {
  position: relative;
  width: 100%;
  max-width: 275px;
  transform-origin: top center;
  animation: signSway 5.5s ease-in-out infinite alternate;
}

.wooden-sign-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(62, 36, 15, 0.12));
}

.sign-content-overlay {
  position: absolute;
  top: 38%;
  left: 10%;
  right: 10%;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.sign-icon {
  font-size: 1.15rem;
  margin-bottom: 0.05rem;
}

.venue-name {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

.venue-address {
  font-size: 0.82rem;
  color: #ffffff;
  margin-top: 0.15rem;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.85);
}

@keyframes signSway {
  0% { transform: rotate(-1deg); }
  100% { transform: rotate(1deg); }
}

/* Botones de Acción */
.action-buttons-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 295px;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-align: center;
}

.btn-icon {
  font-size: 1rem;
}

.btn-wood {
  background: var(--wood-brown);
  color: #ffffff; /* Contraste WCAG AAA > 12:1 */
  box-shadow: 0 3px 10px rgba(62, 36, 15, 0.2);
}

.btn-wood:hover {
  background: var(--wood-dark);
  transform: translateY(-2px);
}

.calendar-subgroup {
  display: flex;
  gap: 0.45rem;
  width: 100%;
}

.calendar-subgroup .btn {
  flex: 1;
  font-size: 0.86rem;
  padding: 0.45rem 0.6rem;
}

.btn-cream {
  background: #fff;
  color: var(--wood-brown);
  border: 1.5px solid var(--surface-card-border);
  box-shadow: 0 2px 8px rgba(62, 36, 15, 0.04);
}

.btn-cream:hover {
  border-color: var(--honey-dark);
  background: var(--honey-light);
  transform: translateY(-2px);
}

.btn-subtle {
  background: rgba(255, 254, 250, 0.85);
  color: var(--text-main);
  border: 1px dashed var(--surface-card-border);
}

.btn-subtle:hover {
  background: #fff;
  color: var(--wood-dark);
}

/* ==========================================================================
   ESCENA 3: LIBRO + PAÑALES + REGALOS (TRÍPTICO CONTINUO SIN CAJAS VISIBLES)
   ========================================================================== */
.continuous-triptych-scene {
  width: 100%;
  padding-top: 0.85rem;
}

.scene-title-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.wood-deco-flower {
  font-size: 1.1rem;
}

.section-title-story {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--wood-dark);
  text-align: center;
}

.triptych-stream {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Sin cajas visibles alrededor de los detalles */
.story-chapter-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  background: transparent;
  padding: 0.35rem 0;
}

.story-chapter-row.reverse {
  flex-direction: row-reverse;
}

.chapter-character {
  flex-shrink: 0;
  width: 82px;
  text-align: center;
}

.character-eeyore {
  width: 82px;
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(62, 36, 15, 0.11));
  animation: floatGentle 5s ease-in-out infinite alternate;
}

.character-tigger {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(62, 36, 15, 0.11));
  animation: subtleTiggerFloat 4.5s ease-in-out infinite alternate;
}

.character-pooh-honey {
  width: 88px;
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(62, 36, 15, 0.11));
  animation: floatGentle 5.5s ease-in-out infinite alternate;
}

@keyframes floatGentle {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-4px) rotate(-1deg); }
}

@keyframes subtleTiggerFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-5px) rotate(1.2deg); }
}

.chapter-content {
  flex: 1;
}

.chapter-kicker {
  display: inline-block;
  font-size: 0.75rem; /* 12px */
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #78350f; /* Contraste WCAG AAA > 8.5:1 */
  background: rgba(254, 243, 199, 0.85);
  border: 1px solid rgba(180, 145, 100, 0.25);
  padding: 0.15rem 0.6rem;
  border-radius: 14px;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--wood-dark);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.chapter-verse {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-style: italic;
}

.chapter-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.chapter-quote {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--honey-dark);
  margin-top: 0.25rem;
}

.raffle-reminder-pill {
  background: var(--sage-light);
  border: 1px solid var(--sage-border);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sage-green); /* Contraste WCAG AAA > 9:1 */
  margin-top: 0.3rem;
  line-height: 1.35;
}

.chapter-soft-divider {
  text-align: center;
  color: #78350f; /* Contraste WCAG AAA > 8.5:1 */
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}

/* Mesa de Regalos */
.registry-options-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.btn-wood-outline {
  background: #fff;
  border: 1.5px solid var(--honey-dark);
  color: var(--honey-dark);
  padding: 0.5rem 1rem;
  min-height: 42px;
}

.btn-wood-outline:hover {
  background: var(--honey-light);
  transform: translateY(-2px);
}

.envelope-shower-note {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  background: rgba(254, 243, 199, 0.75);
  border: 1px dashed var(--surface-card-border);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.35;
}

.envelope-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* ==========================================================================
   ESCENA 4: EL LIBRO DE VISITAS / RSVP (ÚNICA CAJA VISIBLE CONSERVADA)
   ========================================================================== */
.rsvp-book-scene {
  width: 100%;
  padding-top: 0.85rem;
}

.rsvp-friends-header {
  text-align: center;
  margin-bottom: 0.75rem;
}

.rsvp-pooh-piglet-img {
  width: 128px;
  height: auto;
  margin: 0 auto 0.35rem auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(62, 36, 15, 0.09));
}

.rsvp-top-badge {
  display: inline-block;
  font-size: 0.75rem; /* 12px */
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--honey-dark);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.rsvp-main-heading {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--wood-dark);
  line-height: 1.15;
  margin-bottom: 0.2rem;
}

.rsvp-deadline {
  font-size: 0.95rem;
  color: var(--wood-brown);
  margin-bottom: 0.1rem;
}

.rsvp-subtext {
  font-size: 0.88rem;
  color: var(--text-subtle);
  font-style: italic;
}

/* Tarjeta visible del formulario RSVP (Única caja conservada) */
.rsvp-form-container {
  width: 100%;
  background: var(--surface-card);
  border: 1.5px solid var(--surface-card-border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--wood-dark);
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.8rem;
  background: #fff;
  border: 1.5px solid #dfd2be;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.form-group textarea {
  min-height: 55px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--honey-dark);
  box-shadow: 0 0 0 3px var(--honey-glow);
}

.form-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
}

.btn-honey-primary {
  background: linear-gradient(135deg, #8c4206 0%, #6d3303 100%);
  color: #ffffff; /* Contraste WCAG AAA > 7:1 */
  box-shadow: 0 3px 12px rgba(109, 51, 3, 0.28);
}

.btn-honey-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(109, 51, 3, 0.38);
}

.btn-whatsapp-wood {
  background: #075e54; /* Contraste WCAG AAA > 7.6:1 */
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(7, 94, 84, 0.25);
}

.btn-whatsapp-wood:hover {
  background: #05443d;
  transform: translateY(-2px);
}

/* Feedback Modal / Alert */
.rsvp-feedback-modal {
  margin-top: 0.85rem;
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.rsvp-feedback-modal.hidden {
  display: none;
}

.feedback-bee {
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 0.2rem;
}

.feedback-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #065f46;
  margin-bottom: 0.15rem;
}

.feedback-text {
  font-size: 0.9rem;
  color: #047857;
}

/* ==========================================================================
   DESPEDIDA & PRADERA FLORIDA (CHRISTOPHER ROBIN & KANGA)
   ========================================================================== */
.farewell-meadow-scene {
  width: 100%;
  padding-bottom: 0;
  text-align: center;
}

.farewell-characters-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  margin-bottom: -10px;
  position: relative;
  z-index: 5;
}

.farewell-char {
  flex-shrink: 0;
}

.farewell-char.kanga {
  width: 76px;
}

.farewell-char.christopher {
  width: 76px;
}

.char-kanga-img {
  width: 100%;
  height: auto;
  animation: balloonFloat 5s ease-in-out infinite alternate;
}

.char-robin-img {
  width: 100%;
  height: auto;
  animation: balloonFloat 4.8s ease-in-out infinite alternate 0.5s;
}

.farewell-quote-wrap {
  padding: 0 0.35rem;
  max-width: 220px;
}

.farewell-closing-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.farewell-parents-signature {
  font-family: var(--font-hand);
  font-size: 1.42rem;
  color: var(--wood-brown);
  line-height: 1.15;
  margin-bottom: 0.2rem;
}

.farewell-date-stamp {
  font-size: 0.78rem; /* 12.5px */
  letter-spacing: 0.18em;
  color: var(--text-subtle);
  font-weight: 800;
}

/* Zócalo de Pradera y Flores (026 y 016) */
.meadow-bottom-stage {
  position: relative;
  width: 100%;
  margin-top: -10px;
  z-index: 2;
}

.wildflowers-border {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
}

.meadow-mound {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   ACCESIBILIDAD Y REDUCCIÓN DE MOVIMIENTO
   ========================================================================== */
@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;
  }
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVA PANTALLAS PEQUEÑAS (<= 380px)
   ========================================================================== */
@media (max-width: 380px) {
  .story-main-title {
    font-size: 2rem;
  }
  .ribbon-names {
    font-size: 1.55rem;
  }
  .envelope-box {
    width: 235px;
    height: 300px;
  }
  .date-vignette-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }
  .date-calendar-core {
    border-left: none;
    border-right: none;
    border-top: 1.5px solid rgba(120, 53, 15, 0.35);
    border-bottom: 1.5px solid rgba(120, 53, 15, 0.35);
    padding: 0.3rem 0;
  }
  .date-time-info {
    align-items: center;
    text-align: center;
  }
  .countdown-grid {
    padding: 0.15rem;
    gap: 0.2rem;
  }
  .cd-number {
    font-size: 1.2rem;
  }
  .story-chapter-row {
    flex-direction: column !important;
    text-align: center;
  }
}
