/* ValTIC — hero-lite: version ligera del efecto "Horizon Hero" sin Three.js/GSAP/React */

.vh-hero {
  position: relative;
  height: 165vh; /* 3 actos x 55vh — acortado para que cambien más rápido con menos scroll */
  background: linear-gradient(135deg, #070708 0%, #0d0d14 55%, #10101a 100%);
}

/* El sitio real tiene `html, body { overflow-x: hidden }`, lo que rompe position:sticky
   (un ancestro con overflow != visible saca al sticky de su contexto de scroll normal).
   Por eso el "pin" se controla a mano por JS con fixed/absolute en vez de sticky. */
.vh-hero-pin {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vh-hero-pin.vh-fixed {
  position: fixed;
  top: 0;
  left: 0;
}
.vh-hero-pin.vh-bottom {
  position: absolute;
  top: auto;
  bottom: 0;
}

.vh-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
  /* el JS actualiza esto en cada frame para el efecto de acercamiento
     acelerado al scrollear (ver hero-lite.js) */
  transform: scale(1);
  will-change: transform;
}

/* Capa negra pareja para bajar el brillo general del video (independiente
   del degradé de legibilidad de abajo). */
.vh-video-dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, .4);
}

/* Degradé sobre el video para que el texto siga siendo legible sin
   importar qué tan brillante esté el fotograma en ese instante. */
.vh-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 8, .72) 0%, rgba(5, 5, 8, .4) 32%, rgba(5, 5, 8, .48) 60%, rgba(5, 5, 8, .85) 100%);
}

.vh-credit {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  font-size: .68rem;
  color: rgba(255, 255, 255, .38);
  text-decoration: none;
  letter-spacing: .02em;
}
.vh-credit:hover {
  color: rgba(255, 255, 255, .6);
}

.vh-acts {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 48px));
  text-align: center;
}

.vh-act {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.vh-act.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.vh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}
.vh-tag {
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #b9c2d0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .03);
}
.vh-tag .vh-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00d4ff;
  margin-right: 6px;
  box-shadow: 0 0 8px #00d4ff;
}

.vh-title {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.08;
  font-weight: 800;
  color: #f3f5f8;
  margin: 0 0 20px;
}
.vh-title .vh-grad {
  background: linear-gradient(90deg, #00d4ff, #e040fb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vh-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: #c7cdd8;
  max-width: 640px;
  margin: 0 auto;
}
.vh-sub .vh-line {
  display: block;
}

.vh-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #8b93a3;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.vh-scroll-track {
  width: 2px;
  height: 36px;
  background: rgba(255, 255, 255, .12);
  border-radius: 2px;
  overflow: hidden;
}
.vh-scroll-fill {
  width: 100%;
  background: linear-gradient(180deg, #00d4ff, #e040fb);
  transform-origin: top;
}

/* Sin JS o con prefers-reduced-motion: mostramos solo el acto 1, estático, sin sticky-scroll */
.vh-hero.vh-static {
  height: auto;
}
.vh-hero.vh-static .vh-hero-pin {
  position: relative;
  height: auto;
  min-height: 80vh;
  padding: 96px 0;
}
.vh-hero.vh-static .vh-act {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.vh-hero.vh-static .vh-act:not(:first-child) {
  display: none;
}
.vh-hero.vh-static .vh-scroll-hint {
  display: none;
}

@media (max-width: 640px) {
  .vh-tag { font-size: .68rem; }
}
