:root{
  --bg-primary: #0f1419;  
  --bg-secondary: #1a1d29;
  --accent-primary: #4a90e2;
  --accent-secondary: #4ecdc4;
  --accent-yellow: #ffb700;
  --text-primary: #ffffff;
}

.header {
  position: relative;
  width: 100%;
  height: 100vh; /* Ocupa toda la pantalla */
  overflow: hidden;
}
.navbar {
  position: absolute;
  height: 80px;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9); /* Transparencia para ver el video */
}
.logo {
  height: 60px; /* Ajusta el tamaño del logo */
  margin-top: -5px; /* Elimina espacio extra */
  padding: 0; /* Asegura que no tenga relleno */
  vertical-align: middle; /* Alinea mejor en la navbar */
}
.text-header h1 {
  font-family: "Georgia", serif;
  font-style: italic;
  font-weight: bold;
  color: white;
  font-size: 30px;
  margin-right: 170px;
  position: absolute;
  top: 25%;
  left: 37%;
}
.vid-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* Ocupa toda la pantalla */
  overflow: hidden;
}
.vid-container video {
  width: 100%;
  height: 100vh; /* Se ajusta a la altura de la pantalla */
  /* object-fit: cover; Cubre sin deformarse */
}
.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 10;
  font-family: Arial, sans-serif;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semi-translúcido */
  border-radius: 15px; /* Bordes redondeados */
  border: 3px solid white; /* Borde blanco */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.7); /* Sombra para darle un efecto de resplandor */
}
.text-overlay h1 {
  font-size: 2.5rem;
  margin: 0;
  color: white;
  font-style: italic;
}
.text-overlay p {
  font-size: 1.5rem;
  margin-top: 10px;
  font-style: italic;
}
/* fin de header y nav  */
.tarjeta_modelo_superior {
  margin-bottom: 100px;
}
.tarjeta_modelo {
  margin-top: 55px;
  position: relative;
  text-align: center;
  font-family: sans-serif;
  text-transform: uppercase;
  font-size: 2em;
  letter-spacing: 4px;
  overflow: hidden;
  background: linear-gradient(90deg, #000, #000);
  background-repeat: no-repeat;
  background-size: 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: rgba(255, 255, 255, 0);
  opacity: 0; /* Oculta el elemento hasta que sea visible */
  transition: opacity 0.5s ease-in;
}
.tarjeta_modelo.visible {
  opacity: 1;
  animation: animate 5s linear forwards;
}

@keyframes animate {
  0% {
    background-position: -900%;
  }
  100% {
    background-position: 0%;
  }
}
/* Contenedor inter medio de animacion++++++++++++++++++++++++++++++++++*/
.loading{
  margin-top: 50px;
  text-align: center;
}
.loading span {
  display: inline-block;
  vertical-align: middle;
  width: .9em;
  height: .9em;
  margin: .0.5em;
  background: #FF9800;
  border-radius: .6em;
  animation: loading 1s infinite alternate;
}
.loading span:nth-of-type(2) {
  background: #4CAF50;
  animation-delay: 0.2s;
}
.loading span:nth-of-type(3) {
  background: #3F51B5;
  animation-delay: 0.4s;
}
  .loading span:nth-of-type(4) {
  background: #8BC34A;
  animation-delay: 0.6s;
}
.loading span:nth-of-type(5) {
  background: #795548; /* Marrón que evoca raíces y tradición */
  animation-delay: 0.8s;
}
.loading span:nth-of-type(6) {
  background: #FFC107; /* Amarillo que representa energía y creatividad */
  animation-delay: 1.0s;
}
.loading span:nth-of-type(7) {
  background: #00BCD4;
  animation-delay: 1.2s;
}
.loading span:nth-of-type(7) {
  background: #9C27B0;
  animation-delay: 1.4s;
}
@keyframes loading {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* Contenedor intermedio ++++++++++++++++++++++++++++*/
.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Contenedor de las miniaturas */
.thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

/* Caja de cada elemento */
.box {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

/* Imágenes */
.box .image {
  display: block;
  overflow: hidden;
}

.box .image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.box:hover .image img {
  transform: scale(1.05);
}

/* Contenido interno */
.box .inner {
  padding: 20px;
  text-align: center;
}

.box h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #333;
}

.box p {
  font-size: 1em;
  color: #666;
  line-height: 1.6;
}

/* Botones */
.button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1em;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Estilos de botones personalizados */
.button.fit {
  width: 100%;
  text-align: center;
}

/* Comercio Exterior y Logística Internacional */
.button.comercio {
  background: #FF9800; /* Naranja vibrante */
  color: #fff;
}

/* Económico Financiero */
.button.economico {
  background: #4CAF50; /* Verde que simboliza crecimiento y dinero */
  color: #fff;
}

/* Jurídico Legal */
.button.juridico {
  background: #3F51B5; /* Azul oscuro que representa confianza y autoridad */
  color: #fff;
}

/* Recursos Naturales, Medio Ambiente y Biodiversidad */
.button.recursos {
  background: #8BC34A; /* Verde claro que simboliza naturaleza */
  color: #fff;
}

/* Saberes Locales y Conocimiento Ancestrales */
.button.saberes {
  background: #795548; /* Marrón que evoca raíces y tradición */
  color: #fff;
}

/* Tecnologías de la Producción */
.button.produccion {
  background: #FFC107; /* Amarillo que representa energía y creatividad */
  color: #fff;
}

/* Tecnología de Información y Comunicación */
.button.tic {
  background: #00BCD4; /* Azul cian que simboliza tecnología y modernidad */
  color: #fff;
}

/* Transformación e Innovación de la Ingeniería */
.button.innovacion {
  background: #9C27B0; /* Púrpura que representa innovación y creatividad */
  color: #fff;
}

.button:hover {
  opacity: 0.8;
  transform: scale(1.05);
}
/* servicios jajaja 00000000000000000000000000000000000000000000 */
.tarjeta_servicio {
  margin-top: 55px;
  position: relative;
  text-align: center;
  font-family: sans-serif;
  text-transform: uppercase;
  font-size: 2em;
  letter-spacing: 4px;
  overflow: hidden;
}
.servicios_loading{
  text-align: center;
  margin-top: 20px;
}
.servicios_loading span {
  display: inline-block;
  vertical-align: middle;
  width: .9em;
  height: .9em;
  margin: .0.9em;
  background: #ffe45e;
  border-radius: .6em;
  animation: loading 1s infinite alternate;
}
/* servicios jajaja 00000000000000000000000000000000000000000000 */
/* Responsive vista para telefonos */
@media (max-width: 500px) {
  .text-header h1 {
    font-size: 17px;
    top: 17%;
    left: 30%;
    padding-left: 45px;
    text-align: center;
  }

  .logo {
    height: 40px; /* Ajusta el tamaño del logo */
    margin-top: -5px; /* Elimina espacio extra */
    padding: 0; /* Asegura que no tenga relleno */
    vertical-align: middle; /* Alinea mejor en la navbar */
  }

  .navbar-nav.ms-auto {
    text-align: right;
    padding-right: 5px;
    padding-top: 0px;
  }

  .navbar-overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* fondo negro semi-transparente */
    margin-top: 18px;
  }
}

@media (max-width: 400px) {
  .text-header h1 {
    font-size: 17px;
    top: 17%;
    left: 30%;
    padding-left: 45px;
    text-align: center;
  }
  .logo {
    height: 40px; /* Ajusta el tamaño del logo */
    margin-top: -5px; /* Elimina espacio extra */
    padding: 0; /* Asegura que no tenga relleno */
    vertical-align: middle; /* Alinea mejor en la navbar */
  }
  .navbar-nav.ms-auto {
    text-align: right;
    padding-right: 5px;
    padding-top: 0px;
  }
  .navbar-overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* fondo negro semi-transparente */
    margin-top: 18px;

  }

}


