/* =========================================================
   BABY SHOWER — IKER DANIEL
   Estética acuarela pastel de dinosaurios + verde salvia
========================================================= */

:root {
  --bg-page: #ecefe4;
  --paper: #f7f5ec;
  --paper-soft: #faf9f2;
  --sage: #8d9f71;
  --sage-mid: #9eb083;
  --sage-light: #cdd7bc;
  --sage-dark: #5f6f4a;
  --olive-text: #566345;
  --muted-text: #737e64;
  --gold-border: #d9c58e;
  --peach-star: #ecc9a8;
  --dino-green: #a4b885;
  --dino-blue: #9cc4d8;
  --dino-sand: #e5c290;
  --dino-stroke: #ffffff;
  --wood-1: #8b5a2b;
  --wood-2: #724620;
  --shadow-soft: 0 18px 48px rgba(74, 88, 56, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--olive-text);
  background:
    radial-gradient(circle at 18% 12%, rgba(203, 218, 184, 0.45), transparent 45%),
    radial-gradient(circle at 85% 88%, rgba(235, 214, 188, 0.4), transparent 48%),
    var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

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

.hidden {
  display: none !important;
}

/* Ilustraciones acuarela con transparencia limpia */
.img-blend {
  user-select: none;
  -webkit-user-drag: none;
}

/* Contenedor principal estilo móvil */
.page-backdrop {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
}

.invitation-shell {
  width: 100%;
  max-width: 450px;
  min-height: 100vh;
  background-color: var(--paper);
  position: relative;
  overflow-x: hidden;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 520px) {
  .page-backdrop {
    padding: 24px 16px 40px;
  }
  .invitation-shell {
    min-height: auto;
    border-radius: 26px;
    overflow: hidden;
  }
}

/* =========================================================
   BOTÓN FLOTANTE DE MÚSICA
========================================================= */
.music-fab {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-border);
  background: rgba(247, 245, 236, 0.92);
  backdrop-filter: blur(8px);
  color: var(--sage-dark);
  box-shadow: 0 6px 20px rgba(74, 88, 56, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.music-fab:hover {
  transform: scale(1.06);
  background: #ffffff;
}

.music-fab__icon svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.music-fab__bars {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.music-fab__bars i {
  display: block;
  width: 3px;
  background: var(--sage);
  border-radius: 3px;
  animation: eqBar 0.9s ease-in-out infinite;
}

.music-fab__bars i:nth-child(1) {
  height: 8px;
  animation-delay: 0s;
}
.music-fab__bars i:nth-child(2) {
  height: 15px;
  animation-delay: 0.2s;
}
.music-fab__bars i:nth-child(3) {
  height: 10px;
  animation-delay: 0.4s;
}

.music-fab.is-playing .music-fab__icon {
  display: none;
}

.music-fab.is-playing .music-fab__bars {
  display: flex;
}

@keyframes eqBar {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

/* =========================================================
   LETRAS ESTILO DINOSAURIO ACUARELA
========================================================= */
.dino-word {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  line-height: 0.96;
}

.dl {
  position: relative;
  display: inline-block;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0 2px;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.92);
  paint-order: stroke fill;
  filter: drop-shadow(0 3px 4px rgba(105, 117, 83, 0.18));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* Textura acuarela moteada por color */
.dl-green {
  background-image:
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.35) 0 12%, transparent 13%),
    radial-gradient(circle at 72% 72%, rgba(92, 114, 65, 0.22) 0 14%, transparent 15%),
    linear-gradient(180deg, #b8cb99 0%, #98af78 100%);
}

.dl-blue {
  background-image:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.38) 0 12%, transparent 13%),
    radial-gradient(circle at 70% 70%, rgba(88, 134, 158, 0.22) 0 14%, transparent 15%),
    linear-gradient(180deg, #b3d5e6 0%, #8eb8cf 100%);
}

.dl-sand {
  background-image:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.38) 0 12%, transparent 13%),
    radial-gradient(circle at 68% 72%, rgba(186, 132, 72, 0.22) 0 14%, transparent 15%),
    linear-gradient(180deg, #f0d4aa 0%, #deb47c 100%);
}

/* Pequeñas púas de dinosaurio en las letras laterales */
.dl-spikes-left::before,
.dl-spikes-right::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 26px;
  background: radial-gradient(circle at center, #a4b885 45%, transparent 48%);
  background-size: 9px 9px;
  opacity: 0.9;
}

.dl-spikes-left::before {
  left: -8px;
}

.dl-spikes-right::after {
  right: -8px;
}

.dino-word--baby .dl {
  font-size: clamp(2.55rem, 11vw, 3.35rem);
}

.dino-word--shower .dl {
  font-size: clamp(2.4rem, 10.2vw, 3.1rem);
}

.dino-word--name .dl {
  font-size: clamp(2.45rem, 10.5vw, 3.15rem);
}

/* =========================================================
   PANTALLA 1: PORTADA CON SOBRE
========================================================= */
.cover-screen {
  position: relative;
  min-height: 100vh;
  padding: 36px 20px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(214, 227, 198, 0.45), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(212, 227, 232, 0.42), transparent 52%),
    var(--paper);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.cover-screen.is-opening {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.watercolor-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  color: var(--peach-star);
  opacity: 0.78;
  animation: twinkle 3.2s ease-in-out infinite;
}

.s1 { top: 11%; left: 12%; font-size: 14px; animation-delay: 0s; }
.s2 { top: 18%; right: 26%; font-size: 11px; animation-delay: 0.8s; }
.s3 { top: 34%; left: 9%; font-size: 16px; animation-delay: 1.4s; }
.s4 { top: 60%; right: 10%; font-size: 14px; animation-delay: 0.5s; }
.s5 { top: 72%; left: 16%; font-size: 11px; animation-delay: 1.8s; }
.s6 { top: 48%; right: 14%; font-size: 15px; animation-delay: 1.1s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 0.95; transform: scale(1.15); }
}

