@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

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

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 4px 32px rgba(37, 211, 102, 0.8);
  }
}

@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

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

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

/* Stagger en grids — entran escalonadas */
.books-grid .reveal:nth-child(1) { transition-delay: 0.08s; }
.books-grid .reveal:nth-child(2) { transition-delay: 0.16s; }
.books-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.books-grid .reveal:nth-child(4) { transition-delay: 0.32s; }
.books-grid .reveal:nth-child(5) { transition-delay: 0.40s; }
.books-grid .reveal:nth-child(6) { transition-delay: 0.48s; }

.testimonios-grid .reveal:nth-child(1) { transition-delay: 0.08s; }
.testimonios-grid .reveal:nth-child(2) { transition-delay: 0.16s; }
.testimonios-grid .reveal:nth-child(3) { transition-delay: 0.24s; }

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
