* {
  font-family: Roboto, sans-serif;
}
.hidden {
    display: none;
}

th{
    text-align: center;
}

.carousel-control{
    margin-top: 45%;
    height: 15%;
}
.graph{
    border: 1px rgb(51, 78, 255) solid;
}
.emerg {
    display: none; /* Oculto por defecto */
    position: fixed; 
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Fondo negro semi-transparente */
    overflow: hidden;
}
.emerg-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%; /* Ajusta el ancho según sea necesario */
    max-width: 600px; /* Establece un ancho máximo */
}

/* Botón de cierre del modal */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Estilo para el video */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.btn1 {
    padding: 0px 1px !important;
    font-size: 10px;
    font-family: 'Roboto';
    border-radius: 2px !important;
    vertical-align: middle;
    border: 1px solid black;
  background-color: #4CAF50; /* Verde neutro */
  color: black; /* Texto blanco */
  cursor: pointer;
  border-radius: 5px;
  height: 14px;
  animation: blink 3s infinite; /* Animación parpadeo */
}

@keyframes blink {
  0%, 100% {
    background-color: #4CAF50; /* Verde neutro */
    color: black; /* Texto blanco */
  }
  50% {
    background-color: white; /* Fondo blanco */
    color: black; /* Texto negro */
  }
}

.btn1:hover {
  background-color: #45a049; /* Verde más oscuro al hacer hover */
}

    /* Estilos base para la ventana modal */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1050;
        overflow: auto;
        transition: opacity 0.3s ease;
    }

    .modal.show {
        display: block;
        opacity: 1;
    }

    .modal-content {
        background-color: white;
        border: 1px solid #ccc;
        width: 90%;
        max-width: 1000px;
        padding: 20px;
        position: relative;
        margin: 20px auto;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        height: auto;
    }
p{
    font-size: 16px;
}
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #ddd;
        padding-bottom: 10px;
    }

    .close {
        font-size: 30px;
        font-weight: bold;
        cursor: pointer;
        color: #000;
    }

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

    .info-grid {
        display: grid;
        grid-template-columns: 2fr 3fr;
        grid-template-rows: auto auto;
        gap: 10px;
        height: 400px;
    }

    .info-grid img {
        width: 100%;
        height: 220px;
        object-fit: contain;
    }

    .info-grid .accreditations{
        height: 15%;
        text-align: center;
    }
    
    .info-grid .accreditations img{
        width: 100px;
        height: 40px;
    }

    .info-grid .universities img {
        width: 10px;
    }

    .info-grid .message-box {
        grid-column: span 2;
    }

    .info-grid .message-box form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .info-grid .message-box input,
    .info-grid .message-box textarea {
        width: 100%;
    }

    .info-grid .footer-info {
        grid-column: span 2;
        text-align: center;
        font-weight: bold;
    }

    /* Estilo base para los botones */
    .btn-section {
        background-color: #f4f4f4;
        border: none;
        padding: 10px 20px;
        margin: 0 5px;
        font-size: 14px;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    /* Efecto hover */
    .btn-section:hover {
        background-color: #FA2521;
        color: #fff;
    }
    .thisbutton{
        background-color: #FA2521;
        color: #fff;
    }

    /* Efecto active */
    .btn-section:active {
        background-color: #F91816;
        color: #fff;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
    }

    .btn-danger {
        background-color: #dc3545;
        color: #fff;
    }
.carousel-container {
    width: 100%;
    /*max-width: 300px;*/ /* Tamaño máximo del carrusel */
    /*height: 100%;*/
    margin: auto;
    overflow: hidden;
    position: relative;
}

/* Pista de diapositivas que se mueve */
.carousel-slides {
    display: flex;
    width: 100px; /* Asume que hay 5 imágenes en el carrusel */
    animation: slide 3s linear infinite; /* 25 segundos por ciclo, puedes ajustar la velocidad */
}

/* Cada diapositiva dentro del carrusel */
.carousel-slide {
    flex: 1 0 1%; /* Cada diapositiva ocupa el 100% del ancho del contenedor */
    width: 100px;
    height: 40px;
}
.carousel-control.right{
    background-image: -webkit-linear-gradient(left,rgba(0,0,0,0) 0,rgba(0,0,0,0) 100%) !important;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 600px) {
    .carousel-container {
        max-width: 100%; /* Ocupa todo el ancho de la pantalla */
    }

    .carousel-slide img {
        width: 80px; /* Ajusta el tamaño de la imagen en pantallas pequeñas */
    }

    .carousel-slides {
        animation: slide 8s linear infinite; /* Cambiar la velocidad de animación si es necesario */
    }
    .video{
        width: 240px; 
        height:500px;
    }
}

/* Animación personalizada para deslizamiento */
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100%));
    }
}

.universidad{
    max-width: 92%;
}
.uni{
    width: 100%;
    animation: slide 10s linear infinite;
}
.fotos{
    width: 100%;
    height: 40%;
}

/* Animación del carrusel */
@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-250%); }
}
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


    /* Ajustes para pantallas pequeñas */
    @media screen and (max-width: 768px) {
        .modal-content {
            width: 95%;
            max-width: 100%;
            padding: 15px;
        }

        .modal-header {
            flex-direction: column;
            align-items: flex-start;
        }

        .btn-section {
            width: 100%;
            margin: 5px 0;
            padding: 10px;
            text-align: center;
        }

        .info-grid {
            grid-template-columns: 1fr;
            grid-template-rows: auto;
            gap: 10px;
        }

        .info-grid img {
            height: auto;
        }
    }
    .highcharts-tooltip{
        font-size:14px!important;
    }