.cover-ptero {
  position: absolute;
  top: 10px;
  right: 6px;
  width: 112px;
  z-index: 2;
  pointer-events: none;
}

.cover-title {
  position: relative;
  z-index: 2;
  margin-top: 8px;
}

.envelope-stage {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 12px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.envelope-button {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  width: min(92%, 365px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  animation: gentleFloat 3.6s ease-in-out infinite;
}

.envelope-button:hover {
  transform: scale(1.035);
}

.envelope-button:active {
  transform: scale(0.97);
}

.envelope-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(74, 88, 56, 0.2));
}

.envelope-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(227, 198, 126, 0.85);
  animation: sealPulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes sealPulse {
  0% { transform: translate(-50%, -50%) scale(0.75); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; }
}

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

.envelope-hint {
  margin: 14px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sage-dark);
  text-transform: uppercase;
}

.cover-footer-scene {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px 6px 0;
  margin-top: 10px;
}

.leaf-cover-left {
  position: absolute;
  left: -34px;
  bottom: -18px;
  width: 140px;
  opacity: 0.85;
  pointer-events: none;
}

.cover-trex {
  position: relative;
  z-index: 2;
  width: 58%;
  max-width: 235px;
  margin-left: 8px;
  margin-bottom: -10px;
}

/* Cartel de madera con fecha */
.wood-sign {
  position: relative;
  z-index: 3;
  width: 132px;
  padding-top: 8px;
  padding-bottom: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
}

.wood-post {
  position: absolute;
  top: 0;
  bottom: 8px;
  left: 50%;
  width: 16px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #693f1b 0%, #8e5c31 45%, #5e3717 100%);
  border-radius: 6px;
  box-shadow: inset -2px 0 4px rgba(0, 0, 0, 0.2);
}

