


.contenido {
    max-width: 1400px;
    margin: auto;
}

.quienes{
    max-width: 1200px;
    margin: auto;
}

.quienes-contenedor {
    font-size: 19px;
    margin: 40px 0;
    background: #0fa759;
    color: white;
    padding: 30px;
    border-radius: 30px;
}

.quienes-contenedor p{
    margin: 12px 0;
    font-weight: 500;
}

#vision, #mision {
    display: flex;
    align-items: center;
    padding: 80px;
}

#vision {
    flex-direction: row-reverse;
    padding: 50px;
}

.texto {
    padding-left: 100px;
    padding-right: 100px;
}

.texto h1 {
    font-size: 40px;
    color: #0fa759;
    border-bottom: 3px solid #0fa759;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.texto p {
    font-size: 20px;
    line-height: 30px;
    color: #686868;
    text-align: justify;
}

.foto img {
    width: 500px;
    border: 10px solid #0fa759;
}

.sub-contenido {
    margin-top: 50px;
}

/* Media Queries para hacerlo responsivo */
@media screen and (max-width: 992px) {
    #vision, #mision {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .texto {
        padding: 0 40px;
    }

    .texto h1 {
        font-size: 32px;
    }

    .texto p {
        font-size: 18px;
        line-height: 28px;
    }

    .foto img {
        width: 400px;
        margin-top: 20px;
    }

    .quienes-contenedor p{
        font-size: 16px;
    }

    .quienes{
        margin: 0 20px;
    }
}

@media screen and (max-width: 768px) {
    #vision, #mision {
        padding: 30px;
    }

    .texto h1 {
        font-size: 28px;
    }

    .texto p {
        font-size: 16px;
        line-height: 26px;
    }

    .foto img {
        width: 300px;
    }
}

@media screen and (max-width: 576px) {
    .texto {
        padding: 0 20px;
    }

    .texto h1 {
        font-size: 24px;
    }

    .texto p {
        font-size: 14px;
        line-height: 24px;
    }

    .foto img {
        width: 250px;
    }
}






.contenedor-historia{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

/* Estilos generales */
.contenedor-historia h1 {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #0fa759;
}

.historia-titulo{
    text-align: center;
    color: #0fa759;
    margin-top: 30px;
    margin-bottom: 40px;
}

.contenedor-historia p {
    font-size: 18px; /* Ajuste inicial para texto */
    line-height: 1.6;
}

.historia-texto{
    width: 80%;
}

.historia-img {
    text-align: center;
    margin: 20px auto;
}

.historia {
    max-width: 1300px;
    margin: auto;
    padding: 0 15px; /* Espaciado lateral para móviles */
}

/* Estilos responsivos */
@media (max-width: 1024px) {
    .contenedor-historia p {
        font-size: 18px; /* Reducimos un poco el tamaño del texto */
    }
}

@media (max-width: 768px) {
    .contenedor-historia h1 {
        font-size: 1.8em; /* Ajusta el tamaño del encabezado */
    }

    .contenedor-historia p {
        font-size: 16px;
    }

    .historia-img {
        margin: 15px auto;
    }

    .historia-img img{
        width: 100% !important;
    }
    
}

@media (max-width: 580px) {

    .contenedor-historia{
        flex-direction: column;
        align-items: center;
    }

    .historia-texto{
        width: 100%;
        margin-bottom: 30px;
    }

    .panal-contenedor{
        margin-left: 0 !important;
    }

    .contenedor-historia h1 {
        font-size: 1.6em;
    }

    .contenedor-historia p {
        font-size: 14px; /* Tamaño de texto más pequeño para pantallas pequeñas */
    }

    .historia-img {
        margin: 10px auto;
    }
}

.panal-contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    margin-left: 60px;
}

.panal {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas */
    row-gap: 15px;
    width: 90%;
    max-width: 600px; /* Limita el ancho total */
    margin: auto;
    position: relative;
}

.hexagono {
    position: relative;
    width: 250px;
    height: 276px;
    aspect-ratio: 1 / 1; /* Relación de aspecto 1:1 */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
    background: #e2e2e2; /* Fondo por defecto si no hay imagen */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: rotate(90deg); /* Rotamos el hexágono 90 grados */
    border: 7px solid;
}

.hexagono img {
    
    width: 110%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen dentro del hexágono */
    transform: rotate(-90deg); /* Corregimos la orientación de la imagen */
}

/* Ajuste del escalonado para la forma de panal */
.panal .hexagono:nth-child(odd) {
    transform: translateY(-54%) rotate(90deg);
}

/* Media Queries para dispositivos más pequeños */
@media screen and (max-width: 768px) {
    .panal {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }
    .panal .hexagono:nth-child(odd) {
        transform: translateY(0) rotate(90deg); /* Sin desplazamiento en pantallas pequeñas */
    }
}


.historia-img img{
    width: 450px;
}