.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--surface-dark);
  padding-top: calc(var(--header-h-mobile) + var(--space-7));
  padding-bottom: var(--space-8);
}

/* Canvas de dots con pulsos data-flowing — pintado y animado en JS.
   Cubre el hero entero detrás del contenido. */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  display: block;
}

.hero__inner {
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  /* Mobile: contenido centrado */
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.hero__h1 {
  color: var(--text-on-dark);
  font-size: clamp(2.5rem, 5vw + 1rem, 4.625rem); /* 40px → 74px desktop */
  font-weight: var(--weight-bold); /* 700 — regla de sistema para H1 */
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 0;
}

.hero__subhead {
  color: var(--text-on-dark);
  font-size: clamp(1.0625rem, 0.5vw + 0.875rem, 1.25rem);
  line-height: 1.55;
  max-width: 60ch;
  font-weight: var(--weight-regular);
  opacity: 0.85;
}

/* ─── CTAs ─── */
.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
  align-items: center;
}

.hero__ctas .btn {
  justify-content: space-between;
}

.hero__cta--desktop { display: none; }

.hero__cta--mobile {
  min-width: 200px;
}

@media (min-width: 600px) {
  .hero__ctas {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
  }

  .hero__ctas .btn {
    justify-content: center;
  }

  .hero__cta--mobile { display: none; }
  .hero__cta--desktop { display: inline-flex; }
}

/* ≥ 600px: layout normal alineado izquierda (CTAs ya en row) */
@media (min-width: 600px) {
  .hero__content {
    align-items: flex-start;
    text-align: left;
    margin-inline: 0;
  }
}

/* ─── Tablet ≥ 768px ─── */
@media (min-width: 768px) {
  .hero {
    padding-top: calc(var(--header-h-mobile) + var(--space-8));
    padding-bottom: var(--space-9);
  }

  .hero__content {
    gap: var(--space-7);
  }
}

/* ─── Desktop ≥ 1024px ─── */
@media (min-width: 1024px) {
  .hero {
    border-radius: var(--radius-xl);
    min-height: 720px;
    padding-top: calc(var(--header-h-desktop) + var(--space-8));
    padding-bottom: var(--space-10);
    margin-bottom: 0;
  }

  .hero__h1 {
    letter-spacing: -0.04em;
  }

  .hero__subhead {
    max-width: 56ch;
  }
}

@media (min-width: 1280px) {
  .hero__content {
    max-width: 1000px;
  }
}
