/* ==============================================
   SCROLL ANIMATIONS - Intersection Observer + CSS Transitions
   Moderno, performante y sin dependencias
   ============================================== */

/* Base animation states */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

/* Animation variants */
.animate-on-scroll.fade-up {
  transform: translateY(30px);
}

.animate-on-scroll.fade-down {
  transform: translateY(-30px);
}

.animate-on-scroll.fade-left {
  transform: translateX(30px);
}

.animate-on-scroll.fade-right {
  transform: translateX(-30px);
}

.animate-on-scroll.zoom-in {
  transform: scale(0.9);
}

.animate-on-scroll.zoom-out {
  transform: scale(1.1);
}

/* Visible state - applied by Intersection Observer */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Stagger animation delays for sibling elements */
.animate-delay-100 { transition-delay: 0.1s; }
.animate-delay-150 { transition-delay: 0.15s; }
.animate-delay-200 { transition-delay: 0.2s; }
.animate-delay-250 { transition-delay: 0.25s; }
.animate-delay-300 { transition-delay: 0.3s; }
.animate-delay-350 { transition-delay: 0.35s; }
.animate-delay-400 { transition-delay: 0.4s; }
.animate-delay-500 { transition-delay: 0.5s; }
.animate-delay-600 { transition-delay: 0.6s; }
.animate-delay-700 { transition-delay: 0.7s; }
