/*SEGUNDO ARCHIVO CSS*/

/* Estilos para los nuevos botones de tipo de documento */
/* Estilos para los nuevos botones de tipo de documento */
.botones-tipo-documento {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espacio entre botones */
    margin-top: 20px;
    margin-bottom: 20px;
}

.boton-tipo-doc {
    background-color: #04045b; /* Fondo azul oscuro */
    color: #fff; /* Texto blanco */
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.boton-tipo-doc:hover {
    background-color: #05057a; /* Azul ligeramente más claro al pasar el ratón */
}

/* Estado activo para los botones de tipo de documento */
.boton-tipo-doc.active {
    background-color: #efb810; /* Color de acento para el estado activo */
    color: #04045b; /* Texto oscuro para el estado activo */
    font-weight: bold;
    border: 2px solid #04045b;
}


/* Estilos generales para los botones de carrera */
.botones, .botones2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.botonesteg {
    background-color: #f0f0f0; /* Fondo gris claro */
    color: #04045b; /* Texto azul oscuro */
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    margin: 5px;
    transition: all 0.3s ease;
}

.botonesteg:hover {
    background-color: #e0e0e0;
    border-color: #999;
}

/* Estado activo para los botones de carrera */
.botonesteg.active {
    background-color: #04045b; /* Fondo azul oscuro para activo */
    color: #fff; /* Texto blanco para activo */
    border-color: #efb810; /* Borde color de acento */
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Asegura que el contenedor principal de contenido sea flexible para los elementos */
.contenedor-flex-index,
.contenedor-flex,
#document-display { /* Este es el div que contendrá el contenido dinámico */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Espacio entre los elementos del documento */
    padding: 20px;
}

.item2-flex {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    /* ******* CAMBIO CLAVE AQUÍ ******* */
    /* Calculamos el ancho para 3 columnas, restando los gaps. */
    /* 100% / 3 = 33.33% */
    /* Luego restamos un porcentaje para los gaps, para que no desborde. */
    width: calc(33.33% - 20px); /* 20px es para compensar los 2 gaps (10px a cada lado si el gap es 20px) */
    min-width: 280px; /* Ancho mínimo para evitar que se vea demasiado pequeño en pantallas más estrechas antes de volverse 2 columnas */
    max-width: 350px; /* Para controlar el ancho máximo en pantallas muy grandes */

    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

/* ******* Media query para pantallas más pequeñas (como tabletas o móviles) ******* */
/* Si la pantalla es menor a 900px, se ajusta a 2 columnas */
@media (max-width: 900px) {
    .item2-flex {
        width: calc(50% - 20px); /* Para 2 columnas */
        min-width: 250px;
    }
}

/* ******* Media query para pantallas muy pequeñas (como móviles) ******* */
/* Si la pantalla es menor a 600px, se ajusta a 1 columna */
@media (max-width: 600px) {
    .item2-flex {
        width: calc(100% - 20px); /* Para 1 columna */
        min-width: unset; /* Quitar min-width en móviles para que ocupe todo el ancho disponible */
    }
}


.item2-flex:hover {
    transform: translateY(-5px);
}

.item2-flex h2 {
    color: #04045b;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.item2-flex p {
    color: #555;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.item2-flex img {
    width: 60px; /* Tamaño de tu icono PDF */
    height: auto;
    margin-top: 10px;
}

#search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
}

#search-form input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    width: 200px;
}

#search-form button {
    background-color: #efb810;
    color: #04045b;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#search-form button:hover {
    background-color: #e0ac0e;
}

.lista-libros {
  background-color: white;
}

#tabla-libros {
     background-color: white;
}

@media (max-width: 768px) {
  #search-form {
    flex-basis: 100%;
    max-width: 100%;
  }
  #search-form input{
    margin-bottom: 20px;
  }

  .botonesteg {
    display: none;
  }
}

@media (max-width: 560px){
#search-form{
  margin-left: -10px;
}
}

#search-form {
  display: flex;
  justify-content: center;
  padding-bottom: 20px;
  padding-top: 20px;
  flex-wrap: wrap;
}
#search-form input {
  margin-left: 30px;
  border-radius: 10px;
  width: 500px;
  color: rgb( 21, 21, 100);
  background-color: #ffffff;
  padding: 4px;
  border-color: rgb( 21, 21, 100);
}

#search-form button{
  margin-left: 5px;
}


.buscador{
  margin-left: 30px;
  border-radius: 10px;
  width: 500px;
  color: #cccccc;
}

.contenedor-flex-index{
  margin: 2em;
  display: flex;
  flex-wrap: wrap;
}

#search-results{
  margin: 2em;
  display: flex;
  flex-wrap: wrap;
}

.contenedor-flex{
  margin: 2em;
}

.item2-flex img {
  width: 60%;
  height: 120px;
}