.wood-plank {
  position: relative;
  z-index: 2;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  color: #fffdf7;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgba(45, 25, 10, 0.45);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0 12px,
      rgba(0, 0, 0, 0.04) 12px 24px
    ),
    linear-gradient(180deg, var(--wood-1) 0%, var(--wood-2) 100%);
  border: 1.5px solid #593516;
  border-radius: 5px;
  padding: 5px 12px;
  box-shadow: 0 4px 10px rgba(61, 36, 15, 0.22);
  text-align: center;
}

.wood-plank--top {
  width: 122px;
  font-size: 0.8rem;
  transform: rotate(-1.4deg);
}

.wood-plank--mid {
  width: 90px;
  font-size: 1rem;
  padding: 4px 10px;
  transform: rotate(1.2deg);
}

.wood-plank--bot {
  width: 112px;
  font-size: 0.84rem;
  transform: rotate(-0.8deg);
}

.wood-egg {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  z-index: 3;
  filter: drop-shadow(0 3px 5px rgba(74, 88, 56, 0.18));
}

.wood-sign--small {
  transform: scale(0.92);
  transform-origin: bottom right;
}

/* =========================================================
   PANTALLA 2: INVITACIÓN PRINCIPAL
========================================================= */
.invitation-card {
  position: relative;
  background:
    radial-gradient(circle at 50% 6%, rgba(215, 226, 198, 0.32), transparent 36%),
    radial-gradient(circle at 12% 45%, rgba(238, 224, 200, 0.24), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(206, 225, 232, 0.28), transparent 35%),
    var(--paper);
  padding: 14px;
  animation: fadeSlideIn 0.7s ease both;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gold-frame {
  position: relative;
  border: 1.5px solid var(--gold-border);
  border-radius: 6px;
  padding: 28px 14px 26px;
  overflow: hidden;
  background: rgba(250, 249, 242, 0.42);
}

.gold-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(217, 197, 142, 0.4);
  border-radius: 3px;
  pointer-events: none;
}

/* Hojas superiores del marco */
.frame-leaf {
  position: absolute;
  top: -26px;
  width: 128px;
  opacity: 0.75;
  pointer-events: none;
  z-index: 1;
}

.frame-leaf--tl {
  left: -36px;
  transform: rotate(125deg);
}

.frame-leaf--tr {
  right: -36px;
  transform: scaleX(-1) rotate(125deg);
}

/* Utilidades de sección */
.section {
  position: relative;
  z-index: 2;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.float-slow {
  animation: floatSlow 4.2s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-1.5deg); }
}

/* Tipografía Script */
.script-title {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  margin: 0;
  line-height: 1.05;
}

/* =========================================================
   SECCIÓN 1: HERO (IKER DANIEL + TRICERATOPS + FRASE)
========================================================= */
.hero-section {
  padding-top: 12px;
  padding-bottom: 14px;
}

.sparkles-inline {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkles-inline .star {
  position: absolute;
  color: var(--peach-star);
}

.star-1 { top: 22px; left: 10%; font-size: 13px; }
.star-2 { top: 68px; right: 11%; font-size: 18px; }
.star-3 { top: 170px; left: 8%; font-size: 11px; }
.star-4 { top: 230px; right: 12%; font-size: 15px; }

.baby-name-wrapper {
  position: relative;
  z-index: 3;
  margin-bottom: 4px;
}

.hero-dino-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 6px -14px 12px;
}

.hero-triceratops {
  position: relative;
  z-index: 2;
  width: 72%;
  max-width: 280px;
  height: auto;
}

.side-leaf {
  position: absolute;
  bottom: -6px;
  width: 118px;
  opacity: 0.88;
  pointer-events: none;
  z-index: 1;
}

.side-leaf--left {
  left: -30px;
  transform: rotate(12deg);
}

.side-leaf--right {
  right: -30px;
  transform: scaleX(-1) rotate(12deg);
}

.invite-phrase {
  margin: 10px auto 0;
  max-width: 340px;
  font-size: 1.24rem;
  line-height: 1.48;
  font-weight: 500;
  color: var(--olive-text);
}

.invite-phrase strong {
  font-weight: 700;
  color: var(--sage-dark);
}

