/* ============================================================
   THM — Animations
   Keyframes globales y clases de animación compartidas.
   Regla: ninguna animación supera los 400ms.
   ============================================================ */

/* ----------------------------------------------------------
   KEYFRAMES
   ---------------------------------------------------------- */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--glow-accent); }
  50%       { box-shadow: var(--glow-accent-lg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes counter-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------
   CLASES DE ANIMACIÓN
   ---------------------------------------------------------- */

.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease both;
}

.animate-fade-in-up {
  animation: fadeInUp var(--transition-slow) ease both;
}

.animate-scale-in {
  animation: scaleIn var(--transition-base) ease both;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

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

.animate-spin-slow {
  animation: spin-slow 12s linear infinite;
}

/* Delays escalonados para listas */
.delay-1 { animation-delay: 50ms; }
.delay-2 { animation-delay: 100ms; }
.delay-3 { animation-delay: 150ms; }
.delay-4 { animation-delay: 200ms; }
.delay-5 { animation-delay: 250ms; }
.delay-6 { animation-delay: 300ms; }

/* ----------------------------------------------------------
   GRADIENTE ANIMADO (fondo del hero y secciones)
   ---------------------------------------------------------- */
.bg-gradient-animated {
  background: linear-gradient(270deg, #0a0a14, #0f0f1e, #0d0d1a, #070712);
  background-size: 400% 400%;
  animation: gradient-shift 12s ease infinite;
}

/* ----------------------------------------------------------
   LÍNEA BRILLANTE (decoración)
   ---------------------------------------------------------- */
.shine-line {
  position: relative;
  overflow: hidden;
}

.shine-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  animation: slideInRight 2s ease-in-out infinite;
}
