/* =====================================================
   AF DIGITALES
   BABY SHOWER | OSITOS CARIÑOSITOS
   CSS COMPLETO Y CORREGIDO
===================================================== */

/* =====================================================
   1. VARIABLES
===================================================== */

:root {
  --pink: #f6c9df;
  --soft-pink: #fff1f8;
  --purple: #c7b5ec;
  --blue: #c7e8f7;
  --yellow: #ffe7a3;
  --cream: #fffaf1;
  --text: #806b86;
  --white: #ffffff;

  --shadow: 0 15px 35px rgba(120, 90, 150, .15);
}

/* =====================================================
   2. CONFIGURACIÓN GENERAL
===================================================== */

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

html {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;

  font-family: "Quicksand", sans-serif;
  color: var(--text);

  background: var(--cream);

  overflow-x: hidden;
  overflow-y: auto;
}

/* Bloqueo exclusivo de bienvenida */

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

/* Página abierta */

body:not(.locked) {
  height: auto;
  min-height: 100vh;

  overflow-x: hidden;
  overflow-y: auto;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

section {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 100svh;
  height: auto;

  padding: 100px 24px;

  text-align: center;

  overflow: hidden;
}

h1,
h2,
h3 {
  font-weight: 700;
}

h2 {
  font-size: clamp(32px, 8vw, 58px);
  line-height: 1.2;
}

p {
  line-height: 1.9;
}

.eyebrow,
.small-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 22px;
}

/* =====================================================
   3. BOTONES
===================================================== */

.main-button,
#welcome button {
  display: inline-block;

  border: none;
  border-radius: 50px;

  padding: 17px 30px;
  margin-top: 30px;

  background: linear-gradient(
    135deg,
    #e8b5dc,
    #b7b5ef
  );

  color: white;
  text-decoration: none;
  font-weight: 700;

  box-shadow:
    0 12px 30px rgba(173, 132, 183, .25);

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.main-button:hover,
#welcome button:hover {
  transform: translateY(-4px);

  box-shadow:
    0 18px 35px rgba(173, 132, 183, .35);
}

.main-button {
  position: relative;
  z-index: 5;
}

/* =====================================================
   4. BIENVENIDA CINEMATOGRÁFICA
===================================================== */

.welcome {
  position: fixed;
  inset: 0;

  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100svh;

  padding: 25px;

  text-align: center;

  overflow: hidden;

  background: linear-gradient(
    180deg,
    #a9dfff 0%,
    #c5eaff 30%,
    #e3d6ff 65%,
    #ffe1ee 100%
  );

  transition:
    opacity .4s ease,
    visibility .4s ease;
}

.welcome.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome[hidden] {
  display: none !important;
}

/* =====================================================
   5. CIELO DE BIENVENIDA
===================================================== */

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

.welcome-sun {
  position: absolute;

  top: 7%;
  right: 10%;

  width: 110px;
  height: 110px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    #fff8d3 0%,
    #ffe5a4 55%,
    #ffd98e 100%
  );

  box-shadow:
    0 0 45px rgba(255, 235, 170, .8),
    0 0 100px rgba(255, 235, 170, .5);

  animation: welcomeSun 5s ease-in-out infinite;
}

/* Nubes */

.welcome-cloud {
  position: absolute;

  width: 170px;
  height: 55px;

  border-radius: 100px;

  background: rgba(255, 255, 255, .9);

  filter: blur(2px);

  animation:
    welcomeCloudFloat 9s ease-in-out infinite;
}

.welcome-cloud::before,
.welcome-cloud::after {
  content: "";

  position: absolute;

  background: inherit;
  border-radius: 50%;
}

.welcome-cloud::before {
  width: 85px;
  height: 85px;

  bottom: 8px;
  left: 20px;
}

.welcome-cloud::after {
  width: 100px;
  height: 100px;

  bottom: 0;
  right: 15px;
}

.welcome-cloud-1 {
  top: 18%;
  left: -75px;
}

.welcome-cloud-2 {
  top: 35%;
  right: -85px;
  animation-delay: -3s;
}

.welcome-cloud-3 {
  bottom: 20%;
  left: -90px;
  animation-delay: -5s;
}

/* Estrellas */

.welcome-star {
  position: absolute;

  color: white;
  font-size: 28px;

  text-shadow: 0 0 15px white;

  animation:
    welcomeSparkle 3s ease-in-out infinite;
}

.star-a {
  top: 10%;
  left: 12%;
}

.star-b {
  top: 30%;
  right: 8%;
  animation-delay: 1s;
}

.star-c {
  bottom: 32%;
  left: 12%;
  animation-delay: 2s;
}

.star-d {
  bottom: 15%;
  right: 14%;
  animation-delay: 1.5s;
}

/* =====================================================
   6. ARCOÍRIS DE BIENVENIDA
===================================================== */

.welcome-rainbow-scene {
  position: absolute;

  top: 8%;
  left: 50%;

  width: min(95vw, 500px);

  transform: translateX(-50%);

  pointer-events: none;

  transition:
    transform 1.4s ease,
    opacity 1.4s ease;
}

.welcome-rainbow-svg {
  width: 100%;
  height: auto;

  overflow: visible;

  animation:
    rainbowGlow 4s ease-in-out infinite;
}

.rainbow-line {
  fill: none;

  stroke-width: 12;
  stroke-linecap: round;

  stroke-dasharray: 600;
  stroke-dashoffset: 600;

  animation:
    drawRainbow 2.8s ease forwards;
}

.rainbow-red {
  stroke: #ff9fb9;
  animation-delay: .3s;
}

.rainbow-orange {
  stroke: #ffc69b;
  animation-delay: .5s;
}

.rainbow-yellow {
  stroke: #ffe99c;
  animation-delay: .7s;
}

.rainbow-green {
  stroke: #a9e6bd;
  animation-delay: .9s;
}

.rainbow-blue {
  stroke: #9edafa;
  animation-delay: 1.1s;
}

.rainbow-purple {
  stroke: #c5b1ef;
  animation-delay: 1.3s;
}

/* =====================================================
   7. OSITOS DE BIENVENIDA
===================================================== */

.welcome-bears {
  position: absolute;
  inset: 0;

  z-index: 3;

  pointer-events: none;
}

.welcome-bear {
  position: absolute;

  width: clamp(90px, 24vw, 160px);
  height: auto;

  object-fit: contain;

  opacity: 0;

  filter:
    drop-shadow(
      0 15px 15px rgba(120, 90, 150, .2)
    );

  /*
    La entrada usa transform.
    La flotación usa translate para evitar
    que las dos animaciones se estorben.
  */

  animation:
    welcomeBearEntrance 1.2s ease both,
    welcomeFloating 4s ease-in-out infinite;

  animation-delay:
    var(--bear-delay, 1s),
    calc(var(--bear-delay, 1s) + 1.2s);
}

.welcome-bear-1 {
  --bear-delay: 1s;

  top: 14%;
  left: 2%;
}

