/* ============================================================
   ITechPro — animations.css
   Keyframes · Efectos visuales · Glassmorphism · Orbes
   ============================================================ */

/* ── FADE IN ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── FLOAT ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
.float-anim { animation: float 5s ease-in-out infinite; }

/* ── PULSE GLOW ── */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,170,255,0.1); }
  50%       { box-shadow: 0 0 45px rgba(0,170,255,0.3); }
}
.glow-anim { animation: pulseGlow 3s ease-in-out infinite; }

/* ── ORBS ── */
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-25px, 20px) scale(1.03); }
  66%       { transform: translate(20px, -15px) scale(0.98); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(15px, 25px) scale(1.04); }
}

.orb-1 { animation: orbFloat1 12s ease-in-out infinite; }
.orb-2 { animation: orbFloat2 15s ease-in-out infinite; }
.orb-3 { animation: orbFloat3 10s ease-in-out infinite; }

/* ── SHIMMER (loading) ── */
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}
.shimmer {
  background: linear-gradient(90deg,
    var(--surf) 0%,
    var(--surf2) 50%,
    var(--surf) 100%);
  background-size: 200%;
  animation: shimmer 1.8s infinite;
}

/* ── COUNTER ── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BORDER GLOW ON HOVER ── */
@keyframes borderGlow {
  0%, 100% { border-color: var(--border); }
  50%       { border-color: var(--border2); }
}

/* ── HERO ENTRADA ── */
.hero-animate .hero-chip  { animation: fadeIn 0.6s ease-out both; animation-delay: 0.1s; }
.hero-animate h1          { animation: fadeIn 0.7s ease-out both; animation-delay: 0.2s; }
.hero-animate .hero-sub   { animation: fadeIn 0.7s ease-out both; animation-delay: 0.35s; }
.hero-animate .hero-proof { animation: fadeIn 0.6s ease-out both; animation-delay: 0.45s; }
.hero-animate .btn-group  { animation: fadeIn 0.6s ease-out both; animation-delay: 0.5s; }
.hero-animate .hero-visual{ animation: fadeInRight 0.9s ease-out both; animation-delay: 0.3s; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Delays escalonados */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }

/* ── STAT NUMBER COUNTER ── */
.stat-number[data-count] {
  animation: countUp 0.5s ease-out both;
}

/* ── GLASSMORPHISM CARD SHINE ── */
.card-glass::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0.035) 50%,
    transparent 100%
  );
  transition: left 0.6s ease;
  pointer-events: none;
}
.card-glass:hover::after { left: 140%; }

/* ── LINK UNDERLINE ANIM ── */
.link-anim {
  position: relative;
  display: inline-block;
}
.link-anim::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.25s;
}
.link-anim:hover::after { width: 100%; }

/* ── WHATSAPP ── */
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.40); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.65); }
}
.wa-float { animation: waPulse 3s ease-in-out infinite; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
}
