/* =========================================================
   HERO PRINCIPAL
========================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 690px;
  padding: 62px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 16% 18%,
      rgba(202, 151, 65, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 18%,
      rgba(17, 166, 200, 0.1),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #031226 0%,
      #061a35 46%,
      #0b2f5b 100%
    );
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(3, 18, 38, 0.96),
      rgba(3, 18, 38, 0.82) 48%,
      rgba(3, 18, 38, 0.38)
    ),
    radial-gradient(
      circle at 20% 58%,
      rgba(255, 255, 255, 0.04),
      transparent 36%
    );
}

.hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -180px;
  z-index: 1;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(202, 151, 65, 0.08);
  filter: blur(10px);
}

/* =========================================================
   CONTENEDOR
========================================================= */

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(420px, 0.92fr);
  align-items: center;
  gap: 52px;
  width: min(100% - 64px, var(--container));
  margin: 0 auto;
  color: var(--color-white);
}

.hero__text {
  min-width: 0;
  max-width: 820px;
}

/* =========================================================
   ETIQUETA SUPERIOR
========================================================= */

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--color-gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.hero__label::before {
  content: "";
  flex-shrink: 0;
  width: 42px;
  height: 2px;
  background: var(--color-gold);
}

/* =========================================================
   TÍTULO PRINCIPAL
========================================================= */

.hero h1 {
  max-width: 820px;
  margin: 0 0 24px;
  color: var(--color-white);
  font-family: var(--font-title);
  font-size: clamp(3.75rem, 5.6vw, 6.15rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow-wrap: normal;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.hero__line {
  position: relative;
  width: min(250px, 46%);
  height: 1px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.24);
}

.hero__line::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 58px;
  height: 3px;
  background: var(--color-gold);
}

/* =========================================================
   DESCRIPCIÓN
========================================================= */

.hero__description {
  max-width: 720px;
  min-height: 3.45em;
  margin: 0 0 42px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.65;
  text-wrap: balance;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* =========================================================
   CAMBIO DE DIAPOSITIVA
========================================================= */

.hero.is-changing .hero__label,
.hero.is-changing h1,
.hero.is-changing .hero__description {
  opacity: 0;
  transform: translateY(10px);
}

/* =========================================================
   SERVICIOS / INDICADORES
========================================================= */

.hero__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 920px;
}

.hero__feature {
  appearance: none;
  min-width: 0;
  margin: 0 18px 0 0;
  padding: 10px 18px 10px 0;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  outline: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  opacity: 0.42;
  filter: grayscale(0.4);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition:
    opacity 0.3s ease,
    filter 0.3s ease,
    transform 0.3s ease;
}

.hero__feature:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}

.hero__feature > div,
.hero__feature > span:not(.hero__feature-icon) {
  min-width: 0;
}

.hero__feature:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.hero__feature:focus-visible {
  opacity: 1;
  border-radius: 8px;
  outline: 2px solid var(--color-gold);
  outline-offset: 6px;
}

.hero__feature.is-active {
  opacity: 1;
  filter: none;
}

/* =========================================================
   ÍCONOS DE LOS SERVICIOS
========================================================= */

.hero__feature-icon {
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  color: var(--color-gold);
  background: rgba(3, 18, 38, 0.3);
  font-size: 1.35rem;
  box-shadow: none;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.hero__feature.is-active .hero__feature-icon {
  background: rgba(202, 151, 65, 0.16);
  box-shadow: 0 0 0 8px rgba(202, 151, 65, 0.08);
  transform: scale(1.04);
}

/* =========================================================
   TEXTOS DE LOS SERVICIOS
========================================================= */

.hero__feature h3 {
  margin: 0 0 6px;
  color: var(--color-white);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.hero__feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1.42;
  overflow-wrap: break-word;
}

.hero__feature.is-active h3 {
  color: #ffffff;
}

.hero__feature.is-active p {
  color: rgba(255, 255, 255, 0.95);
}

/* =========================================================
   SLIDER DERECHO
========================================================= */

.hero__slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 410px;
}

.hero__slider-frame {
  position: relative;
  width: min(100%, 650px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(202, 151, 65, 0.24);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero__slider-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(3, 18, 38, 0.04),
      rgba(3, 18, 38, 0.22)
    ),
    linear-gradient(
      135deg,
      rgba(202, 151, 65, 0.12),
      transparent 42%
    );
}

/* =========================================================
   DIAPOSITIVAS
========================================================= */

.hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition:
    opacity 0.75s ease,
    visibility 0.75s ease,
    transform 1.1s cubic-bezier(0.18, 0.82, 0.22, 1);
}

.hero__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   PUNTOS DEL SLIDER
========================================================= */

.hero__slider-dots {
  position: absolute;
  bottom: -30px;
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transform: translateX(-50%);
}

.hero__slider-dot {
  appearance: none;
  display: block;
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition:
    width 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.hero__slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.12);
}

.hero__slider-dot:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

.hero__slider-dot.is-active {
  width: 30px;
  background: var(--color-gold);
  transform: none;
}

/* =========================================================
   ÁREAS
========================================================= */