.welcome-bear-2 {
  --bear-delay: 1.3s;

  top: 19%;
  right: 2%;
}

.welcome-bear-3 {
  --bear-delay: 1.6s;

  bottom: 23%;
  left: 2%;
}

.welcome-bear-4 {
  --bear-delay: 1.9s;

  bottom: 23%;
  right: 2%;
}

.welcome-bear-5 {
  --bear-delay: 2.2s;

  bottom: 7%;
  left: 50%;

  width: clamp(95px, 26vw, 170px);

  animation:
    welcomeBearCenter 1.2s ease both,
    welcomeFloating 4.5s ease-in-out infinite;

  animation-delay:
    var(--bear-delay),
    calc(var(--bear-delay) + 1.2s);
}

/* =====================================================
   8. TEXTO DE BIENVENIDA
===================================================== */

.welcome-content {
  position: relative;
  z-index: 5;

  width: 100%;
  max-width: 460px;

  padding: 40px 25px;

  text-align: center;

  opacity: 0;

  animation:
    welcomeTextAppear 1.4s ease 2.5s both;

  transition:
    opacity .8s ease,
    transform 1.1s ease;
}

.welcome-pretitle {
  font-size: 10px;
  font-weight: 700;

  letter-spacing: 3px;
  line-height: 1.8;

  color: #8f75a6;

  margin-bottom: 20px;
}

.welcome-title {
  font-family: "Great Vibes", cursive;

  font-size: clamp(65px, 15vw, 105px);
  font-weight: 400;

  line-height: .85;

  color: white;

  text-shadow:
    0 3px 0 #dca5d4,
    0 8px 20px rgba(140, 100, 170, .25);
}

.welcome-title span {
  display: block;
  margin-top: 15px;
}

.welcome-subtitle {
  font-family: "Great Vibes", cursive;

  font-size: clamp(40px, 10vw, 65px);

  color: #ae82c2;

  margin-top: 20px;
}

.welcome-heart {
  font-size: 30px;
  color: #f2a3c8;

  margin: 20px auto;

  animation:
    heartBeat 2s ease-in-out infinite;
}

.welcome-description {
  max-width: 290px;

  margin: 15px auto 25px;

  font-size: 13px;
  line-height: 1.9;

  color: #826e98;
}

/* Botón */

.welcome-open-button {
  position: relative;

  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50px;

  padding: 18px 30px;

  background: linear-gradient(
    135deg,
    #efb4d6,
    #c5a8e7
  );

  color: white;

  font-family: "Quicksand", sans-serif;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 10px 30px rgba(175, 120, 190, .3);

  animation:
    welcomeButtonPulse 2.5s infinite;
}

.welcome-open-button:disabled {
  cursor: default;
}

.button-sparkle {
  margin: 0 6px;

  color: #fff3b6;

  animation:
    welcomeSparkle 2s infinite;
}

/* Nubes inferiores */

.welcome-cloud-floor {
  position: absolute;

  bottom: -1px;
  left: 0;

  width: 100%;
  height: 90px;

  background:
    radial-gradient(
      ellipse 90px 70px at 5% 100%,
      white 98%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 110px 85px at 30% 100%,
      white 98%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 100px 75px at 60% 100%,
      white 98%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 120px 90px at 90% 100%,
      white 98%,
      transparent 100%
    );

  opacity: .85;
  pointer-events: none;
}

/* =====================================================
   9. APERTURA CINEMATOGRÁFICA
===================================================== */

.welcome.opening {
  pointer-events: none;

  animation:
    welcomeFinalFade 1.5s ease forwards;
}

/* Los ositos se separan */

.welcome.opening .welcome-bear {
  animation: none !important;

  opacity: 0;

  transition:
    transform 1.3s cubic-bezier(.65, 0, .35, 1),
    opacity 1.3s ease;
}

.welcome.opening .welcome-bear-1 {
  transform:
    translate(-180px, -70px)
    rotate(-25deg)
    scale(.8);
}

.welcome.opening .welcome-bear-2 {
  transform:
    translate(180px, -70px)
    rotate(25deg)
    scale(.8);
}

.welcome.opening .welcome-bear-3 {
  transform:
    translate(-180px, 120px)
    rotate(-25deg)
    scale(.8);
}

.welcome.opening .welcome-bear-4 {
  transform:
    translate(180px, 120px)
    rotate(25deg)
    scale(.8);
}

.welcome.opening .welcome-bear-5 {
  transform:
    translateX(-50%)
    translateY(180px)
    scale(.6);
}

/* El arcoíris se eleva */

.welcome.opening .welcome-rainbow-scene {
  opacity: 0;

  transform:
    translateX(-50%)
    translateY(-120px)
    scale(1.2);
}

/* El texto desaparece */

.welcome.opening .welcome-content {
  animation: none;

  opacity: 0;

  transform:
    translateY(-45px)
    scale(.9);
}

/* Las nubes se separan */

.welcome.opening .welcome-cloud-1,
.welcome.opening .welcome-cloud-3 {
  animation: none;

  transform: translateX(-250px);

  transition: transform 1.4s ease;
}

.welcome.opening .welcome-cloud-2 {
  animation: none;

  transform: translateX(250px);

  transition: transform 1.4s ease;
}

