/* ==========================================================================
   INTERACTIVE.CSS — Micro-animaciones, Efectos y Estados Dinámicos
   Bootcamp Digital Factory & IA 2026 (SENA Regional Atlántico)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BARRA DE PROGRESO DE SCROLL SUPERIOR
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-lime-bright), var(--neon-lime), #7B2CBF);
  z-index: 999;
  box-shadow: 0 0 12px var(--neon-lime-glow);
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   2. SCROLL REVEAL (INTERSECTION OBSERVER)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
}

.reveal.reveal-left {
  transform: translateX(-40px);
}

.reveal.reveal-right {
  transform: translateX(40px);
}

.reveal.reveal-scale {
  transform: scale(0.92);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   3. ANIMACIÓN FLIP / PULSO PARA EL COUNTDOWN
   -------------------------------------------------------------------------- */
@keyframes cdFlip {
  0% {
    transform: translateY(-8px);
    opacity: 0.4;
  }
  50% {
    transform: translateY(2px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.cd-num.flip {
  animation: cdFlip 0.35s ease-out;
}

/* --------------------------------------------------------------------------
   4. EFECTO DE RESPLANDOR Y FOCUS ACCESIBLE
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--neon-lime);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   5. TILT CARD MICRO-ANIMACIONES
   -------------------------------------------------------------------------- */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

/* --------------------------------------------------------------------------
   6. CANVAS DE PARTÍCULAS HERO
   -------------------------------------------------------------------------- */
#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

/* --------------------------------------------------------------------------
   7. TICKER HORIZONTAL RODANTE DECORATIVO
   -------------------------------------------------------------------------- */
.rolling-ticker-section {
  width: 100%;
  overflow: hidden;
  background: rgba(8, 10, 34, 0.9);
  border-top: 1px solid rgba(212, 248, 66, 0.2);
  border-bottom: 1px solid rgba(212, 248, 66, 0.2);
  padding: 12px 0;
  position: relative;
  z-index: 10;
}

.rolling-ticker-track {
  display: flex;
  width: max-content;
  animation: tickerSlide 35s linear infinite;
}

.rolling-ticker-track:hover {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
}

.ticker-text-neon {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--neon-lime);
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ticker-bullet {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

.ticker-tag-pill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-white);
  white-space: nowrap;
}

@keyframes tickerSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   8. SOPORTE DE MOVIMIENTO REDUCIDO
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .rolling-ticker-track {
    animation: none !important;
  }
}
