/* =========================================================
REINICIO
========================================================= */

.laeca-services-slider,
.laeca-services-slider *,
.laeca-services-slider *::before,
.laeca-services-slider *::after {
  box-sizing: border-box;
}

.laeca-services-slider h2,
.laeca-services-slider p {
  margin: 0;
  padding: 0;
}

/* =========================================================
SECCIÓN
========================================================= */

.laeca-services-slider {
  position: relative;

  width: 100%;
  height: 100vh;
  min-height: 780px;

  margin: 0;
  padding: 0;

  overflow: hidden;
  background: #07111f;

  font-family: "Inter", Arial, sans-serif;
}

/* =========================================================
SLIDES
========================================================= */

.laeca-services-track,
.laeca-service-slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
}

.laeca-service-slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: scale(1.025);

  transition:
    opacity 0.75s ease,
    visibility 0.75s ease,
    transform 1.2s ease;
}

.laeca-service-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: scale(1);
}

.laeca-service-image {
  position: absolute;
  inset: 0;

  width: 100% !important;
  height: 100% !important;
  max-width: none !important;

  display: block;

  object-fit: cover;
  object-position: center;
}

/* =========================================================
OVERLAY
========================================================= */

.laeca-service-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(3, 10, 18, 0.92) 0%,
      rgba(3, 10, 18, 0.78) 31%,
      rgba(3, 10, 18, 0.48) 58%,
      rgba(3, 10, 18, 0.22) 100%
    ),
    linear-gradient(
      0deg,
      rgba(3, 10, 18, 0.72) 0%,
      rgba(3, 10, 18, 0.08) 58%,
      rgba(3, 10, 18, 0.18) 100%
    );
}

/* =========================================================
CONTENIDO
ALINEADO CON EL HERO PRINCIPAL
========================================================= */

.laeca-service-content {
  position: absolute;
  z-index: 2;

  top: 50%;
  left: calc(4rem + 5% + 1.75rem);

  width: min(760px, calc(100% - 9rem));

  transform: translateY(-48%);
}

/* =========================================================
KICKER
========================================================= */

.laeca-service-kicker {
  max-width: 700px;

  margin-bottom: 34px !important;

  color: rgba(255, 255, 255, 0.68);

  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
  line-height: 20px;
  letter-spacing: 3.5px;

  vertical-align: middle;
  text-transform: uppercase;
}

/* =========================================================
TÍTULO
========================================================= */

.laeca-service-title {
  max-width: 760px;

  margin-bottom: 28px !important;

  color: #ffffff;

  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-size: 60px;
  font-weight: 800;
  font-style: normal;
  line-height: 60px;
  letter-spacing: -1.5px;

  vertical-align: middle;
  text-transform: uppercase;
}

/* =========================================================
DESCRIPCIÓN
========================================================= */

.laeca-service-description {
  max-width: 540px;

  margin-bottom: 30px !important;

  color: rgba(255, 255, 255, 0.78);

  font-family: "Inter", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  line-height: 28px;
  letter-spacing: 0;

  vertical-align: middle;
}

/* =========================================================
CONTROLES INTERNOS
========================================================= */

.laeca-service-navigation {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 30px;
}

