

.b-contenedor-buscador {
    position: relative;
    display: inline-block;
    width: 100%;
}

.b-listbox {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1000;
    min-width: 280px;
    width: max(100%, min(420px, 90vw));
    max-height: 280px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--borde, var(--color-border, #DCE2E8));
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    margin: 0;
    padding: 4px 0;
    list-style: none;
    box-sizing: border-box;
}

.b-listbox[hidden] {
    display: none !important;
}

.b-opcion {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid var(--color-background-soft, #F3F5F7);
    text-align: left;
    transition: background-color 0.1s ease;
}

.b-opcion:last-child {
    border-bottom: none;
}

.b-activa,
.b-opcion:hover {
    background-color: var(--color-primary-soft, #EAF0F7);
    outline: none;
}

.b-nom {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--texto, var(--color-text, #172033));
    line-height: 1.3;
}

.b-det {
    font-size: 0.78rem;
    color: var(--texto-secundario, var(--color-text-muted, #5B6472));
    display: flex;
    gap: 8px;
    align-items: center;
}

.b-cod {
    font-family: monospace;
    font-weight: 600;
    color: var(--primario, var(--color-accent, #FF6B1A));
}

.b-frq {
    color: var(--texto-secundario, var(--color-text-muted, #5B6472));
}


@media (max-width: 480px) {
    .b-listbox {
        width: 100%;
        min-width: 0;
        max-width: 100vw;
    }
}
