/* ==========================================================================
   INVITATION.CSS - ESTILOS PRINCIPALES DE LA INVITACIÓN INFANTIL SOFÍA
   Recreación fiel de la imagen de referencia K-Pop / 1er Añito
   ========================================================================== */

/* Contenedor principal a pantalla completa con variación marcada entre 3 tonos de lila (como imagen de referencia) */
.main-invitation-container {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 6%, rgba(196, 118, 255, 0.35) 0%, transparent 32%),
    radial-gradient(circle at 50% 71%, rgba(92, 28, 158, 0.35) 0%, transparent 30%),
    linear-gradient(180deg,
      #6423a3 0%,
      #7b33be 10%,
      #ba6be8 18%,
      #f2c6f5 27%,
      #f8dcfb 40%,
      #f0c0f4 52%,
      #ba6be8 60%,
      #6926a8 68%,
      #7c35bf 75%,
      #c173ec 81%,
      #f4caf7 88%,
      #be6fed 95%,
      #7730b8 100%);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Brillos suaves superiores tipo luces de escenario K-Pop */
.bg-glow-top {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 780px;
  height: 360px;
  background: radial-gradient(circle, rgba(232, 148, 255, 0.45) 0%, rgba(116, 44, 188, 0.25) 50%, transparent 78%);
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   SISTEMA DE HUMO DIFUMINADO TIPO NUBES (AMBIENTAL, SECCIONES Y DIBUJOS)
   ========================================================================== */
.ambient-smoke-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.ambient-cloud {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(42px);
  opacity: 0.62;
  animation: floatCloudSmoke 9s ease-in-out infinite alternate;
}

.ambient-cloud.cloud-1 {
  top: 4%;
  left: -8%;
  width: 340px;
  height: 150px;
  background: radial-gradient(ellipse at center, rgba(164, 92, 240, 0.75) 0%, rgba(102, 35, 165, 0.5) 55%, transparent 82%);
}

.ambient-cloud.cloud-2 {
  top: 17%;
  right: -10%;
  width: 380px;
  height: 175px;
  background: radial-gradient(ellipse at center, rgba(212, 138, 250, 0.78) 0%, rgba(182, 102, 232, 0.55) 55%, transparent 82%);
  animation-delay: -2.5s;
}

.ambient-cloud.cloud-3 {
  top: 34%;
  left: -12%;
  width: 400px;
  height: 185px;
  background: radial-gradient(ellipse at center, rgba(255, 235, 252, 0.85) 0%, rgba(242, 194, 246, 0.65) 55%, transparent 84%);
  animation-delay: -4.5s;
}

.ambient-cloud.cloud-4 {
  top: 50%;
  right: -8%;
  width: 370px;
  height: 175px;
  background: radial-gradient(ellipse at center, rgba(248, 212, 252, 0.8) 0%, rgba(196, 120, 238, 0.58) 55%, transparent 82%);
  animation-delay: -1.8s;
}

.ambient-cloud.cloud-5 {
  top: 67%;
  left: -10%;
  width: 400px;
  height: 185px;
  background: radial-gradient(ellipse at center, rgba(142, 62, 214, 0.75) 0%, rgba(98, 32, 162, 0.55) 55%, transparent 84%);
  animation-delay: -3.2s;
}

.ambient-cloud.cloud-6 {
  top: 82%;
  right: -10%;
  width: 380px;
  height: 175px;
  background: radial-gradient(ellipse at center, rgba(252, 220, 255, 0.82) 0%, rgba(208, 132, 242, 0.6) 55%, transparent 82%);
  animation-delay: -5.4s;
}

.ambient-cloud.cloud-7 {
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 195px;
  background: radial-gradient(ellipse at center, rgba(216, 142, 250, 0.78) 0%, rgba(126, 52, 196, 0.58) 52%, transparent 84%);
}

@keyframes floatCloudSmoke {
  0% {
    transform: translateY(0px) scale(1);
  }

  100% {
    transform: translateY(-14px) scale(1.06);
  }
}

/* ==========================================================================
   ESTRELLAS Y CORAZONES FLOTANTES DE FONDO (DETRÁS DEL TEXTO Y TARJETAS)
   ========================================================================== */
.floating-bg-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.bg-float-item {
  position: absolute;
  display: inline-block;
  user-select: none;
  pointer-events: none;
  line-height: 1;
  opacity: 0.78;
  will-change: transform, opacity;
  animation: floatBgDecor 7.2s ease-in-out infinite alternate;
}

/* Variantes de color: Estrellas lilas y blancas */
.bg-float-item.star-white {
  color: #ffffff;
  font-size: 1.25rem;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.95),
    0 2px 6px rgba(102, 36, 168, 0.5);
}

.bg-float-item.star-lilac {
  color: #a855f7;
  font-size: 1.2rem;
  text-shadow:
    -1.5px -1.5px 0 #ffffff,
    1.5px -1.5px 0 #ffffff,
    -1.5px 1.5px 0 #ffffff,
    1.5px 1.5px 0 #ffffff,
    0 3px 7px rgba(88, 28, 135, 0.4);
}

/* Variantes de color: Corazones lilas, rosados y blancos */
.bg-float-item.heart-lilac {
  color: #9333ea;
  font-size: 1.2rem;
  text-shadow:
    -1.5px -1.5px 0 #ffffff,
    1.5px -1.5px 0 #ffffff,
    -1.5px 1.5px 0 #ffffff,
    1.5px 1.5px 0 #ffffff,
    0 3px 7px rgba(88, 28, 135, 0.4);
}

.bg-float-item.heart-pink {
  color: #ff479b;
  font-size: 1.25rem;
  text-shadow:
    -1.5px -1.5px 0 #ffffff,
    1.5px -1.5px 0 #ffffff,
    -1.5px 1.5px 0 #ffffff,
    1.5px 1.5px 0 #ffffff,
    0 3px 7px rgba(190, 24, 93, 0.38);
}

.bg-float-item.heart-white {
  color: #ffffff;
  font-size: 1.3rem;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.95),
    0 2px 6px rgba(102, 36, 168, 0.55);
}

