/* ==========================================================================
   INVITACIÓN MIS XIV AÑOS - ABI MORALES (Estilo Real / La Bella Durmiente)
   Paleta: Rosa Pastel Acuarela, Oro Antiguo Metálico, Marfil Real y Bronce
   ========================================================================== */

:root {
  --pink-bg: #fdf2f5;
  --pink-soft: #fae1e8;
  --pink-mid: #f3c1cf;
  --pink-deep: #d98ca3;
  --pink-seal: #d9889c;
  --cream-light: #fffbf8;
  --cream-parchment: #f8eedc;

  --gold-light: #f5df9d;
  --gold-mid: #cfa13c;
  --gold-dark: #8e6516;
  --gold-bronze: #6f4e12;

  --text-dark: #432c20;
  --text-body: #563b2d;
  --text-muted: #7a5c4b;

  --font-script: 'Great Vibes', cursive;
  --font-calligraphy: 'Alex Brush', 'Great Vibes', cursive;
  --font-serif-display: 'Cinzel', serif;
  --font-serif-body: 'Cormorant Garamond', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: #eed4dc;
}

body {
  font-family: var(--font-serif-body);
  color: var(--text-dark);
  background: radial-gradient(circle at center, #f8e4ea 0%, #e7c4cf 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Contenedor tipo teléfono en escritorio, pantalla completa en celular */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--cream-light);
  box-shadow: 0 0 55px rgba(95, 50, 65, 0.28);
  overflow: hidden;
}

/* Canvas global de polvo de hadas dorado */
#sparkle-canvas {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  height: 100vh;
  pointer-events: none;
  z-index: 45;
}

/* Utilidades de texto dorado metálico */
.gold-text {
  background: linear-gradient(
    180deg,
    #8f6514 0%,
    #d4a843 32%,
    #a97b1e 55%,
    #e2be69 78%,
    #7e5710 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(92, 60, 18, 0.18));
}

.script-heading {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.18;
}

/* Animación de aparición suave al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ==========================================================================
   DESTELLO MÁGICO DE TRANSICIÓN (Estilo segundo 00:01 del video)
   ========================================================================== */
.magic-flash {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 52%,
    #ffffff 0%,
    #fff7d6 28%,
    rgba(255, 224, 140, 0.88) 56%,
    rgba(252, 212, 226, 0) 100%
  );
  transition: opacity 0.55s ease;
}

.magic-flash.active {
  opacity: 1;
}

/* ==========================================================================
   PANTALLA 1: PORTADA CON SOBRE REAL CERRADO (00:00)
   ========================================================================== */
.cover-screen {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  height: 100dvh;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 32px;
  background: url("assets/cover_bg_luxury.jpg") center / cover no-repeat, #f8d4df;
  transition: opacity 0.85s ease, visibility 0.85s ease, transform 0.85s ease;
  overflow: hidden;
}

.cover-screen.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover-screen.hidden-completely {
  display: none !important;
}

.cover-top-ornament {
  width: 332px;
  max-width: 86%;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 2px 5px rgba(105, 68, 22, 0.24));
}

.cover-header {
  text-align: center;
  z-index: 2;
  margin-top: 2px;
}

.cover-script-title {
  font-family: var(--font-calligraphy);
  font-size: clamp(2.7rem, 9.2vw, 3.35rem);
  font-weight: 400;
  background: linear-gradient(
    180deg,
    #6b4810 0%,
    #b68524 38%,
    #865d13 66%,
    #b98b2c 88%,
    #62400d 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(255, 252, 245, 0.68));
  margin-bottom: 4px;
}

.xv-roman {
  font-family: var(--font-serif-display);
  font-style: normal;
  font-weight: 600;
  font-size: 0.66em;
  letter-spacing: 0.06em;
  vertical-align: 0.05em;
  margin: 0 3px;
}

.cover-subtitle-name {
  font-family: var(--font-serif-display);
  font-size: 0.96rem;
  letter-spacing: 0.26em;
  color: #6b491f;
  font-weight: 600;
  margin-bottom: 5px;
}

.cover-date {
  font-family: var(--font-serif-body);
  font-size: 1.22rem;
  letter-spacing: 0.18em;
  color: #6d4b22;
  font-weight: 600;
}

/* Sobre Real Cerrado */
.envelope-stage {
  position: relative;
  width: 100%;
  max-width: 392px;
  aspect-ratio: 1200 / 795;
  z-index: 4;
  cursor: pointer;
  perspective: 1100px;
  margin: 8px 0;
  transition: transform 0.35s ease;
}

/* Sombra suave solo en la base para evitar barras oscuras en el borde superior */
.envelope-stage::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -15px;
  height: 24px;
  background: radial-gradient(
    ellipse at center,
    rgba(108, 46, 66, 0.34) 0%,
    rgba(108, 46, 66, 0.14) 50%,
    transparent 76%
  );
  filter: blur(4px);
  z-index: -1;
  pointer-events: none;
}

