/* ============================================================
   VEKTIA — animations.css
   Entrada al cargar, aparición al hacer scroll, detalles sueltos
   ============================================================ */

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

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* --- Hero al cargar --- */
.hero__copy > * { animation: fadeUp 0.7s ease both; }
.hero__copy > :nth-child(2) { animation-delay: 0.05s; }
.hero__copy > :nth-child(3) { animation-delay: 0.1s; }
.hero__copy > :nth-child(4) { animation-delay: 0.15s; }
.hero__copy > :nth-child(5) { animation-delay: 0.2s; }
.hero__figure { animation: fadeUp 0.9s 0.15s ease both; }

/* La esfera amarilla respira arriba del cubo. */
.cubos__esfera {
  animation: bob 3.2s ease-in-out infinite;
}

.tag__dot {
  animation: blink 2s ease-in-out infinite;
}

/* --- Aparición al hacer scroll ---
   Sólo se activa si el JS corrió (clase has-reveal en <html>):
   sin JS el contenido se ve igual en vez de quedar invisible. */
.has-reveal .js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.has-reveal .js-reveal[data-delay="1"] { transition-delay: 0.06s; }
.has-reveal .js-reveal[data-delay="2"] { transition-delay: 0.12s; }
.has-reveal .js-reveal[data-delay="3"] { transition-delay: 0.18s; }

/* --- Movimiento reducido --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
