/* ================================================================
   LOVSITO.COM — ANIMATIONS.CSS
   Scroll reveal, fade-ins, stagger effects
   ================================================================ */

/* ─── SCROLL REVEAL BASE ────────────────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-up    { transform: translateY(28px); }
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translate(0);
}

/* Stagger delays for grid items */
.servicios__card:nth-child(1).is-visible { transition-delay: 0s; }
.servicios__card:nth-child(2).is-visible { transition-delay: 0.08s; }
.servicios__card:nth-child(3).is-visible { transition-delay: 0.16s; }
.servicios__card:nth-child(4).is-visible { transition-delay: 0.24s; }
.servicios__card:nth-child(5).is-visible { transition-delay: 0.32s; }
.servicios__card:nth-child(6).is-visible { transition-delay: 0.40s; }

.paquetes__card:nth-child(1).is-visible { transition-delay: 0s; }
.paquetes__card:nth-child(2).is-visible { transition-delay: 0.1s; }
.paquetes__card:nth-child(3).is-visible { transition-delay: 0.2s; }

.aspira__item:nth-child(1).is-visible { transition-delay: 0s; }
.aspira__item:nth-child(2).is-visible { transition-delay: 0.1s; }
.aspira__item:nth-child(3).is-visible { transition-delay: 0.2s; }
.aspira__item:nth-child(4).is-visible { transition-delay: 0.12s; }

.numeralia__item:nth-child(1).is-visible { transition-delay: 0s; }
.numeralia__item:nth-child(3).is-visible { transition-delay: 0.08s; }
.numeralia__item:nth-child(5).is-visible { transition-delay: 0.16s; }
.numeralia__item:nth-child(7).is-visible { transition-delay: 0.24s; }
.numeralia__item:nth-child(9).is-visible { transition-delay: 0.32s; }

/* ─── HERO REVEAL ───────────────────────────────────────────────── */
.hero__content .reveal-up:nth-child(1) { animation: heroUp 0.9s 0.2s cubic-bezier(0.4,0,0.2,1) both; }
.hero__content .reveal-up:nth-child(2) { animation: heroUp 0.9s 0.45s cubic-bezier(0.4,0,0.2,1) both; }
.hero__content .reveal-up:nth-child(3) { animation: heroUp 0.9s 0.65s cubic-bezier(0.4,0,0.2,1) both; }
.hero__content .reveal-up:nth-child(4) { animation: heroUp 0.9s 0.85s cubic-bezier(0.4,0,0.2,1) both; }

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

/* ─── NAV LOGO ENTRANCE ─────────────────────────────────────────── */
.nav__logo { animation: fadeInDown 0.7s 0.1s both; }
.nav__links { animation: fadeInDown 0.7s 0.2s both; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── HERO SCROLL INDICATOR ─────────────────────────────────────── */
.hero__scroll-hint { animation: fadeInDown 1s 1.4s both; }

/* ─── COUNTER NUMBER ANIMATION ──────────────────────────────────── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.numeralia__num { animation: countUp 0.6s both; }

/* ─── FORM FOCUS GLOW ───────────────────────────────────────────── */
@keyframes inputGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(184,154,106,0.1); }
  50%       { box-shadow: 0 0 0 4px rgba(184,154,106,0.2); }
}
.form__input:focus { animation: inputGlow 2s ease infinite; }

/* ─── HOVER SHIMMER ON CARDS ────────────────────────────────────── */
.servicios__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,0.06) 50%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s;
}
.servicios__card:hover::after { opacity: 1; }

/* ─── DRONE ICON PULSE ──────────────────────────────────────────── */
.drone__icon-wrapper {
  animation: dronePulse 4s ease-in-out infinite;
}
@keyframes dronePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,154,106,0); }
  50%       { box-shadow: 0 0 0 20px rgba(184,154,106,0.07); }
}

/* ─── MOBILE NAV HAMBURGER ANIMATION ────────────────────────────── */
.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
