/* Estilos generales */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

/* Header (encabezado) */
.header {
    width: 100%;
    background-color: #ffffff;
    position: fixed;
    top: 36px; /* Se posiciona justo debajo de la top-bar */
    left: 0;
    z-index: 1001; /* Debajo de la top-bar que tiene 1002 */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Efecto para la Home: mantenemos blanco para legibilidad */
body.home-page .header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

body.home-page .header.sticky {
    background-color: #ffffff;
    top: 0 !important; /* En sticky sube al tope */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1100; /* Pasa por encima de la top-bar si esta sigue ahí */
}

/* Contenedor principal del header */
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px; /* Altura generosa para el logo */
    max-width: 100% !important;
    margin: 0;
}

/* Logo */
.header__logo img {
    max-width: 320px; /* Un poco más grande para que se luzca */
    height: auto;
    display: block;
    padding: 5px 0;
}

/* Navegación */
.header__bottom nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header__bottom nav ul li a {
    color: #001a3d;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700; /* Estilo Intur: Negrita */
    padding: 10px 12px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Los enlaces heredarán el color azul marino definido arriba */

.header__bottom nav ul li a:hover {
    color: #b08d47 !important;
}

/* Botón "Escuela" */
.btn-escuela {
    background-color: #b24233; /* Color Ladrillo */
    color: white !important;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(178, 66, 51, 0.3);
}

.btn-escuela:hover {
    background-color: #001a3d; /* Azul Marino */
    color: white !important;
    transform: translateY(-2px);
}

/* Dropdown Menú */
.dropdown-menu {
    display: none; /* Oculto por defecto */
    position: absolute; /* Posiciona el menú debajo del botón */
    top: 100%; /* Coloca el menú justo debajo del botón "INFORMACIÓN" */
    left: 0;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Puedes ajustar este valor si es necesario */
    padding: 10px 0; /* Añade algo de espacio interno */
}

/* Mostrar menú cuando se hace hover en el contenedor dropdown */
.dropdown:hover .dropdown-menu {
    display: block; /* Mostrar el menú cuando se pasa el mouse */
}

/* Estilo para los elementos dentro del dropdown */
.dropdown-item {
    padding: 10px 20px;
    color: #00205b;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Menú móvil */
.menu-mobile {
    display: none;
    background-color: #00205b;
    position: fixed;
    top: 60px;
    width: 100%;
    z-index: 1000;
    text-align: center;
}

.menu-mobile.active {
    display: block; /* Mostrar el menú cuando está activo */
}

.menu-mobile ul {
    list-style: none;
    padding: 20px 0;
}

.menu-mobile ul li a {
    display: block;
    padding: 15px 0;
    color: white;
    text-transform: uppercase;
    border-bottom: 1px solid #003b73;
    text-decoration: none;
}

.menu-mobile ul li a:hover {
    background-color: #003b73;
}

/* Sticky Header */
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1001;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Efecto sticky (segunda fila fija al hacer scroll) */
.sticky .header__top {
    display: none;
}

/* Elimina el borde o líneas alrededor del enlace cuando está seleccionado o enfocado */
a {
    outline: none;
}

/* Opcional: también puedes eliminar el focus visualmente si no quieres resaltar en absoluto */
a:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

/* --- Media Queries para Pantallas Móviles --- */
@media (max-width: 768px) {
    .header__container {
        padding: 10px 15px !important;
    }
    /* Ocultar solo el menú de navegación en pantallas móviles, no el contenedor bottom */
    .header__top, .header__bottom nav {
        display: none;
    }

    /* Mostrar solo el logo y el botón de menú */
    .header__logo {
        display: inline-block;
    }

    .col-2.px-0.d-lg-none {
        display: inline-block;
    }
}
