body {
    background-color: #f8f9fa;
}

/* Header Styles */
header {
    background-color: white;
    padding: 20px 0;
    position: relative;
    border-bottom: 5px solid #0A1164;
}

.header-img {
    height: 80px;
    /* antes estaba más alto */
}

.header-text {
    margin: 10px 0;
    /* menos margen entre imagen y texto */
}

h2 {
    color: #0A1164;
    /* azul bootstrap */
    margin-bottom: 20px;
    font-weight: bold;
}

.logo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo-header img {
    height: 60px;
}

.logo-left {
    height: 80px;
}

.logo-right {
    height: 80px;
}

.logo-left {
    position: absolute;
    left: 150px;
    top: 20px;
}

.logo-right {
    position: absolute;
    right: 60px;
    top: 20px;
}


.title-header {
    text-align: center;
    color: #0A1164;
    font-size: 2.0em;
    font-weight: bold;
    margin: -16px 0;
}


.login-card {
    max-width: 550px;
    width: 100%;
}

.header-img {
    width: 100%;
    height: 120px;
    background-image: url('../imagenes/logtec.png');
    /* Cambia la ruta a tu imagen */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.header-text {
    text-align: center;
    margin: 9px 0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Contenedor que centra la opción */
.container-center {
    min-height: 50vh;
    /* ocupa menos espacio vertical que 100vh */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-title {
    text-align: center;
    background-color: #0A1164;
    /* fondo blanco, opcional */
    padding: 10px 0;
    /* menos espacio */
    border-bottom: 3px solid #0A1164;
    /* línea inferior para destacarlo */
    margin-bottom: 15px;
    /* separación con el contenido */
}

.page-title h1 {
    font-size: 1.8em;
    color: #ffffff;
    font-weight: bold;
    margin: 0;
}

.highlight-name {
    color: #0A1164;          /* azul destacado */
    font-weight: bold;        /* más grueso */
    background-color: #e0e7ff; /* opcional: fondo suave */
    padding: 2px 6px;        /* pequeño espacio alrededor */
    border-radius: 5px;       /* bordes redondeados */
}


footer {
    text-align: center;
    background-color: #0c0066;
    color: white;
    padding: 2px 0;
    font-size: 0.9em;
    margin-top: 30px;
}

/* ==================== Media Queries ==================== */
/* Tablets y pantallas medianas */
@media (max-width: 768px) {
    .logo-header {
        justify-content: center;
        gap: 15px;
        /* menos separación */
        padding: 0 15px;
    }

    .logo-left,
    .logo-right {
        height: 50px;
        /* logos más pequeños */
        position: static;
        /* elimina absolute para flex centrado */
    }

    .title-header {
        font-size: 1.4em;
        /* más compacto */
        margin: 0;
    }

    .login-card {
        max-width: 90%;
        /* se adapta al ancho de la pantalla */
        padding: 15px;
    }

    .container-center {
        min-height: 100vh;
        /* menos altura que desktop */
        flex-direction: column;
        /* apila opciones si hay varias */
        gap: 15px;
    }
}

/* Muy pequeños (480px o menos) */
@media (max-width: 480px) {
    .logo-header {
        flex-direction: column;
        /* logos apilados */
        gap: 10px;
    }

    .logo-left,
    .logo-right {
        height: 40px;
        /* logos aún más pequeños */
    }

    .title-header {
        font-size: 1.2em;
        margin: 0;
    }

    .login-card {
        max-width: 95%;
        padding: 10px;
    }

    .container-center {
        min-height: 100vh;
        /* se adapta mejor a pantalla pequeña */
    }
}