.welcome.opening .welcome-sun {
  animation: none;

  opacity: 0;
  transform: scale(1.5);

  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

/* =====================================================
   10. DECORACIONES GENERALES
===================================================== */

.floating-decoration {
  position: fixed;
  inset: 0;

  z-index: 5;

  pointer-events: none;
  overflow: hidden;
}

.floating-decoration span {
  position: absolute;

  font-size: 30px;
  opacity: .45;

  animation:
    float 7s ease-in-out infinite;
}

.floating-decoration span:nth-child(1) {
  top: 12%;
  left: 5%;
}

.floating-decoration span:nth-child(2) {
  top: 28%;
  right: 8%;
  animation-delay: 1s;
}

.floating-decoration span:nth-child(3) {
  bottom: 18%;
  right: 4%;
  animation-delay: 2s;
}

.floating-decoration span:nth-child(4) {
  bottom: 35%;
  left: 8%;
  animation-delay: 3s;
}

.floating-decoration span:nth-child(5) {
  top: 60%;
  right: 12%;
  animation-delay: 4s;
}

/* =====================================================
   11. PORTADA
===================================================== */

.hero {
  position: relative;

  min-height: 100svh;

  padding: 90px 20px 120px;

  isolation: isolate;

  background: linear-gradient(
    180deg,
    #b9e9ff 0%,
    #d9d5ff 40%,
    #ffe1ef 80%,
    #fff8ed 100%
  );
}

/* Cielo */

.hero-sky {
  position: absolute;
  inset: 0;

  z-index: -2;

  overflow: hidden;

  pointer-events: none;
}

.sky-glow {
  position: absolute;

  width: 85vw;
  height: 85vw;

  max-width: 550px;
  max-height: 550px;

  top: 10%;
  left: 50%;

  transform: translateX(-50%);

  background: radial-gradient(
    circle,
    rgba(255, 255, 255, .9),
    transparent 70%
  );
}

/* Arcoíris */

.rainbow-arc {
  position: absolute;

  width: min(110vw, 620px);
  aspect-ratio: 1;

  top: 7%;
  left: 50%;

  border-radius: 50%;

  background: conic-gradient(
    from 180deg,
    #ff9ebd,
    #ffdca1,
    #fff1a8,
    #a8e5bc,
    #a9dafa,
    #cbb8ff,
    #ff9ebd
  );

  opacity: .48;

  -webkit-mask: radial-gradient(
    farthest-side,
    transparent 72%,
    black 73%,
    black 84%,
    transparent 85%
  );

  mask: radial-gradient(
    farthest-side,
    transparent 72%,
    black 73%,
    black 84%,
    transparent 85%
  );

  animation:
    rainbowAppear 2.5s ease both;
}

/* Nubes */

.cloud {
  position: absolute;

  width: 180px;
  height: 55px;

  background: rgba(255, 255, 255, .85);

  border-radius: 100px;

  filter: blur(2px);

  box-shadow:
    0 10px 30px rgba(255, 255, 255, .5);

  animation:
    cloudMove 9s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
  content: "";

  position: absolute;

  background: inherit;
  border-radius: 50%;
}

.cloud::before {
  width: 90px;
  height: 90px;

  left: 25px;
  bottom: 10px;
}

.cloud::after {
  width: 110px;
  height: 110px;

  right: 15px;
  bottom: 0;
}

.cloud-1 {
  top: 18%;
  left: -75px;
}

.cloud-2 {
  top: 38%;
  right: -90px;
  animation-delay: -3s;
}

.cloud-3 {
  bottom: 18%;
  left: -90px;
  animation-delay: -5s;
}

/* =====================================================
   12. OSITOS DE PORTADA
===================================================== */

.care-bears {
  position: absolute;
  inset: 0;

  z-index: 2;

  pointer-events: none;
}

.care-bear {
  position: absolute;

  width: clamp(85px, 23vw, 165px);
  height: auto;

  object-fit: contain;

  filter:
    drop-shadow(
      0 15px 15px rgba(110, 80, 140, .18)
    );

  animation:
    bearFloat 5s ease-in-out infinite;
}

.bear-pink {
  top: 16%;
  left: 2%;

  width: clamp(90px, 26vw, 175px);
}

.bear-blue {
  top: 24%;
  right: 1%;
  animation-delay: -1s;
}

.bear-yellow {
  bottom: 21%;
  left: 0%;
  animation-delay: -2s;
}

.bear-green {
  bottom: 17%;
  right: 1%;
  animation-delay: -3s;
}

.bear-purple {
  bottom: 4%;
  left: 50%;

  width: clamp(100px, 28vw, 175px);

  transform: translateX(-50%);

  animation:
    bearCenterFloat 5s ease-in-out infinite;
}

/* =====================================================
   13. TEXTO DE PORTADA
===================================================== */

.hero-content {
  position: relative;
  z-index: 3;

  width: 100%;
  max-width: 520px;

  margin: auto;
  padding: 95px 10px 100px;

  text-align: center;
}

.hero-pretitle {
  font-size: 10px;
  font-weight: 700;

  letter-spacing: 3px;
  line-height: 1.8;

  color: #9678a9;

  margin-bottom: 25px;
}

.hero-script {
  font-family: "Great Vibes", cursive;

  font-size: clamp(40px, 9vw, 65px);

  color: #b781c3;

  line-height: 1.1;
}

.hero-title {
  font-family: "Great Vibes", cursive;

  font-size: clamp(80px, 19vw, 135px);
  font-weight: 400;

  line-height: .8;

  color: white;

  text-shadow:
    0 3px 0 #e8a6cf,
    0 8px 15px rgba(183, 125, 194, .25);

  margin: 20px 0 25px;
}

.hero-title span {
  display: block;
  margin-top: 18px;
}

.hero-heart {
  color: #f3a6cb;
  font-size: 28px;

  margin: 25px auto;

  animation:
    heartBeat 2.5s infinite;
}

.hero .hero-baby-name {
  font-family: "Great Vibes", cursive;

  font-size: clamp(45px, 11vw, 75px);
  font-weight: 400;

  color: #a77bb9;

  letter-spacing: 0;
  text-shadow: none;

  margin: 15px 0;
}

.hero-message {
  max-width: 300px;

  margin: 25px auto;

  font-size: 13px;
  line-height: 2;

  color: #8c769e;
}

/* Compatibilidad con elementos anteriores */

.script-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(50px, 12vw, 85px);
  color: #bd8bc9;
}

.hero h3 {
  font-family: "Great Vibes", cursive;
  color: #ae82c2;
}

.rainbow {
  font-size: clamp(90px, 24vw, 160px);
  margin-bottom: 20px;
  animation: float 6s infinite;
}

.bear-illustration {
  width: 230px;
  height: 230px;

  margin: 25px auto;

  display: flex;
  align-items: center;
  justify-content: center;

  animation: float 4s infinite;
}

.bear-illustration img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bear-fallback {
  display: none;
  font-size: 125px;
}

/* Estrellas */

.sparkle {
  position: absolute;

  color: white;
  font-size: 28px;

  text-shadow: 0 0 15px white;

  animation: sparkle 3s infinite;
}

.sparkle-1 {
  top: 10%;
  left: 15%;
}

.sparkle-2 {
  top: 35%;
  right: 10%;
  animation-delay: 1s;
}

.sparkle-3 {
  bottom: 30%;
  left: 10%;
  animation-delay: 2s;
}

.sparkle-4 {
  bottom: 15%;
  right: 15%;
  animation-delay: 1.5s;
}

/* Indicador para deslizar */

.scroll-indicator {
  margin-top: 35px;

  display: flex;
  flex-direction: column;

  gap: 5px;

  font-size: 12px;
  letter-spacing: 1px;
}

.scroll-arrow {
  font-size: 32px;
  animation: bounce 2s infinite;
}

/* =====================================================
   14. NUBES ENTRE SECCIONES
===================================================== */

.hero::after,
.story-section::after,
.dream-section::after {
  content: "";

  position: absolute;

  bottom: -2px;
  left: 0;

  width: 100%;
  height: 95px;

  background:
    radial-gradient(
      ellipse 90px 65px at 5% 100%,
      white 98%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 115px 80px at 30% 100%,
      white 98%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 100px 70px at 60% 100%,
      white 98%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 125px 85px at 90% 100%,
      white 98%,
      transparent 100%
    );

  opacity: .65;

  pointer-events: none;

  z-index: 1;
}

/* =====================================================
   15. HISTORIA
===================================================== */

.story-section {
  background: linear-gradient(
    180deg,
    #fff8ed 0%,
    #fce6f1 50%,
    #d6e8ff 100%
  );
}

