/* ...estilos globales de fuente y box-sizing si lo deseas... */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(220, 20, 60, 0.2);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #e6e6e6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--highlight);
    transition: var(--transition);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    min-width: 220px;
    justify-content: flex-end;
}
.nav-icon {
    font-size: 1.5rem;
    color: var(--light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.nav-icon:hover {
    color: var(--highlight);
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--highlight);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
.center-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Additional navbar styles */
.navbar-left-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

#user-name {
    margin-left: 5px;
    font-weight: bold;
    pointer-events: none;
}

.user-avatar {
    pointer-events: none;
    transition: filter 0.3s ease;
}

/* Estado offline - sin sesión (rojo oscuro) */
.user-avatar.offline {
    filter: brightness(0) saturate(100%) invert(23%) sepia(89%) saturate(2851%) hue-rotate(338deg) brightness(89%) contrast(93%);
}

/* Estado online - con sesión (verde oscuro) */
.user-avatar.online {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(500%) hue-rotate(86deg) brightness(95%) contrast(91%);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    color: #333;
    padding: 0.3rem 0.5rem;
    margin-left: 0.5rem;
}
