/* ============================================
   OMNI — Animations (animations.css)
   Keyframes y clases de animación
   ============================================ */

/* ═══ KEYFRAMES ═══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,109,0,0.3), 0 0 60px rgba(255,109,0,0.1); }
  50% { box-shadow: 0 0 30px rgba(255,109,0,0.5), 0 0 80px rgba(255,109,0,0.2); }
}
@keyframes urgentPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@keyframes starTwinkle {
  0% { opacity: 0.4; }
  50% { opacity: 0.8; }
  100% { opacity: 0.5; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ═══ SCROLL ANIMATION CLASSES ═══ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variantes de dirección */
.animate-on-scroll--left {
  transform: translateX(-30px);
}
.animate-on-scroll--left.is-visible {
  transform: translateX(0);
}
.animate-on-scroll--right {
  transform: translateX(30px);
}
.animate-on-scroll--right.is-visible {
  transform: translateX(0);
}
.animate-on-scroll--scale {
  transform: scale(0.9);
}
.animate-on-scroll--scale.is-visible {
  transform: scale(1);
}

/* Stagger delays para grids */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* ═══ SHIMMER TEXT (Oro Sagrado) ═══ */
.text-shimmer {
  background: linear-gradient(90deg, var(--color-oro) 0%, #E8D5A3 25%, var(--color-oro) 50%, #E8D5A3 75%, var(--color-oro) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ═══ GLOW EFFECTS ═══ */
.glow-accion {
  filter: drop-shadow(0 0 20px rgba(255,109,0,0.3));
}
.glow-oro {
  filter: drop-shadow(0 0 20px rgba(197,160,89,0.3));
}

/* ═══ HOVER MICRO-ANIMATIONS ═══ */
.hover-lift {
  transition: transform var(--transition-base);
}
.hover-lift:hover {
  transform: translateY(-4px);
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}