.item2-flex {
  flex: 1 0 33.33%;
  max-width: 33.33%;
  padding: 10px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .item2-flex {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* Estilos para los botones */

.botones{
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.botones2{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.botonesteg {
  border:2px solid rgb( 21, 21, 100);
  margin: 10px auto;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: rgb( 21, 21, 100);
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.botonesteg:hover {
  background-color: rgb( 21, 21, 100);
  color: #ffc107;
}

/* Estilos para dispositivos m��viles */
@media (max-width: 600px) {
  .botonesteg {
    width: 100%;
  }
}
.contenedor-flex {
  display: none;
  flex-wrap: wrap;
}

.item-flex {
  flex: 1 0 33.33%;
  max-width: 33.33%;
  padding: 10px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .item-flex {
    flex-basis: 100%;
    max-width: 100%;
  }
}

.item-flex img {
  width: 100%;
  height: 150px;
}

.item-flex h2 {
  color: rgb(21, 21, 100);
}

.dividirsection{
  width: 100%;
  height: 8px;
  color:  #fcc332;
}

.cuerpo_diplomados {
  justify-content: center;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	background: linear-gradient(to right, gray,#fff,gray);
	width: 100%;
	height: auto;
}

.diplomados{
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  grid-gap: 10px;
  margin-bottom: 20px;
}

.diplomados img{
  border-radius: 15px;
  width: 430px;
  height: 300px;
  margin-top: 20px;
}

.diplomados img:hover{
  box-shadow: 3px 3px 4px rgb(21,21,100), -3px -3px 4px rgb(21,21,100);
  transition: 0.3s;
}

.title2 {
	text-align: center;
	color: rgb( 21, 21, 100);
	font-family: cursive;
	text-shadow: 2px 2px 2px gray;
}

.perfilimg{
  display: flex;
}

.perfilimg img{
  max-width: 300px;
  max-height: 500px;
  justify-content: center;
  align-items: center;
}


/*perfil egresado*/

.about{
  box-shadow: 0px -2px 5px #fff;
  height: auto;
  background-color: #fff;

}

.contenedorperfil{
  margin:auto;
  padding: var(--margenes) 0;
  width: 90%;
  max-width: 1000px;
  text-align: center;
  overflow: hidden;
}

.after::after{
  content:'';
  display: block;
  margin: auto;
  margin-top: var(--espacios);
  width: 100px;
  height: 2px;
  background: var(--color1);
  margin-bottom: var(--espacios-contenido);
}

.contenedorperfil img{
  width: 140px;
  height: 100px;
}
.contenedorperfil h3{
  font-size: var(--titulos);
  color: var(--color1);
  margin-bottom: var(--espacios);
}

.contenedorperfil p{
  font-size: var(--subtitulos);
  font-weight: 300;
  color: var(--color1);
}

.servicios{
  display: flex;
  color:#000;
  justify-content: space-between;
  margin: auto;
  flex-wrap: wrap;
}

.caja-servicios p{
  font-weight: bold;
}

.caja-servicios{
  color: #000;
  width: 30%;
  margin: auto;
  text-align: center;
}
.caja-servicios>h4{
  margin-bottom: var(--espacios);
}

.caja-servicios>p{
  text-align: center;
}

/*.caja-servicios img{
  
  border-radius: 15px;
  border-width: 6px;
  border-color: #ffd200;
  border-style: solid;
}*/

.perfil_inf{
  display: flex;
  font-size: 30px;
  text-align: justify;
  margin-left: 30px;
  margin-right: 50px;
  margin-top: 20px;
  width: 97%;
  line-height: 60px;
  text-indent: 30px;
  border-radius: 15px;
}

.perfil_inf img{
  width: auto;
}

.perfil_inf p{
  margin-left: 20px;
  margin-top: 30px;
  margin-right: 20px;
  font-size: 25px;
}


@media (max-width:1025px){
  .perfil_inf img{
    width: 450px;

  }
}

@media (max-width:800px){

  .diplomados img{
    width: 300px;
    height: 180px;
  }

  .caja-servicios{
    width: 50%;
  }

  .perfil_inf p{
    font-size: 20px;
    line-height: 40px;
  }

  .caja-servicios h4 {
    font-size: 15px;

  }

  .caja-servicios p{
    font-size: 15px;
  }

  .perfilimg{
    margin-left: 5px;
  }

  .perfil_inf{
    margin-left: 5px;
  }
  .perfil_inf{
    flex-wrap: wrap;
  }

  .contenedorperfil img {
    width: 100px;
    height: 75px;
  }
}

.descargapdf{
  font-family: helvetica;
  left: 30px;
  border-radius: 10px;
  display: inline-block;
  position: relative;
  padding: 15px 30px;
  color: #04045b;
  background: #cccccc;
  letter-spacing: 2px;
  font-size: 15px;
  text-decoration: none;
  overflow: hidden;
  transition: 0.2s;
}

.descargapdf:hover{
  background: rgb(21,21,100);
  color: #fff;
  box-shadow: 0 0 10px rgb(21,21,100), 0 0 40px rgb(21,21,100), 0 0 80px rgb(21,21,100);
  transition-delay: 1s;
}

.descargapdf span{
  position: absolute;
  display: block;
}

#span1{
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,transparent,#ffc107);
}

.descargapdf:hover #span1{
  left: 100%;
  transition: 1s;

}

#span3{
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(270deg,transparent,#ffc107);
}

.descargapdf:hover #span3{
  right: 100%;
  transition: 1s;
  transition-delay: 0.5s;
}

#span2{
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg,transparent,#ffc107);
}

.descargapdf:hover #span2{
  top: 100%;
  transition: 1s;
  transition-delay: 0.25s;

}

#span4{
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(360deg,transparent,#ffc107);
}

.descargapdf:hover #span4{
  bottom: 100%;
  transition: 1s;
  transition-delay: 0.75s;

}


/*SLIDER IMAGENES ESTUDIANTES CARRERAS*/
