/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #222;
}

/* BARRA SUPERIOR */
.top-bar {
  height: 25px;
  background-color: #004C86;
}

/* ========== ENCABEZADO ========== */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 10px 20px;
  position: relative;
  flex-wrap: wrap; /* Esto hace RESPONSIVO el encabezado */
}

/* LOGO */
.logo img {
  height: 60px;
  width: auto;
  animation: logoIntro 1.2s ease-out forwards;
}

/* Animación del logo */
@keyframes logoIntro {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

/* NAV contenedor centrado */
.nav-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* MENÚ */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.main-nav a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  padding: 0 1rem;
  position: relative;
  transition: 0.3s;
}

/* Separadores */
.main-nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background-color: #000;
}

/* Hover */
.main-nav a:hover {
  color: #004C86;
  text-decoration: underline;
}

/* BOTÓN UMARIANA */
.btn-institucional {
  display: flex;
  align-items: center;
  background-color: #004C86;
  color: #fff;
  padding: 10px 16px;
  border-radius: 5px;
  gap: 10px;
  text-decoration: none;
  height: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Efecto hover botón */
.btn-institucional:hover {
  background-color: #0066b3;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* =====================================
      RESPONSIVIDAD PARA CELULARES
   ===================================== */

@media (max-width: 900px) {
  .nav-wrapper {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 10px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .main-nav a:not(:last-child)::after {
    display: none; /* Quitamos separadores en móvil */
  }

  .menu-header {
    justify-content: center;
  }

  .btn-institucional {
    margin-top: 10px;
  }
}

@media (max-width: 600px) {
  .logo img {
    height: 50px;
  }

  .main-nav a {
    padding: 5px 10px;
    font-size: 14px;
  }

  .btn-institucional {
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media (max-width: 1200px) {

  .main-nav {
    gap: 15px;
  }

  .btn-institucional {
    height: auto;
    padding: 8px 14px;
  }

}

/* =========================================================
   PRIMERA SECCIÓN / HERO — BLOQUE ÚNICO Y DEFINITIVO
   -----------------------------------------------------------
   fondo-seccion-1.png es UNA SOLA imagen real (no sprite,
   no fondo repetido). Dimensiones reales: 3842 x 1443 px
   → proporción real ≈ 2.6625 : 1 (NO es 16:9). Por eso la
   imagen es mucho más "corta" de lo que asumían los intentos
   anteriores, y un botón de tamaño fijo (300px) terminaba
   cubriendo más de la mitad de la imagen.

   Reglas de este bloque (y de todo el CSS: no debe existir
   ninguna otra regla .hero-section / .hero-fondo /
   .contenedor-botones / .boton-campus en el resto del archivo):
   - Sin background-image, sin ::before/::after, sin cover.
   - La imagen escala completa, sin recortes ni duplicados,
     a cualquier ancho de pantalla.
   - Los botones escalan con clamp()/vw en vez de saltos fijos
     por breakpoint, así se mantienen proporcionales al alto
     real (corto) de la imagen en cualquier tamaño.
========================================================= */

.hero-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0; /* elimina el espacio fantasma bajo el <img> */
  overflow: visible;
}

/* Imagen real, única, responsive: ancho completo, alto automático */
.hero-fondo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

/* Botones superpuestos en la parte inferior de la imagen.
   El desplazamiento vertical se calcula como % de la ALTURA
   PROPIA de los botones (no px fijos), así el solape con la
   imagen se ve igual de proporcionado en cualquier tamaño. */
.contenedor-botones {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 38%);
  z-index: 10;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(8px, 2.5vw, 26px);

  width: min(640px, 90%);
  margin: 0;
  padding: 0;
  line-height: normal;
}

.boton-campus {
  display: block;
  flex: 1 1 0;
  min-width: 90px;
  max-width: clamp(90px, 16vw, 300px);
}

.boton-campus img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.boton-campus img:hover {
  transform: scale(1.05);
}

.contenedor-botones a:nth-child(2) {
  align-self: center;
}


/*seccion secundaria */
.seccion-secundaria {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 250px 2rem 4rem 2rem; 
  flex-wrap: wrap;
  background-image: url("Recurso 7@2x-8.png");
  background-repeat: no-repeat;
  background-size: cover;
  flex-direction: row-reverse;
}

/* Columna izquierda */
.texto-acordeon {
  max-width: 600px;
  margin-top: -60px;
}

.texto-acordeon h2 span {
  color: #009fe3;
}

.texto-acordeon p span {
  color: #009fe3;
}

/* Contenedor acordeón */
.acordeon {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 2px solid #e0e0e0;
  margin-top: 3rem;
}

/* Item */
.acordeon-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Encabezado (botón) */
.acordeon-header {
  padding: 1rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  position: relative;
}

.acordeon-header:hover {
  background-color: #eaeaea;
}

/* Ícono de flecha */
.acordeon-header::after {
  content: '▶';
  position: absolute;
  right: 1rem;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

/* Flecha cuando se despliega */
.acordeon-item.activo .acordeon-header::after {
  transform: rotate(90deg);
}

/* Contenido desplegable */
.acordeon-content {
  display: none;
  padding: 1rem 1.2rem;
  background: #ffffff;
  border-top: 1px solid #ddd;
  line-height: 1.6;
  color: #444;
}

/* Mostrar contenido */
.acordeon-item.activo .acordeon-content {
  display: block;
}

/* Último botón estilo verde (GLIA - NO SE MODIFICA) */
.acordeon .acordeon-item:last-child .acordeon-header {
  background-color: #55c7a1;
  color: white;
}

.acordeon .acordeon-item:last-child .acordeon-header:hover {
  background-color: #2ba878;
}

.acordeon .acordeon-item:last-child {
  border-left: 4px solid #55c7a1;
}

/* BOTÓN LÍNEA EXTERNA ➜ MORADO */
.acordeon-item.externo .acordeon-header {
  background-color: #1a5097; 
  color: white;
}

.acordeon-item.externo .acordeon-header:hover {
  background-color: #101175;
}

.acordeon-item.externo {
  border-left: 4px solid #1a2ea0;
}

/* Imagen derecha */
.imagen-ilustrativa {
  position: relative;
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
}


.imagen-ilustrativa img {
  width: 130%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
}

/* Título sobre la imagen */
.titulo-sobre-imagen {
  position: absolute;
  top: -5.5rem;
  left: 5rem;
  text-align: left;
  width: 100%;
  padding-left: 1rem;
}

.titulo-sobre-imagen h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.titulo-sobre-imagen span {
  color: #009fe3;
}

/* ========== RESPONSIVO GENERAL ========== */

/* Tablets */
@media (max-width: 1024px) {

  .seccion-secundaria {
    padding: 150px 1.5rem 3rem 1.5rem;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    background-size: contain;
  }

  .texto-acordeon {
    margin-top: 20px;
    max-width: 90%;
  }

  .imagen-ilustrativa {
    max-width: 60%;
    margin: 0 auto 2rem auto;
  }

  .imagen-ilustrativa img {
    width: 100%;
  }

  .titulo-sobre-imagen {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 1rem;
    text-align: center;
  }
}

/* Celulares medianos */
@media (max-width: 768px) {

  /* Corrige el orden → imagen arriba */
  .seccion-secundaria {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 150px;
  }

  .imagen-ilustrativa {
    order: -1;
    max-width: 85%;
    margin: 0 auto 2rem auto;
  }

  /* Imagen visible */
  .imagen-ilustrativa img {
    width: 100% !important;
    margin: 0 auto;
  }

  .acordeon {
    padding: 1.2rem;
  }

  .acordeon-header {
    font-size: 0.95rem;
  }

  .acordeon-content {
    font-size: 0.9rem;
  }

  /* Título arriba */
  .titulo-sobre-imagen {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 1rem;
    text-align: center;
  }

  .titulo-sobre-imagen h2 {
    font-size: 1.7rem;
  }
}

/* Celulares pequeños */
@media (max-width: 480px) {

  .seccion-secundaria {
    padding: 100px 0.5rem 2rem 0.5rem;
  }

  .texto-acordeon h2 {
    font-size: 1.4rem;
  }

  .imagen-ilustrativa {
    max-width: 95%;
  }

  .imagen-ilustrativa img {
    width: 100%;
  }

  .titulo-sobre-imagen h2 {
    font-size: 1.5rem;
  }

  .acordeon {
    padding: 1rem;
  }

  .acordeon-header {
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  .acordeon-header::after {
    font-size: 1rem;
  }
}


/* seccion tercera infrastructura tecnologica */ 

/* =======================================================
   Sección 3: Infraestructura Tecnológica
======================================================= */

/* seccion tercera infrastructura tecnologica */

/* =======================================================
   Sección 3: Infraestructura Tecnológica
======================================================= */

/* seccion tercera infrastructura tecnologica */

/* =======================================================
   Sección 3: Infraestructura Tecnológica
======================================================= */

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

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

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

.seccion-tres {
  background-image: url('fondo-seccion-3.png');
  background-size: cover;
  background-position: center;
  padding: 60px 30px;
  font-family: 'Montserrat', sans-serif;
}

/* POSICIÓN DEL TÍTULO Y DESCRIPCIÓN */
/* CONTENEDOR DONDE POSICIONAMOS EL TÍTULO Y LA DESCRIPCIÓN */
.texto-posicionado {
  position: relative;
  width: 100%;
  height: 220px; /* Ajusta según lo alto que desees ese espacio */
}

/* TÍTULO EXACTO */
.titulo-infra {
  position: absolute;
  top: 40px;     /* ⬆ mueve hacia arriba o abajo */
  left: 260px;   /* ⬅ mueve hacia la izquierda/derecha */
  font-size: 1.0rem;
  font-weight: 800;
  line-height: 1.1;
  color: #000;
}

.titulo-infra span {
  color: #009fe3;
}

/* DESCRIPCIÓN EXACTA */
.descripcion-infra {
  position: absolute;
  top: -25px;      /* ⬆ ajústalo para alinearlo verticalmente */
  right: 215px;   /* ➡ ajusta cuánto hacia la derecha */
  width: 580px;   /* ancho del bloque de texto */
  font-size: 1.05rem;
  color: #333;
  text-align: justify;
  line-height: 1.4;
}

/* ============ CARRUSEL (3 TARJETAS VISIBLES) ============ */

.carousel {
  max-width: 1200px;       /* Ancho fijo para que entren 3 tarjetas */
  margin: 40px auto 0 auto;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  align-items: center;
  transition: transform 0.45s ease;
}

/* TARJETAS */
.card {
  width: 360px;
  min-width: 360px;
  flex: 0 0 360px;
  margin: 0 20px;
  background: #004C86;
  border-radius: 14px;
  color: white;
  text-align: center;

  transform: scale(0.9);
  opacity: 0.5;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.card.active {
  transform: scale(1.05);    /* la del medio sobresale */
  opacity: 1;
}

.card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.card h3 {
  padding: 12px 0;
}

/* ============ PUNTOS DEL CARRUSEL ============ */
.carousel-dots {
  text-align: center;
  margin-top: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #bbb;
  margin: 0 4px;
  transition: 0.3s;
}

.dot.active {
  background: #009fe3;
  transform: scale(1.25);
}

/* RESPONSIVE BÁSICO */
@media (max-width: 900px) {
  .titulo-infra {
    left: 20px;
    font-size: 2rem;
  }

  .descripcion-infra {
    position: static;
    margin: 20px auto 0 auto;
    width: 90%;
    text-align: left;
  }

  .texto-posicionado {
    height: auto;
  }

  .carousel {
    max-width: 100%;
  }

  .card {
    width: 280px;
    min-width: 280px;
    flex: 0 0 280px;
    margin: 0 10px;
  }

  .card img {
    height: 220px;
  }
}


/* RESPONSIVE CORREGIDO */
@media (max-width: 900px) {

  .texto-posicionado {
    display: flex;
    flex-direction: column-reverse; /* TÍTULO ARRIBA EN CELULAR */
    align-items: flex-start;
    padding: 0 20px;
    height: auto;
  }

  .titulo-infra {
    position: static;
    font-size: 2rem;
    margin-top: 0;
    order: 1;
  }

  .descripcion-infra {
    position: static;
    width: 90%;
    font-size: 1rem;
    margin-top: 10px;
    order: 2;
    text-align: left;
  }

  .carousel {
    max-width: 100%;
  }

  .card {
    width: 280px;
    min-width: 280px;
  }

  .card img {
    height: 220px;
  }
}




/* SECCION 4: NUESTROS ALIADOS */
/* SECCIÓN 4: NUESTRAS PLATAFORMAS */
/* SECCIÓN 4: NUESTRAS PLATAFORMAS */
/* SECCIÓN 4: NUESTRAS PLATAFORMAS */
.seccion-4 {
  background-image: url('fondo-seccion-5.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 60px 20px;
  text-align: center;
  color: #000;
}

/* Título centrado */
.titulo-seccion {
  width: 100%;
  text-align: center;
  display: block;
  margin-bottom: 40px;
}

.titulo-seccion h2 {
  margin: 0 auto;
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
}

.titulo-seccion .blanco {
  color: #050505;
}

.titulo-seccion .azul {
  color: #00aaff;
}

/* GALERÍA DE TARJETAS */
.galeria-aliados {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Tarjetas base */
.tarjeta {
  background: #fff;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;

  /* CLAVE PARA CENTRAR LA IMAGEN */
  display: flex;
  align-items: center;   
  justify-content: center;
  height: 200px; /* Ajusta según necesites */
}

/* Hover profesional */
.tarjeta:hover {
  transform: scale(1.07) translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.20);
}

/* Imagen */
.tarjeta img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /*  asegura que la imagen no se corte */
  border-radius: 12px;
}

/* Tamaños */
.tarjeta.grande {
  width: 260px;
  transform: scale(1);
}

.tarjeta.pequeña {
  width: 220px;
  transform: scale(0.92);
}

/* Ajuste hover */
.tarjeta.pequeña:hover {
  transform: scale(1.05) translateY(-8px);
}

.tarjeta.grande:hover {
  transform: scale(1.10) translateY(-8px);
}

/* ================================
   RESPONSIVE
   ================================ */

/* Tablets */
@media (max-width: 992px) {
  .tarjeta.grande { width: 230px; }
  .tarjeta.pequeña { width: 200px; }
}

/* Pantallas medianas */
@media (max-width: 768px) {

  .titulo-seccion h2 {
    font-size: 2rem;
  }

  .tarjeta.grande,
  .tarjeta.pequeña {
    width: 45%;
    height: 180px; /* Ajuste proporcional */
  }
}

/* Móviles */
@media (max-width: 480px) {

  .titulo-seccion h2 {
    font-size: 1.8rem;
  }

  .galeria-aliados {
    gap: 15px;
  }

  .tarjeta.grande,
  .tarjeta.pequeña {
    width: 80%;
    height: 160px; /* Más pequeño en móvil */
  }
}




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

/* =======================================================
   SECCIÓN ECOSISTEMA VIRTUAL DE APRENDIZAJE
======================================================= */

.ecosistema-section{
    width: 100%;
    background: #ffffff;
    padding: 60px 0;
}

/* ---------- TÍTULO ---------- */

.ecosistema-titulo{
    text-align: center;
    margin-bottom: 35px;
}

.ecosistema-titulo h2{
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.ecosistema-titulo .negro{
    color: #111111;
}

.ecosistema-titulo .azul{
    color: #009FE3;
}

/* ---------- IMAGEN ---------- */

.seccion-ecosistemas{
    display: flex;
    justify-content: center;
    align-items: center;
}

.seccion-ecosistemas img{
    width: 82%;
    max-width: 1500px;
    height: auto;
    display: block;
}

/* =======================================================
   RESPONSIVE
======================================================= */

@media (max-width: 992px){

    .ecosistema-titulo h2{
        font-size: 2.2rem;
    }

    .seccion-ecosistemas img{
        width: 90%;
    }

}

@media (max-width: 768px){

    .ecosistema-section{
        padding: 40px 0;
    }

    .ecosistema-titulo h2{
        font-size: 1.8rem;
    }

    .seccion-ecosistemas img{
        width: 96%;
    }

}


/* ========================================================================================================== Sección 6: Tutor Virtual =========================================================================================================================== */
/* ========================================================================================================== Sección 6: Tutor Virtual =======================================================================================*/
/* ====================== SECCIÓN 7 ====================== */
/* ====================== SECCIÓN 7 ====================== */
/* ====================== SECCIÓN 7 ====================== */
/* ====================== SECCIÓN 7 ====================== */
/* =========================================================================================================Sección 7: Nuestro Equipo  ==========================================================================================*/
/* =========================================================
   SECCIÓN: NUESTRO EQUIPO
   Diseño tipo tarjetas, inspirado en la referencia:
   - título y descripción centrados
   - 3 tarjetas visibles en escritorio
   - 2 en tablet
   - 1 en móvil
   - sin ventana emergente ni Genially
========================================================= */
/* =========================================================
   SECCIÓN: NUESTRO EQUIPO
   Diseño tipo tarjetas, inspirado en la referencia:
   - título y descripción centrados
   - 3 tarjetas visibles en escritorio
   - 2 en tablet
   - 1 en móvil
   - sin ventana emergente ni Genially
========================================================= */

.seccion-6 {
  width: 100%;
  padding: 75px 20px 85px;
  background: #ffffff;
  color: #000000;
  overflow: hidden;
}

.seccion-6-contenido {
  width: min(1250px, 100%);
  margin: 0 auto;
}

.seccion-6-centro {
  width: min(1050px, 100%);
  margin: 0 auto;
  text-align: center;
}

.titulo-centro {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 25px;
}

.negro {
  color: #1b1f33;
}

.azul {
  color: #009fe3;
}

.descripcion-centro {
  max-width: 1050px;
  margin: 0 auto 48px;
  font-size: 17px;
  line-height: 1.65;
  text-align: center;
  color: #333333;
}

/* ---------- CARRUSEL ---------- */

.equipo-carousel {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.equipo-viewport {
  width: 100%;
  overflow: hidden;
}

.equipo-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

.equipo-card {
  flex: 0 0 33.333333%;
  width: 33.333333%;
  padding-right: 24px;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* La tarjeta final no necesita margen extra */
.equipo-card:last-child {
  padding-right: 0;
}

.equipo-foto {
  width: 100%;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #f8fafc 0%, #dcecf5 100%);
  overflow: hidden;
}

/* Las fotografías proporcionadas se muestran directamente en la tarjeta. */

.equipo-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.equipo-datos {
  min-height: 118px;
  padding: 20px 12px 18px;
  text-align: center;
  background: #ffffff;
}

.equipo-datos h3 {
  margin: 0;
  color: #111111;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.equipo-datos p {
  margin: 12px 0 0;
  color: #333333;
  font-size: 15px;
  line-height: 1.4;
}

/* ---------- FLECHAS ---------- */

.equipo-flecha {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #004c86;
  color: #ffffff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.equipo-flecha:hover:not(:disabled) {
  background: #009fe3;
  transform: scale(1.08);
}

.equipo-flecha:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---------- PUNTOS ---------- */

.equipo-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
}

.equipo-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9c9c9;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.equipo-dot.activo {
  background: #009fe3;
  transform: scale(1.25);
}

/* ---------- TABLET ---------- */

@media (max-width: 980px) {
  .seccion-6 {
    padding: 60px 18px 70px;
  }

  .equipo-card {
    flex-basis: 50%;
    width: 50%;
    padding-right: 24px;
  }

  .equipo-foto {
    height: 310px;
  }
}

/* ---------- MÓVIL ---------- */

@media (max-width: 640px) {
  .seccion-6 {
    padding: 50px 12px 60px;
  }

  .titulo-centro {
    font-size: 1.9rem;
    margin-bottom: 20px;
  }

  .descripcion-centro {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 32px;
    text-align: center;
  }

  .equipo-carousel {
    gap: 8px;
  }

  .equipo-card {
    flex-basis: 100%;
    width: 100%;
    padding-right: 0;
  }

  .equipo-foto {
    height: 300px;
  }

  .equipo-avatar {
    width: 125px;
    height: 125px;
    font-size: 34px;
  }

  .equipo-datos {
    min-height: 105px;
    padding: 17px 10px;
  }

  .equipo-datos h3 {
    font-size: 18px;
  }

  .equipo-datos p {
    font-size: 14px;
    margin-top: 9px;
  }

  .equipo-flecha {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 21px;
  }
}











/* ========================== SECCIÓN FINAL: CONTACTO ========================== */



/* ========================== SECCIÓN FINAL: CONTACTO ========================== */
/* Fondo general con degradado sutil */
/* ===== SECCIÓN FINAL CONTACTO FULL WIDTH ===== */
/* ===== FOOTER FULL WIDTH ===== */
/* ================= FOOTER UNIVERSIDAD ================= */

/* ================= FOOTER CONTACTO ================= */

/* separa contadores del contenido del footer */

*{
  box-sizing:border-box;
}

.counters-container{
  margin-bottom: 60px; /* espacio real entre bloques */
}

.footer-contenedor{
  margin-top: 0; /* evita conflictos */
}


.footer-umariana{
  width:100%;
  background:#061633;
  color:#fff;
  padding-top:100px;
  margin-top:150px; 
}

/* ===== CONTENEDOR PRINCIPAL ===== */

.footer-contenedor{
  max-width:1400px;
  margin:auto;
  display:grid;
  grid-template-columns:0.9fr 1fr 1.2fr; /* imagen | info | mapa */
  gap:80px;
  padding:0 50px 60px 40px;
  align-items:center;
}

/* ================= IMAGEN IZQUIERDA ================= */

.footer-imagen{
  display:flex;
  justify-content:center;
}

.footer-imagen img{
  width:50%;
  max-width:380px;
  height:100%;
  max-height:420px;
  object-fit:cover;
  border-radius:0px;
  box-shadow: #061633;
}

/* ================= INFO ================= */

.footer-logo{
  height:70px;
  margin-bottom:15px;
}

.footer-info h2{
  font-size:34px;
  margin-bottom:20px;
  font-weight:700;
}

.footer-info ul{
  list-style:none;
  margin-bottom:25px;
  padding:0;
}

.footer-info li{
  margin:10px 0;
  font-size:17px;
  color:#e4ecff;
}

.footer-info a{
  color:#fff;
  font-weight:600;
  text-decoration:none;
}

.footer-info a:hover{
  text-decoration:underline;
}

/* ================= REDES ================= */

.footer-social{
  list-style:none;
  margin-bottom:25px;
  padding:0;
}

.footer-social img{
  width:36px;
  margin-right:15px;
  transition:.3s;
  margin-top:10px;
}

.footer-social img:hover{
  transform:scale(1.15);
}

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

.footer-btn{
  display:inline-block;
  margin-top:25px;
  background:#184599;
  color:#ffffff;
  padding:14px 26px;
  border-radius:10px;
  font-size:17px;
  font-weight:600;
  text-decoration:none;
  transition:.3s;
}

.footer-btn:hover{
  background:#1b4fb3;
}

/* ================= MAPA ================= */

.footer-mapa iframe{
  width:100%;
  height:100%;
  min-height:380px;
  border:none;
  border-radius:0px;
  box-shadow:0 0px 30px rgba(0,0,0,0.25);
}

/* ================= BARRA INFERIOR ================= */

.footer-copy{
  text-align:center;
  padding:18px;
  background:#04142b;
  font-size:14px;
  letter-spacing:.5px;
}

/* ================= RESPONSIVE ================= */

/* ================= RESPONSIVE ================= */

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

  .footer-contenedor{
    grid-template-columns:1fr 1fr; /* 2 columnas */
    gap:50px;
    padding:0 30px 60px 30px;
    text-align:left;
  }

  .footer-imagen{
    grid-column:1 / -1; /* imagen arriba centrada */
    justify-content:center;
  }

  .footer-imagen img{
    width:60%;
    max-width:360px;
  }

  .footer-mapa iframe{
    min-height:300px;
  }
}

/* ===== MÓVIL ===== */
@media (max-width:640px){

  .footer-umariana{
    padding-top:70px;
  }

  .footer-contenedor{
    grid-template-columns:1fr;
    gap:40px;
    padding:0 20px 50px 20px;
    text-align:center;
  }

  .footer-imagen img{
    width:75%;
    max-width:280px;
  }

  .footer-info h2{
    font-size:24px;
  }

  .footer-info li{
    font-size:15px;
  }

  .footer-social{
    display:flex;
    justify-content:center;
  }

  .footer-mapa iframe{
    min-height:260px;
  }

  .footer-btn{
    width:100%;
    max-width:260px;
  }
}

/* =========================================================
   CORRECCIONES RESPONSIVAS
   Evitan desbordamientos y posiciones absolutas en pantallas
   de tablet, móvil y en el modo Responsive de DevTools.
========================================================= */

/* ---------- BASE SEGURA ---------- */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- ENCABEZADO ---------- */
@media (max-width: 1100px) {
  .menu-header {
    padding: 12px 20px;
  }

  .nav-wrapper {
    position: static;
    transform: none;
  }

  .main-nav {
    gap: 8px;
  }
}

/* ---------- SECCIÓN 2 ---------- */
@media (max-width: 1100px) {
  .seccion-secundaria {
    padding: 120px 20px 50px;
    gap: 35px;
  }

  .texto-acordeon,
  .imagen-ilustrativa {
    width: min(100%, 700px);
    max-width: 700px;
  }

  .imagen-ilustrativa img {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .titulo-sobre-imagen {
    position: static;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .seccion-secundaria {
    padding: 80px 15px 40px;
  }

  .texto-acordeon {
    max-width: 100%;
    margin-top: 0;
  }

  .acordeon {
    margin-top: 25px;
    padding: 15px;
  }
}

/* ---------- SECCIÓN 3: INFRAESTRUCTURA ---------- */
/* Se elimina la dependencia de left/right/top absolutos.
   Es la corrección principal para el problema visible a 1100px. */
.texto-posicionado {
  width: min(1200px, 100%);
  height: auto;
  margin: 0 auto 35px;
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.7fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}

.titulo-infra,
.descripcion-infra {
  position: static;
  inset: auto;
  margin: 0;
  width: auto;
}

.titulo-infra {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.descripcion-infra {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

/* El carrusel usa el ancho disponible, sin provocar scroll lateral. */
.carousel {
  width: min(1200px, 100%);
  max-width: 100%;
}

.card {
  margin-left: 20px;
  margin-right: 20px;
}

@media (max-width: 1100px) {
  .texto-posicionado {
    grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
    gap: 35px;
    padding: 0 10px;
  }

  .titulo-infra {
    font-size: 2.2rem;
  }

  .descripcion-infra {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .texto-posicionado {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 0 20px;
  }

  .titulo-infra {
    width: 100%;
    font-size: 2rem;
    order: 1;
  }

  .descripcion-infra {
    width: 100%;
    order: 2;
    text-align: left;
    margin: 0;
  }

  .carousel {
    margin-top: 30px;
  }

  .card {
    width: 280px;
    min-width: 280px;
    flex: 0 0 280px;
    margin-left: 10px;
    margin-right: 10px;
  }

  .card img {
    height: 220px;
  }
}

/* Una sola tarjeta queda centrada visualmente en móvil. */
@media (max-width: 600px) {
  .seccion-tres {
    padding: 45px 10px;
  }

  .texto-posicionado {
    padding: 0 10px;
  }

  .titulo-infra {
    font-size: 1.8rem;
  }

  .descripcion-infra {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .card {
    width: min(82vw, 300px);
    min-width: min(82vw, 300px);
    flex-basis: min(82vw, 300px);
  }

  .card img {
    height: 210px;
  }
}

/* ---------- PLATAFORMAS ---------- */
@media (max-width: 1100px) {
  .galeria-aliados {
    max-width: 100%;
  }
}

/* ---------- ECOSISTEMA ---------- */
@media (max-width: 768px) {
  .ecosistema-section {
    overflow: hidden;
  }

  .seccion-ecosistemas img {
    max-width: 100%;
  }
}

/* ---------- TUTORES ---------- */
@media (max-width: 768px) {
  .ranking {
    padding-left: 15px;
    padding-right: 15px;
  }

  .segundo-tercero {
    width: 100%;
  }

  .persona {
    max-width: 100%;
  }

  .persona p,
  .persona h3 {
    overflow-wrap: anywhere;
  }
}

/* ---------- FOOTER ---------- */
@media (max-width: 1100px) {
  .footer-contenedor {
    max-width: 100%;
    padding-left: 25px;
    padding-right: 25px;
    gap: 35px;
  }
}


/* ---------- PROTECCIÓN FINAL DE IMÁGENES ---------- */
img {
  max-width: 100%;
}

/* =========================================================
   ÚLTIMO AJUSTE - MADRE1.PNG
   La imagen del footer no debe recortarse ni estirarse.
========================================================= */

.footer-imagen {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  overflow: visible;
}

.footer-imagen img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

/* Tablet */
@media (max-width: 1024px) {
  .footer-imagen img {
    width: auto;
    max-width: 75%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
  }
}

/* Móvil */
@media (max-width: 640px) {
  .footer-imagen img {
    width: auto;
    max-width: 85%;
    height: auto;
    max-height: 330px;
    object-fit: contain;
  }
}





/* =========================================================
   AJUSTE FINAL — CONTADORES Y CONTACTO
   - Cada contador mantiene icono + número + texto en vertical.
   - En escritorio los 5 contadores se distribuyen en una fila.
   - En tablet/móvil se apilan en una sola columna.
   - Los iconos nunca ocupan toda la pantalla.
========================================================= */

.footer-umariana {
  width: 100%;
  background: #061633;
  color: #ffffff;
  margin-top: 0;
  padding-top: 55px;
  overflow: hidden;
}

.counters-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 65px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
  justify-items: center;
}

.counter-box {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.counter-box .icon-counter {
  display: block;
  width: 58px;
  height: 58px;
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.counter-box h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
  color: #ffffff;
  font-weight: 700;
}

.counter-box p {
  margin: 9px 0 0;
  font-size: 15px;
  line-height: 1.35;
  color: #dbe6f7;
}

/* Contacto: imagen | información | mapa */
.footer-contenedor {
  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.2fr;
  gap: 60px;
  padding: 0 0 55px;
  align-items: center;
}

.footer-imagen img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

/* Tablet */
@media (max-width: 900px) {
  .counters-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 25px;
  }

  .footer-contenedor {
    width: min(100% - 40px, 700px);
    grid-template-columns: 1fr 1fr;
    gap: 45px;
  }

  .footer-imagen {
    grid-column: 1 / -1;
  }
}

/* Móvil: todo vertical y ordenado */
@media (max-width: 600px) {
  .footer-umariana {
    padding-top: 40px;
  }

  .counters-container {
    width: min(100% - 30px, 360px);
    grid-template-columns: 1fr;
    gap: 38px;
    margin-bottom: 55px;
  }

  .counter-box .icon-counter {
    width: 62px;
    height: 62px;
    max-width: 62px;
    max-height: 62px;
    margin-bottom: 12px;
  }

  .counter-box h3 {
    font-size: 25px;
  }

  .counter-box p {
    font-size: 14px;
  }

  .footer-contenedor {
    width: calc(100% - 30px);
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .footer-imagen {
    grid-column: auto;
  }

  .footer-imagen img {
    max-width: 280px;
    max-height: 330px;
  }

  .footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .footer-mapa iframe {
    min-height: 260px;
  }

  .footer-btn {
    width: min(100%, 280px);
  }
}

/* =========================================================
   CORRECCIÓN DEFINITIVA — CARRUSEL INFRAESTRUCTURA
   No se utilizan tarjetas clonadas. Cada tarjeta existe una
   sola vez y el desplazamiento se calcula con su ancho real.
========================================================= */

.seccion-tres .carousel {
  width: min(1200px, 100%);
  max-width: 1200px;
  margin: 40px auto 0;
  overflow: hidden;
  position: relative;
}

.seccion-tres .carousel-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  transition: transform 0.45s ease;
  will-change: transform;
}

.seccion-tres .card {
  box-sizing: border-box;
  width: 360px;
  min-width: 360px;
  flex: 0 0 360px;
  margin: 0 20px;
  transform: none;
  opacity: 1;
}

.seccion-tres .card.active {
  transform: none;
  opacity: 1;
}

.seccion-tres .card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.seccion-tres .carousel-dots {
  position: relative;
  z-index: 3;
}

/* Tablet */
@media (max-width: 900px) {
  .seccion-tres .carousel-track {
    width: max-content;
  }

  .seccion-tres .card {
    width: 280px;
    min-width: 280px;
    flex-basis: 280px;
    margin: 0 10px;
  }

  .seccion-tres .card img {
    height: 220px;
  }
}

/* Móvil */
@media (max-width: 600px) {
  .seccion-tres .carousel {
    width: 100%;
  }

  .seccion-tres .card {
    width: min(82vw, 300px);
    min-width: min(82vw, 300px);
    flex-basis: min(82vw, 300px);
    margin: 0 10px;
  }

  .seccion-tres .card img {
    height: 210px;
  }
}

/* =========================================================
   AJUSTE — TEXTO DE INFRAESTRUCTURA
   El párrafo debe quedar completo dentro del bloque derecho,
   alineado con el título a la izquierda.
========================================================= */

.seccion-tres .texto-posicionado {
  width: min(1310px, calc(100% - 60px));
  margin: 0 auto 35px;
  height: 220px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.seccion-tres .titulo-infra {
  flex: 0 0 500px;
  width: 500px;
  margin-top: 35px;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.seccion-tres .descripcion-infra {
  flex: 0 0 580px;
  width: 580px;
  margin-top: -20px;
  margin-right: 15px;
  font-size: 1.05rem;
  line-height: 1.4;
  text-align: justify;
}

/* En pantallas medianas, el texto vuelve a ocupar el ancho
   disponible sin desbordarse. */
@media (max-width: 1100px) {
  .seccion-tres .texto-posicionado {
    width: calc(100% - 40px);
    height: auto;
    display: grid;
    grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
    gap: 35px;
    align-items: center;
  }

  .seccion-tres .titulo-infra,
  .seccion-tres .descripcion-infra {
    width: auto;
    flex: none;
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .seccion-tres .texto-posicionado {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 15px;
  }

  .seccion-tres .titulo-infra,
  .seccion-tres .descripcion-infra {
    width: 100%;
    flex: none;
  }
}



/* =========================================================
   AJUSTE FINAL — TEXTO DE INFRAESTRUCTURA
   El párrafo queda completo dentro del bloque derecho.
========================================================= */

.seccion-tres .texto-posicionado {
  width: min(1310px, calc(100% - 60px));
  margin: 0 auto 35px;
  height: 220px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.seccion-tres .titulo-infra {
  flex: 0 0 500px;
  width: 500px;
  margin-top: 35px;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.seccion-tres .descripcion-infra {
  flex: 0 0 580px;
  width: 580px;
  margin-top: 0;
  font-size: 1.05rem;
  line-height: 1.4;
  text-align: justify;
}

@media (max-width: 1100px) {
  .seccion-tres .texto-posicionado {
    width: calc(100% - 40px);
    height: auto;
    display: grid;
    grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
    gap: 35px;
    align-items: center;
  }

  .seccion-tres .titulo-infra,
  .seccion-tres .descripcion-infra {
    width: auto;
    flex: none;
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .seccion-tres .texto-posicionado {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 15px;
  }

  .seccion-tres .titulo-infra,
  .seccion-tres .descripcion-infra {
    width: 100%;
    flex: none;
  }
}



/* =========================================================
   AJUSTE DEFINITIVO — INFRAESTRUCTURA Y NUESTRO EQUIPO
========================================================= */

/* INFRAESTRUCTURA: título arriba, descripción debajo,
   centrada dentro del bloque y con texto justificado. */
.seccion-tres .texto-posicionado {
  width: min(1100px, calc(100% - 40px));
  height: auto;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  text-align: center;
}

.seccion-tres .titulo-infra {
  position: static;
  width: 100%;
  margin: 0;
  flex: none;
  text-align: center;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.seccion-tres .descripcion-infra {
  position: static;
  width: min(100%, 1000px);
  margin: 0 auto;
  flex: none;
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.6;
  text-align: justify;
  text-align-last: left;
  color: #333;
}

/* NUESTRO EQUIPO: descripción centrada como bloque,
   con el contenido justificado. */
.seccion-6-centro {
  width: min(1100px, 100%);
  margin: 0 auto;
  text-align: center;
}

.seccion-6 .titulo-centro {
  width: 100%;
  margin: 0 0 25px;
  text-align: center;
}

.seccion-6 .descripcion-centro {
  width: min(100%, 1000px);
  max-width: 1000px;
  margin: 0 auto 48px;
  font-size: 17px;
  line-height: 1.65;
  text-align: justify;
  text-align-last: left;
  color: #333333;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .seccion-tres .texto-posicionado {
    width: calc(100% - 30px);
    gap: 18px;
  }

  .seccion-tres .titulo-infra {
    width: 100%;
    text-align: center;
    font-size: 2.2rem;
  }

  .seccion-tres .descripcion-infra {
    width: 100%;
    text-align: justify;
    text-align-last: left;
    font-size: 1rem;
    line-height: 1.55;
  }

  .seccion-6 .descripcion-centro {
    width: 100%;
    text-align: justify;
    text-align-last: left;
    font-size: 15px;
    line-height: 1.55;
  }
}

@media (max-width: 600px) {
  .seccion-tres .texto-posicionado {
    width: calc(100% - 20px);
  }

  .seccion-tres .titulo-infra {
    font-size: 1.9rem;
  }

  .seccion-tres .descripcion-infra {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .seccion-6 .descripcion-centro {
    font-size: 15px;
    line-height: 1.55;
  }
}