.story-card {
  position: relative;
  z-index: 3;

  width: 100%;
  max-width: 600px;
}

.story-icon {
  font-size: 100px;
  margin-bottom: 30px;

  animation: float 5s infinite;
}

.story-card h2 {
  font-family: "Great Vibes", cursive;

  font-size: clamp(55px, 12vw, 90px);
  font-weight: 400;

  color: #b58ac5;

  margin-bottom: 25px;
}

.story-card p:last-child {
  max-width: 450px;
  margin: auto;
}

/* =====================================================
   16. ESCENA DE SUEÑOS
===================================================== */

.dream-section {
  background: linear-gradient(
    180deg,
    #d6e8ff 0%,
    #d9c9f4 60%,
    #fff8ed 100%
  );
}

.dream-content {
  position: relative;
  z-index: 3;

  width: 100%;
  max-width: 650px;
}

.dream-icon {
  font-size: 130px;
  margin-bottom: 40px;

  animation: float 5s infinite;
}

.dream-content h2 {
  color: white;

  text-shadow:
    0 5px 20px rgba(125, 107, 166, .3);

  margin-bottom: 30px;
}

.stars,
.farewell-stars {
  font-size: 35px;
  color: white;

  margin-top: 35px;
  letter-spacing: 20px;

  animation: sparkle 3s infinite;
}

/* =====================================================
   17. ESCENAS CINEMATOGRÁFICAS
===================================================== */

.animated-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.scene-background {
  position: absolute;
  inset: 0;

  z-index: -1;

  pointer-events: none;
}

.scene-character {
  position: absolute;

  z-index: 2;

  width: clamp(110px, 28vw, 210px);

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 1.3s ease,
    transform 1.5s cubic-bezier(.2, .8, .2, 1);
}

.scene-character img {
  display: block;

  width: 100%;
  height: auto;

  filter:
    drop-shadow(
      0 18px 18px rgba(120, 90, 150, .18)
    );

  animation:
    sceneFloat 5s ease-in-out infinite;
}

.character-left {
  left: 3%;
  bottom: 12%;

  transform:
    translateX(-130px)
    rotate(-12deg);
}

.character-bottom-left {
  left: 2%;
  bottom: 7%;

  transform:
    translate(-100px, 80px)
    rotate(-15deg);
}

.character-bottom-right {
  right: 2%;
  bottom: 7%;

  transform:
    translate(100px, 80px)
    rotate(15deg);
}

.animated-scene.scene-active .scene-character {
  opacity: 1;
  transform: translate(0, 0) rotate(0);
}

/* Nubes */

.scene-cloud {
  position: absolute;

  width: 220px;
  height: 70px;

  border-radius: 100px;

  background: rgba(255, 255, 255, .75);

  filter: blur(8px);

  animation:
    sceneCloudMove 12s ease-in-out infinite;
}

.cloud-left {
  top: 20%;
  left: -100px;
}

.cloud-right {
  bottom: 20%;
  right: -100px;
  animation-delay: -5s;
}

/* Estrellas */

.scene-star {
  position: absolute;

  color: white;
  font-size: 32px;

  animation:
    sceneTwinkle 3s ease-in-out infinite;
}

.star-one {
  top: 15%;
  left: 15%;
}

.star-two {
  top: 35%;
  right: 12%;
  animation-delay: 1s;
}

.star-three {
  bottom: 25%;
  left: 30%;
  animation-delay: 2s;
}

.scene-heart {
  font-size: 35px;
  color: #f4a6c9;

  margin-top: 35px;

  animation: heartBeat 2.5s infinite;
}

/* Arcoíris de sueños */

.dream-rainbow {
  position: absolute;

  top: 5%;
  left: 50%;

  font-size: clamp(100px, 30vw, 220px);

  opacity: 0;

  transform:
    translate(-50%, 50px)
    scale(.7);

  transition:
    opacity 1.5s ease,
    transform 1.8s ease;

  pointer-events: none;
}

.scene-active .dream-rainbow {
  opacity: .65;

  transform:
    translate(-50%, 0)
    scale(1);
}

/* =====================================================
   18. FECHA E INVITACIÓN
===================================================== */

.invitation-section {
  isolation: isolate;

  background: linear-gradient(
    180deg,
    #fff8ed 0%,
    #f9dce9 65%,
    #d6c8f1 100%
  );
}

.invitation-content {
  position: relative;
  z-index: 3;

  width: 100%;
  max-width: 550px;
}

.section-decoration {
  font-size: 110px;
  margin-bottom: 30px;

  animation: float 5s infinite;
}

.invitation-content h2 {
  font-family: "Great Vibes", cursive;

  font-size: clamp(60px, 12vw, 90px);
  font-weight: 400;

  color: #b98bc5;
}

.invitation-content > p:not(.eyebrow) {
  max-width: 400px;
  margin: 25px auto;
}

.event-date {
  margin: 35px auto 15px;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 8px;
}

.date-label,
#eventMonth {
  letter-spacing: 4px;
  font-size: 14px;
  font-weight: 700;
}

.event-date strong {
  font-size: 95px;
  line-height: 1;

  color: #ba91ca;
}

.event-time {
  font-weight: 700;
  letter-spacing: 3px;
}

/* =====================================================
   19. CUENTA REGRESIVA
===================================================== */

.countdown-section {
  isolation: isolate;

  background: linear-gradient(
    180deg,
    #d6c8f1,
    #f6d9eb
  );
}

.countdown-section h2 {
  color: white;
  margin-bottom: 40px;
}

.countdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 12px;
}

.countdown div {
  width: 82px;
  min-height: 100px;

  padding: 18px 8px;

  background: rgba(255, 255, 255, .45);

  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 24px;

  backdrop-filter: blur(12px);
}

.countdown strong {
  display: block;

  font-size: 32px;
  color: #a77db8;
}

.countdown span {
  display: block;

  font-size: 11px;
  margin-top: 8px;
}

/* =====================================================
   20. UBICACIÓN
===================================================== */

.location-section {
  isolation: isolate;

  background: linear-gradient(
    180deg,
    #fff9ed,
    #e4f1fa
  );
}

.location-icon {
  font-size: 100px;
  margin-bottom: 30px;

  animation: float 5s infinite;
}

.location-section h2 {
  font-family: "Great Vibes", cursive;

  font-size: clamp(55px, 12vw, 85px);
  font-weight: 400;

  color: #b78cc6;
}

.location-section h3 {
  font-size: 24px;
  margin: 20px 0 10px;
}

.location-section p:not(.eyebrow) {
  margin: 10px auto;
}

/* =====================================================
   21. CONFIRMACIÓN
===================================================== */

.rsvp-section {
  isolation: isolate;

  background: linear-gradient(
    180deg,
    #f9dce9,
    #e5dafa
  );
}

.rsvp-section > div:not(.section-character) {
  width: 100%;
  max-width: 450px;

  position: relative;
  z-index: 3;
}

.rsvp-icon {
  font-size: 90px;
  margin-bottom: 25px;
}