/* 28 posiciones en los márgenes laterales para no tapar nunca las letras */
/* Zona 1: Hero Superior */
.bg-float-item.pos-1 {
  top: 1.8%;
  left: 3%;
  font-size: 1.3rem;
  animation-duration: 6.8s;
  animation-delay: -0.8s;
}

.bg-float-item.pos-2 {
  top: 3.5%;
  right: 3.5%;
  font-size: 1.2rem;
  animation-duration: 7.6s;
  animation-delay: -2.4s;
}

.bg-float-item.pos-3 {
  top: 7.2%;
  left: 3.5%;
  font-size: 1.15rem;
  animation-duration: 6.4s;
  animation-delay: -1.9s;
}

.bg-float-item.pos-4 {
  top: 8.8%;
  right: 4%;
  font-size: 1.35rem;
  animation-duration: 8.2s;
  animation-delay: -3.7s;
}

.bg-float-item.pos-5 {
  top: 12.8%;
  left: 2.5%;
  font-size: 1.2rem;
  animation-duration: 7.4s;
  animation-delay: -0.5s;
}

.bg-float-item.pos-6 {
  top: 14.2%;
  right: 3%;
  font-size: 1.25rem;
  animation-duration: 6.9s;
  animation-delay: -4.2s;
}

/* Zona 2: Sobre Rosa Abierto */
.bg-float-item.pos-7 {
  top: 18.2%;
  left: 3.5%;
  font-size: 1.3rem;
  animation-duration: 7.8s;
  animation-delay: -2.1s;
}

.bg-float-item.pos-8 {
  top: 19.8%;
  right: 3.5%;
  font-size: 1.2rem;
  animation-duration: 6.6s;
  animation-delay: -1.3s;
}

.bg-float-item.pos-9 {
  top: 23.5%;
  left: 2.5%;
  font-size: 1.25rem;
  animation-duration: 7.5s;
  animation-delay: -3.1s;
}

.bg-float-item.pos-10 {
  top: 25.2%;
  right: 2.5%;
  font-size: 1.35rem;
  animation-duration: 7.1s;
  animation-delay: -1.4s;
}

.bg-float-item.pos-11 {
  top: 28.8%;
  left: 3.5%;
  font-size: 1.15rem;
  animation-duration: 8.0s;
  animation-delay: -4.8s;
}

