/* ==================================================================
   Pestaña Inicio — hero principal
   ================================================================== */

/* Todas las diapositivas comparten la misma celda de la rejilla, así el
   bloque mide lo que la más alta y el texto no salta al cambiar. */
.hero {
  position: relative;
  display: grid;
  color: var(--white);
  overflow: hidden;
  background-color: var(--blue-dark);
}

.hero__slide {
  grid-area: 1 / 1;
  background-image: linear-gradient(
      100deg,
      rgba(15, 43, 94, 0.96) 0%,
      rgba(26, 69, 143, 0.88) 45%,
      rgba(26, 69, 143, 0.3) 100%
    ),
    var(--slide-image, none);
  background-position: right 55%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* Sólo padding vertical: el atajo `padding: 104px 0 116px` pondría el
   horizontal a 0 y anularía el de .container, desalineando el texto
   respecto a la cabecera y la tarjeta de cifras. */
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 104px;
  padding-bottom: 116px;
}

.hero__kicker {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--green-soft);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero__title {
  color: var(--white);
  font-size: 38px;
  line-height: 1.25;
  font-weight: 800;
  max-width: 760px;
  margin-bottom: 22px;
}

.hero__text {
  font-size: 17.5px;
  line-height: 1.6;
  color: #d9e2f5;
  max-width: 640px;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Indicadores.
   Van por encima de la tarjeta de cifras, que sobresale -56px sobre
   el hero: de ahí el bottom holgado. */
.hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 78px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero__dot {
  width: 30px;
  height: 4px;
  border: 0;
  padding: 0;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
}

.hero__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero__dot.is-active {
  background: var(--green-bright);
  width: 46px;
}

@media (max-width: 980px) {
  .hero__inner {
    padding-top: 76px;
    padding-bottom: 90px;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__text {
    font-size: 16px;
  }

  .hero__slide {
    background-position: 70% 55%;
  }
}

@media (max-width: 560px) {
  .hero__inner {
    padding-top: 56px;
    padding-bottom: 76px;
  }

  .hero__title {
    font-size: 25px;
  }

  .hero__cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero__dots {
    bottom: 70px;
  }
}

/* Sin animación para quien la desactiva en el sistema */
@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}
