/* ==========================================
   ESTILOS NAVBAR - ASOVICAA
   ========================================== */

.navbar-asovicaa {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ========================================== */
/* LOGO Y MARCA                              */
/* ========================================== */

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #bdc3c7;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========================================== */
/* ITEMS DE NAVEGACIÓN                       */
/* ========================================== */

.navbar-nav {
    align-items: center;
}

.nav-item {
    margin-left: 0.5rem;
}

.nav-link {
    color: #ecf0f1 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

/* ========================================== */
/* BOTÓN DE LOGIN                            */
/* ========================================== */

.btn-login {
    background-color: #e53e3e !important;
    color: #ffffff !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.btn-login:hover {
    background-color: #c0392b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* ========================================== */
/* DROPDOWN MENÚ                             */
/* ========================================== */

.user-menu {
    color: #bdc3c7 !important;
}

.dropdown-menu {
    background-color: #1e40af;
    border: 1px solid #2563eb;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
}

.dropdown-menu .dropdown-header {
    color: #ffffff;
    font-weight: 600;
    padding: 1rem;
    background-color: transparent;
}

.dropdown-item {
    color: #ecf0f1;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-left: 1.75rem;
}

.dropdown-divider {
    border-color: #3b82f6;
    margin: 0.5rem 0;
}

/* ========================================== */
/* BOTÓN LOGOUT                              */
/* ========================================== */

.logout-btn {
    color: #e53e3e !important;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
}

.logout-btn:hover {
    background-color: rgba(231, 76, 60, 0.2) !important;
    color: #c0392b !important;
    padding-left: 1.75rem;
}

/* ========================================== */
/* TOGGLE BUTTON MÓVIL                       */
/* ========================================== */

.navbar-toggler {
    border: 1px solid #ecf0f1;
    padding: 0.25rem 0.75rem;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ecf0f1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================== */
/* RESPONSIVE NAVBAR                         */
/* ========================================== */

@media (max-width: 991px) {
    .brand-name {
        font-size: 1.1rem;
    }
    
    .brand-icon {
        font-size: 1.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 0.5rem !important;
    }
    
    .btn-login {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #3b82f6;
    }
}

@media (max-width: 576px) {
    .brand-tagline {
        display: none;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        border: none;
    }
}
