
 /**equipo directivo**/

 .directivo {
    text-align: center;
    margin-top: 30px;
}

.personal {
    background: #0fa759;
    color: white;
    padding: 10px;
}

.equipo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(418px, 1fr));
    justify-items: center;
    padding: 10px;
}

.equipo {
    border-radius: 5px;
    background: #fff;
    text-align: center;
    padding: 30px 20px;
    margin: 30px 0;
    transition: 0.2s;
    box-shadow: -1px 6px 12px 0px rgba(0,0,0,0.75);
}

.equipo:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.03);
}

.equipo h1 {
    font-size: 23px;
    font-weight: 600;
    border-top: 4px solid #e0af60;
    padding-top: 10px;
    margin: 20px 30px;
    color: black;
}

.equipo h2 {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 500;
    color: black;
}

.equipo img {
    height: 460px;
    width: auto;
    max-width: 100%;
}

.jerarquicos {
    margin-top: 30px;
}

.jefes {
    margin-top: 30px;
}

.jefes-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.jefes-uni h1 {
    font-size: 30px;
    color: white;
    padding: 20px;
    border-radius: 15px;
    background: #0fa759;
}

.jefes-uni-contenedor {
    background: white;
    padding: 20px;
    line-height: 40px;
    margin-bottom: 30px;
    box-shadow: -1px 6px 12px 0px rgba(0,0,0,0.75);
    transition: .2s;
    color: black;
    margin-top: 30px;
    text-align: center;
}

.jefes-uni-contenedor:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.03);
}

.jefes-uni-contenedor img {
    width: 250px;
    height: auto;
}

.jefes-uni-contenedor h2 {
    font-size: 23px;
}

.jefes-uni-contenedor h3 {
    border-top: 4px solid #e0af60;
    padding: 10px;
}


/** Media Queries para mejorar la visualización en pantallas pequeñas **/

/* Pantallas medianas (tabletas en orientación vertical) */
@media screen and (max-width: 992px) {
    .equipo-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .equipo h1 {
        font-size: 20px;
        margin: 15px 20px;
    }

    .equipo h2 {
        font-size: 18px;
    }

    .equipo img {
        height: 400px;
    }

    .jefes-flex {
        flex-direction: column;
        align-items: center;
    }

    .jefes-uni-contenedor img {
        width: 200px;
    }

    .jefes-uni-contenedor h2 {
        font-size: 20px;
    }

    .jefes-uni-contenedor h3 {
        font-size: 16px;
    }
}

/* Pantallas pequeñas (móviles en orientación vertical) */
@media screen and (max-width: 768px) {
    .equipo-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .equipo h1 {
        font-size: 18px;
    }

    .equipo h2 {
        font-size: 16px;
    }

    .equipo img {
        height: 300px;
    }

    .jefes-flex {
        flex-direction: column;
        align-items: center;
    }

    .jefes-uni{
        margin: 0 20px;
    }

    .jefes-uni-contenedor img {
        width: 200px;
    }

    .jefes-uni-contenedor h2 {
        font-size: 20px;
    }

    .jefes-uni-contenedor h3 {
        font-size: 16px;
    }
}

/* Pantallas muy pequeñas (móviles en orientación horizontal) */
@media screen and (max-width: 576px) {
    .equipo-container {
        grid-template-columns: 1fr;
    }

    .equipo h1 {
        font-size: 18px;
        margin: 10px 15px;
    }

    .equipo h2 {
        font-size: 16px;
    }

    .equipo img {
        height: 250px;
    }

    .jefes-uni-contenedor img {
        width: 180px;
    }

    .jefes-uni-contenedor h2 {
        font-size: 18px;
    }

    .jefes-uni-contenedor h3 {
        font-size: 16px;
    }
}
