/* ===========================================================================
   Hero con banner "Que venga lo que sigue." (29-oct)
   Imagen de fondo: assets/hero/hero-escritorio.webp (>760 px) y
   assets/hero/hero-movil.webp (≤760 px), sin texto horneado.
   El texto es HTML real (SEO y accesibilidad) y el botón es el de NEXT
   (.nd-hero-cta), que abre el panel lateral.
   Se carga después de titulos.css y solo afecta a .hero.hero-banner.
   =========================================================================== */

.hero.hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 45.7vw, 860px);
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(48px, 6vw, 96px);
  background: #000;
  overflow: hidden;
  isolation: isolate;
}

/* Sin los resplandores heredados: la imagen ya trae su luz */
.hero.hero-banner::before,
.hero.hero-banner::after {
  content: none;
  display: none;
}

.hero-banner .hb-media,
.hero-banner .hb-media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-banner .hb-media img {
  display: block;
  object-fit: cover;
  object-position: right center;
}

.hero-banner .hb-copy {
  position: relative;
  z-index: 2;
  max-width: min(760px, 52vw);
  padding: 0;
}

/* Título */
.hero.hero-banner h1 {
  max-width: none;
  margin: 0 0 clamp(16px, 1.8vw, 24px);
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(2.9rem, 6.3vw, 7rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  animation: none;
}

.hero.hero-banner h1 span {
  display: block;
  white-space: nowrap;
  color: #fff;
}

.hero.hero-banner h1 span.tx-grad {
  display: inline-block;
  padding-bottom: 0.12em; /* que la "g" no se corte con background-clip */
  color: transparent;
  background: linear-gradient(90deg, #59e721 0%, #2ee6a0 45%, #1fb6f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* El diseño no lleva la línea corta bajo el título */
.hero.hero-banner h1::after {
  content: none;
  display: none;
}

.hero-banner .hb-sub {
  margin: 0 0 clamp(12px, 1.4vw, 18px);
  color: #fff;
  font-size: clamp(1.15rem, 1.75vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero.hero-banner .hero-lede {
  max-width: 25em;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  font-weight: 400;
  line-height: 1.5;
}

/* Botón de NEXT con el borde degradado del diseño */
.hero-banner .nd-hero-cta {
  margin-top: clamp(26px, 3vw, 40px);
  min-height: 56px;
  padding: 0 26px 0 16px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  border: 2px solid transparent;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #59e721, #1fb6f0) border-box;
  width: auto;
  white-space: nowrap;
}

.hero-banner .nd-hero-cta span {
  margin-left: 10px;
  font-size: 1.35em;
  line-height: 1;
}

.hero-banner .nd-hero-cta:hover,
.hero-banner .nd-hero-cta:focus-visible {
  border-color: transparent;
  box-shadow: 0 0 32px rgba(70, 177, 225, 0.28);
}

/* Tablet: la foto se corre a la derecha y el texto gana espacio */
@media (max-width: 1080px) {
  .hero-banner .hb-copy {
    max-width: 56vw;
  }

  .hero-banner .hb-media img {
    object-position: right center;
  }

  /* Velo oscuro a la izquierda para que el texto se lea sobre la foto */
  .hero-banner .hb-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.6) 42%, rgba(0, 0, 0, 0) 70%);
  }
}

/* Celular: imagen vertical; texto arriba, personas abajo */
@media (max-width: 760px) {
  .hero.hero-banner {
    align-items: flex-start;
    min-height: 0;
    aspect-ratio: 940 / 1672;
    max-height: none;
    padding-top: clamp(40px, 13vw, 84px);
    padding-bottom: 0;
  }

  .hero-banner .hb-media img {
    object-position: center bottom;
  }

  .hero-banner .hb-copy {
    max-width: 100%;
  }

  .hero.hero-banner h1 {
    font-size: clamp(2.6rem, 13.2vw, 4.4rem);
  }

  .hero-banner .hb-sub {
    font-size: clamp(1.05rem, 4.6vw, 1.5rem);
  }

  .hero.hero-banner .hero-lede {
    font-size: clamp(0.98rem, 4vw, 1.2rem);
  }

  .hero-banner .hb-media::after {
    content: none;
  }

  .hero-banner .nd-hero-cta {
    min-height: 52px;
    max-width: 100%;
    margin-top: 28px;
    padding: 0 18px 0 12px;
    gap: 8px;
    font-size: 0.88rem;
  }

  .hero-banner .nd-hero-cta span {
    margin-left: 4px;
  }
}

/* Pantallas muy angostas: el botón cabe en una línea */
@media (max-width: 380px) {
  .hero-banner .nd-hero-cta {
    padding: 0 14px 0 10px;
    font-size: 0.8rem;
  }
}