.rsvp-section h2 {
  font-family: "Great Vibes", cursive;

  font-size: clamp(55px, 12vw, 80px);
  font-weight: 400;

  color: #a77cba;
}

.rsvp-section p {
  margin: 20px auto 30px;
}

#rsvpForm {
  position: relative;
  z-index: 5;

  display: flex;
  flex-direction: column;

  text-align: left;

  gap: 12px;
}

#rsvpForm label {
  font-size: 13px;
  font-weight: 700;
}

#rsvpForm input,
#rsvpForm select {
  width: 100%;

  padding: 16px;

  border-radius: 16px;
  border: 1px solid #e7cfe6;

  outline: none;

  background: rgba(255, 255, 255, .8);
  color: var(--text);
}

#rsvpForm input:focus,
#rsvpForm select:focus {
  border-color: #b98acb;
}

#rsvpForm button {
  width: 100%;
}

/* =====================================================
   22. DESPEDIDA
===================================================== */

.farewell-section {
  isolation: isolate;

  background: linear-gradient(
    180deg,
    #d9eefa,
    #f9d7e9
  );
}

.farewell-rainbow {
  font-size: 120px;
  animation: float 6s infinite;
}

.farewell-bear {
  font-size: 120px;
  animation: float 4s infinite;
}

.farewell-section h2 {
  font-family: "Great Vibes", cursive;

  font-size: clamp(65px, 14vw, 100px);
  font-weight: 400;

  color: #b58bc5;

  margin: 20px 0;
}

/* =====================================================
   23. PERSONAJES INTERACTIVOS
===================================================== */

.section-character {
  position: absolute;

  width: clamp(110px, 25vw, 190px);

  z-index: 2;

  opacity: 0;

  transform:
    translateY(90px)
    scale(.65);

  transition:
    opacity 1.2s ease,
    transform 1.4s cubic-bezier(.16, 1, .3, 1);

  pointer-events: none;
}

.section-character.character-visible {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

.section-character img {
  display: block;

  width: 100%;
  height: auto;

  object-fit: contain;

  filter:
    drop-shadow(
      0 15px 15px rgba(120, 90, 150, .2)
    );

  animation:
    characterFloating 5s ease-in-out infinite;
}

.character-accessory {
  position: absolute;

  font-size: 42px;

  animation:
    accessoryFloating 3s ease-in-out infinite;
}

/* Fecha */

.date-character {
  bottom: 5%;
  left: 5%;
}

.calendar-accessory {
  top: -15px;
  right: -15px;
}

/* Cuenta regresiva */

.countdown-character {
  bottom: 5%;
  right: 5%;
}

.stars-accessory {
  top: -20px;
  left: -20px;
}

/* Ubicación */

.location-character {
  bottom: 7%;
  left: 5%;
}

.cloud-accessory {
  bottom: -15px;
  left: 15px;

  font-size: 65px;
}

/* Confirmación */

.rsvp-character {
  bottom: 5%;
  right: 5%;
}

.heart-accessory {
  top: -20px;
  left: -20px;
}

/* =====================================================
   24. CINCO OSITOS DE DESPEDIDA
===================================================== */

.farewell-characters {
  position: absolute;

  bottom: 6%;
  left: 50%;

  width: min(95%, 650px);

  display: flex;
  justify-content: center;
  align-items: flex-end;

  gap: 5px;

  transform: translateX(-50%);

  z-index: 2;

  pointer-events: none;
}

.farewell-characters img {
  width: 19%;
  height: auto;

  object-fit: contain;

  opacity: 0;

  transform:
    translateY(90px)
    scale(.6);

  transition:
    opacity 1s ease,
    transform 1.2s cubic-bezier(.16, 1, .3, 1);
}

.farewell-characters.characters-visible img {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

.farewell-characters img:nth-child(1) {
  transition-delay: 0s;
}

.farewell-characters img:nth-child(2) {
  transition-delay: .2s;
}

.farewell-characters img:nth-child(3) {
  transition-delay: .4s;
}

.farewell-characters img:nth-child(4) {
  transition-delay: .6s;
}

.farewell-characters img:nth-child(5) {
  transition-delay: .8s;
}

/* =====================================================
   25. BOTÓN DE MÚSICA
===================================================== */

.music-button {
  position: fixed;

  bottom: 25px;
  right: 20px;

  z-index: 50;

  width: 55px;
  height: 55px;

  border: none;
  border-radius: 50%;

  background: #c6a4dc;

  color: white;
  font-size: 25px;

  cursor: pointer;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, .15);

  transition: transform .3s ease;
}

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

.music-button.playing {
  animation:
    musicPulse 2s infinite;
}

/* =====================================================
   26. FOOTER
===================================================== */

footer {
  background: #f9d7e9;

  text-align: center;

  padding: 25px;

  font-size: 11px;
  letter-spacing: 1px;
}

footer strong {
  color: #a477b7;
}

/* =====================================================
   27. APARICIONES AL DESLIZAR
===================================================== */

.reveal {
  opacity: 0;

  transform:
    translateY(65px)
    scale(.96);

  filter: blur(8px);

  transition:
    opacity 1.1s ease,
    transform 1.1s cubic-bezier(.2, .8, .2, 1),
    filter 1.1s ease;
}

.reveal.visible {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);

  filter: blur(0);
}

.story-card.reveal,
.dream-content.reveal,
.invitation-content.reveal {
  transform:
    translateY(80px)
    scale(.92);

  filter: blur(12px);

  transition:
    opacity 1.4s ease,
    transform 1.4s cubic-bezier(.16, 1, .3, 1),
    filter 1.4s ease;
}

.story-card.reveal.visible,
.dream-content.reveal.visible,
.invitation-content.reveal.visible {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);

  filter: blur(0);
}

/* =====================================================
   28. ANIMACIONES
===================================================== */

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(12px);
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: .4;
    transform: scale(.95);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

@keyframes musicPulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(198, 164, 220, .5);
  }

  50% {
    box-shadow:
      0 0 0 12px rgba(198, 164, 220, 0);
  }
}

@keyframes welcomeSun {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes welcomeCloudFloat {
  0%, 100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(35px);
  }
}

