/* Animaciones reutilizables. Se activan añadiendo la clase correspondiente.
   Fade-up se aplica automáticamente a elementos con [data-animate="fade-up"]
   una vez entran en viewport (ver main.js IntersectionObserver). */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulseRing {
  0%   { transform: scale(0.9); opacity: 0.7; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

.animate-fade-up  { animation: fadeUp 0.55s ease-out forwards; }
.animate-fade-in  { animation: fadeIn 0.5s ease-out forwards; }
.animate-slide-in { animation: slideInRight 0.5s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.45s ease-out forwards; }

/* Estado inicial mientras esperamos a que IntersectionObserver dispare */
[data-animate] {
  opacity: 0;
  will-change: opacity, transform;
}
[data-animate="fade-up"] { transform: translateY(20px); }
[data-animate="slide-in"] { transform: translateX(30px); }

[data-animate].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

/* Delays incrementales para staggers */
.delay-100 { animation-delay: 100ms; transition-delay: 100ms; }
.delay-200 { animation-delay: 200ms; transition-delay: 200ms; }
.delay-300 { animation-delay: 300ms; transition-delay: 300ms; }
.delay-400 { animation-delay: 400ms; transition-delay: 400ms; }
.delay-500 { animation-delay: 500ms; transition-delay: 500ms; }
