/* Contenedor fijo que cubre toda la pantalla */
.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* Permite hacer clic a través del efecto */
  z-index: 9999;
  overflow: hidden;
}

/* Estilo base con tono crema/champán suave */
.snow-container .b {
  border-radius: 50%;
  position: absolute;
  top: -80px;
  width: 40px;
  height: 40px;
  
  /* Tono cálido claro (Crema / Champán) */
  background: radial-gradient(
    circle, 
    rgba(255, 243, 215, 0.6) 0%, 
    rgba(255, 230, 190, 0.25) 50%, 
    rgba(255, 230, 190, 0) 70%
  );
  filter: blur(4px);
  box-shadow: 0 0 16px rgba(255, 240, 210, 0.35);
  
  /* Mantiene la velocidad lenta */
  animation: fall 22s infinite linear;
}

/* Variaciones proporcionales de tamaño y duraciones más lentas */
.snow-container .b:nth-child(3n)   { width: 30px; height: 30px; animation-duration: 26s; filter: blur(3px); }
.snow-container .b:nth-child(3n+1) { width: 56px; height: 56px; animation-duration: 18s; filter: blur(6px); }
.snow-container .b:nth-child(5n)   { opacity: 0.7; }

/* Distribuir los copos a lo ancho de la pantalla con retrasos ajustados */
.snow-container .b:nth-child(1)  { left: 3%;  animation-delay: 0s; }
.snow-container .b:nth-child(2)  { left: 6%;  animation-delay: 3s; }
.snow-container .b:nth-child(3)  { left: 9%;  animation-delay: 7s; }
.snow-container .b:nth-child(4)  { left: 12%; animation-delay: 2s; }
.snow-container .b:nth-child(5)  { left: 15%; animation-delay: 10s;}
.snow-container .b:nth-child(6)  { left: 18%; animation-delay: 5s; }
.snow-container .b:nth-child(7)  { left: 21%; animation-delay: 12s;}
.snow-container .b:nth-child(8)  { left: 24%; animation-delay: 8s; }
.snow-container .b:nth-child(9)  { left: 27%; animation-delay: 14s;}
.snow-container .b:nth-child(10) { left: 30%; animation-delay: 4s; }
.snow-container .b:nth-child(11) { left: 33%; animation-delay: 16s;}
.snow-container .b:nth-child(12) { left: 36%; animation-delay: 6s; }
.snow-container .b:nth-child(13) { left: 39%; animation-delay: 1s; }
.snow-container .b:nth-child(14) { left: 42%; animation-delay: 11s;}
.snow-container .b:nth-child(15) { left: 45%; animation-delay: 5s; }
.snow-container .b:nth-child(16) { left: 48%; animation-delay: 13s;}
.snow-container .b:nth-child(17) { left: 51%; animation-delay: 0s; }
.snow-container .b:nth-child(18) { left: 54%; animation-delay: 9s; }
.snow-container .b:nth-child(19) { left: 57%; animation-delay: 15s;}
.snow-container .b:nth-child(20) { left: 60%; animation-delay: 3s; }
.snow-container .b:nth-child(21) { left: 63%; animation-delay: 17s;}
.snow-container .b:nth-child(22) { left: 66%; animation-delay: 7s; }
.snow-container .b:nth-child(23) { left: 69%; animation-delay: 2s; }
.snow-container .b:nth-child(24) { left: 72%; animation-delay: 10s;}
.snow-container .b:nth-child(25) { left: 75%; animation-delay: 4s; }
.snow-container .b:nth-child(26) { left: 78%; animation-delay: 14s;}
.snow-container .b:nth-child(27) { left: 81%; animation-delay: 8s; }
.snow-container .b:nth-child(28) { left: 84%; animation-delay: 3s; }
.snow-container .b:nth-child(29) { left: 87%; animation-delay: 12s;}
.snow-container .b:nth-child(30) { left: 90%; animation-delay: 6s; }
.snow-container .b:nth-child(31) { left: 93%; animation-delay: 15s;}
.snow-container .b:nth-child(32) { left: 96%; animation-delay: 1s; }
.snow-container .b:nth-child(33) { left: 99%; animation-delay: 10s;}

/* Animación de caída */
@keyframes fall {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(105vh) scale(1.1);
    opacity: 0;
  }
}
