/* Contenedor general */
.contenedor__seccion {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.contenedor__seccion--campus {
  flex-direction: row;
  background: linear-gradient(#fff, #e0e7f3);
  gap: 2rem;
  justify-content: center;
  align-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

/* Imagen del campus */
.contenedor__img-campus {
  width: clamp(300px, 45vw, 700px);
  min-width: 300px;
  min-height: 250px;
  height: clamp(250px, 35dvh, 500px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
  border-radius: 0.7rem;
  overflow: hidden;
  flex-shrink: 1;
  justify-content: center;
  align-items: center;
}

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

/* Contenedor de texto e info */
.contenedor__seccion--enlaces {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #00060d;
  max-width: clamp(280px, 40vw, 600px);
}

/* Título accesible y destacado */
.contenedor__seccion--enlaces h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: #1b2a4f;
  text-align: center;
}

.contenedor__seccion--enlaces h2 span {
  display: block;
  font-size: 0.8em;
  font-weight: 500;
  color: #4b5563;
}

/* Lista de info */
.lista__info-campus {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.lista__item__info-campus {
  display: flex;
  align-items: start;
  gap: 0.7rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: #1b2a4f;
}

.lista__item__info-campus a {
  text-decoration: none;
  color: #0a3a77;
  font-weight: bold;
}

.lista__item__info-campus i {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  color: #0a3a77;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.lista__item__info-campus p {
  margin: 0;
  line-height: 1.5;
}

/* Responsive: columna en móviles */
@media (max-width: 768px) {
  .contenedor__seccion--campus {
    flex-direction: column;
    align-items: stretch;
  }

  .contenedor__img-campus,
  .contenedor__seccion--enlaces {
    max-width: 100%;
    width: 100%;
  }

  /* Ajustes específicos para móvil */
  .contenedor__img-campus {
    height: auto; /* elimina altura fija */
    min-height: unset;
    aspect-ratio: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .imagen__campus {
    width: 100%;
    height: auto; /* se adapta a la imagen natural */
    object-fit: contain;
    display: block;
  }

  .contenedor__seccion--enlaces h2 {
    text-align: center;
  }
}