.envelope-stage:hover {
  transform: translateY(-3px);
}

.envelope-closed-box {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  background: transparent;
  overflow: visible;
}

/* Solapa superior con ilustración pastel del castillo */
.envelope-top-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 57%;
  z-index: 2;
  transform-origin: top center;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.envelope-stage.opening .envelope-top-flap {
  transform: rotateX(175deg);
}

.envelope-flap-inner {
  width: 100%;
  height: 100%;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  clip-path: polygon(0 0, 100% 0, 50% 98.2%);
  background: #f5d8e2;
  position: relative;
  overflow: hidden;
}

.envelope-flap-castle {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(1.03) contrast(1.01);
}

.envelope-flap-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 240, 245, 0) 72%,
    rgba(196, 146, 58, 0.2) 100%
  );
  pointer-events: none;
}

/* Bolsillo repujado frontal con bordes y textura de papel rosa francés */
.envelope-pocket-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 7px;
  z-index: 3;
  pointer-events: none;
}

/* Sello de cera rosa con inicial "A" */
.envelope-wax-seal {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -44%);
  width: 92px;
  height: auto;
  z-index: 6;
  filter: drop-shadow(0 6px 10px rgba(84, 32, 46, 0.34));
  animation: sealPulse 2.8s ease-in-out infinite;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.envelope-stage.opening .envelope-wax-seal {
  transform: translate(-50%, -44%) scale(1.18);
  opacity: 0;
}

@keyframes sealPulse {
  0%, 100% {
    transform: translate(-50%, -44%) scale(1);
  }
  50% {
    transform: translate(-50%, -44%) scale(1.045);
  }
}

/* Botones inferiores de portada (acabado terciopelo mate con vivo perla-oro) */
.cover-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
  width: 100%;
}

.cover-hint {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b4723;
  opacity: 0.92;
}

.royal-pill-btn {
  appearance: none;
  border: 1.5px solid #b6882e;
  background: linear-gradient(180deg, #f5d4df 0%, #ecc0ce 58%, #e2acc0 100%);
  color: #4a2e1d;
  font-family: var(--font-serif-display);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  padding: 13px 38px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 6px 18px rgba(114, 58, 76, 0.22),
    inset 0 0 0 2.5px rgba(255, 246, 249, 0.56);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.royal-pill-btn:hover,
.royal-pill-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 9px 22px rgba(114, 58, 76, 0.3),
    inset 0 0 0 2.5px rgba(255, 248, 250, 0.72);
}

/* ==========================================================================
   CONTENIDO PRINCIPAL DE LA INVITACIÓN (SCROLLABLE)
   ========================================================================== */
.invitation-content {
  position: relative;
  width: 100%;
  background:
    radial-gradient(circle at 50% 4%, rgba(250, 212, 224, 0.52) 0%, transparent 18%),
    radial-gradient(circle at 18% 18%, rgba(249, 206, 220, 0.40) 0%, transparent 22%),
    radial-gradient(circle at 50% 28%, rgba(248, 198, 214, 0.34) 0%, transparent 22%),
    radial-gradient(circle at 82% 37%, rgba(251, 218, 228, 0.38) 0%, transparent 18%),
    radial-gradient(circle at 50% 43%, rgba(246, 187, 206, 0.32) 0%, transparent 14%),
    linear-gradient(180deg, #fce8ee 0%, #fff7fa 14%, #fdf2f6 38%, #fef2f6 50%, #fef2f6 100%);
}

/* ==========================================================================
   SECCIÓN 1: SOBRE ABIERTO CON TARJETA DE PERGAMINO + REPRODUCTOR (00:02-00:05)
   ========================================================================== */
.opened-hero-section {
  position: relative;
  padding: 6px 14px 28px;
  text-align: center;
  background: radial-gradient(circle at 50% 42%, rgba(255, 232, 175, 0.28) 0%, transparent 64%);
}

.opened-envelope-wrapper {
  position: relative;
  width: 96%;
  max-width: 392px;
  aspect-ratio: 1 / 0.985;
  margin: 12px auto 0;
  padding: 0;
}

.open-env-back-flap {
  position: absolute;
  top: 0;
  left: 0.3%;
  width: 99.4%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 5px 14px rgba(122, 58, 76, 0.16));
}

/* Tarjeta interior tipo pergamino antiguo con marco dorado doble */
.open-env-parchment-card {
  position: absolute;
  top: 15%;
  left: 10%;
  width: 80%;
  height: 64%;
  margin: 0;
  padding: 6.5% 16px 0;
  background: url("assets/parchment_card_bg.jpg") center / cover no-repeat, #f7ecd6;
  border: 1px solid rgba(185, 142, 67, 0.52);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(104, 67, 32, 0.18);
  z-index: 2;
}

.parchment-card-title {
  font-family: var(--font-script);
  font-size: clamp(2.25rem, 8vw, 2.85rem);
  color: #4f3828;
  line-height: 1.08;
}

.parchment-card-sub {
  font-family: var(--font-script);
  font-size: clamp(2rem, 6.8vw, 2.45rem);
  color: #5c402c;
  margin-top: 2px;
}

/* Bolsillo frontal rosa del sobre abierto */
.open-env-front-pocket {
  position: absolute;
  top: 32.8%;
  left: 0;
  width: 100%;
  height: auto;
  margin: 0;
  z-index: 3;
  overflow: visible;
}

.open-env-pocket-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 7px 7px;
  filter: drop-shadow(0 12px 20px rgba(122, 56, 75, 0.22));
}