@keyframes welcomeSparkle {
  0%, 100% {
    opacity: .4;
    transform: scale(.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes welcomeButtonPulse {
  0%, 100% {
    box-shadow:
      0 10px 30px rgba(175, 120, 190, .3);
  }

  50% {
    box-shadow:
      0 10px 40px rgba(175, 120, 190, .5);
  }
}

@keyframes drawRainbow {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes rainbowGlow {
  0%, 100% {
    filter:
      drop-shadow(
        0 0 5px rgba(255, 255, 255, .3)
      );
  }

  50% {
    filter:
      drop-shadow(
        0 0 22px rgba(255, 255, 255, .85)
      );
  }
}

@keyframes welcomeBearEntrance {
  from {
    opacity: 0;

    transform:
      translateY(100px)
      scale(.5);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}

@keyframes welcomeBearCenter {
  from {
    opacity: 0;

    transform:
      translateX(-50%)
      translateY(100px)
      scale(.5);
  }

  to {
    opacity: 1;

    transform:
      translateX(-50%)
      translateY(0)
      scale(1);
  }
}

@keyframes welcomeFloating {
  0%, 100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -15px;
  }
}

@keyframes welcomeTextAppear {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes welcomeFinalFade {
  0%, 65% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes bearFloat {
  0%, 100% {
    transform:
      translateY(0)
      rotate(-3deg);
  }

  50% {
    transform:
      translateY(-18px)
      rotate(3deg);
  }
}

@keyframes bearCenterFloat {
  0%, 100% {
    transform:
      translateX(-50%)
      translateY(0)
      rotate(-3deg);
  }

  50% {
    transform:
      translateX(-50%)
      translateY(-16px)
      rotate(3deg);
  }
}

@keyframes rainbowAppear {
  from {
    opacity: 0;

    transform:
      translateX(-50%)
      scale(.7);
  }

  to {
    opacity: .48;

    transform:
      translateX(-50%)
      scale(1);
  }
}

@keyframes cloudMove {
  0%, 100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(35px);
  }
}

@keyframes sceneFloat {
  0%, 100% {
    transform:
      translateY(0)
      rotate(-2deg);
  }

  50% {
    transform:
      translateY(-20px)
      rotate(2deg);
  }
}

@keyframes sceneCloudMove {
  0%, 100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(60px);
  }
}

@keyframes sceneTwinkle {
  0%, 100% {
    opacity: .3;
    transform: scale(.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes characterFloating {
  0%, 100% {
    transform:
      translateY(0)
      rotate(-3deg);
  }

  50% {
    transform:
      translateY(-18px)
      rotate(3deg);
  }
}

@keyframes accessoryFloating {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* =====================================================
   29. ADAPTACIÓN PARA CELULARES
===================================================== */

@media (max-width: 480px) {

  section {
    padding: 85px 22px;
  }

  /* Bienvenida */

  .welcome-rainbow-scene {
    top: 10%;
    width: 105vw;
  }

  .welcome-sun {
    width: 75px;
    height: 75px;

    top: 5%;
    right: 8%;
  }

  .welcome-content {
    padding: 30px 18px;
  }

  .welcome-title {
    font-size: clamp(65px, 16vw, 85px);
  }

  .welcome-pretitle {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .welcome-description {
    max-width: 230px;
    font-size: 12px;
  }

  .welcome-bear {
    width: clamp(75px, 23vw, 110px);
  }

  .welcome-bear-1 {
    top: 12%;
    left: 1%;
  }

  .welcome-bear-2 {
    top: 15%;
    right: 1%;
  }

  .welcome-bear-3 {
    bottom: 20%;
    left: 1%;
  }

  .welcome-bear-4 {
    bottom: 20%;
    right: 1%;
  }

  .welcome-bear-5 {
    bottom: 5%;
    width: 115px;
  }

  .welcome-cloud-floor {
    height: 60px;
  }

  /* Portada */

  .hero {
    padding: 70px 12px 110px;
  }

  .hero-content {
    padding: 140px 5px 180px;
  }

  .hero-pretitle {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .hero-title {
    font-size: clamp(75px, 20vw, 105px);
  }

  .hero-message {
    max-width: 240px;
    font-size: 12px;
  }

  .bear-pink {
    top: 8%;
    left: 2%;
  }

  .bear-blue {
    top: 12%;
    right: 2%;
  }

  .bear-yellow {
    bottom: 19%;
    left: 1%;
  }

  .bear-green {
    bottom: 18%;
    right: 1%;
  }

  .bear-purple {
    bottom: 4%;
  }

  .rainbow-arc {
    top: 15%;
  }

  .bear-illustration {
    width: 190px;
    height: 190px;
  }

  .bear-fallback {
    font-size: 105px;
  }

  /* Historia y sueños */

  .story-section,
  .dream-section {
    min-height: 100svh;

    padding: 100px 25px 190px;
  }

  .scene-character {
    width: 125px;
  }

  .character-left {
    bottom: 4%;
    left: 8%;
  }

  .character-bottom-left {
    bottom: 3%;
    left: 2%;
  }

  .character-bottom-right {
    bottom: 3%;
    right: 2%;
  }

  .dream-rainbow {
    top: 10%;
    font-size: 120px;
  }

  .story-card h2 {
    font-size: 60px;
  }

  .dream-content h2 {
    font-size: 32px;
  }

  /* Cuenta regresiva */

  .countdown {
    gap: 8px;
  }

  .countdown div {
    width: 72px;
    min-height: 90px;

    padding: 15px 5px;
  }

  .countdown strong {
    font-size: 27px;
  }

  /* Personajes interactivos */

  .section-character {
    width: 115px;
  }

  .date-character {
    bottom: 2%;
    left: 2%;
  }

  .countdown-character {
    bottom: 2%;
    right: 2%;
  }

  .location-character {
    bottom: 2%;
    left: 2%;
  }

  .rsvp-character {
    bottom: 2%;
    right: 2%;
  }

  .character-accessory {
    font-size: 30px;
  }

  .cloud-accessory {
    font-size: 45px;
  }

  /* Espacio para los personajes */

  .invitation-section,
  .countdown-section,
  .location-section,
  .rsvp-section,
  .farewell-section {
    padding-bottom: 180px;
  }

  /* Despedida */

  .farewell-characters {
    bottom: 4%;
    width: 100%;
    gap: 0;
  }

  .farewell-characters img {
    width: 20%;
  }

  /* Nubes */

  .hero::after,
  .story-section::after,
  .dream-section::after {
    height: 65px;
  }

  .floating-decoration span {
    font-size: 22px;
  }

}

/* =====================================================
   30. PANTALLAS BAJAS
===================================================== */

@media (max-height: 650px) {

  .welcome-content {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .welcome-bear-5 {
    bottom: 2%;
  }

  .welcome-rainbow-scene {
    top: 2%;
  }

}

/* =====================================================
   31. ACCESIBILIDAD
===================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: .01ms !important;

    scroll-behavior: auto !important;
  }

  .reveal,
  .story-card.reveal,
  .dream-content.reveal,
  .invitation-content.reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .welcome-bear,
  .welcome-content,
  .section-character,
  .scene-character,
  .farewell-characters img {
    opacity: 1;
  }

  .welcome-bear-5 {
    transform: translateX(-50%);
  }

  .bear-purple {
    transform: translateX(-50%);
  }

  .rainbow-line {
    stroke-dashoffset: 0;
  }

  .dream-rainbow {
    opacity: .65;
    transform: translate(-50%, 0);
  }

}
/* ==========================================
   CORRECCIÓN BOTÓN ABRIR INVITACIÓN
========================================== */

/* El botón debe recibir los clics */

.welcome-content {
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

#openInvitation {
  position: relative;
  z-index: 30;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
}

/* Las decoraciones no deben bloquear el botón */

.welcome-sky,
.welcome-rainbow-scene,
.welcome-bears,
.welcome-cloud-floor {
  pointer-events: none;
}

/* Ocultar completamente la bienvenida */

.welcome[hidden] {
  display: none !important;
}

/* Permitir desplazamiento después de abrir */

body:not(.locked) {
  overflow-y: auto !important;
}

html {
  overflow-y: auto;
}
/* ==========================================
   AF DIGITALES
   NUBES ANIMADAS EN TODA LA INVITACIÓN
========================================== */

/* Preparar todas las secciones */

main > section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Capa de nubes animadas */

main > section::before {
  content: "";

  position: absolute;
  inset: 0;

  width: 120%;
  height: 100%;

  left: -10%;

  z-index: 0;

  pointer-events: none;

  opacity: 0.65;

  background-image:

    /* NUBE SUPERIOR IZQUIERDA */

    radial-gradient(
      ellipse 75px 38px at 12% 25%,
      rgba(255,255,255,.85) 97%,
      transparent 100%
    ),

    radial-gradient(
      ellipse 48px 48px at 10% 22%,
      rgba(255,255,255,.85) 97%,
      transparent 100%
    ),

    radial-gradient(
      ellipse 55px 43px at 15% 22%,
      rgba(255,255,255,.85) 97%,
      transparent 100%
    ),

    /* NUBE CENTRAL DERECHA */

    radial-gradient(
      ellipse 90px 40px at 84% 52%,
      rgba(255,255,255,.8) 97%,
      transparent 100%
    ),

    radial-gradient(
      ellipse 55px 53px at 81% 49%,
      rgba(255,255,255,.8) 97%,
      transparent 100%
    ),

    radial-gradient(
      ellipse 60px 48px at 88% 49%,
      rgba(255,255,255,.8) 97%,
      transparent 100%
    ),

    /* NUBE INFERIOR IZQUIERDA */

    radial-gradient(
      ellipse 85px 38px at 24% 80%,
      rgba(255,255,255,.7) 97%,
      transparent 100%
    ),

    radial-gradient(
      ellipse 50px 46px at 21% 77%,
      rgba(255,255,255,.7) 97%,
      transparent 100%
    ),

    radial-gradient(
      ellipse 55px 45px at 27% 77%,
      rgba(255,255,255,.7) 97%,
      transparent 100%
    );

  filter: blur(8px);

  animation:
    nubesFlotando 18s ease-in-out infinite alternate;

}

/* =====================================
   MOVIMIENTO DE LAS NUBES
===================================== */

@keyframes nubesFlotando {

  0% {
    transform: translate3d(-3%, 0, 0);
  }

  50% {
    transform: translate3d(2%, -15px, 0);
  }

  100% {
    transform: translate3d(5%, 8px, 0);
  }

}

/* =====================================
   DISTINTOS TIEMPOS POR SECCIÓN
===================================== */

.story-section::before {
  animation-duration: 22s;
  animation-delay: -4s;
}

.dream-section::before {
  animation-duration: 26s;
  animation-delay: -8s;
}

.invitation-section::before {
  animation-duration: 20s;
  animation-delay: -3s;
}

.countdown-section::before {
  animation-duration: 24s;
  animation-delay: -10s;
}

.location-section::before {
  animation-duration: 21s;
  animation-delay: -6s;
}

.rsvp-section::before {
  animation-duration: 27s;
  animation-delay: -12s;
}

.farewell-section::before {
  animation-duration: 23s;
  animation-delay: -5s;
}

/* =====================================
   TEXTO SIEMPRE POR ENCIMA
===================================== */

main > section > .reveal,
.hero-content,
.story-card,
.dream-content,
.invitation-content {
  position: relative;
  z-index: 3;
}

/* =====================================
   AJUSTES PARA CELULAR
===================================== */

@media (max-width: 480px) {

  main > section::before {
    opacity: 0.55;
    filter: blur(6px);
    animation-duration: 24s;
  }

}

/* =====================================
   ACCESIBILIDAD
===================================== */

@media (prefers-reduced-motion: reduce) {

  main > section::before {
    animation: none;
    transform: none;
  }

}
/* ==========================================
   AF DIGITALES
   TIPOGRAFÍAS BABY SHOWER
========================================== */

/* TÍTULOS H3 */

h3 {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #a77bb9;
}

/* PÁRRAFOS */

p {
  font-family: "Nunito", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.2px;
}

/* NOMBRE DEL SALÓN */

.location-section h3 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 600;
}

/* PÁRRAFOS DE LA INVITACIÓN */

.story-card p,
.dream-content p,
.invitation-content p,
.location-section p,
.rsvp-section p,
.farewell-section p {
  font-family: "Nunito", sans-serif;
}

/* AJUSTES PARA CELULAR */

@media (max-width: 480px) {

  p {
    font-size: 15px;
    line-height: 1.8;
  }

  .location-section h3 {
    font-size: 26px;
  }

}

/* ==========================================
   AF DIGITALES
   TIPOGRAFÍA DULCE Y REDONDEADA
   BABY SHOWER - OSITOS CARIÑOSITOS
========================================== */

/* VARIABLES DE TIPOGRAFÍA */

:root {
  --font-title: "Fredoka", sans-serif;
  --font-text: "Nunito", sans-serif;
  --font-elegant: "Great Vibes", cursive;
}

/* TEXTO GENERAL */

body {
  font-family: var(--font-text);
}

/* TÍTULOS H3 */

h3 {
  font-family: var(--font-title);
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.2px;
  color: #a77bb9;
}

/* PÁRRAFOS */

p {
  font-family: var(--font-text);
  font-size: clamp(15px, 3.8vw, 18px);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.1px;
}

/* TEXTO DE HISTORIA */

.story-card p:not(.eyebrow) {
  font-family: var(--font-text);
  font-size: clamp(16px, 4vw, 19px);
  line-height: 1.9;
}

/* TEXTO DE SUEÑOS */

.dream-content p:not(.eyebrow) {
  font-family: var(--font-text);
  font-size: clamp(16px, 4vw, 19px);
}

/* TEXTO DE LA INVITACIÓN */

.invitation-content > p:not(.eyebrow) {
  font-family: var(--font-text);
  font-size: clamp(16px, 4vw, 19px);
  line-height: 1.8;
}

/* NOMBRE DEL SALÓN */

.location-section h3 {
  font-family: var(--font-title);
  font-size: clamp(25px, 6vw, 34px);
  font-weight: 600;
  color: #aa83c0;
  letter-spacing: 0;
}

/* DIRECCIÓN DEL EVENTO */

#venueAddress {
  font-family: var(--font-text);
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 500;
}

/* TEXTO DE CONFIRMACIÓN */

.rsvp-section p {
  font-family: var(--font-text);
  font-size: clamp(16px, 4vw, 19px);
}

/* TEXTO DE DESPEDIDA */

.farewell-section p:not(.eyebrow) {
  font-family: var(--font-text);
  font-size: clamp(16px, 4vw, 19px);
  line-height: 1.9;
}

/* SUBTÍTULOS PEQUEÑOS */

.eyebrow,
.small-title,
.hero-pretitle,
.welcome-pretitle {
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: 3px;
}

/* BOTONES */

.main-button,
.welcome-open-button,
#rsvpForm button {
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* FORMULARIO */

#rsvpForm label,
#rsvpForm input,
#rsvpForm select {
  font-family: var(--font-text);
}

/* CONSERVAR LETRAS ELEGANTES */

.welcome-title,
.welcome-subtitle,
.hero-script,
.hero-title,
.hero-baby-name,
.story-card h2,
.invitation-content h2,
.location-section h2,
.rsvp-section h2,
.farewell-section h2 {
  font-family: var(--font-elegant);
}

/* CELULARES */

@media (max-width: 480px) {

  p {
    font-size: 16px;
    line-height: 1.8;
  }

  h3 {
    font-size: 26px;
  }

  .eyebrow,
  .small-title,
  .hero-pretitle,
  .welcome-pretitle {
    font-size: 10px;
    letter-spacing: 2px;
  }

}
/* ==========================================
   AF DIGITALES
   DEDICATORIA PARA EL BEBÉ
========================================== */

.dedication-box {
  margin-top: 28px;
  padding: 28px 20px;

  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;

  text-align: center;

  box-shadow: 0 12px 35px rgba(150, 110, 175, 0.08);
}

.dedication-heart {
  display: block;
  margin-bottom: 12px;

  font-size: 38px;
  color: #e8a5c7;

  animation: heartBeat 3s ease-in-out infinite;
}

.dedication-box h3 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(22px, 5vw, 29px);
  font-weight: 500;
  color: #a77bb9;
}

.dedication-box p {
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  margin: 14px auto 23px;
}

.dedication-box label {
  display: block;
  text-align: left;
  margin-bottom: 10px;
}

#rsvpForm .dedication-box textarea {
  width: 100%;
  min-height: 125px;
  padding: 16px;

  border-radius: 18px;
  border: 1px solid #e7cfe6;

  background: rgba(255,255,255,0.88);
  color: #806b86;

  font-family: "Nunito", sans-serif;
  font-size: 15px;
  line-height: 1.6;

  resize: vertical;
  outline: none;
}

#rsvpForm .dedication-box textarea:focus {
  border-color: #b98acb;
  box-shadow: 0 0 0 3px rgba(185,138,203,0.12);
}

#rsvpForm .dedication-box textarea::placeholder {
  color: #b4a0b9;
}
/* ==========================================
   DIVERTOSITO SIN TAPAR EL CONTADOR
========================================== */

.countdown-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  /* Espacio reservado debajo del contenido */
  padding-bottom: 145px;
}

/* CONTENIDO SIEMPRE VISIBLE */

.countdown-content {
  position: relative;
  z-index: 3;

  width: 100%;
  max-width: 650px;

  margin-inline: auto;
}

/* CONTADOR CENTRADO */

.countdown {
  position: relative;
  z-index: 3;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 14px;
}

/* DIVERTOSITO EN LA PARTE INFERIOR DERECHA */

.countdown-section .countdown-character {
  position: absolute !important;

  right: clamp(12px, 8vw, 90px);
  bottom: 8px;

  width: clamp(78px, 12vw, 125px);
  max-width: 125px;

  z-index: 1;

  pointer-events: none;
}

/* IMAGEN DEL OSITO */

.countdown-character img {
  display: block;

  width: 100%;
  height: auto;

  object-fit: contain;
}

/* ESTRELLITAS DEL OSITO */

.countdown-character .character-accessory {
  position: absolute;

  top: 0;
  right: 0;

  z-index: 2;

  pointer-events: none;
}

/* NUBES DETRÁS DEL OSITO Y EL TEXTO */

.countdown-section::before {
  z-index: 0;
  pointer-events: none;
}

/* AJUSTES PARA CELULARES */

@media (max-width: 480px) {

  .countdown-section {
    padding-bottom: 115px;
  }

  .countdown-content {
    padding-inline: 12px;
  }

  .countdown {
    gap: 10px;
  }

  .countdown-section .countdown-character {
    width: 82px;
    right: 10px;
    bottom: 5px;
  }

}
/* FECHA Y CUENTA REGRESIVA EN UNA SOLA SECCIÓN */
.invitation-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 55px 20px 145px;
}

/* CONTENIDO POR ENCIMA DEL OSITO */
.invitation-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

/* ESPACIO ENTRE LA FECHA Y EL CONTADOR */
.event-date {
  margin: 28px auto 12px;
}

.event-time {
  margin-bottom: 35px;
}

.countdown-content {
  position: relative;
  z-index: 2;
  margin-top: 25px;
}

/* DIVERTOSITO ABAJO A LA DERECHA */
.countdown-character {
  position: absolute !important;
  right: clamp(10px, 6vw, 65px);
  bottom: 8px;
  width: clamp(75px, 12vw, 120px);
  z-index: 1;
  pointer-events: none;
}

.countdown-character img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* AJUSTES PARA CELULARES */
@media (max-width: 600px) {
  .invitation-section {
    padding: 40px 15px 120px;
  }

  .countdown-character {
    right: 10px;
    bottom: 5px;
    width: 82px;
  }

  .event-time {
    margin-bottom: 28px;
  }
}
/* OSITOS DE LA CUENTA REGRESIVA */
.countdown-character {
  position: absolute !important;
  right: clamp(10px, 6vw, 65px);
  bottom: 8px;
  width: clamp(75px, 10vw, 110px);
  z-index: 1;
  pointer-events: none;
}

.countdown-character img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* COMPARTOSITA A LA IZQUIERDA */
.countdown-character-left {
  left: clamp(10px, 6vw, 65px);
  right: auto;
  width: clamp(75px, 10vw, 105px);
}

/* MÁS ESPACIO ABAJO PARA LOS DOS OSITOS */
.invitation-section {
  position: relative;
  isolation: isolate;
  padding-bottom: 145px;
}

/* AJUSTES PARA CELULARES */
@media (max-width: 600px) {
  .countdown-character {
    width: 72px;
    right: 8px;
    bottom: 5px;
  }

  .countdown-character-left {
    left: 8px;
    right: auto;
    width: 68px;
  }

  .invitation-section {
    padding-bottom: 115px;
  }
}
/* NOMBRES DE LOS PAPÁS */
.parents-names {
  margin: 25px auto 30px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.parents-label {
  color: #B88C9C;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.parents-names h3 {
  color: #9B7182;
 font-family: "Great Vibes", cursive;
  font-size: clamp(52px, 45vw, 27px);
  font-weight: 500;
  margin: 7px 0;
}

.parents-ampersand {
  display: block;
  color: #F0AFC4;
  font-family: 'Great Vibes', cursive;
  font-size: 27px;
  margin: 2px 0;
}