/* =========================================================
   SECCIÓN 2: FECHA Y CUENTA REGRESIVA
========================================================= */
.date-countdown-section {
  padding: 20px 4px 28px;
}

.date-block {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 6px auto 26px;
  padding: 6px 8px;
}

.date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.date-col--left,
.date-col--right {
  min-width: 106px;
}

.date-label {
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--sage-dark);
}

.date-sub {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--muted-text);
  margin-top: 2px;
}

.date-day {
  font-size: 3.35rem;
  line-height: 0.9;
  font-weight: 500;
  color: var(--sage-dark);
  padding: 0 4px;
}

.date-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, var(--gold-border), transparent);
}

/* Cuenta regresiva */
.countdown-block {
  margin-top: 8px;
}

.countdown-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.countdown-heading .heart {
  color: var(--sage);
  font-size: 0.95rem;
}

.script-title--countdown {
  font-size: 2.55rem;
  color: var(--sage-dark);
}

.countdown-subtitle {
  margin: -6px 0 18px;
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--sage);
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

.cd-item {
  min-width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-num {
  font-family: "Nunito", sans-serif;
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.05;
  color: #463f35;
  font-variant-numeric: tabular-nums;
}

.cd-unit {
  margin-top: 5px;
  font-family: "Nunito", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted-text);
}

.cd-sep {
  font-family: "Nunito", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sage);
  line-height: 1.05;
}

.countdown-finished {
  margin: 14px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sage-dark);
}

/* =========================================================
   SECCIÓN 3 & 4: ARCOS (RECEPCIÓN + CONFIRMAR ASISTENCIA)
========================================================= */
.arches-section {
  position: relative;
  margin: 12px -14px 8px;
  padding: 20px 14px 12px;
}

/* Arcos blancos decorativos del fondo */
.bg-arches {
  position: absolute;
  top: 28px;
  left: -10px;
  width: 245px;
  height: 300px;
  pointer-events: none;
  z-index: 0;
}

.bg-arch {
  position: absolute;
  border-radius: 200px 200px 0 0;
  border: 14px solid rgba(255, 255, 255, 0.85);
  border-bottom: none;
}

.bg-arch--1 { inset: 0; }
.bg-arch--2 { inset: 24px 24px 0; }
.bg-arch--3 { inset: 48px 48px 0; }

/* Arco Verde Salvia: Recepción */
.reception-arch {
  position: relative;
  z-index: 2;
  width: 78%;
  margin-left: auto;
  margin-right: 4px;
  padding: 46px 20px 58px;
  border-radius: 170px 170px 24px 24px;
  background: linear-gradient(165deg, #a7b88d 0%, #8c9f70 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(102, 120, 77, 0.22);
}

.arch-ptero {
  position: absolute;
  top: 38px;
  left: -68px;
  width: 122px;
  z-index: 4;
  pointer-events: none;
}

.arch-sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.as1 { top: 44px; right: 24px; font-size: 13px; }
.as2 { top: 96px; right: 16px; font-size: 16px; }
.as3 { bottom: 52px; left: 20px; font-size: 12px; }

.script-title--light {
  font-size: 2.8rem;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(74, 88, 56, 0.16);
}

.reception-eyebrow {
  margin: 12px 0 4px;
  font-family: "Nunito", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
}

.reception-address {
  margin: 0;
  font-family: "Nunito", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.reception-ref {
  margin: 6px 0 18px;
  font-family: "Nunito", sans-serif;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.88);
}

/* Panel Confirmar Asistencia */
.rsvp-panel {
  position: relative;
  z-index: 3;
  margin-top: -34px;
  padding: 34px 14px 28px;
  border-radius: 170px 36px 20px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 245, 236, 0.92) 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 4px;
  text-align: center;
  box-shadow: 0 -8px 24px rgba(102, 120, 77, 0.08);
}

.rsvp-text-col {
  position: relative;
  z-index: 3;
  padding-left: 6px;
  padding-bottom: 10px;
}

