/*
==============================================
    NAV_HEADER.CSS - ESTILOS CONSOLIDADOS
==============================================
*/

/* ===================================
   1. VARIABLES CSS
   =================================== */
:root {
    /* Colores principales */
    --nav-primary: #170585;
    --nav-hov-primary: #2647ff;
    --nav-dark-blue: #03133a;
    
    /* Colores secundarios */
    --nav-secondary: #5ee1ff;
    --nav-hov-secondary: #00a1ff;
    --nav-secondary-base: #6c757d;
    --nav-hov-secondary-base: #5a6268;
    
    /* Colores de estado */
    --nav-success: #4EA72E;
    --nav-info: #722ed1;
    --nav-warning: #FFC519;
    --nav-danger: #EF486A;
    
    /* Colores base */
    --nav-dark: #03133a;
    --nav-light: #d9d9ff;
    --nav-white: #FFFFFF;
    --nav-black: #000000;
    --nav-blue: #007BFF;
    --nav-gray: #A8A8A8;
    --nav-gray-dark: #6c757d;
    
    /* Colores soft */
    --nav-soft-primary: rgba(23, 5, 133, 0.1);
    --nav-soft-secondary: rgba(13, 202, 240, 0.1);
    --nav-soft-success: rgba(78, 167, 46, 0.1);
    --nav-soft-danger: rgba(239, 72, 106, 0.1);
    --nav-soft-warning: rgba(255, 197, 25, 0.1);
    --nav-soft-info: rgba(114, 46, 209, 0.1);
    --nav-soft-dark: rgba(3, 19, 58, 0.1);
    --nav-soft-light: rgba(217, 217, 255, 0.1);
    --nav-soft-secondary-base: rgba(108, 117, 125, 0.1);
    
    /* Fuente */
    --nav-font-family-sans-serif: 'Poppins', sans-serif;
    --nav-font: 'Orbitron', sans-serif;
    
    /* Breakpoints */
    --nav-breakpoint-sm: 576px;
    --nav-breakpoint-md: 768px;
    --nav-breakpoint-lg: 992px;
    --nav-breakpoint-xl: 1200px;
    --nav-portaldoc_top_banner-overlay-opacity: 0.3;
}

/* ===================================
   2. ANIMATIONS Y EFECTOS
   =================================== */
.nav_girar-flecha-ph {
    transition: transform 0.3s ease-in-out;
}

/* ===================================
   3. TOP NAVBAR
   =================================== */
.nav_top-navbar {
    height: auto;
    padding-top: 5px;
    padding-bottom: 5px;
}
.nav_top-navbar .container {
    padding-left: 0;
    padding-right: 0;
}

/* ===================================
   4. HEADER LOGO
   =================================== */
.nav_logo-bar-area {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================
   5. SEARCH BAR
   =================================== */
.nav_front-header-search {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 8px;
    padding: 0.5rem;
}
.nav_search-input-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0.2rem 0.8rem;
}
.nav_search-input-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #03133a;
}
.nav_search-input-box input::placeholder {
    color: #A8A8A8;
}

/* ===================================
   6. HEADER ACTIONS (COMPARE, WISHLIST, NOTIFICATIONS)
   =================================== */
.nav_hover-icon {
    transition: all 0.3s ease;
}
.nav_hover-icon:hover {
    color: #0dcaf0 !important;
    transform: scale(1.1);
}
.nav_header-actions .action-link {
    line-height: 1;
    padding: 0.25rem 0.5rem;
}
.nav_header-actions .action-link i {
    vertical-align: middle;
    display: flex;
    display: inline-block;
}

/* ===================================
   7. MOBILE SEARCH
   =================================== */
