/* ========================================================
   ANIMACIONES SUTILES Y ELEGANTES (NO EXCESIVAS)
   ======================================================== */

/* Revelación al scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Retardo escalonado */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Pulsación sutil para nodos tecnológicos */
@keyframes subtle-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.pulse-node {
  animation: subtle-pulse 3.5s ease-in-out infinite;
}

/* Brillo tecnológico suave */
@keyframes glow-line {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Flotación elegante para diagramas */
@keyframes subtle-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.float-slow {
  animation: subtle-float 5s ease-in-out infinite;
}

.float-slow-alt {
  animation: subtle-float 6s ease-in-out infinite 2s;
}

/* Respeto a accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .pulse-node,
  .float-slow,
  .float-slow-alt {
    animation: none !important;
  }
}
