/*
 * TuChamba Navbar Theme — Design System 2.0
 * Navbar consistente para todas las páginas del sitio
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ========================================
   NAVBAR PRINCIPAL — dark glass
   ======================================== */

.tuchamba-navbar {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.50);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================================
   LOGO Y BRANDING
   ======================================== */

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.navbar-brand:hover {
    opacity: 0.85;
}

/* Imagen del logo */
.navbar-brand img,
.navbar-brand-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* Ícono legacy (fallback si no hay imagen) */
.navbar-logo-icon {
    width: 36px; height: 36px;
    background: hsl(217, 91%, 60%);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
}
.navbar-brand:hover .navbar-logo-icon { transform: scale(1.08); }
.navbar-logo-icon i { color: #fff; font-size: 16px; }

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

/* Quitar "MX" — ya no aplica */
.navbar-brand-mx { display: none; }

.navbar-brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
}

/* ========================================
   MENU DE NAVEGACION
   ======================================== */

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.navbar-btn {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: 'Inter', system-ui, sans-serif;
}

.navbar-btn i { font-size: 0.9rem; }

/* Botón Iniciar Sesión — ghost */
.navbar-btn-login {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.25);
}
.navbar-btn-login:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    text-decoration: none;
}

/* Botón Registrarse — primary */
.navbar-btn-register {
    background: hsl(217, 91%, 60%);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}
.navbar-btn-register:hover {
    background: hsl(224, 76%, 48%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
    text-decoration: none;
}

/* Botones especiales de usuario logueado */
.logout-btn-nav {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.25);
    color: #e2e8f0;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Inter', system-ui, sans-serif;
}
.logout-btn-nav:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    text-decoration: none;
}

/* Notificaciones */
.notification-icon {
    position: relative;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 1.1rem;
    padding: 0.4rem;
    border-radius: 8px;
    transition: color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.notification-icon:hover { color: #fff; }

.notification-badge-icon {
    position: absolute; top: -5px; right: -5px;
    background: #ef4444; color: #fff;
    border-radius: 50%; width: 16px; height: 16px;
    font-size: 0.65rem; display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

/* Greeting */
.user-greeting,
.navbar-company-name {
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
}

.navbar-user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ========================================
   MENU HAMBURGUESA (MOBILE)
   ======================================== */

.navbar-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #e2e8f0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.navbar-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }

.navbar-menu-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 15, 30, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 1rem;
    animation: slideDown 0.25s ease-out;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.navbar-menu-mobile.active { display: block; }
.navbar-menu-mobile .navbar-btn { display: flex; width: 100%; justify-content: center; margin-bottom: 0.6rem; }

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

@media (max-width: 768px) {
    .navbar-container { padding: 0 1rem; }
    .navbar-menu { display: none; }
    .navbar-toggle { display: block; }
    .navbar-brand img, .navbar-brand-img { height: 32px; }
}

@media (max-width: 480px) {
    .navbar-brand-name { display: none; }
    .navbar-brand img, .navbar-brand-img { height: 30px; }
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
