/* ═══════════════════════════════════════════════════════════════
   COKI STUDIOS GLOBAL TOOLBAR & NAVBAR STYLES
   Soporte perfecto para Modo Claro y Modo Oscuro (Apple / Google)
   ═══════════════════════════════════════════════════════════════ */

nav,
.felte-nav,
.cs-header,
.cs-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 9, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ── MODO CLARO UNIVERSAL PARA TOOLBAR / NAVBAR ── */
html.light-theme nav,
html.light-theme .felte-nav,
html.light-theme .cs-header,
html.light-theme .cs-nav {
    background: rgba(255, 255, 255, 0.88) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03) !important;
}

/* ── MARCA Y LOGO ── */
.nav-brand-name,
.nav-brand-title,
.cs-logo-title span {
    color: #f1f5f9;
    transition: color 0.2s ease;
}

html.light-theme .nav-brand-name,
html.light-theme .nav-brand-title,
html.light-theme .cs-logo-title span {
    color: #0f172a !important;
}

/* ── ENLACES DE NAVEGACIÓN ── */
.nav-link,
.btn-nav-ghost,
.cs-nav-link {
    color: #94a3b8;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.btn-nav-ghost:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.07);
}

html.light-theme .nav-link,
html.light-theme .btn-nav-ghost,
html.light-theme .cs-nav-link {
    color: #475569 !important;
}

html.light-theme .nav-link:hover,
html.light-theme .nav-link.active,
html.light-theme .btn-nav-ghost:hover {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

/* ── SELECTOR DE IDIOMA ── */
.lang-select,
#lang-switcher {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    transition: all 0.2s ease;
}

html.light-theme .lang-select,
html.light-theme #lang-switcher {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
}

/* ── BOTÓN DE CAMBIO DE TEMA ── */
.theme-toggle-btn,
#theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover,
#theme-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

html.light-theme .theme-toggle-btn,
html.light-theme #theme-toggle {
    color: #475569 !important;
}

html.light-theme .theme-toggle-btn:hover,
html.light-theme #theme-toggle:hover {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

/* ── BARRA DE BÚSQUEDA EN NAVBAR ── */
.search-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html.light-theme .search-container {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

html.light-theme .search-input {
    color: #0f172a !important;
}

html.light-theme .search-input::placeholder {
    color: #94a3b8 !important;
}