.bg-float-item.pos-12 {
  top: 30.2%;
  right: 3.5%;
  font-size: 1.25rem;
  animation-duration: 6.7s;
  animation-delay: -2.7s;
}

/* Zona 3: Calendario y Cuenta Regresiva */
.bg-float-item.pos-13 {
  top: 35.5%;
  left: 2%;
  font-size: 1.2rem;
  animation-duration: 7.9s;
  animation-delay: -0.9s;
}

.bg-float-item.pos-14 {
  top: 38.5%;
  right: 2%;
  font-size: 1.25rem;
  animation-duration: 7.2s;
  animation-delay: -3.9s;
}

.bg-float-item.pos-15 {
  top: 43.2%;
  left: 2%;
  font-size: 1.15rem;
  animation-duration: 7.6s;
  animation-delay: -2.2s;
}

.bg-float-item.pos-16 {
  top: 46.8%;
  right: 2%;
  font-size: 1.3rem;
  animation-duration: 6.8s;
  animation-delay: -4.5s;
}

.bg-float-item.pos-17 {
  top: 50.8%;
  left: 2.5%;
  font-size: 1.25rem;
  animation-duration: 8.1s;
  animation-delay: -1.2s;
}

.bg-float-item.pos-18 {
  top: 53.5%;
  right: 2.5%;
  font-size: 1.2rem;
  animation-duration: 6.5s;
  animation-delay: -3.3s;
}

/* Zona 4: Hora, Lugar y Gatito */
.bg-float-item.pos-19 {
  top: 57.8%;
  left: 2%;
  font-size: 1.25rem;
  animation-duration: 7.4s;
  animation-delay: -2.0s;
}

.bg-float-item.pos-20 {
  top: 60.5%;
  right: 2%;
  font-size: 1.2rem;
  animation-duration: 7.8s;
  animation-delay: -4.6s;
}

.bg-float-item.pos-21 {
  top: 63.8%;
  left: 5%;
  font-size: 1.3rem;
  animation-duration: 6.9s;
  animation-delay: -1.5s;
}

.bg-float-item.pos-22 {
  top: 65.2%;
  right: 5%;
  font-size: 1.35rem;
  animation-duration: 7.7s;
  animation-delay: -3.8s;
}

.bg-float-item.pos-23 {
  top: 68.5%;
  left: 4%;
  font-size: 1.2rem;
  animation-duration: 7.1s;
  animation-delay: -0.7s;
}

.bg-float-item.pos-24 {
  top: 70.2%;
  right: 4%;
  font-size: 1.25rem;
  animation-duration: 8.3s;
  animation-delay: -2.9s;
}

/* Zona 5: RSVP, Mis Papás y Micrófonos */
.bg-float-item.pos-25 {
  top: 76.5%;
  left: 2%;
  font-size: 1.2rem;
  animation-duration: 6.8s;
  animation-delay: -4.1s;
}

.bg-float-item.pos-26 {
  top: 81.5%;
  right: 2%;
  font-size: 1.25rem;
  animation-duration: 7.5s;
  animation-delay: -1.8s;
}

.bg-float-item.pos-27 {
  top: 88.5%;
  left: 4%;
  font-size: 1.3rem;
  animation-duration: 7.9s;
  animation-delay: -3.5s;
}

.bg-float-item.pos-28 {
  top: 93.5%;
  right: 4%;
  font-size: 1.25rem;
  animation-duration: 7.0s;
  animation-delay: -1.1s;
}

@keyframes floatBgDecor {
  0% {
    transform: translateY(0px) translateX(0px) rotate(-6deg) scale(0.95);
    opacity: 0.62;
  }

  50% {
    opacity: 0.86;
  }

  100% {
    transform: translateY(-14px) translateX(4px) rotate(8deg) scale(1.06);
    opacity: 0.74;
  }
}

/* Aura luminosa de humo detrás de cada dibujo */
.drawing-smoke-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.drawing-smoke-aura.kpop-aura {
  width: 108%;
  height: 92%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 192, 230, 0.72) 38%, rgba(210, 165, 255, 0.48) 65%, transparent 84%);
  filter: blur(22px);
}

