/* General */
.docente {
    margin-top: 30px;
}

.docente-nivel-titulo {
    text-align: center;
    color: white;
    background: #0fa759;
    margin-bottom: 30px;
}

.coordinador {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Permite que los elementos se ajusten en pantallas más pequeñas */
    gap: 20px;
}

.coordinador a{
    color: black;
    text-decoration: none; /* Eliminar subrayado del enlace */
    display: flex;
    justify-content: center;
    transition: .2s;
}

.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: 100%;
    max-width: 450px; /* Maximo ancho */
    padding: 20px;
    background: white;
    margin: 0 auto; /* Centrar los elementos */
    border-radius: 8px;
}

.coordinador-contenedor img {
    width: 100%; /* Hacer que las imágenes sean responsivas */
    max-width: 350px;
    border-radius: 8px;
}

.coordinador-contenedor h3 {
    font-size: 18px;
    margin-top: 10px;
}

.coordinador-contenedor h2 {
    font-size: 21px;
    border-top: 3px solid #efaf60;
    margin-top: 15px;
}

/* Tabla */
.tabla {
    max-width: 100%;
    margin: auto;
    overflow-x: auto;
}

.tabla-titulo {
    text-align: center;
    color: #0fa759;
    margin-top: 30px;
}

.table-container {
    max-width: 100%;
    overflow-x: auto;
    margin-bottom: 30px;
    text-align: center;
}

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;
}

.hidden-row {
    display: none;
}

/* Botón de mostrar más */
.toggle-btn {
    padding: 10px 20px;
    margin: 10px 0;
    background-color: #0fa759;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-btn:hover {
    background-color: #0c6f3c;
}

/* Botón para mostrar la información del docente */
button.show-btn {
    padding: 8px 12px;
    background-color: #0fa759;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: .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-desc {
    color: white;
}

.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;
}

/* Responsividad para dispositivos móviles */
@media (max-width: 768px) {
    .coordinador {
        flex-direction: column; /* Apilar los coordinadores en una columna en pantallas pequeñas */
        align-items: center;
    }

    .coordinador-contenedor {
        width: 90%; /* Hacer los contenedores más pequeños */
        max-width: 350px;
    }

    .table-container {
        width: 100%;
    }

    table {
        font-size: 12px; /* Reducir el tamaño de la fuente para pantallas más pequeñas */
    }

    th, td {
        padding: 8px 10px; /* Reducir el padding */
    }

    .toggle-btn {
        font-size: 14px;
    }
}

/* Responsividad para pantallas muy pequeñas (por ejemplo, teléfonos en modo vertical) */
@media (max-width: 480px) {
    .coordinador-contenedor h3 {
        font-size: 16px;
    }

    .coordinador-contenedor h2 {
        font-size: 18px;
    }

    .tabla-titulo h1 {
        font-size: 30px;
    }
}
