/* ============================================
   ANIMATIONS.CSS — keyframes, scroll-reveal, transiciones
   ============================================ */

@keyframes scrollHint {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  60% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Stagger natural dentro de grids: pequeños retrasos por posición */
.services__grid .reveal:nth-child(2),
.cases__grid .reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.services__grid .reveal:nth-child(3),
.cases__grid .reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.process__step.reveal:nth-child(2) { transition-delay: 0.05s; }
.process__step.reveal:nth-child(3) { transition-delay: 0.1s; }
.process__step.reveal:nth-child(4) { transition-delay: 0.15s; }
.process__step.reveal:nth-child(5) { transition-delay: 0.2s; }
.process__step.reveal:nth-child(6) { transition-delay: 0.25s; }

.hero__inner .reveal:nth-child(1) { transition-delay: 0s; }
.hero__inner .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero__inner .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero__inner .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero__inner .reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-hint span {
    animation: none;
  }
}