.drawing-smoke-aura.cat-aura {
  width: 145%;
  height: 125%;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 194, 230, 0.78) 42%, rgba(212, 168, 255, 0.5) 68%, transparent 86%);
  filter: blur(18px);
}

.drawing-smoke-aura.mic-aura {
  width: 135%;
  height: 120%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 186, 226, 0.75) 42%, rgba(202, 152, 255, 0.52) 68%, transparent 86%);
  filter: blur(20px);
}

/* Nubes de humo difuminado en la base y bordes de los dibujos */
.drawing-cloud-smoke {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -14px;
  height: 76px;
  pointer-events: none;
  z-index: 3;
}

.drawing-cloud-smoke .smoke-puff {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}

.drawing-cloud-smoke .puff-center {
  left: 12%;
  right: 12%;
  bottom: -4px;
  height: 58px;
  background: radial-gradient(ellipse at center,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(253, 224, 245, 0.92) 48%,
      rgba(235, 204, 255, 0.65) 75%,
      transparent 100%);
  filter: blur(11px);
}

.drawing-cloud-smoke .puff-left {
  left: -4%;
  bottom: 4px;
  width: 54%;
  height: 54px;
  background: radial-gradient(ellipse at center,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 206, 235, 0.85) 55%,
      transparent 95%);
  filter: blur(12px);
}

.drawing-cloud-smoke .puff-right {
  right: -4%;
  bottom: 4px;
  width: 54%;
  height: 54px;
  background: radial-gradient(ellipse at center,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(228, 196, 255, 0.85) 55%,
      transparent 95%);
  filter: blur(12px);
}

.drawing-cloud-smoke .puff-bottom-glow {
  left: 4%;
  right: 4%;
  bottom: -14px;
  height: 46px;
  background: radial-gradient(ellipse at center,
      rgba(255, 190, 228, 0.78) 0%,
      rgba(214, 172, 255, 0.55) 60%,
      transparent 95%);
  filter: blur(16px);
}

/* Ajustes específicos del humo por dibujo */
.drawing-cloud-smoke.kpop-smoke {
  bottom: 2px;
  height: 85px;
}

.drawing-cloud-smoke.cat-smoke {
  bottom: -10px;
  height: 56px;
  left: -24%;
  right: -24%;
}

.drawing-cloud-smoke.mic-smoke {
  bottom: -54px;
  height: 68px;
  left: -16%;
  right: -16%;
}

/* Niebla / nubes difuminadas detrás de secciones clave */
.has-section-smoke {
  position: relative;
}

.section-cloud-mist {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  border-radius: 9999px;
}

.section-cloud-mist.envelope-mist {
  top: 12%;
  width: 110%;
  max-width: 680px;
  height: 290px;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 196, 230, 0.55) 50%, transparent 78%),
    radial-gradient(ellipse at 70% 55%, rgba(255, 255, 255, 0.88) 0%, rgba(220, 184, 255, 0.55) 50%, transparent 78%);
  filter: blur(26px);
}

.section-cloud-mist.rsvp-mist {
  top: 10%;
  width: 112%;
  max-width: 760px;
  height: 340px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.82) 0%, rgba(255, 192, 230, 0.52) 45%, rgba(212, 170, 255, 0.42) 70%, transparent 90%);
  filter: blur(30px);
}

/* ==========================================================================
   1. SECCIÓN HERO: K-POP TRIO, CORONA, NOMBRE "SOFÍA" Y CINTA
   ========================================================================== */
.hero-section {
  width: 100%;
  position: relative;
  padding: 1.25rem 1rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 3;
}

.hero-kpop-wrapper {
  position: relative;
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
}

.hero-kpop-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 8px 20px rgba(138, 62, 184, 0.22));
  /* Suavizado inferior y de bordes para fundirse con el humo de nubes */
  -webkit-mask-image: radial-gradient(ellipse 92% 90% at 50% 44%, #000000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 90% at 50% 44%, #000000 72%, transparent 100%);
}

/* Destellos flotantes del Hero */
.hero-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.hero-sparkle.left-star {
  left: 10px;
  top: 22px;
  color: #f472b6;
  font-size: 1rem;
}

.hero-sparkle.right-star {
  right: 14px;
  top: 28px;
  color: #a855f7;
  font-size: 1.1rem;
}

