/* ============================================================
   ALTAMAR — animations.css
   Keyframes, scroll-reveal, transiciones y estados hover.
   ============================================================ */

/* ---- Scroll reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--fade {
  transform: none;
  transition: opacity 1s var(--ease);
}

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

.reveal--stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.reveal--stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal--stagger.is-visible > *:nth-child(2) { transition-delay: 0.14s; }
.reveal--stagger.is-visible > *:nth-child(3) { transition-delay: 0.23s; }
.reveal--stagger.is-visible > *:nth-child(4) { transition-delay: 0.32s; }
.reveal--stagger.is-visible > *:nth-child(5) { transition-delay: 0.41s; }
.reveal--stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; }
.reveal--stagger.is-visible > *:nth-child(7) { transition-delay: 0.59s; }
.reveal--stagger.is-visible > *:nth-child(8) { transition-delay: 0.68s; }
.reveal--stagger.is-visible > *:nth-child(9) { transition-delay: 0.77s; }

/* ---- Hero entrance ---- */

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

.hero__content > * {
  animation: fadeInUp 1s var(--ease) both;
}

.hero__content > *:nth-child(1) { animation-delay: 0.05s; }
.hero__content > *:nth-child(2) { animation-delay: 0.18s; }
.hero__content > *:nth-child(3) { animation-delay: 0.3s; }
.hero__content > *:nth-child(4) { animation-delay: 0.42s; }
.hero__content > *:nth-child(5) { animation-delay: 0.54s; }

/* ---- Scroll hint ---- */

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

.scroll-hint .icon {
  animation: scrollBounce 2.2s ease-in-out infinite;
}

/* ---- Glow pulse (badges, kickers) ---- */

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: glowPulse 2.4s ease-in-out infinite;
}

/* ---- Toast ---- */

.toast {
  transition: transform var(--duration-base) var(--ease), opacity var(--duration-base) var(--ease);
}

/* ---- Reduced motion: solo se ve limitada la entrada del hero,
   nunca microinteracciones de hover ---- */

@media (prefers-reduced-motion: reduce) {
  .hero__content > * {
    animation-duration: 0.01s;
  }
}