.script-title--olive {
  font-size: 2.35rem;
  color: var(--sage-dark);
  line-height: 0.95;
  margin-bottom: 12px;
}

.rsvp-copy {
  margin: 0 auto 18px;
  max-width: 225px;
  font-size: 1.08rem;
  line-height: 1.4;
  color: var(--olive-text);
}

.rsvp-dino-col {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.rsvp-blue-dino {
  width: 118%;
  max-width: 185px;
  margin-left: -14px;
  margin-bottom: -14px;
}

.rsvp-leaf {
  position: absolute;
  bottom: -24px;
  width: 124px;
  opacity: 0.88;
  pointer-events: none;
  z-index: 2;
}

.rsvp-leaf--left {
  left: -34px;
  transform: rotate(15deg);
}

.rsvp-leaf--right {
  right: -34px;
  transform: scaleX(-1) rotate(15deg);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  font-family: "Nunito", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--cream {
  background: #faf8f0;
  color: var(--sage-dark);
  box-shadow: 0 5px 14px rgba(63, 76, 44, 0.18);
}

.btn--cream:hover {
  background: #ffffff;
}

.btn--sage {
  background: linear-gradient(180deg, var(--sage-mid) 0%, var(--sage) 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(114, 134, 86, 0.28);
}

.btn--sage:hover {
  background: linear-gradient(180deg, var(--sage) 0%, var(--sage-dark) 100%);
}

.btn--full {
  width: 100%;
  padding: 13px 20px;
}

/* =========================================================
   SECCIÓN 5: CIERRE / DESPEDIDA
========================================================= */
.closing-section {
  padding: 26px 8px 6px;
}

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

.closing-divider span {
  width: 68px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

.closing-divider i {
  font-style: normal;
  color: var(--gold-border);
  font-size: 0.9rem;
}

.closing-copy {
  margin: 0 auto 14px;
  max-width: 315px;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--olive-text);
}

.script-title--closing {
  font-size: 2.95rem;
  color: var(--sage-dark);
  margin-bottom: 8px;
}

.closing-scene {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 4px 0 0;
  margin: 0 -10px;
}

.closing-leaf--left {
  position: absolute;
  left: -30px;
  bottom: -20px;
  width: 130px;
  opacity: 0.85;
  pointer-events: none;
}

.closing-trex {
  position: relative;
  z-index: 2;
  width: 56%;
  max-width: 220px;
  margin-left: 4px;
  margin-bottom: -10px;
}

.back-cover-link {
  margin-top: 18px;
  background: transparent;
  border: none;
  font-family: "Nunito", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 6px 10px;
}

.back-cover-link:hover {
  color: var(--sage-dark);
}

/* =========================================================
   MODAL RSVP (WHATSAPP)
========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(54, 65, 42, 0.52);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  background: var(--paper-soft);
  border: 1.5px solid var(--gold-border);
  border-radius: 20px;
  padding: 28px 22px 24px;
  box-shadow: 0 24px 60px rgba(45, 56, 33, 0.28);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted-text);
  cursor: pointer;
}

.script-title--modal {
  font-size: 2.3rem;
  color: var(--sage-dark);
}

.modal-subtitle {
  margin: 6px 0 18px;
  font-family: "Nunito", sans-serif;
  font-size: 0.85rem;
  color: var(--muted-text);
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  text-align: left;
}

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

.form-field span {
  font-family: "Nunito", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfd6c2;
  border-radius: 10px;
  background: #ffffff;
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
  color: #3d4732;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(141, 159, 113, 0.18);
}

/* Responsivo para pantallas muy angostas */
@media (max-width: 375px) {
  .date-block {
    gap: 10px;
  }
  .date-col--left,
  .date-col--right {
    min-width: 88px;
  }
  .rsvp-panel {
    grid-template-columns: 1fr;
    padding-bottom: 18px;
  }
  .rsvp-blue-dino {
    max-width: 150px;
    margin: 6px auto -12px;
  }
  .arch-ptero {
    width: 96px;
    left: -50px;
  }
}