/* Bloque de Corona + Nombre Sofía + Cinta */
.hero-title-block {
  position: relative;
  margin-top: -3.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  z-index: 4;
}

/* Corona Rosa con Borde Blanco tipo Sticker */
.crown-badge {
  margin-bottom: -0.65rem;
  z-index: 5;
  filter: drop-shadow(0 3px 6px rgba(90, 32, 138, 0.25));
  transition: transform 0.3s ease;
}

.crown-badge:hover {
  transform: scale(1.08) rotate(-3deg);
}

.crown-svg {
  width: 50px;
  height: 38px;
  overflow: visible;
}

/* Fila con estrellas laterales y nombre "Sofía" */
.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  position: relative;
}

.name-side-star {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 4px rgba(88, 35, 130, 0.25));
}

.kid-name-title {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: 4.1rem;
  line-height: 1.05;
  color: var(--purple-deep);
  letter-spacing: 0.01em;
  /* Efecto sticker blanco grueso + sombra morada como en la imagen */
  paint-order: stroke fill;
  -webkit-text-stroke: 7px #ffffff;
  text-shadow:
    0 4px 10px rgba(72, 26, 108, 0.32),
    0 1px 2px rgba(72, 26, 108, 0.2);
  padding: 0 0.15rem;
}

/* Cinta 3D "¡Mi primer añito!" con colas laterales */
.ribbon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -0.25rem;
  margin-bottom: 1.15rem;
  z-index: 4;
}

/* Colas laterales de la cinta */
.ribbon-tail {
  position: absolute;
  bottom: -6px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ebb2d6 0%, #d896c5 100%);
  z-index: 1;
}

.ribbon-tail.left {
  left: -16px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%, 32% 45%);
  transform: rotate(-6deg);
}

.ribbon-tail.right {
  right: -16px;
  clip-path: polygon(0 0, 100% 0, 68% 45%, 100% 85%, 0 100%);
  transform: rotate(6deg);
}

