
/* =====================================
   DOCENTES MJC - COLEGIO MJC TUXTLA
   ===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333333;
    background: #f3f6fa;
}

/* ===== ENCABEZADO ===== */

.encabezado-docentes {
    background: #0b3d91;
    padding: 22px 0;
}

.contenedor-docentes {
    width: 90%;
    max-width: 1150px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contenedor-docentes h2 {
    color: #ffffff;
    font-size: 21px;
    font-weight: bold;
}

.contenedor-docentes a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.contenedor-docentes a:hover {
    opacity: 0.75;
}

/* ===== CONTENIDO PRINCIPAL ===== */

.contenido-docentes {
    min-height: 75vh;
    padding: 60px 20px;
}

/* ===== PRESENTACIÓN ===== */

.presentacion-docentes {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.subtitulo {
    color: #b38b35;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.presentacion-docentes h1 {
    color: #0b3d91;
    font-size: 38px;
    margin-bottom: 18px;
}

.presentacion-docentes p:last-child {
    color: #666666;
    font-size: 16px;
    line-height: 1.7;
}

/* ===== NIVEL EDUCATIVO ===== */

.nivel-docente {
    max-width: 1100px;
    margin: auto;
}

.titulo-nivel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.titulo-nivel h2 {
    color: #002147;
    font-size: 25px;
    text-align: center;
}

.linea {
    width: 65px;
    height: 2px;
    background: #b38b35;
}

/* ===== TARJETAS DE DOCENTES ===== */

.lista-docentes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.docente {
    background: #ffffff;
    padding: 35px 20px;
    text-align: center;
    border-radius: 9px;
    border-bottom: 3px solid #0b3d91;
    box-shadow: 0 3px 12px rgba(0, 33, 71, 0.08);
    transition: all 0.3s ease;
}

.docente:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 18px rgba(0, 33, 71, 0.15);
}

/* CÍRCULO CON GRADO */

.icono-docente {
    width: 70px;
    height: 70px;
    background: #e9eef5;
    color: #0b3d91;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 25px;
    font-weight: bold;
}

/* NOMBRE DEL DOCENTE */

.docente h3 {
    color: #0b3d91;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* GRADO ESCOLAR */

.docente p {
    color: #777777;
    font-size: 14px;
}

/* ===== PIE DE PÁGINA ===== */

.pie-docentes {
    background: #002147;
    color: #ffffff;
    text-align: center;
    padding: 25px 15px;
    font-size: 13px;
}

.pie-docentes p {
    margin-bottom: 8px;
}

.pie-docentes a {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.pie-docentes a:hover {
    opacity: 0.75;
}

/* ===== ADAPTACIÓN PARA TABLETS ===== */

@media (max-width: 850px) {

    .lista-docentes {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .contenido-docentes {
        padding: 45px 20px;
    }
}

/* ===== ADAPTACIÓN PARA CELULARES ===== */

@media (max-width: 550px) {

    .contenedor-docentes {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .presentacion-docentes h1 {
        font-size: 30px;
    }

    .presentacion-docentes {
        margin-bottom: 40px;
    }

    .lista-docentes {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .titulo-nivel {
        gap: 10px;
    }

    .titulo-nivel h2 {
        font-size: 20px;
    }

    .linea {
        width: 30px;
    }

    .docente {
        padding: 28px 15px;
    }
}