.nosotros, .servicios{
  margin-top: -39%;
}

/* ============================================================
   SECCIÓN 4: CARRUSEL DE COLABORACIONES
   - Slider infinito de logos de colaboradores
   - Animación de desplazamiento continuo
   - Alineación y posición mejoradas
   ============================================================ */
.colaboraciones-section {
    background: linear-gradient(180deg, 100%);
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.colaboraciones-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.colaboraciones-section .container {
    padding: 0;
    max-width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg);
    border-radius: 2px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 12));
    }
}

.slider {
    background: transparent;
    height: 120px;
    margin: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.slider::before,
.slider::after {
    background: linear-gradient(to right, transparent 100%);
    content: "";
    height: 120px;
    position: absolute;
    width: 150px;
    z-index: 2;
    top: 20px;
}

.slider::after {
    right: 0;
    top: 20px;
    transform: rotateZ(180deg);
}

.slider::before {
    left: 0;
    top: 20px;
}

.slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 24);
    gap: 0;
}

.slide {
    height: 120px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    flex-shrink: 0;
}

.slide img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.slide:hover img {
    filter: grayscale(0%) brightness(1.2);
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .slider::before,
    .slider::after {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .colaboraciones-section {
        padding: 50px 0;
    }
    
    .slider {
        height: 100px;
        padding: 15px 0;
    }
    
    .slide {
        width: 200px;
        height: 100px;
        padding: 0 15px;
    }
    
    .slide img {
        max-height: 60px;
    }
    
    .slider::before,
    .slider::after {
        width: 60px;
        height: 100px;
        top: 15px;
    }
}

@media (max-width: 576px) {
    .colaboraciones-section {
        padding: 40px 0;
    }
    
    .slider {
        height: 80px;
        padding: 10px 0;
    }
    
    .slide {
        width: 150px;
        height: 80px;
        padding: 0 10px;
    }
    
    .slide img {
        max-height: 50px;
    }
    
    .slider::before,
    .slider::after {
        width: 40px;
        height: 80px;
        top: 10px;
    }
    
    .slide-track {
        width: calc(150px * 24);
    }
}


/* ESTILOS DEL VIDEO SOBREPUESTO */
#introOverlay {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#introOverlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ESTILOS PARA EL LOGIN DE ESTUDIANTES */

    .contenedor-principal {
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px;
      background: #fafafa;
    }

    .tarjeta-login {
      background: white;
      border: 1px solid #e0e0e0;
      border-radius: 0;
      box-shadow: none;
      max-width: 380px;
      width: 100%;
      border-top: 4px solid #ffc107;
      padding: 3rem;
    }

    .titulo-formulario {
      color: #333;
      font-weight: 300;
      letter-spacing: 1px;
      text-align: center;
      margin-bottom: 3rem;
    }

    .campo-entrada {
      border: none;
      border-bottom: 2px solid #e0e0e0;
      border-radius: 0;
      padding: 10px 0;
      background: transparent;
      transition: border-color 0.3s;
      margin-bottom: 2rem;
    }

    .campo-entrada:focus {
      border-bottom-color: #ffc107;
      box-shadow: none;
      outline: none;
      background: transparent;
    }

    .boton-ingresar {
      background: #ffc107;
      border: none;
      border-radius: 0;
      padding: 12px;
      font-weight: 500;
      color: #333;
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 14px;
      width: 100%;
      transition: background 0.3s;
    }

    .boton-ingresar:hover {
      background: #ffb300;
      color: #333;
    }