.banner-ribbon {
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #f8cde6 0%, #fdf7fc 25%, #ffffff 50%, #fdf7fc 75%, #f8cde6 100%);
  border: 2px solid #ffffff;
  padding: 0.38rem 1.45rem;
  border-radius: 9999px;
  box-shadow: 0 6px 16px rgba(114, 58, 162, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.banner-ribbon .ribbon-heart {
  color: var(--pink-accent);
  font-size: 1rem;
  line-height: 1;
}

.banner-ribbon .ribbon-text {
  font-family: var(--font-editorial);
  font-weight: 700;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--purple-deep);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   2. SECCIÓN SOBRE ROSA ABIERTO CON FOTO Y MOÑO ("¡Acompáñanos a celebrar!")
   ========================================================================== */
.photo-envelope-section {
  width: 100%;
  padding: 3.15rem 1.35rem 5.85rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

.open-envelope-stage {
  position: relative;
  width: 100%;
  max-width: 315px;
  padding-top: 2.35rem;
  margin: 0 auto;
}

/* Solapa triangular superior abierta detrás de la foto */
.envelope-top-flap-open {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 115px;
  background: linear-gradient(180deg, #fbd2e6 0%, #f3a1c7 100%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  filter: drop-shadow(0 -2px 6px rgba(176, 65, 122, 0.15));
  z-index: 1;
}

/* Cuerpo principal del sobre rosa */
.envelope-body-box {
  position: relative;
  width: 100%;
  height: 205px;
  background: linear-gradient(180deg, #f6a7cb 0%, #f8bbd8 100%);
  border-radius: 0.4rem 0.4rem 1.25rem 1.25rem;
  box-shadow: 0 12px 28px rgba(170, 62, 122, 0.26);
  z-index: 2;
  display: flex;
  justify-content: center;
}

/* Fotografía de Sofía saliendo del sobre */
.envelope-photo-card {
  position: absolute;
  top: -26px;
  width: 82%;
  background-color: #fff9fb;
  padding: 0.42rem 0.42rem 0.85rem 0.42rem;
  border-radius: 0.85rem;
  box-shadow: 0 8px 20px rgba(92, 30, 82, 0.22);
  transform: rotate(-2.5deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
  cursor: pointer;
}

.envelope-photo-card:hover {
  transform: rotate(0deg) translateY(-6px);
}

.envelope-photo-inner {
  width: 100%;
  height: 175px;
  border-radius: 0.6rem;
  overflow: hidden;
  background-color: #fce7f3;
}

.envelope-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Solapas laterales e inferior del sobre que cubren la base de la foto */
.envelope-front-pocket {
  position: absolute;
  inset: 0;
  border-radius: 0.35rem 0.35rem 1.25rem 1.25rem;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}

/* Solapa izquierda */
.envelope-flap-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffcbe2 0%, #f7a8cc 100%);
  clip-path: polygon(0 0, 52% 58%, 0 100%);
  filter: drop-shadow(2px 0 4px rgba(186, 62, 118, 0.15));
}

/* Solapa derecha */
.envelope-flap-right {
  position: absolute;
  inset: 0;
  background: linear-gradient(225deg, #ffcbe2 0%, #f7a8cc 100%);
  clip-path: polygon(100% 0, 48% 58%, 100% 100%);
  filter: drop-shadow(-2px 0 4px rgba(186, 62, 118, 0.15));
}

/* Solapa inferior triangular */
.envelope-flap-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68%;
  background: linear-gradient(180deg, #ffd8ea 0%, #f9b1d2 55%, #f49bc3 100%);
  clip-path: polygon(0 100%, 50% 8%, 100% 100%);
  filter: drop-shadow(0 -3px 6px rgba(176, 56, 110, 0.18));
}

/* Moño rosa y sello de corazón en la punta inferior del sobre */
.envelope-bow-seal {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bow-ribbon-svg {
  position: absolute;
  width: 96px;
  height: 54px;
  top: 4px;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(186, 45, 108, 0.28));
}

.heart-seal-badge {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff7eb6, #ec3882 70%, #c91e66 100%);
  border: 2.5px solid #ffdbf0;
  box-shadow: 0 4px 12px rgba(226, 48, 120, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.25s ease;
}

.envelope-bow-seal:hover .heart-seal-badge {
  transform: scale(1.1);
}

.heart-seal-badge svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Subtítulo "¡Acompáñanos a celebrar!" */
.celebrate-heading {
  font-family: var(--font-editorial);
  font-weight: 700;
  font-style: italic;
  font-size: 1.72rem;
  line-height: 1.2;
  color: var(--purple-deep);
  text-align: center;
  margin-top: 2.45rem;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.95);
  z-index: 1;
}

/* ==========================================================================
   3. SECCIÓN CALENDARIO ("23 Mi Cumpleaños - Mayo 2026")
   ========================================================================== */
.calendar-section {
  width: 100%;
  padding: 1.25rem 1.25rem 1.45rem 1.25rem;
  z-index: 3;
}

.white-soft-card {
  background-color: var(--card-white);
  border-radius: 1.65rem;
  padding: 1.25rem 1.15rem 1.2rem 1.15rem;
  box-shadow:
    0 10px 26px -4px rgba(108, 62, 158, 0.14),
    0 2px 6px -1px rgba(108, 62, 158, 0.08);
  border: 1.5px solid rgba(230, 214, 248, 0.85);
  position: relative;
}

/* Píldora superior "23 Mi Cumpleaños" */
.birthday-pill-wrap {
  display: flex;
  justify-content: center;
  margin-top: -2.15rem;
  margin-bottom: 0.65rem;
}

.birthday-pill {
  background: linear-gradient(90deg, #8f6ec4 0%, #7854b2 100%);
  color: #ffffff;
  padding: 0.38rem 1.2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 5px 14px rgba(112, 74, 175, 0.32);
  border: 2px solid #f7f0fe;
}

.calendar-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.22);
  border: 1.5px solid #ffffff;
  border-radius: 0.35rem;
  padding: 0.05rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
}

.birthday-pill-text {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* Cabecera del mes: ◄ Mayo 2026 ► */
.calendar-month-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.65rem;
}

.month-arrow {
  color: var(--purple-medium);
  font-size: 0.8rem;
  line-height: 1;
  user-select: none;
}

.month-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.12rem;
  color: var(--purple-deep);
}

/* Cabecera días de la semana */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--purple-main);
  margin-bottom: 0.4rem;
}

/* Cuadrícula de días */
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--purple-deep);
  row-gap: 0.35rem;
  align-items: center;
}

