/* =========================================================
   QUIENES-SOMOS.CSS
   CORPORACIÓN APOLO
   PALETA MORADO + AMARILLO
========================================================= */


/* =========================================================
   PÁGINA
========================================================= */

.pagina-quienes-somos {
    width: 100%;
}


/* =========================================================
   SECCIÓN 1 — ¿QUIÉNES SOMOS?
========================================================= */

.seccion-quienes-somos {
    width: 100%;
    padding: 90px 24px;
    background-color: var(--fondo);
}


.quienes-somos-contenedor {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}


/* =========================================================
   TEXTO
========================================================= */

.quienes-somos-contenido h1 {
    margin: 0 0 24px;

    color: var(--texto);

    font-family: var(--fuente-principal);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
}


.quienes-somos-contenido p {
    margin: 0 0 18px;

    color: var(--texto-secundario);

    font-size: 17px;
    line-height: 1.7;
}


.quienes-somos-contenido p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   IMAGEN
========================================================= */

.quienes-somos-imagen {
    min-height: 380px;

    overflow: hidden;

    border: 1px solid var(--borde);
    border-radius: var(--radio-grande);

    background-color: var(--fondo-secundario);

    box-shadow: var(--sombra);

    display: flex;
    align-items: center;
    justify-content: center;
}


.quienes-somos-imagen img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}


/* =========================================================
   SECCIÓN 2 — IDENTIDAD
========================================================= */

.seccion-identidad {
    width: 100%;

    /*
       Este desplazamiento corrige el desfase que tiene
       esta sección respecto al resto de la página.
    */
    position: relative;
    left: 27px;
    width: calc(100% - 27px);

    padding: 90px 24px;

    background-color: var(--fondo-secundario);
}


.identidad-contenedor {
    width: 100%;
    max-width: 1120px;

    margin: 0 auto;
}


/* =========================================================
   TÍTULO
========================================================= */

.identidad-contenedor > h2 {
    margin: 0 0 45px;

    color: var(--texto);

    font-family: var(--fuente-principal);

    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;

    text-align: center;
}


/* =========================================================
   CUADROS — MISIÓN / VISIÓN
========================================================= */

.identidad-cuadros {
    width: 100%;

    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: stretch;

    gap: 24px;

    margin: 0 auto;
    padding: 0;

    box-sizing: border-box;
}


.identidad-cuadro {
    width: 360px;
    min-width: 360px;
    max-width: 360px;

    flex: 0 0 360px;

    box-sizing: border-box;

    height: 100%;

    padding: 32px;

    border: 1px solid var(--borde);

    border-radius: var(--radio);

    background-color: var(--superficie);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.04);

    transition:
        transform var(--transicion),
        box-shadow var(--transicion),
        border-color var(--transicion),
        background-color var(--transicion);

    text-align: center;
}


.identidad-cuadro:hover {
    transform: translateY(-5px);

    border-color: rgba(114, 9, 183, 0.35);

    box-shadow:
        0 12px 28px rgba(114, 9, 183, 0.10);
}


/* =========================================================
   TÍTULOS DE LOS CUADROS
========================================================= */

.identidad-cuadro h3 {
    margin: 0 0 18px;

    color: var(--morado);

    font-family: var(--fuente-principal);

    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;

    text-align: center;
}


/* =========================================================
   TEXTO DE LOS CUADROS
========================================================= */

.identidad-cuadro p {
    margin: 0;

    color: var(--texto-secundario);

    font-size: 16px;
    line-height: 1.7;

    text-align: center;
}


/* =========================================================
   SECCIÓN 3 — ¿QUÉ HACEMOS?
========================================================= */

.seccion-que-hacemos {
    width: 100%;

    padding: 90px 24px;

    background-color: var(--fondo);
}


.que-hacemos-contenedor {
    width: 100%;
    max-width: 1120px;

    margin: 0 auto;
}


