/* Estilos generales */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.container {
    padding: 2rem;
    box-sizing: border-box;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Contenedor 1: Video full height */
.video-intro {
    padding: 0;
    margin: 0;
}

.video-intro video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

/* Responsive containers */
.contenido {
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 1rem;
    }
}


 .text-overlay {
    position: absolute;
    top: 60%;
    left: 0%;
    background-color: rgba(0, 0, 50, 0.25); /* Azul oscuro muy transparente */
    color: white;
    padding: 20px 50px 20px 30px;
    z-index: 2;
    animation: fadeIn 2s ease-in-out forwards;
    min-width: 500px;
    max-width: 80%;
  
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
  
    /* 🎯 Bordes personalizados */
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 60px;
    border-bottom-right-radius: 60px;
  }
  
  
  
  .text-overlay h1 {
    font-size: 4.5em;
    margin-bottom: 10px;
  }
  
  .text-overlay p {
    font-size: 1.3em;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Ocultar en móviles */
  @media (max-width: 767px) {
    .text-overlay {
      display: none;
    }
  }
  
  /* Ajustar tamaño en tablets */
  @media (min-width: 768px) and (max-width: 1023px) {
    .text-overlay h1 {
      font-size: 2em;
    }
    .text-overlay p {
      font-size: 1.1em;
    }
  }
  
  
  /* carreras */
  .career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
  justify-items: center;
}

.career-card {
    width: 100%;
  max-width: 235px;
  text-align: center;
}

.flip-box {
  background-color: transparent;
  perspective: 1000px;
}

.flip-box-inner {
  position: relative;
  width: 100%;
  height: 300px;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-box:hover .flip-box-inner {
  transform: rotateY(180deg);
}

.flip-box-front,
.flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  /*box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2); */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.containeroferta{
  
  background-color: white;
}

.flip-box-front {
  background: #fff;
}

.flip-box-front img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.flip-box-back {
  background-color: #0f3057;
  color: white;
  transform: rotateY(180deg);
  padding: 1rem;
}

.flip-box-back a {
  color: #ffd700;
  margin-top: 0.5rem;
  text-decoration: underline;
}

.materias-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.profesional-text {
  margin-top: 0.8rem;
  font-style: italic;
  color: #333;
}

@media screen and (max-width: 768px) {
  .flip-box-inner {
    height: 250px;
  }
}

.materias-title {
  background-color: #0f3057; /* Azul oscuro */
  color: #ffd700;            /* Mostaza */
  padding: 1rem;
  margin: 2rem 30px 1rem 30px; /* 30px a izquierda y derecha */
  text-align: center;
  font-size: 2rem;
  border-radius: 0px;
  font-weight: bold;
}



/* videos institucionales */
/* videos institucionales */


.titulo {
  background-color: #0f3057; /* Azul oscuro */
  color: #ffd700;            /* Mostaza */
  padding: 1rem;
  margin: 2rem 30px 1rem 30px; /* 30px a izquierda y derecha */
  text-align: center;
  font-size: 2rem;
  border-radius: 0px;
  font-weight: bold;
}

/* Estilo responsivo para pantallas pequeñas */
@media (max-width: 768px) {
  .titulo {
    font-size: 1.5em;
    padding: 8px;
    text-align: center; /* Mejor alineación en móviles */
  }
}


/* Contenedor general de la sección de videos */
.contenedorvi {
  display: flex;
  gap: 20px;
  height: 85vh;
  margin: 0;
}

/* Lista de videos (columna izquierda) */
.lista-videos {
  width: 40%;
  background-color: white;
  overflow-y: auto;
  border-right: 1px solid #ccc;
}

.lista-videos ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.lista-videos li {
  cursor: pointer;
  padding: 4px;
  transition: background-color 0.3s;
}

.lista-videos li:hover {
  background-color: #f0f0f0;
}

.video-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-item video {
  width: 100px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.video-leyenda {
  font-size: 0.9em;
  color: #003366;
  font-weight: bold;
  white-space: nowrap;
}

/* Reproductor (columna derecha) */
.reproductor {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  padding: 10px;
  box-sizing: border-box;
}

.reproductor video {
  width: 100%;
  height: auto;
  max-height: 80vh;
}

.videos-institucionales {
 
  margin-left: 0px;
    margin-right: 0px;
    padding-left: 0px;
    padding-right: 0px;
}

/* ---------------------- */
/* RESPONSIVE ADAPTATION */
/* ---------------------- */
@media (max-width: 768px) {
  .contenedorvi {
    flex-direction: column;
    height: auto;
  }

  .lista-videos,
  .reproductor {
    width: 100%;
  }

  .video-item video {
    width: 80px;
    height: 50px;
  }

  .video-leyenda {
    font-size: 0.85em;
  }

  .reproductor video {
    max-height: 60vh;
  }
}



/* botones */
.containerbotones {
  position: relative;
  background-image: url('../imagenes/frentecuenca1.webp');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  padding: 60px 20px 110px 20px;
  text-align: center;
  color: white;
  margin: 0;
  z-index: 0;
  overflow: hidden;
}

.containerbotones::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9); /* Azul semitransparente */
  z-index: -1; /* Se coloca entre la imagen de fondo y el contenido */
}