@media (max-width: 991px) {
    .nav_front-header-search {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        background: #170585;
        border-radius: 0;
        padding: 1rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    .nav_front-header-search.active {
        transform: translateY(0);
    }
}

/* ===================================
   8. RESPONSIVE HEADER
   =================================== */
@media (max-width: 768px) {
    .nav_logo-bar-area .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .nav_nav-user-info {
        display: none;
    }
}
@media (min-width: 769px) and (max-width: 1199px) {
    .nav_hover-user-top-menu {
        right: 1rem;
    }
}

/* ===================================
   9. HEADER GRADIENTS
   =================================== */
.bg-grad-1 {
    background-color: #4a8ae6;
    background: linear-gradient(135deg, rgba(74, 138, 230, 0.4) 0%, rgba(74, 138, 230, 0.8) 100%);
}
.bg-grad-2 {
    background-color: #170585;
    background-image: linear-gradient(135deg, #0000ff 0%, #170585 74%);
}
.bg-grad-3 {
    background-color: #abcae9;
 background: linear-gradient(to bottom, #abcae9 0%, #ffffff 100%);
}
.bg-grad-4 {
    background-color: #03133a;
    background: linear-gradient(to bottom, #03133a 0%, #170585 100%);
}
.bg-grad-5 {
    background-color: #abcae9;
    background: linear-gradient(to bottom, #abcae9 0%, #170585 100%);
}

/* ===================================
   10. ANIMATE UNDERLINES
   =================================== */
.nav_animate-underline-white {
    position: relative;
    text-decoration: none;
}
.nav_animate-underline-white::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}
.nav_animate-underline-white:hover::after {
    width: 100%;
}

/* ===================================
   11. HEADER MENU LINKS
   =================================== */
.nav_header_menu_links {
    transition: all 0.3s ease;
    position: relative;
}
.nav_header_menu_links:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #0dcaf0 !important;
}
.nav_header_menu_links.active {
    background: rgba(255, 255, 255, 0.15);
    color: #0dcaf0 !important;
}

/* ===================================
   12. TOOLTIPS
   =================================== */
.nav_data-tooltip {
    position: relative;
}

/* ===================================
   13. STICKY HEADER
   =================================== */
.nav_sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* ===================================
   14. CATEGORY MENU
   =================================== */
.nav_hover-category-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.nav_hover-category-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===================================
   15. CART DROPDOWN
   =================================== */
.nav_nav-cart-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(188, 218, 248, 0.3);
    backdrop-filter: blur(10px);
}

/* ===================================
   16. NOTIFICATIONS
   =================================== */
.nav_unread-notification-count {
    background: #EF486A;
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   17. BADGE STYLES
   =================================== */
.nav_badge-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav_badge-pill {
    border-radius: 50rem;
}
.nav_absolute-top-right--10px {
    position: absolute;
    top: -5px;
    right: -5px;
}

/* ===================================
   18. COUNTRY DROPDOWN CON ICONO GLOBO
   =================================== */
.nav_country-selector-globe {
    position: relative;
    display: inline-block;
}
.nav_country-selector-globe .btn {
    font-size: 21px;
    color: white;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.3rem 0.6rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
}
.nav_country-selector-globe .btn:hover {
    color: #0dcaf0;
    transform: scale(1.05);
}
.nav_country-selector-globe .dropdown-menu {
    background: #170585;
    border-radius: 6px;
    border: none;
    padding: 0.3rem 0;
    font-family: inherit;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

    /* Clave: alineado centrado respecto al boton */
    left: 50% !important;
    transform: translateX(-50%);
    min-width: 64px;
    text-align: center;
    top: 100%; /* despliega desde la parte inferior del botón */
    margin-top: 6px;
}
.nav_country-selector-globe .dropdown-menu a {
    color: white;
    padding: 6px 10px;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    border-radius: 4px;
}
.nav_country-selector-globe .dropdown-menu a:hover {
     background: #170585;
    color: #0dcaf0;
}
.nav_country-code-text {
    color: white;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.08em !important;
}
.nav_country-code-text a:hover {
     background: #170585;
    color: #0dcaf0;
}

/* ===================================
   19. USER DROPDOWN MENU
   =================================== */
.nav_hover-user-top-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.nav_nav-user-info:hover + .nav_hover-user-top-menu,
.nav_hover-user-top-menu:hover {
    display: block;
    opacity: 1;
    visibility: visible;
}
.nav_aiz-user-top-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(188, 218, 248, 0.3);
}
.nav_user-top-nav-element {
    transition: all 0.3s ease;
}
.nav_user-top-nav-element:hover {
    background: rgba(188, 218, 248, 0.1);
}

/* ===================================
   20. SIDEBAR MENU - UNIFICADO DESKTOP Y MOBILE
   =================================== */
.nav_aiz-top-menu-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    z-index: 1035;
    transition: left 0.3s ease-in-out;
}

.nav_aiz-top-menu-sidebar.active {
    left: 0;
}

.nav_collapse-sidebar {
    position: relative;
    width: 320px;
    height: 100vh;
    background: var(--nav-white);
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1036;
    padding: 0;
}

.nav_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1034;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.nav_aiz-top-menu-sidebar.active .nav_overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===================================
   21. BANNER OPERATIVO
   =================================== */
.nav_operational-banner {
    position: relative;
    background: linear-gradient(135deg, var(--nav-dark-blue) 0%, var(--nav-primary) 75%);
    border: 1px solid var(--nav-secondary);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(23, 5, 133, 0.15);
    margin: 1rem;
    margin-bottom: 1.5rem;
}

.nav_operational-indicator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav_operational-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 6px #00ff00, 0 0 12px #00ff00, 0 0 18px #00ff00, inset 0 0 6px rgba(255, 255, 255, 0.3);
    animation: navOperationalPulse 2s ease-in-out infinite;
}

@keyframes navOperationalPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 8px #00ff00, 0 0 16px #00ff00, 0 0 24px #00ff00, inset 0 0 8px rgba(255, 255, 255, 0.3);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1);
        box-shadow: 0 0 12px #00ff00, 0 0 24px #00ff00, 0 0 36px #00ff00, inset 0 0 12px rgba(255, 255, 255, 0.5);
    }
}

.nav_operational-text {
    font-family: var(--nav-font);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--nav-secondary);
    letter-spacing: 0.08em;
    text-shadow: 0 0 6px rgba(10, 200, 240, 0.5);
    white-space: nowrap;
}

