/* ===================================
   NAVBAR PREMIUM - CON EFECTO SCROLL
   Azul celeste al inicio, transparente al hacer scroll
   =================================== */

/* === NAVBAR - ESTADO INICIAL (TOP) === */
.navbar {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.95) 0%, rgba(226, 239, 254, 0.9) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(147, 197, 253, 0.3) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* === NAVBAR - ESTADO SCROLLED === */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* === MODO OSCURO === */
[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.9) !important;
}

/* === BRAND === */
.navbar-brand {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand .logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover .logo {
    transform: scale(1.05);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

[data-theme="dark"] .brand-text {
    color: #f8fafc;
}

/* === NAV LINKS === */
.nav-link {
    color: #64748b !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d97706;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #d97706 !important;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #d97706 !important;
    font-weight: 600 !important;
}

.nav-link.active::after {
    width: 100%;
}

[data-theme="dark"] .nav-link {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .nav-link:hover {
    color: #f59e0b !important;
}

[data-theme="dark"] .nav-link.active {
    color: #f59e0b !important;
}

/* === THEME TOGGLE === */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #0f172a;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    background: #f1f5f9;
}

[data-theme="dark"] .theme-toggle {
    color: #f8fafc;
}

[data-theme="dark"] .theme-toggle:hover {
    background: #334155;
}

/* === DROPDOWN USUARIO === */
.dropdown-toggle {
    background: rgba(217, 119, 6, 0.1) !important;
    border: 2px solid rgba(217, 119, 6, 0.2) !important;
    color: #64748b !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dropdown-toggle:hover {
    background: rgba(217, 119, 6, 0.2) !important;
    border-color: #d97706 !important;
    transform: translateY(-2px) !important;
    color: #d97706 !important;
}

[data-theme="dark"] .dropdown-toggle {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .dropdown-toggle:hover {
    color: #f59e0b !important;
}

/* === BOTONES PREMIUM === */
.btn-primary {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3) !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.4) !important;
}