/* Estilos exclusivos del header (agrega aquí los estilos personalizados si es necesario) */

/* #region Header con degradado azul - mismo azul del index (#3b82f6, #1d4ed8, #1e40af) */
header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(29, 78, 216, 0.95) 50%, rgba(30, 64, 175, 1) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(29, 78, 216, 0.4) !important;
    border-bottom: 3px solid rgba(59, 130, 246, 0.7) !important;
}

/* Asegurar que el header mantenga estos colores azules en todas las páginas */
body header,
html header,
header.header,
header[class*="header"] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(29, 78, 216, 0.95) 50%, rgba(30, 64, 175, 1) 100%) !important;
}

/* Efecto de brillo azul en el borde inferior */
header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.6) 50%, transparent 100%);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* #region Fuente del menú de navegación */
.nav-menu-item {
    font-family: 'Manor™', 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Estilos específicos para sobrescribir Tailwind */
a.nav-menu-item,
button.nav-menu-item {
    font-family: 'Manor™', 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.nav-menu-item:hover {
    transform: scale(1.05) !important;
    transition: all 0.3s ease !important;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}
/* #endregion */

/* #region Colores personalizados */
:root {
    --zamberlan-blue: #0066ff;
}

.text-zamberlan-blue {
    color: var(--zamberlan-blue);
}

.bg-zamberlan-blue {
    background-color: var(--zamberlan-blue);        
}
/* #endregion */

/* #region Menú desplegable y comportamiento hover */
.hover-menu:hover .dropdown-menu {
    display: block;
}

.hover-menu:focus-within .dropdown-menu {
    display: block;
}

.hover-menu .dropdown-menu {
    z-index: 100;
}

/* Mejorar la estabilidad del menú desplegable */
.hover-menu:hover .dropdown-menu,
.hover-menu .dropdown-menu:hover {
    display: block !important;
}

/* Añadir un pequeño puente invisible para evitar que se cierre */
.hover-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    z-index: 99;
}

/* Menú desplegable desktop - mismo azul del index */
.dropdown-menu,
header .dropdown-menu,
nav .dropdown-menu,
.hover-menu .dropdown-menu {
    display: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 4px 15px rgba(59, 130, 246, 0.3) !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(29, 78, 216, 0.95) 50%, rgba(30, 64, 175, 1) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(59, 130, 246, 0.6) !important;
    border-radius: 12px;
    overflow: hidden;
}

.dropdown-menu a {
    transition: all 0.3s ease;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: rgba(29, 78, 216, 0.7) !important;
    color: #ffffff !important;
    transform: translateX(6px);
    box-shadow: inset 4px 0 0 rgba(255, 255, 255, 0.3);
}

/* Estilos para los items del menú desplegable */
.nav-menu-item-dropdown {
    font-family: 'Manor™', 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    font-size: 0.875rem !important;
}

a.nav-menu-item-dropdown {
    font-family: 'Manor™', 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
}

a.nav-menu-item-dropdown:hover {
    background-color: rgba(29, 78, 216, 0.7) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

/* #endregion */

/* #region Menú móvil - mismo azul del index */
.dropdown-menu-mobile,
#mobileNav .dropdown-menu-mobile,
#dropdownMobileCircuitos {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(29, 78, 216, 0.95) 50%, rgba(30, 64, 175, 1) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(59, 130, 246, 0.6) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(59, 130, 246, 0.3) !important;
    border-radius: 8px;
    margin: 4px 8px;
    overflow: hidden;
}

.dropdown-menu-mobile a {
    color: #ffffff !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.dropdown-menu-mobile a:last-child {
    border-bottom: none;
}

.dropdown-menu-mobile a:hover {
    background-color: rgba(29, 78, 216, 0.7) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

/* Estilos para el menú móvil - mismo azul del index */
#mobileNav,
header #mobileNav,
nav#mobileNav {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(29, 78, 216, 0.95) 50%, rgba(30, 64, 175, 1) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 2px solid rgba(59, 130, 246, 0.6) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(59, 130, 246, 0.3) !important;
    border-top: none !important;
}

#mobileNav a {
    color: #ffffff !important;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#mobileNav a:last-child {
    border-bottom: none !important;
}

#mobileNav button {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#mobileNav a:hover,
#mobileNav button:hover {
    background-color: rgba(29, 78, 216, 0.6) !important;
    color: #ffffff !important;
}

/* Animación del ícono chevron en menú móvil */
#btnMobileCircuitos {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#btnMobileCircuitos:hover {
    background-color: rgba(29, 78, 216, 0.6) !important;
}

#btnMobileCircuitos i {
    transition: transform 0.3s ease;
    color: #ffffff !important;
}

#btnMobileCircuitos.active i {
    transform: rotate(180deg);
}

#btnMobileCircuitos.active {
    background-color: rgba(29, 78, 216, 0.5) !important;
}

/* #endregion */

/* #region Responsive */
@media (max-width: 768px) {
    header {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(29, 78, 216, 0.95) 50%, rgba(30, 64, 175, 1) 100%) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        margin: 0;
    }
    
    nav .dropdown-menu {
        display: none;
    }
    
    /* Asegurar que el menú móvil tenga el mismo azul */
    #mobileNav {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(29, 78, 216, 0.95) 50%, rgba(30, 64, 175, 1) 100%) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
}
/* #endregion */ 