/* ==========================================
   INVESTIGACION ENLACES SLIDER
========================================== */

.investigacion-enlaces {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: #07111f;
  isolation: isolate;
}

/* ==========================================
   BACKGROUND
========================================== */

.investigacion-enlaces__background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(8%);
  transform: scale(1.02);
  z-index: -2;
}

.investigacion-enlaces__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 30, 0.88);
  z-index: -1;
}

/* ==========================================
   CONTAINER
========================================== */

.investigacion-enlaces__container {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================
   SLIDER CORE (IMPORTANTE)
========================================== */

.investigacion-enlaces__slider {
  position: relative;
}

/* Cada slide se apila y SOLO uno se muestra */
.investigacion-enlaces__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* slide activo */
.investigacion-enlaces__slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* ==========================================
   GRID
========================================== */

.investigacion-enlaces__grid {
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  align-items: center;
  gap: 56px;
}

/* ==========================================
   IMAGE
========================================== */

.investigacion-enlaces__image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.investigacion-enlaces__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================
   CONTENT
========================================== */

.investigacion-enlaces__content {
  max-width: 520px;
  color: #ffffff;
  padding: 0 50px;
}

/* ==========================================
   TITLE
========================================== */

.investigacion-enlaces__title {
  margin: 0 0 22px;
  line-height: 1.1;
}

.investigacion-enlaces__title-light {
  display: block;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
}

.investigacion-enlaces__title-regular {
  display: block;
  font-size: clamp(2.1rem, 3.2vw, 3.6rem);
  font-weight: 600;
  margin-top: 4px;
}

/* ==========================================
   SUBTITLE
========================================== */

.investigacion-enlaces__subtitle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.investigacion-enlaces__subtitle-top {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.6);
}

.investigacion-enlaces__subtitle-bottom {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================
   DESCRIPTION
========================================== */

.investigacion-enlaces__description {
  margin-bottom: 26px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================
   BUTTON
========================================== */

.investigacion-enlaces__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.25s ease;
}

.investigacion-enlaces__button:hover {
  background: #fff;
  color: #07111f;
}

/* ==========================================
   CONTROLS
========================================== */

.investigacion-enlaces__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  z-index: 20;
}

.investigacion-enlaces__control img {
  width: 14px;
  display: block;
  margin: auto;
}

.investigacion-enlaces__control--prev {
  left: 8px;
}

.investigacion-enlaces__control--prev img {
  transform: rotate(180deg);
}

.investigacion-enlaces__control--next {
  right: 8px;
}

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

@media (max-width: 991px) {
  .investigacion-enlaces {
    padding: 56px 0;
  }

  .investigacion-enlaces__container {
    padding: 0 22px;
  }

  .investigacion-enlaces__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .investigacion-enlaces__image-wrapper {
    min-height: 320px;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {
  .investigacion-enlaces {
    padding: 44px 0;
  }

  .investigacion-enlaces__container {
    padding: 0 16px;
  }

  .investigacion-enlaces__image-wrapper {
    min-height: 240px;
  }

  .investigacion-enlaces__title-light {
    font-size: 1.4rem;
  }

  .investigacion-enlaces__title-regular {
    font-size: 1.85rem;
  }

  /* BOTONES NO SE PEGAN */
  .investigacion-enlaces__control {
    top: auto;
    bottom: 14px;
    transform: none;
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.35);
  }

  .investigacion-enlaces__control--prev {
    left: 14px;
  }

  .investigacion-enlaces__control--next {
    right: 14px;
  }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {
  .investigacion-enlaces__image-wrapper {
    min-height: 200px;
  }

  .investigacion-enlaces__title-light {
    font-size: 1.25rem;
  }

  .investigacion-enlaces__title-regular {
    font-size: 1.6rem;
  }

  .investigacion-enlaces__description {
    font-size: 0.92rem;
  }
}