.calendar-days span {
  padding: 0.22rem 0;
}

.calendar-days .empty-day {
  visibility: hidden;
}

/* Día 23 resaltado en círculo rosa con corazón */
.calendar-day-highlight {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5d9e 0%, #e33b81 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(231, 62, 132, 0.4);
}

.calendar-day-heart {
  position: absolute;
  top: -3px;
  right: 1px;
  color: var(--pink-accent);
  font-size: 0.65rem;
  line-height: 1;
}

/* ==========================================================================
   4. SECCIÓN CUENTA REGRESIVA ("Falta poco...")
   ========================================================================== */
.countdown-section {
  width: 100%;
  padding: 0.75rem 1.25rem 1.45rem 1.25rem;
  z-index: 3;
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.countdown-clock-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--purple-medium);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-clock-icon svg {
  width: 16px;
  height: 16px;
}

.countdown-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--purple-deep);
}

.countdown-boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.countdown-purple-box {
  background: linear-gradient(180deg, #9877cb 0%, #7d59b6 100%);
  color: #ffffff;
  border-radius: 1.05rem;
  padding: 0.6rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25), 0 5px 12px rgba(112, 74, 175, 0.25);
}

.countdown-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1.05;
}

.countdown-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f3e8ff;
  margin-top: 0.1rem;
}

/* ==========================================================================
   5. DETALLES DEL EVENTO: HORA Y LUGAR (2 TARJETAS PARALELAS)
   ========================================================================== */
.details-grid-section {
  width: 100%;
  padding: 0.75rem 1.25rem 1.45rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0.75rem;
  z-index: 3;
}

.detail-card {
  background-color: var(--card-white);
  border-radius: 1.5rem;
  padding: 0.95rem 0.75rem;
  margin: 1rem 0;
  box-shadow: 0 8px 22px -4px rgba(108, 62, 158, 0.13);
  border: 1.5px solid rgba(230, 214, 248, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -4px rgba(108, 62, 158, 0.22);
}

.detail-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #f2e8fc;
  color: var(--purple-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.detail-icon-circle svg {
  width: 20px;
  height: 20px;
}

.detail-header-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.25rem;
}

.detail-label-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--purple-deep);
}

.detail-time-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.22rem;
  color: var(--purple-deep);
  margin-top: 0.1rem;
}

.detail-place-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.22;
  color: var(--purple-deep);
}

.detail-map-hint {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--pink-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   6. MASCOTA GATITO SONRIENTE CON CORAZÓN
   ========================================================================== */
.mascot-cat-section {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 4;
}

.cat-wrapper {
  position: relative;
  width: 168px;
  display: flex;
  justify-content: center;
}

.cat-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(136, 56, 178, 0.22));
  -webkit-mask-image: radial-gradient(ellipse 92% 92% at 50% 46%, #000000 74%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 92% at 50% 46%, #000000 74%, transparent 100%);
  transition: transform 0.3s ease;
}

.cat-wrapper:hover .cat-img {
  transform: scale(1.05) rotate(2deg);
}

.cat-floating-heart {
  position: absolute;
  right: -12px;
  bottom: 24px;
  color: var(--purple-medium);
  font-size: 1.35rem;
  transform: rotate(12deg);
}

/* ==========================================================================
   7. SECCIÓN RSVP (TÍTULO GRANDE + TARJETA + BOTÓN WHATSAPP)
   ========================================================================== */
.rsvp-section {
  width: 100%;
  padding: 1.2rem 1.25rem 1.75rem 1.25rem;
  z-index: 4;
}

.rsvp-big-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 2.65rem;
  line-height: 1.05;
  color: #ffffff;
  paint-order: stroke fill;
  -webkit-text-stroke: 5px #531b8e;
  text-align: center;
  margin-bottom: 0.65rem;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 12px rgba(58, 16, 102, 0.45);
}

.rsvp-card {
  background-color: var(--card-white);
  border-radius: 1.65rem;
  padding: 1.15rem 1.15rem 1.3rem 1.15rem;
  box-shadow: 0 10px 28px -6px rgba(96, 46, 148, 0.16);
  border: 1.5px solid rgba(230, 214, 248, 0.9);
}

