/* ═══════════════════════════════════════════════════
   Bia Ruta Mundialista 2026 — Animaciones
═══════════════════════════════════════════════════ */

/* ── Fade In ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Slide Up + Fade ── */
@keyframes slideUp {
  from { transform: translateY(32px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Slide Down ── */
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* ── Modal scale in ── */
@keyframes modalIn {
  from { transform: translateY(40px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* ── Flecha scroll (shimmer) ── */
@keyframes shimmer {
  0%, 100% { transform: translateY(0);    opacity: 1;   }
  50%       { transform: translateY(10px); opacity: 0.5; }
}

/* ── Pulse del badge BIA ── */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(191, 255, 0, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(191, 255, 0, 0);  }
}

/* ── Pulsación del punto verde ── */
@keyframes dotPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.7; }
}

/* ── Partícula flotante ── */
@keyframes floatParticle {
  0%   { transform: translateY(0)     scale(1);   opacity: 0.6; }
  50%  { transform: translateY(-30px) scale(1.2); opacity: 1;   }
  100% { transform: translateY(0)     scale(1);   opacity: 0.6; }
}

/* ── Brillo de borde ── */
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(191, 255, 0, 0.15); }
  50%       { box-shadow: 0 0 18px rgba(191, 255, 0, 0.4);  }
}

/* ── Texto héroe entrada ── */
@keyframes heroTitle {
  0%   { opacity: 0; transform: translateY(24px) skewY(1deg); }
  100% { opacity: 1; transform: translateY(0)    skewY(0);    }
}

/* ── Rotate sutil del isotipo ── */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Línea decorativa expandir ── */
@keyframes lineExpand {
  from { width: 0;    opacity: 0; }
  to   { width: 60px; opacity: 1; }
}

/* ── Tag entrada en cascada ── */
@keyframes tagIn {
  from { transform: scale(0.8) translateY(6px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);   opacity: 1; }
}

/* ─────────────────────────────────────
   Clases de animación de entrada (JS toggle)
───────────────────────────────────── */

.animate-on-scroll,
.section-title,
.section-subtitle {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.90s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.00s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible,
.section-title.visible,
.section-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Apple Reveal System ── */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  transition:
    opacity  0.90s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.00s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Variante sutil — para elementos grandes (video, imágenes) */
.reveal--fade {
  transform: translateY(20px) scale(0.99);
}

/* Variante impactante — para héros y números grandes */
.reveal--big {
  transform: translateY(56px) scale(0.94);
}

/* Variante desde la izquierda */
.reveal--from-left {
  transform: translateX(-44px) scale(0.97);
}

/* Variante desde la derecha */
.reveal--from-right {
  transform: translateX(44px) scale(0.97);
}

/* Respetar preferencias de reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .business-card {
    min-height: 320px !important;
  }
  .business-card .card-info {
    flex: 1 1 auto !important;
    opacity: 1 !important;
    padding: 44px 56px !important;
  }
  .business-card .card-visual {
    flex: 0 0 380px !important;
    height: 320px !important;
  }
  .animate-on-scroll,
  .section-title,
  .section-subtitle,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
