/* =====================================================
   Búsqueda Global — activar con Ctrl+K
   ===================================================== */
#gs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
#gs-overlay.gs-open {
    display: flex;
}
#gs-panel {
    background: #fff;
    border-radius: 12px;
    width: min(620px, 90vw);
    max-height: 65vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    animation: gsIn 0.18s ease;
}
@keyframes gsIn {
    from { transform: translateY(-16px) scale(0.98); opacity: 0; }
    to   { transform: translateY(0)     scale(1);    opacity: 1; }
}
#gs-input-wrap {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    gap: 0.75rem;
    flex-shrink: 0;
}
#gs-input-wrap .gs-icon { color: #6c757d; font-size: 1.1rem; }
#gs-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1.05rem;
    color: #212529;
    background: transparent;
}
#gs-input::placeholder { color: #adb5bd; }
#gs-close-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    color: #6c757d;
    font-size: 0.75rem;
    padding: 2px 6px;
    line-height: 1.4;
}
#gs-close-btn:hover { background: #f8f9fa; color: #212529; }
#gs-results { overflow-y: auto; flex: 1; }
.gs-category {
    padding: 0.45rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #6c757d;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1;
}
.gs-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.1s;
}
.gs-result-item:last-child { border-bottom: none; }
.gs-result-item:hover,
.gs-result-item.gs-focused {
    background: #f0f7ff;
}
.gs-result-name { font-size: 0.9rem; color: #212529; flex: 1; }
.gs-result-meta { font-size: 0.8rem; color: #6c757d; margin-left: 1rem; white-space: nowrap; }
#gs-empty {
    padding: 2.5rem 1.25rem;
    text-align: center;
    color: #adb5bd;
    font-size: 0.9rem;
}
#gs-hint {
    padding: 0.45rem 1.25rem;
    text-align: right;
    font-size: 0.72rem;
    color: #adb5bd;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}
#gs-hint kbd {
    font-size: 0.68rem;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 1px 5px;
    font-family: monospace;
}
