
/* =========================================
   CONÓCENOS - COLEGIO MJC TUXTLA
========================================= */

.portada-conocenos {
    min-height: 350px;
    background:
        linear-gradient(rgba(0, 25, 65, 0.72), rgba(0, 25, 65, 0.72)),
        url("img/historia-mjc.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.portada-contenido {
    max-width: 850px;
}

.portada-contenido span {
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: bold;
}

.portada-contenido h1 {
    font-size: 46px;
    margin: 18px 0;
}

.portada-contenido p {
    font-size: 19px;
    line-height: 1.7;
}

/* INTRODUCCIÓN */

.introduccion-mjc {
    max-width: 850px;
    margin: auto;
    padding: 75px 25px 65px;
    text-align: center;
}

.etiqueta-mjc {
    color: #0b3d91;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.introduccion-mjc h2,
.valores-introduccion h2 {
    color: #002147;
    font-size: 34px;
    margin: 18px 0;
}

.introduccion-mjc p,
.valores-introduccion p {
    color: #596574;
    font-size: 17px;
    line-height: 1.9;
}

/* HISTORIA */

.historia-institucional {
    max-width: 1150px;
    margin: 0 auto;
    padding: 30px 25px 85px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.historia-fotografia img {
    display: block;
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.historia-texto h2 {
    color: #002147;
    font-size: 31px;
    margin: 15px 0 20px;
}

.historia-texto p {
    color: #596574;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 15px;
    text-align: justify;
}

/* MISIÓN Y VISIÓN */

.mision-vision-mjc p {
    text-align: justify;
    line-height: 1.7;
}

.mision-vision-mjc {
    background: #f3f6fa;
    padding: 75px 7%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.identidad-tarjeta {
    max-width: 550px;
    width: 100%;
    margin: auto;
    background: white;
    padding: 42px 35px;
    border-radius: 12px;
    border-top: 5px solid #0b3d91;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.identidad-tarjeta:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
}

.identidad-icono {
    font-size: 38px;
    margin-bottom: 20px;
}

.identidad-tarjeta h2 {
    color: #002147;
    font-size: 27px;
    margin: 13px 0;
}

.identidad-tarjeta p {
    color: #596574;
    font-size: 16px;
    line-height: 1.9;
}

/* VALORES */

.valores-institucionales {
    padding: 85px 7%;
    background: white;
}

.valores-introduccion {
    max-width: 750px;
    margin: 0 auto 45px;
    text-align: center;
}

.valores-contenedor {
    max-width: 1150px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.valor-card {
    padding: 32px 22px;
    text-align: center;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    transition: 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-5px);
    border-color: #0b3d91;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}



.valor-card h3 {
    color: #0b3d91;
    font-size: 20px;
    margin: 15px 0 10px;
}

.valor-card p {
    color: #647080;
    font-size: 14px;
    line-height: 1.8;
}

/* ===== SALUDO INSTITUCIONAL ===== */

.mensaje-institucional {
    padding: 12px 15px;
    margin: 15px auto;
    max-width: 600px;
    border: 1px solid #0b3d91;
    border-radius: 6px;
    text-align: center;
}

.mensaje-institucional p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .portada-conocenos {
        min-height: 280px;
    }

    .portada-contenido h1 {
        font-size: 32px;
    }

    .portada-contenido p {
        font-size: 16px;
    }

    .introduccion-mjc {
        padding: 55px 22px;
    }

    .introduccion-mjc h2,
    .valores-introduccion h2 {
        font-size: 28px;
    }

    .historia-institucional {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 22px 55px;
    }

    .historia-fotografia img {
        height: 260px;
    }

    .historia-texto h2 {
        font-size: 27px;
    }

    .mision-vision-mjc {
        grid-template-columns: 1fr;
        padding: 55px 22px;
    }

    .identidad-tarjeta {
        padding: 32px 25px;
    }

    .valores-institucionales {
        padding: 60px 22px;
    }

    .valores-contenedor {
        grid-template-columns: 1fr;
    }

    .mensaje-institucional h2 {
        font-size: 23px;
    }
}

/* Acercar saludo institucional a Valores */

.valores-institucionales {
    margin-bottom: 10px;
}

.mensaje-institucional {
    margin-top: -65px !important;
}