/* estilo_header_login.css - Estilos compartidos para header y nav (copiados y adaptados del index, sin fondos movibles) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-height: 0px; /* Se establecerá dinámicamente con JS si es necesario, pero por ahora fijo */
}

/* FONDO FIJO */
html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: url('../../Images/fondot.jpg'); 
    background-size: cover; /* Cubre toda la pantalla */
    background-position: center; /* Centrado */
    background-repeat: no-repeat; /* Sin repetición */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* HEADER SIEMPRE ARRIBA */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #600000, #9D0000);
    padding: 10px 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: background 0.5s;
}

.header-fixed:hover {
    background: linear-gradient(to right, #9D0000, #600000);
}

.logo-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.logo {
    height: 60px;
    margin: 0 10px;
    transition: transform 0.3s, filter 0.3s;
    object-fit: contain;
}

.logo:hover {
    transform: rotate(5deg) scale(1.1);
    filter: brightness(1.2);
}

nav {
    width: 100%;
    background: transparent;
    padding: 12px 30px;
    display: flex;
    justify-content: flex-start;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

nav ul li {
    margin: 0 20px 0 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    font-weight: 550;
    transition: color 0.3s, transform 0.3s;
}

nav ul li a:hover {
    color: #FFD700;
    transform: translateY(-2px);
}

/* Estilos del encabezado principal (movido desde styles.css para compartir) */
.titulo-completo {
    width: 100%;
}

.titulo-completo h1 {
    font-size: 32px;
    color: #ffffff;
    background: linear-gradient(to right, #600000, #9D0000); /* Fondo degradado */
    padding: 15px;
    margin: 1% 0 0 0; /* Margen superior exacto como en el login */
    text-align: center; /* Centra el texto */
    width: 100%; /* Ocupa todo el ancho */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* Sombra mejorada */
    transition: box-shadow 0.3s ease; /* Transición suave */
}

.titulo-completo h1:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.4); /* Efecto hover para mejora */
}

/* RESPONSIVE - Tablets y móviles (mejorado para mejor acomodo) */
@media (max-width: 768px) {
    .header-fixed {
        padding: 5px 0;
    }

    .logo {
        height: 50px;
    }

    nav {
        padding: 5px 20px;
        justify-content: center; /* Centrar nav en tablets */
    }

    nav ul li a {
        font-size: 16px;
    }

    .titulo-completo h1 {
        font-size: 28px;
        padding: 12px;
        margin: 10% 0 0 0; /* Ajuste de margen como en responsive del login */
    }
}

@media (max-width: 480px) {
    .logo-container {
        flex-direction: row;
        gap: 5px;
        justify-content: center;
    }

    .logo {
        height: 40px;
        max-width: 33%; /* Ajuste para 3 logos en una línea */
    }

    nav {
        padding: 5px 10px;
        justify-content: center; /* Centrar nav en móviles */
    }

    nav ul {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        font-size: 14px;
    }

    .titulo-completo h1 {
        font-size: 22px;
        padding: 10px;
        margin: 8% 0 0 0; /* Ajuste de margen como en responsive del login */
    }

}