.laeca-services-arrow {
  width: 46px;
  height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;

  background: transparent;
  color: #ffffff;

  cursor: pointer;

  transition:
    border-color 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

.laeca-services-slider .laeca-services-arrow:hover,
.laeca-services-slider .laeca-services-arrow:hover i {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000 !important;
}

.laeca-services-arrow i {
  font-size: 18px;
}

.laeca-services-counter {
  margin-left: 8px;

  color: rgba(255, 255, 255, 0.35);

  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.laeca-services-counter strong {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

/* =========================================================
BOTÓN
========================================================= */

.laeca-service-button {
  min-width: 238px;
  height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  padding: 0 34px;

  border: 0;
  border-radius: 0;

  background: #1a40ff;
  color: #ffffff;

  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;

  text-decoration: none;

  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.laeca-service-button:hover {
  background: #1739e6;
  transform: translateY(-2px);
}

.laeca-service-button i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.laeca-service-button:hover i {
  transform: translateX(5px);
}

/* =========================================================
INDICADORES INFERIORES
========================================================= */

.laeca-services-pagination {
  position: absolute;
  z-index: 6;

  left: 50%;
  bottom: 32px;

  display: flex;
  align-items: center;
  gap: 10px;

  transform: translateX(-50%);
}

.laeca-services-dot {
  width: 20px;
  height: 3px;

  padding: 0;
  border: 0;
  border-radius: 99px;

  background: rgba(255, 255, 255, 0.28);

  cursor: pointer;

  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}

.laeca-services-dot.is-active {
  width: 42px;
  background: #ffffff;
}

/* =========================================================
TABLET
========================================================= */

@media (max-width: 1023px) {
  .laeca-services-slider {
    min-height: 720px;
  }

  .laeca-service-content {
    left: calc(2.5rem + 5% + 1.75rem);
    width: min(680px, calc(100% - 5rem));
  }

  .laeca-service-title {
    font-size: 54px;
    line-height: 54px;
  }
}

/* =========================================================
MÓVIL
========================================================= */

@media (max-width: 767px) {
  .laeca-services-slider {
    height: 92vh;
    min-height: 660px;
  }

  .laeca-service-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(3, 10, 18, 0.92) 0%,
        rgba(3, 10, 18, 0.7) 100%
      ),
      linear-gradient(
        0deg,
        rgba(3, 10, 18, 0.75) 0%,
        transparent 65%
      );
  }

  .laeca-service-content {
    top: 48%;
    left: calc(1.5rem + 2% + 1.25rem);

    width: calc(100% - 3rem - 2% - 1.25rem);

    transform: translateY(-50%);
  }

  .laeca-service-kicker {
    margin-bottom: 22px !important;

    font-size: 11px;
    line-height: 17px;
    letter-spacing: 2px;
  }

  .laeca-service-title {
    margin-bottom: 20px !important;

    font-size: 44px;
    line-height: 44px;
    letter-spacing: -1px;
  }

  .laeca-service-description {
    margin-bottom: 24px !important;

    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
  }

  .laeca-service-navigation {
    margin-bottom: 24px;
  }

  .laeca-services-arrow {
    width: 42px;
    height: 42px;
  }

  .laeca-service-button {
    min-width: 210px;
    height: 48px;

    padding: 0 26px;

    font-size: 15px;
  }

  .laeca-services-pagination {
    bottom: 20px;
  }
}

.laeca-service-kicker {
  text-wrap: balance;
}

.laeca-service-kicker br + * {
  white-space: normal;
}


/* =========================================================
AJUSTE RESPONSIVE · TABLET Y MÓVIL
Se conservan los tamaños tipográficos aprobados.
Solo se aprovecha mejor el ancho útil para evitar
saltos innecesarios en títulos y descripciones.
========================================================= */

/* TABLET */
@media (min-width: 768px) and (max-width: 1023px) {
  .laeca-service-content {
    left: 48px;
    width: calc(100% - 96px);
    max-width: 760px;
  }

  .laeca-service-kicker {
    max-width: 620px;
  }

  .laeca-service-title {
    width: 100%;
    max-width: 720px;
  }

  .laeca-service-description {
    width: 100%;
    max-width: 620px;
  }

  .laeca-service-description br {
    display: none;
  }
}

/* MÓVIL */
@media (max-width: 767px) {
  .laeca-service-content {
    top: 48%;
    left: 32px;
    width: calc(100% - 64px);
    max-width: none;
    transform: translateY(-50%);
  }

  .laeca-service-kicker {
    width: 100%;
    max-width: 100%;
  }

  .laeca-service-title {
    width: 100%;
    max-width: 100%;
  }

  .laeca-service-description {
    width: 100%;
    max-width: 100%;
  }

  /* Evita cortes forzados como:
     "subestaciones / para / sistemas..."
     y deja que el ancho disponible decida las líneas. */
  .laeca-service-description br {
    display: none;
  }

  .laeca-service-navigation {
    width: 100%;
  }
}

/* MÓVILES MÁS ANGOSTOS */
@media (max-width: 420px) {
  .laeca-service-content {
    left: 24px;
    width: calc(100% - 48px);
  }
}