.areas {
  padding: 38px 0 42px;
  border-bottom: 1px solid rgba(202, 151, 65, 0.18);
  background: #f7f6f3;
}

.areas__title {
  margin: 0 0 24px;
  color: var(--color-navy-dark);
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}

.areas__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100% - 64px, var(--container));
  margin: 0 auto;
}

.areas__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  padding: 10px 28px;
  border-right: 1px solid rgba(202, 151, 65, 0.35);
}

.areas__item:last-child {
  border-right: none;
}

.areas__icon {
  flex-shrink: 0;
  font-size: 1.45rem;
}

.areas__item h3 {
  margin: 0;
  color: var(--color-navy-dark);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

/* =========================================================
   PANTALLAS INTERMEDIAS
========================================================= */

@media (max-width: 1380px) {
  .hero__content {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(400px, 0.82fr);
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 5.2vw, 5.5rem);
  }

  .hero__feature {
    margin-right: 13px;
    padding-right: 13px;
    gap: 12px;
  }

  .hero__feature-icon {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .hero__feature h3 {
    font-size: 0.92rem;
  }

  .hero__feature p {
    font-size: 0.78rem;
  }
}

/* =========================================================
   TABLET HORIZONTAL
========================================================= */

@media (max-width: 1180px) {
  .hero {
    min-height: auto;
    padding: 74px 0 88px;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero h1 {
    max-width: 920px;
    font-size: clamp(3.8rem, 8vw, 6rem);
  }

  .hero__description {
    max-width: 820px;
    min-height: auto;
  }

  .hero__features {
    max-width: 940px;
  }

  .hero__feature {
    margin-right: 20px;
    padding-right: 20px;
  }

  .hero__feature-icon {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  .hero__feature h3 {
    font-size: 1rem;
  }

  .hero__feature p {
    font-size: 0.84rem;
  }

  .hero__slider {
    min-height: auto;
    justify-content: flex-start;
  }

  .hero__slider-frame {
    width: min(100%, 790px);
  }
}

/* =========================================================
   TABLET VERTICAL
========================================================= */

@media (max-width: 860px) {
  .hero__content {
    width: min(100% - 40px, var(--container));
  }

  .hero h1 {
    max-width: 760px;
    font-size: clamp(3.15rem, 10.5vw, 5rem);
    line-height: 0.96;
  }

  .hero__description {
    max-width: 700px;
  }

  .hero__features {
    grid-template-columns: 1fr;
  }

  .hero__feature {
    width: 100%;
    min-height: 98px;
    margin-right: 0;
    padding: 18px 4px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    align-items: center;
  }

  .hero__feature:last-child {
    border-bottom: none;
  }

  .hero__feature-icon {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }

  .hero__feature h3 {
    font-size: 1rem;
  }

  .hero__feature p {
    font-size: 0.86rem;
  }

  .hero__slider-frame {
    width: 100%;
    border-radius: 28px;
  }
}

/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 620px) {
  .hero {
    padding: 54px 0 74px;
  }

  .hero__content {
    width: min(100% - 28px, var(--container));
    gap: 40px;
  }

  .hero__label {
    gap: 10px;
    margin-bottom: 16px;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }

  .hero__label::before {
    width: 34px;
  }

  .hero h1 {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: clamp(2.7rem, 13vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }

  .hero__line {
    width: 190px;
    margin-bottom: 24px;
  }

  .hero__description {
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
    text-wrap: pretty;
  }

  .hero__feature {
    min-height: auto;
    gap: 14px;
    padding: 17px 2px;
  }

  .hero__feature-icon {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .hero__feature h3 {
    margin-bottom: 4px;
    font-size: 0.96rem;
  }

  .hero__feature p {
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .hero__slider-frame {
    border-radius: 22px;
  }

  .hero__slider-dots {
    bottom: -28px;
  }

  .areas {
    padding: 34px 0;
  }

  .areas__title {
    width: min(100% - 28px, var(--container));
    margin-right: auto;
    margin-left: auto;
  }

  .areas__grid {
    grid-template-columns: 1fr;
    width: min(100% - 28px, var(--container));
  }

  .areas__item {
    justify-content: flex-start;
    padding: 18px 0;
    border-right: none;
    border-bottom: 1px solid rgba(202, 151, 65, 0.25);
  }

  .areas__item:last-child {
    border-bottom: none;
  }

  .areas__item h3 {
    font-size: 1.12rem;
  }
}

/* =========================================================
   MÓVILES PEQUEÑOS
========================================================= */

@media (max-width: 390px) {
  .hero__content {
    width: min(100% - 22px, var(--container));
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12.5vw, 3.25rem);
  }

  .hero__description {
    font-size: 0.95rem;
  }

  .hero__feature-icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
  }

  .hero__feature h3 {
    font-size: 0.92rem;
  }

  .hero__feature p {
    font-size: 0.79rem;
  }

  .hero__slider-frame {
    border-radius: 18px;
  }
}

/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .hero__label,
  .hero h1,
  .hero__description,
  .hero__feature,
  .hero__feature-icon,
  .hero__slide,
  .hero__slider-dot {
    transition: none;
  }

  .hero__slide {
    transform: none;
  }

  .hero__slide.is-active {
    transform: none;
  }
}