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

.laeca-trayectoria-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-trayectoria-hero-wrapper h1,
.laeca-trayectoria-hero-wrapper p,
.laeca-trayectoria-hero-wrapper img {
  margin-top: 0;
  padding: 0;
}

/* =========================================================
HERO
========================================================= */
.laeca-trayectoria-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-trayectoria-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

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

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

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

.laeca-trayectoria-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-trayectoria-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-trayectoria-overlay-accent {
  background: rgba(26, 64, 255, 0.04);
}

/* =========================================================
CUADRÍCULA TÉCNICA
========================================================= */
.laeca-trayectoria-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-trayectoria-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 4rem 24vh;
  will-change: transform, opacity;
}

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

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

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

.laeca-trayectoria-hero-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-trayectoria-desc {
  max-width: 48rem;
  margin-top: 1.25rem;
  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;
}

.laeca-trayectoria-desc-desktop {
  display: block;
}

.laeca-trayectoria-desc-responsive {
  display: none;
}

.laeca-trayectoria-desc-tablet {
  display: none;
}

.laeca-trayectoria-desc-line {
  display: block;
}

.laeca-trayectoria-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;

  margin: 2rem 0 0;
  padding: 0.875rem 2rem;

  border: 1px solid transparent;
  border-radius: 0;

  background: var(--laeca-blue);
  color: #ffffff;

  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  font-style: normal;
  line-height: normal;
  letter-spacing: 0.05em;

  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;

  transition: all 0.3s ease;
}

.laeca-trayectoria-btn:hover {
  border-color: rgba(26, 64, 255, 0.2);
  background: #ffffff;
  color: #0b1a2b;
  transform: none;
}

.laeca-trayectoria-btn-arrow-container {
  width: 1.25rem;
  height: 1.25rem;

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

  transition: transform 0.3s ease;
}

.laeca-trayectoria-btn:hover
.laeca-trayectoria-btn-arrow-container {
  transform: translateX(4px);
}

/* =========================================================
TABLET
========================================================= */
@media (min-width: 768px) and (max-width: 1023px) {
  .laeca-trayectoria-hero-wrapper {
    height: 150vh;
  }

  .laeca-trayectoria-hero-content {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }

  .laeca-trayectoria-hero-content-inner {
    margin-left: 5%;
  }

  .laeca-trayectoria-hero-title {
    font-size: 60px;
    line-height: 1.02;
    letter-spacing: -0.02em;
  }

  .laeca-trayectoria-desc {
    max-width: 42rem;
    font-size: 1.125rem;
    line-height: 1.6;
  }

  .laeca-trayectoria-btn {
    font-size: 1rem;
  }
}

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

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

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

  .laeca-trayectoria-hero-content-inner {
    max-width: 100%;
    margin-left: 2%;
    gap: 1.5rem;
  }

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

  .laeca-trayectoria-desc {
    max-width: 28rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .laeca-trayectoria-desc-desktop {
    display: none;
  }

  .laeca-trayectoria-desc-responsive {
    display: block;
  }

  .laeca-trayectoria-btn {
    padding: 0.82rem 1.55rem;
    font-size: 0.875rem;
  }
}

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

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

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

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

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

  .laeca-trayectoria-desc-desktop {
    display: none;
  }

  .laeca-trayectoria-desc-responsive {
    display: block;
  }

  .laeca-trayectoria-btn {
    padding: 0.78rem 1.35rem;
    font-size: 0.875rem;
  }
}


/* =========================================================
REGLAS FINALES DEL HERO APROBADAS
PC 72px · TABLET 60px · MÓVIL 48px
========================================================= */

/* ESCRITORIO */
@media (min-width: 1025px) {
  .laeca-trayectoria-hero-title {
    font-size: 72px;
    line-height: 1.02;
  }
}

/* TABLET · MISMA ALINEACIÓN DEL HERO HOME */
@media (min-width: 768px) and (max-width: 1024px) {
  .laeca-trayectoria-hero {
    min-height: 720px;
    padding-top: 72px;
    align-items: center;
  }

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

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

  .laeca-trayectoria-copy {
    width: 100%;
    max-width: 41rem;
  }

  .laeca-trayectoria-hero-title {
    width: 100%;
    max-width: 41rem;
    font-size: 60px;
    line-height: 1.02;
  }

  .laeca-trayectoria-desc {
    width: 100%;
    max-width: 39rem;
    font-size: 18px;
    line-height: 1.58;
  }

  .laeca-trayectoria-desc-desktop {
    display: none;
  }

  .laeca-trayectoria-desc-tablet {
    display: block;
  }

  .laeca-trayectoria-desc-responsive {
    display: none;
  }
}

/* MÓVIL */
@media (max-width: 767px) {
  .laeca-trayectoria-hero-title {
    font-size: 48px;
    line-height: 1.02;
  }

  .laeca-trayectoria-desc {
    font-size: 16px;
  }

  .laeca-trayectoria-desc-tablet,
  .laeca-trayectoria-desc-desktop {
    display: none;
  }

  .laeca-trayectoria-desc-responsive {
    display: block;
  }
}


/* =========================================================
FIX FINAL · REGLAS DEL HERO EN MÓVIL
Misma composición responsive aprobada del Hero Home.
TÍTULO 48px · PÁRRAFO 16px
========================================================= */
@media (max-width: 767px) {

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

  .laeca-trayectoria-hero {
    min-height: 650px;
    padding-top: 64px;
    align-items: center;
  }

  .laeca-trayectoria-hero-content {
    width: 100%;
    padding-left: 15px;
    padding-right: 14px;
    padding-bottom: 18vh;
  }

  .laeca-trayectoria-hero-content-inner {
    width: 100%;
    max-width: 350px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    gap: 14px;
  }

  .laeca-trayectoria-accent-line {
    width: 3px;
    min-width: 3px;
  }

  .laeca-trayectoria-copy {
    width: calc(100% - 17px);
    max-width: none;
    min-width: 0;
  }

  .laeca-trayectoria-hero-title {
    width: 100%;
    max-width: 335px;
    margin: 0;
    font-size: 48px;
    line-height: 1.02;
    letter-spacing: -0.018em;
  }

  .laeca-trayectoria-desc {
    width: 100%;
    max-width: 320px;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.55;
  }

  .laeca-trayectoria-desc-desktop,
  .laeca-trayectoria-desc-tablet {
    display: none;
  }

  .laeca-trayectoria-desc-responsive {
    display: block;
  }

  .laeca-trayectoria-btn {
    min-width: 200px;
    min-height: 46px;
    justify-content: center;
    padding: .82rem 1.55rem;
    font-size: .875rem;
  }
}

@media (max-width: 420px) {
  .laeca-trayectoria-hero {
    min-height: 620px;
    padding-top: 64px;
  }

  .laeca-trayectoria-hero-content {
    padding-left: 14px;
    padding-right: 12px;
  }

  .laeca-trayectoria-hero-content-inner {
    max-width: 348px;
    gap: 12px;
  }

  .laeca-trayectoria-hero-title {
    max-width: 320px;
    font-size: 48px;
    line-height: 1.02;
  }

  .laeca-trayectoria-desc {
    max-width: 315px;
    font-size: 16px;
    line-height: 1.55;
  }
}