.rsvp-subtitle {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 0.9rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rsvp-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.rsvp-field-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--purple-deep);
  padding-left: 0.25rem;
}

.rsvp-select-wrap {
  position: relative;
}

.rsvp-input,
.rsvp-select,
.rsvp-textarea {
  width: 100%;
  background-color: var(--lavender-input);
  border: 1.5px solid var(--lavender-border);
  border-radius: 0.95rem;
  padding: 0.72rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--purple-deep);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.rsvp-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2rem;
  cursor: pointer;
}

.rsvp-input::placeholder,
.rsvp-textarea::placeholder {
  color: #846ba2;
  font-weight: 600;
}

.rsvp-input:focus,
.rsvp-select:focus,
.rsvp-textarea:focus {
  border-color: var(--purple-medium);
  background-color: #efe6fc;
  box-shadow: 0 0 0 3px rgba(142, 104, 198, 0.2);
}

.rsvp-select-arrow {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--purple-medium);
  font-size: 0.75rem;
}

/* Botón Verde de Confirmar Asistencia por WhatsApp */
.whatsapp-confirm-btn {
  margin-top: 1rem;
  width: 100%;
  background: linear-gradient(180deg, #6700bd 0%, #75329f 100%);
  color: #ffffff;
  border: 2.5px solid #ffffff;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.15;
  box-shadow: 0 8px 20px rgba(30, 179, 81, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(30, 179, 81, 0.45);
}

.whatsapp-confirm-btn:active {
  transform: scale(0.98);
}

.whatsapp-confirm-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ==========================================================================
   8. SECCIÓN PAPÁS, "¡TE ESPERAMOS!" Y MICRÓFONOS K-POP
   ========================================================================== */
.closing-section {
  width: 100%;
  padding: 1.15rem 1.25rem 2.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 3;
}

/* Insignia de dos niveles para "Mis papás" como en la imagen de referencia */
.parents-tiered-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 330px;
  margin-bottom: 1.25rem;
}

.parents-top-pill {
  background-color: #ede0fa;
  border: 1.5px solid #baa0db;
  border-radius: 9999px;
  padding: 0.22rem 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--purple-deep);
  z-index: 2;
  margin-bottom: -0.55rem;
  box-shadow: 0 2px 6px rgba(96, 46, 148, 0.1);
}

.parents-top-pill .heart-outline {
  color: var(--purple-medium);
  font-size: 0.85rem;
}

.parents-bottom-pill {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1.5px solid #baa0db;
  border-radius: 9999px;
  padding: 0.65rem 1rem 0.45rem 1rem;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--purple-deep);
  box-shadow: 0 4px 12px rgba(96, 46, 148, 0.08);
}

.te-esperamos-title {
  font-family: var(--font-editorial);
  font-weight: 700;
  font-style: italic;
  font-size: 1.95rem;
  color: var(--purple-deep);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.95);
  margin: 1rem 0;
}

.microphones-wrapper {
  position: relative;
  width: 100%;
  max-width: 265px;
  margin: 0 auto;
}

.microphones-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(136, 58, 184, 0.22));
  -webkit-mask-image: radial-gradient(ellipse 92% 90% at 50% 45%, #000000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 90% at 50% 45%, #000000 72%, transparent 100%);
}

.closing-watermark {
  font-size: 0.68rem;
  font-weight: 800;
  color: #681da2c2;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 6.9rem;
}

/* ==========================================================================
   9. BOTÓN FLOTANTE DE MÚSICA Y VISOR LIGHTBOX
   ========================================================================== */
.floating-music-btn {
  position: fixed;
  bottom: 6.25rem;
  right: 0.25rem;
  z-index: 150;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #861bcfa6 100%);
  border: 2.5px solid var(--purple-medium);
  box-shadow: 0 8px 20px rgba(72, 26, 108, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  cursor: pointer;
}

.floating-music-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Lightbox para ampliar la foto de Sofía */
#gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background-color: rgba(26, 8, 43, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 92vw;
  max-height: 85vh;
  border-radius: 1.25rem;
  border: 4px solid #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}