.page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* menu version pc */

/* Estilos Generales */
.dierza-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #fff;
    height: 450px;
    background-image: url('images/fondo-nosotros.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.content {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    z-index: 2;
}

.image-container {
    width: 50%;
    padding-right: 20px;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.text-container {
    width: 50%;
    padding-left: 20px;
}

.text-container h2 {
    font-size: 2em;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}

.underline_1 {
    width: 100%;
    max-width: 460px;
    height: 6px;
    background-color: red;
    margin: 0 auto 20px;
}

.text-container .highlight {
    color: #e74c3c;
}

.text-container p {
    font-size: 1em;
    color: #000;
    line-height: 1.6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.valores-section {
    background-image: url('images/mision_vision.webp');
    background-size: cover;
    background-position: center;
    padding: 20px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row; /* Mantiene los elementos en una fila en pantallas grandes */
}

.valor {
    text-align: center;
    width: 50%;
}

.valor h2 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.underline {
    width: 100%;
    max-width: 200px;
    height: 3px;
    background-color: red;
    margin: 0 auto 20px;
}

.valor p {
    font-size: 1em;
    line-height: 1.5;
}

/* Media query para dispositivos con pantallas medianas (tabletas) */
@media (max-width: 768px) {
    .valores-section {
        flex-direction: column; /* Coloca los elementos en columna en pantallas medianas */
        padding: 15px;
    }

    .valor {
        width: 80%; /* Ajusta el ancho de los elementos .valor */
    }

    .valor h2 {
        font-size: 1.8em;
    }

    .valor p {
        font-size: 0.95em;
    }
}

/* Media query para dispositivos con pantallas pequeñas (móviles) */
@media (max-width: 480px) {
    .valores-section {
        padding: 10px;
    }

    .valor {
        width: 100%; /* Ancho completo para elementos .valor en móviles */
    }

    .valor h2 {
        font-size: 1.5em;
    }

    .valor p {
        font-size: 0.9em;
    }

    .underline {
        max-width: 150px; /* Ajusta el ancho de la subrayado */
    }
}


.valores-section_2 {
    background-image: url('images/fondo-nosotros.webp');
    background-size: cover;
    background-position: center;
    padding: 50px;
    max-width: 1200px;
    text-align: center;
    color: #333;
}

.valores-title_2 {
    font-size: 24px;
    color: #e33d3b;
    font-weight: bold;
    margin-bottom: 10px;
}

.valores-line {
    width: 100%;
    max-width: 800px;
    height: 6px;
    background-color: #e33d3b;
    margin: 0 auto 30px;
}

.valores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.valor-item img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.valor-title {
    font-size: 18px;
    color: #e33d3b;
    font-weight: bold;
    margin-bottom: 10px;
}

.valor-description {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.seccion-lideres {
    background-image: url('images/fondo_lideres.webp');
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.seccion-lideres h2 {
    font-size: 2em;
    color: #e53a40;
    margin-bottom: 5px;
}

.seccion-lideres .linea-roja {
    width: 100%;
    max-width: 800px;
    height: 6px;
    background-color: #e53a40;
    margin: 0 auto 40px;
}

.contenedor-lideres {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.perfil-lider {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.perfil-lider img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.nombre-lider {
    font-size: 1.1em;
    color: #e53a40;
    font-weight: bold;
    margin: 5px 0;
}

.cargo-lider {
    font-size: 1em;
    color: #cccccc;
}

/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
        text-align: center;
    }

    .image-container,
    .text-container {
        width: 100%;
        padding: 0;
    }

    .valores-grid {
        grid-template-columns: 1fr;
    }

    .dierza-section {
        padding: 20px;
        height: auto;
    }

    .seccion-lideres h2 {
        font-size: 1.5em;
    }

    .seccion-lideres .linea-roja {
        width: 100%;
    }

    .valor h2, .valores-title_2 {
        font-size: 1.5em;
    }
}