.nav_close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--nav-gray);
    cursor: pointer;
    padding: 0.2rem;
}

.nav_close-btn:hover {
    color: var(--nav-white);
}

/* ===================================
   22. SECCIÓN DE ACCESO (COMPRADORES/PROVEEDORES)
   =================================== */
.nav_access-section {
    padding: 0 1rem 1rem 1rem;
}

.nav_access-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.nav_access-btn {
    position: relative;
     background: linear-gradient(135deg, rgba(188, 218, 248, 0.15) 0%, rgba(188, 218, 248, 0.4) 100%);
    border: 1px solid rgba(188, 218, 248, 0.5);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: left;
    justify-content: left;
    gap: 0.6rem;
    z-index: 15;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 3px 10px rgba(188, 218, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 600;
}

.nav_access-btn:hover {
    background: linear-gradient(135deg, rgba(188, 218, 248, 0.) 0%, rgba(188, 218, 248, 0.7) 100%);
    border-color: var(--secondary);
    box-shadow: 
        0 4px 15px rgba(188, 218, 248, 0.4),
        0 0 25px rgba(188, 218, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #03133a;
    text-decoration: none;
}

.nav_access-btn i {
    font-size: 18px;
}

/* ===================================
   23. INFORMACIÓN DEL USUARIO
   =================================== */
.nav_user-section {
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.nav_user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    background: transparent;
    border: none;
}

.nav_user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--nav-gray);
    flex-shrink: 0;
}

.nav_user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav_user-name {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--nav-dark-blue);
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.2;
}

/* ===================================
   24. SEPARADORES
   =================================== */
.nav_separator {
    height: 1.5px;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 255, 255, 0.7) 50%, rgba(0, 255, 255, 0.1) 100%);
    margin: 1rem;
}

/* ===================================
   25. SECCIONES DE MENÚ
   =================================== */
.nav_menu-section,
.nav_account-section {
    padding: 0 1rem;
}

.nav_menu-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--nav-primary);
    text-decoration: none;
    font-family: var(--nav-font);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav_menu-item:hover {
    background: rgba(188, 218, 248, 0.1);
    border-color: rgba(188, 218, 248, 0.3);
    color: var(--nav-dark-blue);
    text-decoration: none;
    transform: translateX(2px);
}

.nav_menu-item.active {
    background: rgba(188, 218, 248, 0.2);
    border-color: var(--nav-secondary);
    color: var(--nav-dark-blue);
}

.nav_menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

#mobileMenuSidebar.collapsing,
#mobileMenuSidebar.show {
    display: block !important;
}

.overflow-hidden {
    overflow: hidden !important;
}
/* ===================================
   26. BOTÓN DE LOGOUT
   =================================== */
.nav_logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, rgba(188, 218, 248, 0.15) 0%, rgba(188, 218, 248, 0.4) 100%);
    border: 1px solid rgba(188, 218, 248, 0.5);
    border-radius: 6px;
    padding: 0.7rem 1rem;
    color: var(--nav-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 15;
    overflow: hidden;
    font-weight: 500;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 3px 10px rgba(188, 218, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    min-height: 30px;
}

.nav_logout-btn:hover {
   background: linear-gradient(135deg, rgba(188, 218, 248, 0.3) 0%, rgba(188, 218, 248, 0.7) 100%);
    border-color: var(--nav-secondary);
    box-shadow: 
        0 4px 15px rgba(188, 218, 248, 0.4),
        0 0 25px rgba(188, 218, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: var(--nav-primary);
    text-decoration: none;
}

/* ===================================
   27. FOOTER Y WIDGETS
   =================================== */
/* Footer */
.nav_aiz-footer {
    background: #151c29;
    padding-top: 70px;
}
.nav_aiz-footer .menu a {
    color: #cfd3da;
}
.nav_aiz-footer p {
    color: #cbcdd2;
}
.nav_aiz-footer-copyright {
    border-top: 1px solid #283244;
}
/* Footer widgets */
.nav_aiz-front-widget .title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: #717b8c;
}
.nav_aiz-front-widget .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav_aiz-front-widget .menu a {
    display: inline-block;
    color: inherit;
    padding: 5px 0;
}
.nav_aiz-front-widget .menu a:hover {
    transform: translateX(5px);
}

/* ===================================
   28. RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .nav_aiz-top-menu-sidebar {
        width: 280px;
    }
    
    .nav_collapse-sidebar {
        width: 280px;
    }
    
    .nav_operational-banner {
        margin: 0.5rem;
        padding: 0.6rem 0.8rem;
        margin-bottom: 1rem;
    }
    
    .nav_operational-text {
        font-size: 9px;
    }
    
    .nav_menu-item {
        font-size: 10px;
        padding: 0.6rem 0.8rem;
    }
}

@media (min-width: 769px) {
    .nav_aiz-top-menu-sidebar {
        width: 320px;
    }
    
    .nav_collapse-sidebar {
        width: 320px;
    }
}