@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    margin: 0;
    padding: 0;
}

/* ====== HEADER PRINCIPAL (PC) ====== */
.encabezado {
    display: flex;
    align-items: center;
    justify-content: space-between;     /* Logos a extremos */
    background-image: url("../lms.jpg");
    background-size: cover;
    background-position: center;
    padding: 50px;
    color: white;
    height: 260px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;                 /* Necesario para centrar h1 */
}

/* Logos */
.logo {
    height: 150px;
}

/* Texto SIEMPRE centrado */
.encabezado h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    margin: 0;
    color: rgb(251, 251, 251);

    position: absolute;                 /* Truco para centrar perfecto */
    left: 50%;
    transform: translateX(-50%);        /* Centrado real */
    text-align: center;
}

/* ====== RESPONSIVE CELULAR ====== */
@media (max-width: 768px) {

    .encabezado {
        flex-direction: column;         /* Logo arriba + texto abajo */
        justify-content: center;
        align-items: center;
        height: auto;
        padding: 30px 20px;
        gap: 15px;
        text-align: center;
        position: static;               /* Desactivar absolute en móvil */
    }

    .encabezado h1 {
        position: static;               /* Ahora se deja mover normal */
        transform: none;
        font-size: 26px;
        line-height: 1.2;
        text-align: center;
        margin-top: 10px;
    }

    .logo {
        height: 110px;
    }

    /* Ocultar logo derecho */
    .logo-der {
        display: none;
    }
}
