/* Navegación móvil */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-mobile.active {
    visibility: visible;
    opacity: 1;
}

.nav-mobile__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--shadow-primary);
    cursor: pointer;
}

.nav-mobile__content {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--bg-white);
    margin-left: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.nav-mobile.active .nav-mobile__content {
    transform: translateX(0);
}

/* Header del nav móvil */
.nav-mobile__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1;
}

.nav-mobile__close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-navbar);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.nav-mobile__close:hover {
    color: var(--text-accent);
}

.nav-mobile__close-icon {
    display: block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

/* Perfil de usuario */
.nav-mobile__user-profile {
    flex: 1;
    text-align: left;
}

/* Barra separadora */
.nav-mobile__separator {
    height: 1px;
    background-color: var(--border-light);
    margin: 0 24px;
}

/* Navegación */
.nav-mobile__navigation {
    flex: 1;
    padding: 0 24px;
}

.nav-mobile__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-mobile__item {
    margin: 0;
}

.nav-mobile__link {
    display: block;
    padding: 20px 0;
    color: var(--text-navbar);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
    transition: color 0.2s ease;
}

.nav-mobile__link:hover {
    color: var(--text-accent);
}

.nav-mobile__link.active {
    background-color: var(--bg-white);
    color: var(--text-white);
    border-left: 4px solid var(--bg-secondary);
}

/* Responsive */
@media (max-width: 480px) {
    .nav-mobile__content {
        max-width: 100%;
    }
    
    .nav-mobile__header {
        padding: 12px 16px;
    }
    
    .nav-mobile__navigation {
        padding: 0 20px;
    }
    
    .nav-mobile__link {
        padding: 16px 0;
    }
}