.containerbotones h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.botones-coordinaciones {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas */
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
}

.botones-coordinaciones button {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a); /* De azul claro a azul oscuro */
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.botones-coordinaciones button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* 🔽 MEDIA QUERY para pantallas menores de 768px: 2 columnas */
@media screen and (max-width: 768px) {
    .botones-coordinaciones {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 🔽 MEDIA QUERY para pantallas menores de 500px: 1 columna */
@media screen and (max-width: 500px) {
    .botones-coordinaciones {
        grid-template-columns: 1fr;
    }

    .containerbotones {
        padding: 40px 10px 80px 10px;
    }

    .containerbotones h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .botones-coordinaciones button {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
}
.titulo-coordinaciones {
   background-color: #00264d; /* azul oscuro */
    color: white;
   /* text-transform: uppercase; */
    font-size: 28px;
    padding: 15px 25px;
    margin: 0;
    text-align: left;
    width: fit-content;
    border-radius: 0 ;
    position: relative;
    top: -60px;   /* sube 20px */
    left: -20px;  /* mueve 10px a la izquierda */
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 768px) {
    .titulo-coordinaciones {
        font-size: 1.2rem;
        padding: 10px 20px;
        top: -30px;
        left: 0;
    }
}
.coordinacion-title {  /* va a la pagina index.php*/
    font-size: 28px;
    font-weight: bold;
    text-align: center; /* Mantener el texto centrado */
    color: white; /* Hacer el texto blanco */
    position: relative; /* Permite mover el título dentro del flujo del documento */
    margin: 0 auto; /* Centra el título horizontalmente */
   left: 0px;
    top: -15px; /* Ajusta la posición vertical según sea necesario */
    margin-bottom: 5px;
    padding: 10px 20px; /* Espacio interno alrededor del texto */
    background-color: #00264d; /* azul oscuro */
    border: 2px solid #1E3A8A; /* Borde azul */
    border-radius: 0; /* Asegura que el borde no sea redondeado */
    display: inline-block; /* Hace que el contenedor se ajuste al tamaño del texto */
  }
.career-section-coordinadores {
        
    background-color:   #e5e8e8 ;
    padding: 0px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(850px, 1fr)); 
    gap: 80px; /* Mantén el espacio entre los elementos dentro del grid */
    margin: 0; /* Elimina márgenes por completo */  
    }
    .coordinador-body {
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    font-family: Arial, sans-serif; 
  }

  .content {
    margin: 0;
    padding: 0;
    margin-left: 0px;
    margin-right: 0px;
    padding-left: 0px;
    padding-right: 0px;
    
    background-color: #f4f4f4;
    font-family: Arial, sans-serif; 
  }

   .coordinador-contenedor {
    display: flex; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Espacio entre las cajas */
    padding: 50px;
  }
   .coordinador-carrera {
    width: 320px; 
    height: 420px;
    border: 2px solid #ccc;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .coordinador-carrera:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); 
  }
  /* Colores intercalados */
  .coordinador-carrera:nth-child(1),
  .coordinador-carrera:nth-child(3),
  .coordinador-carrera:nth-child(5) {
    background-color: #ffffff; /* Blanco */ 
    color: black;
  }
  .coordinador-carrera:nth-child(2),
  .coordinador-carrera:nth-child(4),
  .coordinador-carrera:nth-child(6) {
    background-color: #1E3A8A; /* Azul oscuro */
    color: white;
  }
  /* Imagen ocupa el 35% de la altura de la caja */
  .coordinador-imagen { 
    width: 100%;
    height: 35%;
    background-color: #d3d3d3;
    object-fit: cover;
    margin: 0;
  }
  /* Contenido ocupa el resto (ajustado a 60% para que sumen 100%) */
  .coordinador-contenido {
    height: 60%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
  }
  .coordinador-titulo {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  .coordinador-descripcion {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .coordinador-boton {
    background-color: #4A7CD3;
    color: white;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  .coordinador-boton:hover {
    background-color: #6A98E4;
  }


.containereventos {
  background-color:  #0d3ab6; 
}




/* evetos */
.eventos-container {
    padding: 20px 30px;
    background-color:white; /* Fondo blanco */
  }
  .eventos-container1 {
   
  padding: 20px 0px;
  background-color: rgb(22, 6, 109); /* Fondo vino */
  margin-top: -1px;
  margin-left: -20px;
  margin-right: -20px;
   
  }
  .eventos-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center; /* Mantener el texto alineado a la izquierda */
    color: white; /* Hacer el texto blanco */
    position: relative; /* Permite mover el título dentro del flujo del documento */
    left: -450px; /* Mueve el título 150px hacia la izquierda */
    top: -65px; /* Mueve el título 65px hacia arriba */
    margin-bottom: 30px;
    padding: 10px 20px; /* Espacio interno alrededor del texto */
    background-color: #1E3A8A; /* Fondo azul */
    border: 2px solid #1E3A8A; /* Borde azul */
    border-radius: 0; /* Asegura que el borde no sea redondeado */
    display: inline-block; /* Hace que el contenedor se ajuste al tamaño del texto */
  }

   .eventos-carrusel-wrapper {
    position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  }

  .eventos-carrusel {
    display: flex;
  transition: transform 0.5s ease;
  }

  .evento-card {
    flex: 0 0 270px;
  height: 200px;
  margin: 10px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  }

  .evento-overlay {
    background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  position: absolute;
  bottom: 0;
  width: 100%;
  }

  .evento-titulo {
    font-weight: bold;
    font-size: 14px;
    margin: 0;
  }

  .evento-fecha {
    font-size: 12px;
    margin: 5px 0 0 0;
  }

  .flecha {
    position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #003366;
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  }

  .flecha.izquierda {
  left: 0;
}

.flecha.derecha {
  right: 0;
}

/* campus */
/* Contenedor principal */
 .pie-contenedor-principal {
      display: flex;
      height: 100vh;
      position: relative;
      flex-wrap: wrap;
    }

    .pie-izquierda {
      width: 35%;
      background-image: url('../imagenes/inanfront.jpg');
      background-size: cover;
      background-position: center;
      position: relative;
      color: white;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 80px 30px 40px;
      z-index: 1;
    }

    .pie-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 0;
    }

    .pie-izquierda h1 {
      font-size: 1.3rem;
      font-weight: 700;
      z-index: 2;
      position: relative;
      text-align: center;
      padding: 20px;
      border-radius: 12px;
    }

    .pie-derecha {
      width: 65%;
      background-color: white;
      background-image: url('../imagenes/logoinan2025.webp');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 40px;
    }

    .pie-circulos-centrales {
      position: absolute;
      top: 50%;
      left: 35%;
      transform: translate(-50%, -50%);
      z-index: 10;
      display: flex;
      flex-direction: column;
      gap: 40px;
      align-items: center;
    }

    .pie-sede {
      width: 160px;
      height: 160px;
      background: linear-gradient(145deg, #e3f2fd, #bbdefb);
      color: #002b5c;
      border-radius: 50%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 1rem;
      text-align: center;
      cursor: pointer;
      position: relative;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.1),
                  -8px -8px 20px rgba(255, 255, 255, 0.6);
      border: none;
      animation: pie-aparecer 0.6s ease forwards;
      text-decoration: none;
    }

    @keyframes pie-aparecer {
      0% {
        transform: scale(0.5);
        opacity: 0;
      }
      100% {
        transform: scale(1);
        opacity: 1;
      }
    }

    .pie-sede:hover {
      transform: scale(1.1) rotate(1deg);
      box-shadow: 0 10px 25px rgba(0, 80, 157, 0.4);
      background: linear-gradient(135deg, #bbdefb, #e3f2fd);
    }

    .pie-sede i {
      font-size: 2rem;
      margin-bottom: 8px;
      color: #00509d;
    }

    .pie-sede::after {
      content: attr(data-direccion);
      position: absolute;
      top: 50%;
      left: 180px;
      transform: translateY(-50%);
      background-color: rgba(0, 43, 92, 0.95);
      color: #fff;
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 0.8rem;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      z-index: 20;
    }

    .pie-sede::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 170px;
      transform: translateY(-50%);
      border-top: 6px solid transparent;
      border-bottom: 6px solid transparent;
      border-right: 8px solid rgba(0, 43, 92, 0.95);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      z-index: 21;
    }

    .pie-sede:hover::after,
    .pie-sede:hover::before {
      opacity: 1;
      pointer-events: auto;
    }

    .pie-texto-derecha {
      background-color: rgba(255, 255, 255, 0.85);
      padding: 30px 40px;
      border-radius: 16px;
      font-size: 1.5rem;
      line-height: 1.6;
      color: #002b5c;
      font-weight: 700;
      text-align: center;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
      max-width: 600px;
      width: 90%;
      margin: auto;
    }

    @media (max-width: 768px) {
      .pie-contenedor-principal {
        flex-direction: column;
        height: auto;
      }

      .pie-izquierda,
      .pie-derecha {
        width: 100%;
        height: auto;
      }

      .pie-derecha {
        padding: 20px;
      }

      .pie-circulos-centrales {
        position: static;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin: 30px 0;
      }

      .pie-sede {
        width: 120px;
        height: 120px;
        font-size: 0.85rem;
      }

      .pie-sede i {
        font-size: 1.6rem;
      }

      .pie-izquierda h1 {
        font-size: 1.1rem;
      }

      .pie-sede::after,
      .pie-sede::before {
        display: none;
      }

      .pie-texto-derecha {
        padding: 30px 20px;
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
      }
    }