/* ═══════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
@keyframes meshShift {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.04); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* ═══════════════════════════════════════
   CLASES DE ANIMACIÓN
═══════════════════════════════════════ */

/* Se activan al cargar */
.anim-fade-up   { animation: fadeUp .8s ease both; }
.anim-fade-up-2 { animation: fadeUp .9s .15s ease both; }
.anim-fade-up-3 { animation: fadeUp 1s .3s ease both; }
.anim-fade-up-4 { animation: fadeUp 1s .45s ease both; }
.anim-fade-up-5 { animation: fadeUp 1s .6s ease both; }

/* Se activan al hacer scroll (Intersection Observer en main.js) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* Flotante */
.float { animation: float 4s ease-in-out infinite; }

/* Mesh fondo */
.mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(79,142,247,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(162,89,255,0.10) 0%, transparent 70%);
  animation: meshShift 14s ease-in-out infinite alternate;
}
