/* ============================================================
   PORTALPLAC — animations.css  (v2 — refactor)
   ============================================================ */

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance */
.hero-tags     { animation: heroFadeUp 0.7s ease 0.2s both; }
.hero-title    { animation: heroFadeUp 0.7s ease 0.4s both; }
.hero-subtitle { animation: heroFadeUp 0.7s ease 0.55s both; }
.hero-ctas     { animation: heroFadeUp 0.7s ease 0.7s both; }
.hero-trust    { animation: heroFadeUp 0.7s ease 0.85s both; }
.hero-floating-badge { animation: badgePulse 3s ease-in-out infinite, heroFadeIn 0.8s ease 1s both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes badgePulse {
  0%,100% { transform: rotate(3deg) scale(1); }
  50%      { transform: rotate(3deg) scale(1.05); }
}

/* Scroll dot */
@keyframes scrollDot {
  0%   { top: 6px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

/* Stats counting — triggered by JS */
.stat-num { transition: none; }

/* Stagger — modelos grid (6 tarjetas) */
.modelos-grid .modelo-card:nth-child(1) { transition-delay: 0s; }
.modelos-grid .modelo-card:nth-child(2) { transition-delay: 0.08s; }
.modelos-grid .modelo-card:nth-child(3) { transition-delay: 0.16s; }
.modelos-grid .modelo-card:nth-child(4) { transition-delay: 0.24s; }
.modelos-grid .modelo-card:nth-child(5) { transition-delay: 0.32s; }
.modelos-grid .modelo-card:nth-child(6) { transition-delay: 0.40s; }

/* Stagger — precios grid */
.precios-grid .precio-card:nth-child(1) { transition-delay: 0s; }
.precios-grid .precio-card:nth-child(2) { transition-delay: 0.12s; }
.precios-grid .precio-card:nth-child(3) { transition-delay: 0.24s; }

/* Stagger — packs */
.packs-grid .pack-card:nth-child(1) { transition-delay: 0s; }
.packs-grid .pack-card:nth-child(2) { transition-delay: 0.12s; }

/* Hover lift utility */
.precio-card,
.modelo-card,
.pack-card {
  will-change: transform;
}

/* Navbar */
.navbar { will-change: background, padding; }

/* Lightbox fade */
.lightbox { animation: none; }
.lightbox.active { animation: lightboxFade 0.25s ease; }
@keyframes lightboxFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