.que-hacemos-contenedor > h2 {
    margin: 0 0 18px;

    color: var(--texto);

    font-family: var(--fuente-principal);

    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;

    text-align: center;
}


.que-hacemos-introduccion {
    max-width: 700px;

    margin: 0 auto 50px;

    color: var(--texto-secundario);

    font-size: 17px;
    line-height: 1.7;

    text-align: center;
}


/* =========================================================
   CONTENIDO
========================================================= */

.que-hacemos-contenido {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 70px;
}


/* =========================================================
   IMAGEN
========================================================= */

.que-hacemos-imagen {
    min-height: 350px;

    overflow: hidden;

    border: 1px solid var(--borde);

    border-radius: var(--radio-grande);

    background-color: var(--fondo-secundario);

    box-shadow: var(--sombra);

    display: flex;
    align-items: center;
    justify-content: center;
}


.que-hacemos-imagen img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   TEXTO
========================================================= */

.que-hacemos-texto p {
    margin: 0 0 20px;

    color: var(--texto-secundario);

    font-size: 17px;
    line-height: 1.7;
}


.que-hacemos-texto p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   MODO OSCURO
========================================================= */

body.modo-oscuro .seccion-quienes-somos,
body.modo-oscuro .seccion-que-hacemos {
    background-color: var(--fondo);
}


body.modo-oscuro .seccion-identidad {
    background-color: var(--fondo-secundario);
}


body.modo-oscuro .quienes-somos-imagen,
body.modo-oscuro .que-hacemos-imagen {
    background-color: var(--superficie);

    border-color: var(--borde);
}


body.modo-oscuro .identidad-cuadro {
    background-color: var(--superficie);

    border-color: var(--borde);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.20);
}


body.modo-oscuro .identidad-cuadro:hover {
    border-color: rgba(114, 9, 183, 0.50);

    box-shadow:
        0 12px 28px rgba(114, 9, 183, 0.16);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .identidad-cuadros {
        gap: 20px;
    }

}


/* =========================================================
   TABLET PEQUEÑA
========================================================= */

@media (max-width: 850px) {

    .quienes-somos-contenedor,
    .que-hacemos-contenido {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .quienes-somos-imagen {
        min-height: 320px;
    }


    .que-hacemos-imagen {
        min-height: 320px;
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 800px) {

    .seccion-identidad {
        left: 0;
        width: 100%;
    }


    .identidad-cuadros {
        flex-direction: column;

        align-items: center;

        width: 100%;
    }


    .identidad-cuadro {
        width: 100%;
        min-width: 0;
        max-width: 420px;

        flex: 0 1 auto;
    }

}


@media (max-width: 650px) {

    .seccion-quienes-somos,
    .seccion-identidad,
    .seccion-que-hacemos {
        padding: 60px 16px;
    }


    .quienes-somos-contenedor,
    .que-hacemos-contenido {
        gap: 30px;
    }


    .quienes-somos-contenido h1 {
        font-size: 32px;
    }


    .identidad-contenedor > h2,
    .que-hacemos-contenedor > h2 {
        font-size: 29px;
    }


    .identidad-contenedor > h2 {
        margin-bottom: 30px;
    }


    .identidad-cuadro {
        padding: 25px;
    }


    .que-hacemos-introduccion {
        margin-bottom: 35px;
    }


    .quienes-somos-imagen,
    .que-hacemos-imagen {
        min-height: 250px;
    }

}


@media (max-width: 700px) {

    .quienes-somos-imagen img {
        max-height: 280px;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 400px) {

    .seccion-quienes-somos,
    .seccion-identidad,
    .seccion-que-hacemos {
        padding-left: 14px;
        padding-right: 14px;
    }


    .quienes-somos-contenido h1 {
        font-size: 29px;
    }


    .identidad-contenedor > h2,
    .que-hacemos-contenedor > h2 {
        font-size: 26px;
    }


    .identidad-cuadro {
        padding: 22px;
    }

}