/* ═══════════════════════════════════════════
   HERO VIDEO  |  hero-scroll.css
═══════════════════════════════════════════ */

.hs-track {
  position: relative;
  height: 100vh;
  background: #000;
}

.hs-sticky {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Gradiente oscuro en la parte superior para que el navbar sea legible */
.hs-sticky::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

/* Video a pantalla completa */
.hs-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Canvas oculto (no se usa en modo autoplay) */
.hs-canvas {
  display: none;
}

/* Imagen fija de respaldo */
.hs-poster-fallback {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Barra de progreso */
.hs-progress-track {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 10;
}
.hs-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--green-light, #68B631);
  transition: width 0.15s linear;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hs-video  { display: none; }
  .hs-poster-fallback { display: block; }
  .hs-progress-track  { display: none; }
}