.open-env-seal {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -44%);
  width: 22.5%;
  height: auto;
  z-index: 5;
  filter: drop-shadow(0 5px 9px rgba(84, 32, 46, 0.3));
}

/* Reproductor de Música Mágico (00:03 - 00:05) */
.music-player-box {
  max-width: 310px;
  margin: 22px auto 8px;
  padding: 8px 12px;
}

.music-caption {
  font-family: var(--font-serif-body);
  font-size: 1.04rem;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.soundwave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 30px;
  margin-bottom: 14px;
}

.soundwave span {
  display: inline-block;
  width: 2px;
  background: #6c4f3d;
  border-radius: 2px;
  height: 8px;
  transition: height 0.2s ease;
}

.soundwave.playing span {
  animation: waveBounce 1.1s ease-in-out infinite;
}

.soundwave span:nth-child(odd) { height: 14px; animation-delay: 0.15s; }
.soundwave span:nth-child(3n) { height: 24px; animation-delay: 0.32s; }
.soundwave span:nth-child(4n) { height: 18px; animation-delay: 0.48s; }
.soundwave span:nth-child(5n) { height: 28px; animation-delay: 0.08s; }

@keyframes waveBounce {
  0%, 100% { transform: scaleY(0.45); opacity: 0.65; }
  50% { transform: scaleY(1.15); opacity: 1; }
}

.player-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.progress-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.player-times {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-serif-body);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  line-height: 1;
}

.player-mini-icon {
  background: none;
  border: none;
  color: #7c5b49;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
}

.player-mini-icon.liked {
  color: #d96b8a;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: #e5ccd4;
  border-radius: 99px;
  position: relative;
  cursor: pointer;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #c9869b, #b8860b);
  border-radius: 99px;
  position: relative;
  transition: width 0.15s linear;
}

.progress-thumb {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b87388;
}

.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: #5c4030;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.82;
  transition: opacity 0.2s, transform 0.2s;
}

.ctrl-btn:hover {
  opacity: 1;
  transform: scale(1.08);
}

.play-main-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, #e59eb0, #cb7b91);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(185, 102, 126, 0.38);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.play-main-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 16px rgba(185, 102, 126, 0.5);
}

/* ==========================================================================
   SECCIÓN 2: ESPEJO DORADO DE AURORA + LISTÓN DE ROSAS CON NOMBRE (00:05-00:09)
   ========================================================================== */
.mirror-section {
  position: relative;
  padding: 10px 18px 26px;
  text-align: center;
}

