/* La portada original permanece como alternativa cuando WebGL no está disponible. */
.hero-scroll {
  position: relative;
}

.signal-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.hero-scroll-cue {
  display: none;
}

.hero-3d-ready {
  scroll-behavior: auto;
}

.hero-3d-ready .hero-scroll {
  height: 210svh;
  min-height: 1280px;
}

.hero-3d-ready .hero {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 640px;
  padding-top: 84px;
  padding-bottom: 0;
  display: block;
  overflow: hidden;
}

.hero-3d-ready .hero-copy {
  position: absolute;
  z-index: 3;
  top: 52%;
  left: 0;
  width: min(54%, 640px);
  transform: translateY(-50%);
  will-change: transform, opacity;
}

.hero-3d-ready .hero-visual {
  position: absolute;
  z-index: 1;
  inset: 84px 0 0;
  min-height: 0;
  display: block;
  background: radial-gradient(circle at 50% 48%, rgba(20, 35, 60, .9) 0, rgba(7, 9, 13, 0) 56%);
}

.hero-3d-ready .signal-scene {
  opacity: 1;
}

.hero-3d-ready .signal-card,
.hero-3d-ready .orbit,
.hero-3d-ready .pixel {
  opacity: 0;
  visibility: hidden;
}

.hero-3d-ready .hero-scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 3.5vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  color: #818c9b;
  font: 700 .58rem/1 monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: translateX(-50%);
  will-change: transform, opacity;
}

.hero-scroll-cue i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--lime), transparent);
  transform-origin: top;
  animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%, 100% { transform: scaleY(.35); opacity: .35; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 850px) {
  .hero-3d-ready .hero-scroll {
    height: 190svh;
    min-height: 1180px;
  }

  .hero-3d-ready .hero {
    min-height: 610px;
  }

  .hero-3d-ready .hero-copy {
    top: auto;
    bottom: 4.5vh;
    left: 0;
    width: 100%;
    padding-right: 0;
    transform: none;
  }

  .hero-3d-ready .hero-copy .eyebrow {
    margin-bottom: .65rem;
  }

  .hero-3d-ready .hero-copy h1 {
    margin-bottom: .85rem;
    font-size: clamp(2.8rem, 11.5vw, 4.6rem);
  }

  .hero-3d-ready .hero-lede {
    max-width: 520px;
    margin-bottom: 1.1rem;
    font-size: .97rem;
  }

  .hero-3d-ready .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 1.3rem;
  }

  .hero-3d-ready .hero-visual {
    inset: 84px 0 0;
  }

  .hero-3d-ready .hero-scroll-cue {
    bottom: 2.2vh;
  }
}

@media (max-width: 560px) {
  .hero-3d-ready .hero-scroll {
    height: 180svh;
    min-height: 1080px;
  }

  .hero-3d-ready .hero-copy {
    bottom: 3vh;
  }

  .hero-3d-ready .hero-copy h1 {
    font-size: clamp(2.55rem, 13vw, 3.75rem);
  }

  .hero-3d-ready .hero-lede {
    font-size: .9rem;
    line-height: 1.45;
  }

  .hero-3d-ready .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: .8rem;
  }

  .hero-3d-ready .hero-actions .button {
    min-height: 44px;
  }

  .hero-3d-ready .hero-scroll-cue span {
    display: none;
  }

  .hero-scroll-cue i {
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue i {
    animation: none;
  }
}
