/* ── Scroll-text hero ── */
.hero-scroll-section {
  position: relative;
  height: 500svh;
}
/* El hero CDN se convierte en sticky stage */
.hero-scroll-section > .hero {
  position: sticky !important;
  top: 0 !important;
  height: 100svh !important;
  overflow: hidden !important;
}
/* El h2 animado flota centrado dentro del hero */
.hero-scroll-title {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(1.5rem, 3.8vw, 3.8rem);
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  text-shadow:
    rgba(0,0,0,0.8) 0px 1px 3px,
    rgba(0,0,0,0.5) 0px 0px 20px,
    rgba(0,0,0,0.3) 0px 0px 50px;
  padding: 0 2rem;
}
.hero-scroll-title .--line { display: block; }
.hero-scroll-title .--char {
  display: inline-block;
  opacity: 0;
  will-change: opacity, color;
}

/* scroll hint — fixed */
#heroScrollHint {
  pointer-events: none !important;
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: opacity 0.5s;
  z-index: 100;
}
[data-bs-theme=light] #heroScrollHint { color: rgba(0,0,0,0.4); }
#heroScrollHint svg { animation: hintBounce 1.4s ease-in-out infinite; width: 20px; height: 20px; }
@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* Mobile dark: hint es tappable en zona inferior */
@media (max-width: 768px) {
  [data-bs-theme=dark] #heroScrollHint,
  :not([data-bs-theme=light]) #heroScrollHint {
    pointer-events: auto !important;
    cursor: pointer;
    bottom: 2rem;
    color: rgba(255,255,255,0.65);
    font-size: 0.8rem;
  }
}

/* hero-content: invisible al inicio pero ocupa espacio (sin colapso) */
.hero-scroll-section .hero-content {
  visibility: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s linear 0.7s;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.hero-scroll-section .hero-content.revealed {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s linear 0s;
}

@media (max-width: 600px) {
  .hero-scroll-title {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    line-height: 1.15;
    top: 25%;
    transform: translate(-50%, -50%);
    padding: 0 1.5rem;
  }
  .hero-scroll-section .hero-content {
    margin-top: 180px;
  }
}
