/* ===== NAVEGACIÓN UNIFICADA ===== */

/* Botón hamburguesa móvil */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.3s ease;
}

.nav-toggle:hover {
    color: var(--ckm-green);
}

/* Navegación principal */
.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav__link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav__link:hover {
    color: var(--ckm-green);
    background: rgba(0, 200, 83, 0.1);
}

.nav__link--active {
    color: var(--ckm-green);
    background: rgba(0, 200, 83, 0.15);
}

.nav__user {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.nav__user-name {
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav__logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.nav__logout-btn:hover {
    background: #c82333;
}

/* ===== RESPONSIVE MÓVIL ===== */
@media (max-width: 768px) {
    /* Mostrar botón hamburguesa */
    .nav-toggle {
        display: block;
    }
    
    /* Ocultar navegación por defecto */
    .header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 11, 11, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    /* Mostrar navegación cuando está abierta */
    .header__nav.nav--open {
        max-height: 500px;
        opacity: 1;
        padding: 20px;
    }
    
    .nav__link {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 0;
    }
    
    .nav__link:last-child {
        border-bottom: none;
    }
    
    .nav__user {
        flex-direction: column;
        gap: 12px;
        margin-left: 0;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .nav__user-name {
        font-size: 0.85rem;
    }
    
    .nav__logout-btn {
        width: 100%;
        padding: 12px;
    }
}