.mirror-art-wrap {
  width: 88%;
  max-width: 340px;
  margin: 0 auto;
}

.mirror-art {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(132, 92, 48, 0.18));
}

/* Listón de satín rosa con rosas acuarela reales y filigrana fina */
.name-ribbon-wrap {
  position: relative;
  width: 100%;
  max-width: 404px;
  margin: 14px auto 10px;
}

.ribbon-floral-banner {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(140, 74, 96, 0.18));
}

.ribbon-name-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  padding-bottom: 4.5%;
}

.ribbon-quince-name {
  font-family: var(--font-script);
  font-size: clamp(2.25rem, 8.6vw, 2.95rem);
  color: #4f3122;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 6px rgba(132, 68, 86, 0.16);
  line-height: 1;
}

/* ==========================================================================
   SECCIÓN 3: CORONA, TRES HADAS Y PERGAMINO REAL (00:09-00:11)
   ========================================================================== */
.scroll-section {
  position: relative;
  padding: 24px 20px 30px;
  text-align: center;
}

.crown-img {
  width: 158px;
  height: auto;
  margin: 0 auto 4px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(152, 108, 28, 0.28));
}

.crown-img.reveal.visible {
  transform: translateY(0) rotate(-4deg);
}

.my-quince-header {
  position: relative;
  margin-bottom: 18px;
}

.my-script {
  font-family: var(--font-script);
  font-size: 2.55rem;
  color: #4c3324;
  display: block;
  line-height: 0.95;
}

