/**
 * Copa Radar - Animations
 *
 * Keyframes y animaciones reutilizables.
 * Todas las animaciones respetan prefers-reduced-motion.
 */

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */

/**
 * Pulse - Efecto de latido para indicadores
 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.65);
  }
}

/**
 * Pin Pulse - Efecto de onda para pins del mapa
 */
@keyframes pinPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

/**
 * Fade Up - Entrada desde abajo
 */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/**
 * Fade In - Entrada simple
 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/**
 * Marquee - Desplazamiento horizontal infinito
 */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/**
 * Slide In Left - Entrada desde la izquierda
 */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/**
 * Slide In Right - Entrada desde la derecha
 */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/**
 * Scale In - Entrada con escala
 */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/**
 * Bounce - Efecto de rebote sutil
 */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/**
 * Glow - Efecto de brillo
 */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(229, 57, 53, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.6);
  }
}

/* ==========================================================================
   CLASES DE ANIMACIÓN
   ========================================================================== */

.animate-fadeUp {
  animation: fadeUp 0.6s ease both;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease both;
}

.animate-slideInLeft {
  animation: slideInLeft 0.5s ease both;
}

.animate-slideInRight {
  animation: slideInRight 0.5s ease both;
}

.animate-scaleIn {
  animation: scaleIn 0.4s ease both;
}

.animate-pulse {
  animation: pulse 1.5s infinite;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* ==========================================================================
   DELAYS DE ANIMACIÓN
   ========================================================================== */

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* ==========================================================================
   TRANSICIONES
   ========================================================================== */

.transition-all {
  transition: all var(--transition-base);
}

.transition-colors {
  transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

.transition-transform {
  transition: transform var(--transition-base);
}

.transition-opacity {
  transition: opacity var(--transition-base);
}

/* ==========================================================================
   HOVER EFFECTS
   ========================================================================== */

.hover-lift:hover {
  transform: translateY(-2px);
}

.hover-scale:hover {
  transform: scale(1.02);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(229, 57, 53, 0.3);
}
