body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.9;
}

html, body {
    height: 100vh;
}

header {
    position: relative;
    background-color: #f0f0f0;
    padding: 0;
    width: 100%;
    line-height: .5;
}

.full-width-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 40px 0;
    background-color: #f0f0f0;
}

.full-width-nav li {
    margin: 0 25px;
}

.full-width-nav li:hover {
    background-color: #050505;
    transition: background-color 0.6s ease-in-out;
}

.full-width-nav a {
    text-decoration: none;
    color: #070707;
    font-weight: bold;
    font-size: 1.2em;
}

.full-width-nav a:hover {
    color: #e2e1e1;
    background-color: #050505;
    transition: background-color 0.4s ease-in-out;
}

/* ----------------- ESTILOS PARA LA SECCIÓN DE LA COMISIÓN ----------------- */

.comision {
    text-align: center;
    padding: 50px 20px;
}

.comision-titulo {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
}

.comision-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.fila-puestos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px; /* Reducido el espacio entre los elementos */
}

.diputado {
    text-decoration: none;
    color: inherit;
    width: 200px; /* Reducido el ancho de cada tarjeta */
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease-in-out;
}

.diputado:hover {
    transform: translateY(-10px);
}

.diputado img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.diputado h3 {
    font-size: 1.2em;
    margin: 15px 0 5px;
    color: #000;
    font-weight: bold;
}

.diputado p {
    font-size: 1em;
    color: #666;
    margin: 0;
}

/* ----------------- ESTILOS PARA FOOTER Y RESPONSIVE ----------------- */

footer {
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 20px;
}

@media (max-width: 600px) {
    .full-width-nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: #f0f0f0;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 100;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        padding: 0 0;
    }

    .full-width-nav ul.show {
        max-height: 500px;
    }
    
    .full-width-nav ul.initial-hide {
        max-height: 0;
    }  

    .full-width-nav li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .full-width-nav ul.show {
        display: flex;
    }
    
    .comision-container {
        gap: 20px;
    }

    .fila-puestos {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}