.quince-serif {
  font-family: var(--font-serif-display);
  font-size: clamp(1.7rem, 6.2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

/* Contenedor del Pergamino Real y las 3 Hadas Madrinas */
.royal-scroll-container {
  position: relative;
  max-width: 372px;
  margin: 12px auto 6px;
  padding: 18px 18px;
}

/* Las 3 hadas estilizadas flotando suavemente (Azul, Verde, Rosa con toque oro) */
.fairy {
  position: absolute;
  width: 68px;
  height: 68px;
  object-fit: contain;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 0 9px rgba(247, 217, 130, 0.78))
          drop-shadow(0 4px 8px rgba(105, 62, 78, 0.16));
}

.fairy-blue {
  top: -42px;
  right: 2px;
  width: 70px;
  height: 70px;
  animation: fairyFloat 3.6s ease-in-out infinite;
}

.fairy-green {
  top: 40%;
  left: -12px;
  width: 64px;
  height: 64px;
  animation: fairyFloat 4.1s ease-in-out infinite 0.6s;
}

.fairy-pink {
  bottom: -4px;
  right: -10px;
  width: 66px;
  height: 66px;
  animation: fairyFloat 3.8s ease-in-out infinite 1.1s;
}

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

/* Pergamino real con varillas doradas */
.parchment-scroll-box {
  position: relative;
  margin: 0 auto;
  width: 96%;
  max-width: 344px;
}

.parchment-vintage-bg {
  width: 100%;
  height: auto;
  display: block;
}

.scroll-paper-overlay {
  position: absolute;
  inset: 16% 20% 16% 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 4px;
}

.scroll-quote-text {
  font-family: var(--font-script);
  font-size: clamp(1.26rem, 4.2vw, 1.54rem);
  line-height: 1.38;
  color: #462d1b;
}

/* ==========================================================================
   SECCIÓN 4: GRAN FECHA DORADA + AGRADECIMIENTO A MAMÁ (00:11-00:16)
   ========================================================================== */
.gratitude-section {
  position: relative;
  padding: 26px 24px 28px;
  text-align: center;
}

.big-date-block {
  max-width: 330px;
  margin: 0 auto 30px;
}

.big-date-month {
  font-family: var(--font-serif-display);
  font-size: clamp(1.75rem, 6.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.big-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.big-date-side {
  font-family: var(--font-serif-display);
  font-size: clamp(1.3rem, 4.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 4px;
  border-top: 1.5px solid rgba(196, 150, 56, 0.55);
  border-bottom: 1.5px solid rgba(196, 150, 56, 0.55);
  min-width: 82px;
}

.big-date-number {
  font-family: var(--font-serif-display);
  font-size: clamp(2.85rem, 10.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  padding: 0 12px;
  border-left: 2px solid #c99e3b;
  border-right: 2px solid #c99e3b;
}

.gratitude-block {
  max-width: 350px;
  margin: 0 auto;
}

.gratitude-title {
  font-family: var(--font-serif-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.55;
  margin-bottom: 18px;
}

.parent-name {
  font-family: var(--font-serif-display);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.gratitude-message {
  font-size: 1.08rem;
  line-height: 1.62;
  color: var(--text-body);
}

.sparkle-butterfly-divider {
  width: 320px;
  max-width: 92%;
  height: auto;
  margin: 20px auto 6px;
  display: block;
}

/* ==========================================================================
   SECCIÓN 5: CUENTA REGRESIVA (00:16-00:19)
   ========================================================================== */
.countdown-section {
  position: relative;
  padding: 26px 18px 34px;
  text-align: center;
}

.countdown-phrase {
  font-family: var(--font-calligraphy);
  font-size: clamp(1.85rem, 6.6vw, 2.35rem);
  margin-bottom: 24px;
}

.countdown-grid {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  max-width: 360px;
  margin: 10px auto 0;
}

.countdown-butterfly {
  position: absolute;
  top: -28px;
  left: 6px;
  width: 34px;
  height: auto;
  transform: rotate(-14deg);
  filter: drop-shadow(0 2px 5px rgba(120, 82, 16, 0.24));
  animation: fairyFloat 3.4s ease-in-out infinite;
}

.cd-item {
  flex: 1;
  min-width: 64px;
}

.cd-num {
  font-family: var(--font-serif-display);
  font-size: clamp(2rem, 7.5vw, 2.55rem);
  font-weight: 600;
  line-height: 1.1;
}

.cd-sep {
  font-family: var(--font-serif-display);
  font-size: 2rem;
  line-height: 1.05;
  color: #b7892b;
  padding-top: 2px;
}

.cd-label {
  font-family: var(--font-serif-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-body);
  margin-top: 6px;
}

/* ==========================================================================
   SECCIÓN 6: CÓDIGO DE VESTIMENTA (00:18-00:21)
   ========================================================================== */
.dresscode-section {
  position: relative;
  padding: 28px 20px 36px;
  text-align: center;
  overflow: hidden;
}

.dresscode-title {
  font-family: var(--font-serif-display);
  font-size: 1.32rem;
  letter-spacing: 0.14em;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 8px;
}

.dresscode-type {
  font-family: var(--font-serif-display);
  font-size: 1.02rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

/* Siluetas reales de Princesa Aurora y Príncipe con halos acuarela */
.silhouettes-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  max-width: 340px;
  margin: 14px auto 18px;
}

.silhouette-halo {
  position: relative;
  width: 148px;
  height: 174px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.silhouette-halo::before {
  content: "";
  position: absolute;
  inset: 8px -6px 4px -6px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.princess-halo::before {
  background: radial-gradient(circle, rgba(246, 179, 200, 0.58) 0%, rgba(250, 212, 224, 0.24) 55%, transparent 76%);
}

.prince-halo::before {
  background: radial-gradient(circle, rgba(235, 206, 172, 0.56) 0%, rgba(249, 232, 210, 0.24) 55%, transparent 76%);
}

.silhouette-img-princess {
  position: relative;
  z-index: 1;
  height: 160px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(84, 48, 56, 0.16));
}

.silhouette-img-prince {
  position: relative;
  z-index: 1;
  height: 154px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(84, 58, 42, 0.16));
}

.dresscode-note {
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   SECCIÓN 7: ITINERARIO / PROGRAMA SOBRE FONDO DE CASTILLO (00:21-00:29)
   ========================================================================== */
.program-section {
  position: relative;
  padding: 58px 16px 62px;
  background-image:
    linear-gradient(
      180deg,
      rgba(254, 242, 246, 1) 0%,
      rgba(254, 242, 246, 1) 4%,
      rgba(254, 242, 246, 0.78) 14%,
      rgba(253, 239, 244, 0.62) 26%,
      rgba(253, 238, 244, 0.62) 74%,
      rgba(254, 243, 247, 0.85) 86%,
      rgba(254, 244, 247, 1) 95%,
      rgba(254, 244, 247, 1) 100%
    ),
    url("assets/bg_castle_itinerary.jpg");
  background-size: cover;
  background-position: center;
}

.program-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 48px;
  background: linear-gradient(
    180deg,
    rgba(254, 242, 246, 0) 0%,
    #fef2f6 38%,
    #fef2f6 62%,
    rgba(254, 242, 246, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.program-heading,
.timeline {
  position: relative;
  z-index: 2;
}

.program-heading {
  text-align: center;
  font-size: clamp(2.85rem, 10.5vw, 3.5rem);
  margin-bottom: 28px;
}

.timeline {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

/* Línea vertical dorada central */
.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.8px;
  background: linear-gradient(
    180deg,
    rgba(186, 138, 44, 0.25) 0%,
    #b9892c 12%,
    #b9892c 88%,
    rgba(186, 138, 44, 0.25) 100%
  );
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  padding: 0 4px;
}

.timeline-row:last-child {
  margin-bottom: 0;
}

.timeline-icon-col {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 4px;
}

.timeline-icon-col img {
  width: 100%;
  max-width: 138px;
  max-height: 134px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(105, 64, 46, 0.16));
}

/* Punto tipo mini sello de cera dorado/rosa en el centro */
.timeline-dot-col {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.timeline-wax-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5df97 0%, #c6932c 65%, #8c6212 100%);
  border: 2px solid #fff6e5;
  box-shadow: 0 2px 6px rgba(112, 74, 16, 0.35);
}

.timeline-info-col {
  text-align: center;
  padding: 0 4px;
  min-width: 0;
}

.tl-event-title {
  font-family: var(--font-serif-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #362218;
  margin-bottom: 6px;
}

.tl-venue-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3f281c;
  line-height: 1.28;
  margin-bottom: 3px;
}

.tl-address {
  font-size: 0.94rem;
  line-height: 1.38;
  color: #4d3426;
  margin-bottom: 6px;
}

.tl-time {
  font-family: var(--font-serif-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #3b2519;
  margin-bottom: 8px;
}

.tl-map-link {
  display: inline-block;
  font-family: var(--font-serif-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: #6b4618;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 250, 244, 0.72);
  transition: background 0.2s, color 0.2s;
}

.tl-map-link:hover {
  background: rgba(255, 240, 218, 0.95);
  color: #42290a;
}

.tl-map-pending {
  display: inline-block;
  font-size: 0.84rem;
  font-style: italic;
  color: #7c5c4a;
}

/* ==========================================================================
   SECCIÓN 8 Y 9: REGALOS + CONFIRMACIÓN Y CALENDARIO (00:29-00:32)
   ========================================================================== */
.palace-finale-section {
  position: relative;
  padding: 52px 20px 56px;
  text-align: center;
  background-image:
    linear-gradient(
      180deg,
      rgba(254, 244, 247, 1) 0%,
      rgba(254, 244, 247, 1) 5%,
      rgba(254, 244, 247, 0.84) 14%,
      rgba(254, 240, 245, 0.70) 26%,
      rgba(254, 240, 245, 0.78) 78%,
      rgba(252, 232, 239, 0.95) 100%
    ),
    url("assets/bg_palace_rsvp.jpg");
  background-size: cover;
  background-position: center top;
}

.palace-finale-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -28px;
  height: 56px;
  background: linear-gradient(
    180deg,
    rgba(254, 244, 247, 0) 0%,
    #fef4f7 38%,
    #fef4f7 62%,
    rgba(254, 244, 247, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.palace-finale-section > * {
  position: relative;
  z-index: 2;
}

.gifts-header-wrap,
.gift-box-wrap {
  position: relative;
}

.gift-deco-butterfly {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(120, 82, 16, 0.2));
  z-index: 3;
}

.bf-left {
  width: 28px;
  left: -4px;
  bottom: -14px;
  transform: rotate(-16deg);
  animation: fairyFloat 3.9s ease-in-out infinite 0.3s;
}

.bf-right-sm {
  width: 22px;
  top: -18px;
  left: 10px;
  transform: rotate(15deg);
  animation: fairyFloat 3.5s ease-in-out infinite 0.8s;
}

.bf-right-lg {
  width: 30px;
  top: -32px;
  left: 34px;
  transform: rotate(-10deg);
  animation: fairyFloat 4.2s ease-in-out infinite;
}

.gifts-title {
  font-family: var(--font-serif-display);
  font-size: clamp(1.18rem, 4.6vw, 1.42rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.42;
  margin-bottom: 12px;
}

.gifts-subtitle {
  font-size: 1.04rem;
  line-height: 1.5;
  color: var(--text-dark);
  max-width: 330px;
  margin: 0 auto 26px;
}

.gift-option-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 14px;
  max-width: 370px;
  margin: 0 auto 24px;
}

.gift-option-label {
  font-family: var(--font-serif-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.45;
  color: var(--text-dark);
}

.gift-envelope-composite {
  position: relative;
  width: 100%;
  max-width: 176px;
  margin: 0 auto;
}

.gift-illustration-envelope {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(130, 70, 88, 0.16));
}

.gift-envelope-seal {
  position: absolute;
  left: 50%;
  top: 53.5%;
  transform: translate(-50%, -44%);
  width: 48px;
  height: auto;
  filter: drop-shadow(0 3px 6px rgba(92, 42, 58, 0.3));
}

.gift-illustration-box {
  width: 100%;
  max-width: 158px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(130, 70, 88, 0.22));
}

/* Bloque RSVP y Calendario de Noviembre 2026 */
.rsvp-container {
  margin-top: 36px;
  padding-top: 12px;
}

.rsvp-heading {
  font-family: var(--font-serif-display);
  font-size: clamp(1.5rem, 5.6vw, 1.85rem);
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.calendar-card {
  max-width: 325px;
  margin: 0 auto 26px;
  padding: 18px 16px 20px;
  background: rgba(255, 251, 249, 0.84);
  backdrop-filter: blur(4px);
  border: 1.2px solid rgba(188, 144, 58, 0.54);
  border-radius: 14px;
  box-shadow:
    0 10px 26px rgba(122, 68, 84, 0.12),
    inset 0 0 0 3px rgba(255, 248, 244, 0.65);
}

.calendar-month-script {
  font-family: var(--font-script);
  font-size: 2.45rem;
  color: #4f3424;
  line-height: 1.05;
}

.calendar-year-sub {
  font-family: var(--font-serif-display);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  color: #8a6421;
  margin-bottom: 12px;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.calendar-weekdays span {
  font-family: var(--font-serif-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7d5b46;
  padding-bottom: 6px;
}

.cal-day {
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.cal-day.special-day {
  color: #ffffff;
  font-weight: 700;
  z-index: 1;
}

.cal-day.special-day::before {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9829b 0%, #b8860b 100%);
  box-shadow: 0 3px 10px rgba(184, 110, 80, 0.45);
  z-index: -1;
}

/* Formulario rápido para confirmar por WhatsApp */
.rsvp-form-card {
  max-width: 340px;
  margin: 0 auto;
  padding: 20px 18px;
  background: rgba(255, 252, 250, 0.88);
  border: 1.2px solid rgba(188, 144, 58, 0.54);
  border-radius: 14px;
  box-shadow:
    0 10px 26px rgba(122, 68, 84, 0.14),
    inset 0 0 0 3px rgba(255, 248, 244, 0.65);
}

.rsvp-input,
.rsvp-select {
  width: 100%;
  padding: 10px 13px;
  margin-bottom: 10px;
  border: 1px solid rgba(186, 142, 68, 0.5);
  border-radius: 8px;
  background: #fffdfb;
  font-family: var(--font-serif-body);
  font-size: 1rem;
  color: var(--text-dark);
}

.rsvp-input:focus,
.rsvp-select:focus {
  outline: none;
  border-color: #b8860b;
  box-shadow: 0 0 0 2px rgba(207, 161, 60, 0.22);
}

.rsvp-submit-btn {
  width: 100%;
  margin-top: 4px;
  padding: 12px 20px;
  font-size: 0.88rem;
}

.footer-sign {
  margin-top: 32px;
  font-family: var(--font-script);
  font-size: 1.95rem;
  color: #6d4928;
}

/* Botón flotante discreto de música */
.floating-music-btn {
  position: fixed;
  bottom: 18px;
  right: max(16px, calc(50% - 214px));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #c99d3b;
  background: rgba(255, 245, 248, 0.92);
  color: #7c5321;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 70;
  box-shadow: 0 4px 14px rgba(102, 50, 66, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.25s ease;
}

.floating-music-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.floating-music-btn:hover {
  transform: scale(1.08);
}

@media (max-width: 375px) {
  .timeline-row {
    grid-template-columns: 1fr 22px 1.08fr;
    gap: 5px;
  }
  .big-date-side {
    min-width: 68px;
  }
}
