
.docente {
    margin-top: 30px;
}

.docente-nivel-titulo {
    text-align: center;
    color: white;
    background: #0fa759;
    margin-bottom: 30px;
}

.coordinador {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permite que los elementos se ajusten en pantallas pequeñas */
    gap: 20px;
}

.coordinador a {
    color: black;
    transition: 0.2s;
    display: flex;
    justify-content: center;
}

.coordinador a:hover {
    transform: scale(1.03);
}

.coordinador-contenedor {
    text-align: center;
    box-shadow: -1px 6px 12px 0px rgba(0, 0, 0, 0.20);
    width: 350px;
    padding: 20px;
    background: white;
    margin: 10px; /* Añadí espacio entre los contenedores */
}

.coordinador-contenedor img {
    width: 100%;
    max-width: 350px; /* Asegura que las imágenes no se estiren demasiado */
}

.coordinador-contenedor h3 {
    font-size: 18px;
    margin-top: 10px;
}

.coordinador-contenedor h2 {
    font-size: 21px;
    border-top: 3px solid #efaf60;
    margin-top: 15px;
}

.tabla {
    max-width: 1400px;
    margin: auto;
}

.tabla-titulo {
    text-align: center;
    color: #0fa759;
    margin-top: 30px;
}

#lightbox-desc {
    color: white;
}

.table-container {
    max-width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #0fa759;
    color: white;
}

tr:hover {
    background-color: #f1f1f1;
}

button.show-btn {
    padding: 8px 12px;
    background-color: #0fa759;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

button.show-btn:hover {
    background-color: #0c6f3c;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.hidden {
    display: none;
}

.lightbox-content {
    position: relative;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 80%;
    max-width: 600px;
}

.lightbox img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

#lightbox-descriptions p {
    font-size: 16px;
    color: white;
    margin: 10px 0;
    text-align: center;
}

button.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* Media Queries para mejorar la visualización en pantallas pequeñas */

/* Pantallas medianas (tabletas en orientación vertical) */
@media screen and (max-width: 992px) {
    .coordinador-contenedor {
        width: 80%; /* Ajusta el tamaño de los elementos */
    }

    .coordinador {
        justify-content: center;
        gap: 15px; /* Reduce el espacio entre los elementos */
    }

    .tabla {
        width: 100%;
        margin: 3px;
    }

    .table-container {
        overflow-x: scroll; /* Permite desplazar la tabla en pantallas pequeñas */
    }
}

/* Pantallas pequeñas (móviles en orientación vertical) */
@media screen and (max-width: 768px) {
    .coordinador {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .coordinador-contenedor {
        width: 100%; /* Los contenedores se adaptan al tamaño de la pantalla */
    }

    .coordinador-contenedor img {
        max-width: 100%;
    }

    .coordinador-contenedor h3 {
        font-size: 16px; /* Ajusta el tamaño de la fuente */
    }

    .coordinador-contenedor h2 {
        font-size: 18px; /* Ajusta el tamaño de la fuente */
    }

    .table-container {
        overflow-x: scroll;
    }

    table {
        font-size: 14px; /* Ajusta el tamaño de la fuente de la tabla */
    }

    th, td {
        padding: 10px;
    }

    button.show-btn {
        font-size: 14px;
    }
}

/* Pantallas muy pequeñas (móviles en orientación horizontal) */
@media screen and (max-width: 576px) {
    .coordinador-contenedor {
        width: 100%; /* Los contenedores se ajustan al 100% */
        padding: 15px;
    }

    .coordinador-contenedor h3 {
        font-size: 14px;
    }

    .coordinador-contenedor h2 {
        font-size: 16px;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        font-size: 12px; /* Ajusta el tamaño de la fuente de la tabla */
    }

    th, td {
        padding: 8px;
    }

    button.show-btn {
        font-size: 12px;
    }
}
