/* =========================================================
RESET AISLADO
========================================================= */
.laeca-servicios-hero-wrapper,
.laeca-servicios-hero-wrapper *,
.laeca-servicios-hero-wrapper *::before,
.laeca-servicios-hero-wrapper *::after {
  box-sizing: border-box;
}

.laeca-servicios-hero-wrapper {
  --laeca-blue: #1a40ff;
  position: relative;
  width: 100%;
  height: 160vh; /* recorrido para el efecto */
  margin: 0;
  padding: 0;
  background: #0b1a2b;
  overflow: visible;
  font-family: "Inter", Arial, sans-serif;
}

.laeca-servicios-hero-wrapper h1,
.laeca-servicios-hero-wrapper p,
.laeca-servicios-hero-wrapper img {
  margin-top: 0;
  padding: 0;
}

/* =========================================================
HERO
========================================================= */
.laeca-servicios-hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 80px 0 0;
  overflow: hidden;
  will-change: transform;
}

/* =========================================================
FONDO
========================================================= */
.laeca-servicios-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.laeca-servicios-hero-image-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform, opacity;
}

.laeca-servicios-hero-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
OVERLAYS ORIGINALES
========================================================= */
.laeca-servicios-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.laeca-servicios-gradient-r {
  background: linear-gradient(
    to right,
    rgba(11, 26, 43, 0.78) 0%,
    rgba(11, 26, 43, 0.45) 50%,
    rgba(11, 26, 43, 0.2) 100%
  );
  opacity: 0.5;
}

.laeca-servicios-gradient-t {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  opacity: 0.4;
}

.laeca-servicios-overlay-accent {
  background: rgba(26, 64, 255, 0.04);
}

/* =========================================================
CUADRÍCULA TÉCNICA
========================================================= */
.laeca-servicios-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(26, 64, 255, 0.2) 60px,
      rgba(26, 64, 255, 0.2) 61px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(26, 64, 255, 0.2) 60px,
      rgba(26, 64, 255, 0.2) 61px
    );
}

/* =========================================================
CONTENIDO
========================================================= */
.laeca-servicios-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 4rem 24vh;
  will-change: transform, opacity;
}

.laeca-servicios-hero-content-inner {
  width: 100%;
  max-width: 48rem;
  margin-left: 5%;
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
}

.laeca-servicios-accent-line {
  width: 3px;
  min-width: 3px;
  align-self: stretch;
  background: var(--laeca-blue);
  border-radius: 9999px;
}

.laeca-servicios-copy {
  width: 100%;
  max-width: 42rem;
}

.laeca-servicios-title {
  color: #ffffff;
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-size: 72px;
  font-weight: 800;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.laeca-servicios-desc {
  max-width: 40rem;
  margin-top: 1.25rem !important;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Inter", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.625;
}



/* =========================================================
TABLET
========================================================= */
@media (min-width: 768px) and (max-width: 1024px) {

  .laeca-servicios-hero {
    min-height: 720px;
    padding-top: 72px;
    align-items: center;
  }

  .laeca-servicios-hero-wrapper {
    height: 150vh;
  }

  /* MISMA POSICIÓN DEL CONTENEDOR DEL HERO HOME EN TABLET */
  .laeca-servicios-hero-content {
    width: 100%;
    padding-left: 1rem !important;
    padding-right: 1.5rem !important;
  }

  .laeca-servicios-hero-content-inner {
    position: relative !important;
    left: 0 !important;
    width: 100%;
    max-width: 41rem;
    margin-left: 0 !important;
    padding-left: 1.5rem !important;
    padding-right: 0 !important;
  }

  .laeca-servicios-accent-line {
    top: 0;
    bottom: 2px;
  }

  .laeca-servicios-copy {
    width: 100%;
    max-width: 40rem;
  }

  .laeca-servicios-title {
    width: 100%;
    max-width: 40rem;
    margin-bottom: 1.35rem;
    font-size: 52px;
    line-height: 1.02;
    letter-spacing: -0.02em;
  }

  .laeca-servicios-desc {
    width: 100%;
    max-width: 35rem;
    margin-bottom: 1.9rem;
    font-size: 1.125rem;
    line-height: 1.6;
  }
}

/* =========================================================
MÓVIL
========================================================= */
@media (max-width: 767px) {
  .laeca-servicios-hero-wrapper {
    height: 145vh;
  }

  .laeca-servicios-hero {
    min-height: 620px;
    padding-top: 70px;
  }

  .laeca-servicios-hero-content {
    padding-right: 1rem;
    padding-left: 1rem;
    padding-bottom: 18vh;
  }

  .laeca-servicios-hero-content-inner {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    gap: 1.5rem;
    padding-right: 0;
  }

  .laeca-servicios-copy {
    max-width: none;
  }

  .laeca-servicios-title {
    font-size: 48px;
    line-height: 0.99;
    letter-spacing: -0.018em;
  }

  .laeca-servicios-desc {
    width: 100%;
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.55;
    text-wrap: pretty;
  }
}


@media (max-width: 420px) {
  .laeca-servicios-hero-content {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .laeca-servicios-hero-content-inner {
    margin-left: 0;
    padding-right: 0;
  }

  .laeca-servicios-desc {
    font-size: 0.97rem;
    line-height: 1.5;
  }
}

/* =========================================================
ACCESIBILIDAD
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .laeca-servicios-hero,
  .laeca-servicios-hero-content,
  .laeca-servicios-hero-image-layer {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
TIPOGRAFÍA RESPONSIVE TOMADA DEL HERO PRINCIPAL APROBADO
========================================================= */
@media (min-width: 640px) and (max-width: 767px) {
  .laeca-servicios-title {
    font-size: 48px;
  }
}

@media (min-width: 1280px) {
  .laeca-servicios-title {
    font-size: 72px;
  }
}

@media (max-width: 420px) {
  .laeca-servicios-title {
    font-size: 48px;
    line-height: 0.98;
  }

  .laeca-servicios-desc {
    font-size: 1rem;
    line-height: 1.5;
  }
}


/* =========================================================
BR SOLO EN ESCRITORIO
En tablet y móvil el texto fluye de forma natural.
========================================================= */
@media (max-width: 767px) {
  .laeca-servicios-desktop-br {
    display: none !important;
  }
}


/* =========================================================
FIX FINAL TABLET · MISMA ALINEACIÓN DEL HERO HOME
Se coloca al final para que tenga prioridad real.
========================================================= */
@media (min-width: 768px) and (max-width: 1200px) {

  .laeca-servicios-hero-content {
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1.5rem !important;
  }

  .laeca-servicios-hero-content-inner {
    position: relative !important;
    left: 0 !important;
    transform: none !important;

    width: 100% !important;
    max-width: 41rem !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    padding-left: 1.5rem !important;
    padding-right: 0 !important;
  }

  .laeca-servicios-copy {
    width: 100% !important;
    max-width: 40rem !important;
  }

  .laeca-servicios-title {
    width: 100% !important;
    max-width: 40rem !important;
    font-size: 60px !important;
    line-height: 1.02 !important;
    letter-spacing: -0.02em !important;
  }

  .laeca-servicios-desc {
    width: 100% !important;
    max-width: 35rem !important;
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
  }
}
