/**
 * Buscador de vehículos (widget inv_buscador / [inventory_buscador])
 * Modo auto: campo en escritorio (> 1024 px), lupa en tableta y móvil.
 */
.inv-bs {
    --inv-bs-ink: #20142e;
    --inv-bs-ink-2: #5b546c;
    --inv-bs-ink-3: #8a849a;
    --inv-bs-surface: #f4f2f9;
    --inv-bs-surface-2: #ebe8f4;
    --inv-bs-line: #e4e1ee;
    --inv-bs-line-2: #d3cfe0;
    --inv-bs-brand: #505dc3;
    --inv-bs-brand-soft: #eceefb;
    --inv-bs-mint-soft: #d7faf2;
    --inv-bs-max: 560px;
    --inv-bs-hueco: 0px;

    display: flex;
    justify-content: center;
    width: 100%;
    padding-left: var(--inv-bs-hueco);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--inv-bs-ink);
}
.inv-bs-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.inv-bs-campo { position: relative; width: 100%; max-width: var(--inv-bs-max); }

/* Campo */
.inv-bs .inv-bs-field,
.inv-bs-hoja .inv-bs-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    margin: 0;
    padding: 0 8px 0 16px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    background: var(--inv-bs-surface, #f4f2f9);
    color: var(--inv-bs-ink-2, #5b546c);
    cursor: text;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.inv-bs .inv-bs-field:hover { border-color: var(--inv-bs-line-2); }
.inv-bs .inv-bs-field.is-on,
.inv-bs-hoja .inv-bs-field:focus-within { background: #fff; border-color: #505dc3; box-shadow: 0 0 0 4px #eceefb; }
.inv-bs .inv-bs-field .inv-bs-i,
.inv-bs-hoja .inv-bs-field .inv-bs-i { width: 19px; height: 19px; }
.inv-bs .inv-bs-field input[type=search],
.inv-bs-hoja .inv-bs-field input[type=search] {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
    background: none;
    color: #20142e;
    font: 400 15px/1.2 'Plus Jakarta Sans', sans-serif;
    -webkit-appearance: none;
    appearance: none;
}
.inv-bs-hoja .inv-bs-field input[type=search] { font-size: 16px; } /* sin zoom en iPhone */
.inv-bs .inv-bs-field input::placeholder,
.inv-bs-hoja .inv-bs-field input::placeholder { color: #8a849a; opacity: 1; }
.inv-bs .inv-bs-field input::-webkit-search-cancel-button,
.inv-bs-hoja .inv-bs-field input::-webkit-search-cancel-button { display: none; }
.inv-bs .inv-bs-clr,
.inv-bs-hoja .inv-bs-clr {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: #5b546c;
    cursor: pointer;
}
.inv-bs .inv-bs-clr[hidden], .inv-bs-hoja .inv-bs-clr[hidden] { display: none; }
.inv-bs .inv-bs-clr:hover, .inv-bs-hoja .inv-bs-clr:hover { background: #ebe8f4; }
.inv-bs .inv-bs-clr .inv-bs-i, .inv-bs-hoja .inv-bs-clr .inv-bs-i { width: 16px; height: 16px; }

/* Lupa (tableta y móvil) */
.inv-bs .inv-bs-abrir {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: none;
    color: #20142e;
    cursor: pointer;
}
.inv-bs .inv-bs-abrir:hover { background: #f4f2f9; }
.inv-bs .inv-bs-abrir .inv-bs-i { width: 22px; height: 22px; stroke-width: 2; }
.inv-bs--icono { justify-content: flex-end; padding-left: 0; }
.inv-bs--icono .inv-bs-campo { display: none; }
.inv-bs--icono .inv-bs-abrir { display: grid; }
@media (max-width: 1024px) {
    .inv-bs--auto { justify-content: flex-end; padding-left: 0; }
    .inv-bs--auto .inv-bs-campo { display: none; }
    .inv-bs--auto .inv-bs-abrir { display: grid; }
}
.inv-bs :focus-visible, .inv-bs-hoja :focus-visible { outline: 2px solid #505dc3; outline-offset: 2px; }

/* Panel de resultados */
.inv-bs-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 1000;
    width: min(700px, calc(100vw - 32px));
    max-height: min(72vh, 680px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px 8px 10px;
    border: 1px solid #e4e1ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(32, 20, 46, .18), 0 4px 12px rgba(32, 20, 46, .08);
    transform: translateX(-50%);
    text-align: left;
}
.inv-bs-panel[hidden] { display: none; }
.inv-bs-panel, .inv-bs-res { font-family: 'Plus Jakarta Sans', sans-serif; color: #20142e; font-size: 15px; line-height: 1.45; }
.inv-bs-msg { margin: 0; padding: 18px 12px; color: #8a849a; }
.inv-bs-sec { padding: 10px 10px 4px; }
.inv-bs-h { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: #8a849a; }
.inv-bs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-bs-panel .inv-bs-chip, .inv-bs-res .inv-bs-chip {
    display: inline-flex;
    align-items: center;
    height: 34px;
    min-height: 0;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #d3cfe0;
    border-radius: 999px;
    background: #fff;
    color: #20142e;
    font: 500 14px/1 'Plus Jakarta Sans', sans-serif;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
}
.inv-bs-panel .inv-bs-chip:hover, .inv-bs-res .inv-bs-chip:hover { border-color: #505dc3; background: #fff; color: #505dc3; }
.inv-bs-none .inv-bs-chip { height: 30px; margin: 4px 2px; vertical-align: middle; }
.inv-bs-und { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px 6px; font-size: 13.5px; color: #5b546c; }
.inv-bs-tag { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 6px 0 11px; border-radius: 999px; background: #eceefb; color: #505dc3; font-weight: 600; font-size: 13px; }
.inv-bs-panel .inv-bs-tag button, .inv-bs-res .inv-bs-tag button { display: grid; place-items: center; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.inv-bs-panel .inv-bs-tag button:hover, .inv-bs-res .inv-bs-tag button:hover { background: rgba(80, 93, 195, .15); }
.inv-bs-tag .inv-bs-i { width: 13px; height: 13px; stroke-width: 2.4; }
.inv-bs-fix { margin: 0; padding: 6px 10px 2px; font-size: 13.5px; color: #5b546c; }
.inv-bs-fix b { color: #20142e; }
.inv-bs-opt { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 14px; color: #20142e; text-decoration: none; }
.inv-bs-opt:hover, .inv-bs-opt[aria-selected=true] { background: #f4f2f9; color: #20142e; }
.inv-bs-opt img, .inv-bs-ph { display: block; width: 84px; height: 52px; object-fit: contain; border-radius: 8px; background: #fff; }
.inv-bs-tx { min-width: 0; }
.inv-bs-nm { display: block; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.inv-bs-mk { display: block; margin-bottom: 1px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #8a849a; }
.inv-bs-meta { display: block; margin-top: 2px; overflow: hidden; font-size: 13px; color: #5b546c; text-overflow: ellipsis; white-space: nowrap; }
.inv-bs-pr { text-align: right; white-space: nowrap; }
.inv-bs-pr .c { display: block; font: 600 17px/1.1 'Clash Display', 'Plus Jakarta Sans', sans-serif; color: #505dc3; }
.inv-bs-pr .c small { font: 500 12px 'Plus Jakarta Sans', sans-serif; color: #5b546c; }
.inv-bs-pr .p { display: block; margin-top: 2px; font-size: 12.5px; color: #8a849a; }
.inv-bs-opt--v { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px 10px 18px; }
.inv-bs-opt--v .inv-bs-nm { font-weight: 500; }
.inv-bs-panel mark, .inv-bs-res mark { padding: 0; background: none; color: inherit; box-shadow: inset 0 -.32em 0 #d7faf2; }
.inv-bs-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 4px 2px; padding: 13px 16px; border-radius: 14px; background: #20142e; color: #fff; font-weight: 600; text-decoration: none; }
.inv-bs-cta:hover, .inv-bs-cta[aria-selected=true] { background: #3a2b4f; color: #fff; }
.inv-bs-cta .inv-bs-i { width: 18px; height: 18px; }
/* Página de la marca (cuando solo se escribe una marca): primera opción, la que abre Intro */
.inv-bs-panel a.inv-bs-marca, .inv-bs-res a.inv-bs-marca { display: grid; grid-template-columns: 52px minmax(0, 1fr) 20px; gap: 14px; align-items: center; margin: 4px 4px 8px; padding: 10px 14px 10px 10px; border: 1px solid #dcd8e5; border-radius: 14px; background: #f7f6fb; color: #20142e; text-decoration: none; }
.inv-bs-panel a.inv-bs-marca:hover, .inv-bs-panel a.inv-bs-marca[aria-selected=true], .inv-bs-res a.inv-bs-marca:hover, .inv-bs-res a.inv-bs-marca[aria-selected=true] { border-color: #20142e; background: #fff; color: #20142e; }
.inv-bs-marca img, .inv-bs-marca-ini { display: grid; place-items: center; width: 52px; height: 52px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e4e1ee; object-fit: contain; font: 600 18px 'Clash Display', sans-serif; text-transform: uppercase; }
.inv-bs-marca .inv-bs-nm { font: 600 17px/1.2 'Clash Display', 'Plus Jakarta Sans', sans-serif; }
.inv-bs-marca .inv-bs-i { width: 20px; height: 20px; color: #505dc3; }
.inv-bs-sep { height: 1px; margin: 8px 10px; background: #e4e1ee; }
.inv-bs-none { padding: 18px 12px 6px; }
.inv-bs-none p { margin: 0; color: #5b546c; }
.inv-bs-none .inv-bs-t { margin: 0 0 4px; font: 600 22px/1.15 'Clash Display', 'Plus Jakarta Sans', sans-serif; color: #20142e; text-wrap: balance; }
.inv-bs-panel .inv-bs-mas, .inv-bs-res .inv-bs-mas { min-height: 0; margin: 0; padding: 6px 10px; border: 0; background: none; color: #505dc3; font: 600 14px 'Plus Jakarta Sans', sans-serif; text-transform: none; cursor: pointer; }

/* Hoja a pantalla completa */
.inv-bs-hoja { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); background: #fff; }
.inv-bs-hoja[hidden] { display: none; }
.inv-bs-hoja .inv-bs-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #e4e1ee; }
.inv-bs-hoja .inv-bs-field { flex: 1; }
.inv-bs-hoja .inv-bs-cancel { min-height: 0; margin: 0; padding: 8px 4px; border: 0; background: none; color: #505dc3; font: 600 15px 'Plus Jakarta Sans', sans-serif; text-transform: none; cursor: pointer; }
.inv-bs-res { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 6px 8px calc(24px + env(safe-area-inset-bottom, 0px)); }
.inv-bs-res .inv-bs-opt { grid-template-columns: 72px minmax(0, 1fr); }
.inv-bs-res .inv-bs-opt img, .inv-bs-res .inv-bs-ph { width: 72px; height: 45px; }
.inv-bs-res .inv-bs-pr { grid-column: 2; display: flex; gap: 8px; align-items: baseline; text-align: left; }
.inv-bs-res .inv-bs-pr .c, .inv-bs-res .inv-bs-pr .p { display: inline; }
.inv-bs-res .inv-bs-opt--v { grid-template-columns: minmax(0, 1fr) auto; }
.inv-bs-res .inv-bs-opt--v .inv-bs-pr { grid-column: auto; display: block; text-align: right; }
.inv-bs-res .inv-bs-opt--v .inv-bs-pr .c, .inv-bs-res .inv-bs-opt--v .inv-bs-pr .p { display: block; }
html.inv-bs-bloqueo, html.inv-bs-bloqueo body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .inv-bs *, .inv-bs-hoja * { transition: none !important; } }

/* Por encima del color global de enlaces de la web (.elementor-kit-401 a) */
.inv-bs-panel a.inv-bs-opt, .inv-bs-res a.inv-bs-opt,
.inv-bs-panel a.inv-bs-opt:hover, .inv-bs-res a.inv-bs-opt:hover { color: #20142e; text-decoration: none; }
.inv-bs-panel a.inv-bs-cta, .inv-bs-res a.inv-bs-cta,
.inv-bs-panel a.inv-bs-cta:hover, .inv-bs-res a.inv-bs-cta:hover { color: #fff; text-decoration: none; }

/* ------------------------------------------------------------------
 * Campo de la cabecera (v2): blanco, borde fino, sombra suave y botón menta.
 * Selectores con clase doble (0,3,0) para ganar al estilo global de botón del kit
 * de Elementor (.elementor-kit-401 button:hover/:focus, 0,2,1).
 * ------------------------------------------------------------------ */
.inv-bs.inv-bs .inv-bs-field {
    height: 48px;
    padding: 0 6px 0 22px;
    border: 1px solid #dcd8e5;
    background: #fff;
    color: #20142e;
    box-shadow: 0 1px 2px rgba(32, 20, 46, .04), 0 8px 24px -12px rgba(32, 20, 46, .18);
    transition: border-color .2s, box-shadow .2s;
}
@media (hover: hover) {
    .inv-bs.inv-bs .inv-bs-field:hover { border-color: #bfb8cf; box-shadow: 0 1px 2px rgba(32, 20, 46, .05), 0 10px 28px -12px rgba(32, 20, 46, .24); }
}
.inv-bs.inv-bs .inv-bs-field.is-on {
    border-color: #20142e;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 226, 181, .22), 0 10px 28px -12px rgba(32, 20, 46, .24);
}
.inv-bs.inv-bs .inv-bs-field input[type=search] { font-size: 15px; letter-spacing: .005em; }
.inv-bs.inv-bs .inv-bs-field input::placeholder { color: #7d768e; }

/* Botón menta (lupa) */
.inv-bs.inv-bs .inv-bs-field .inv-bs-ir {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    min-height: 0;
    flex: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #00e2b5;
    color: #20142e;
    box-shadow: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.inv-bs.inv-bs .inv-bs-field .inv-bs-ir .inv-bs-i { width: 18px; height: 18px; stroke-width: 2.3; }
@media (hover: hover) {
    .inv-bs.inv-bs .inv-bs-field .inv-bs-ir:hover { background: #12f5c8; color: #20142e; transform: scale(1.05); }
}
.inv-bs.inv-bs .inv-bs-field .inv-bs-ir:focus { background: #00e2b5; color: #20142e; }
.inv-bs.inv-bs .inv-bs-field .inv-bs-clr,
.inv-bs.inv-bs .inv-bs-field .inv-bs-clr:focus { background: none; color: #5b546c; }
@media (hover: hover) { .inv-bs.inv-bs .inv-bs-field .inv-bs-clr:hover { background: #f1eff6; color: #20142e; } }

/* Lupa de tableta y móvil y botones de los paneles, también a salvo del kit */
.inv-bs.inv-bs .inv-bs-abrir:focus { background: none; color: #20142e; }
@media (hover: hover) { .inv-bs.inv-bs .inv-bs-abrir:hover { background: #f4f2f9; color: #20142e; } }
.inv-bs-panel.inv-bs-panel .inv-bs-chip:focus, .inv-bs-res.inv-bs-res .inv-bs-chip:focus { background: #fff; color: #20142e; }
@media (hover: hover) {
    .inv-bs-panel.inv-bs-panel .inv-bs-chip:hover, .inv-bs-res.inv-bs-res .inv-bs-chip:hover { background: #fff; border-color: #505dc3 !important; color: #505dc3; }
}
.inv-bs-panel.inv-bs-panel .inv-bs-tag button:focus, .inv-bs-res.inv-bs-res .inv-bs-tag button:focus,
.inv-bs-panel.inv-bs-panel .inv-bs-mas:focus, .inv-bs-res.inv-bs-res .inv-bs-mas:focus { background: none; color: inherit; }
.inv-bs-panel.inv-bs-panel .inv-bs-mas:focus, .inv-bs-res.inv-bs-res .inv-bs-mas:focus { color: #505dc3; }
.inv-bs-hoja.inv-bs-hoja .inv-bs-cancel:focus, .inv-bs-hoja.inv-bs-hoja .inv-bs-clr:focus { background: none; color: #505dc3; }
.inv-bs-hoja.inv-bs-hoja .inv-bs-clr:focus { color: #5b546c; }

/* Etiquetas de los destacados */
.inv-bs-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.6;
    vertical-align: 1px;
}
.inv-bs-badge--reco { background: #eceefb; color: #3f4bb0; }
.inv-bs-badge--popular { background: #d7faf2; color: #006e58; }
.inv-bs-badge--barato { background: #f1eff6; color: #5b546c; }
.inv-bs-badge--promo { background: #20142e; color: #00e2b5; letter-spacing: .02em; }

/* Píldoras (búsquedas rápidas, marcas, «¿Quisiste decir…?»). El CSS adicional del sitio
   (Personalizar) tiene «button { border: none !important }»: solo se puede ganar con !important */
.inv-bs-panel.inv-bs-panel .inv-bs-chip,
.inv-bs-res.inv-bs-res .inv-bs-chip {
    height: 34px;
    padding: 0 14px;
    border: 1px solid #d3cfe0 !important;
    border-radius: 999px;
    background: #fff;
    color: #20142e;
    font: 500 14px/1 'Plus Jakarta Sans', sans-serif;
}
.inv-bs-panel.inv-bs-panel .inv-bs-none .inv-bs-chip,
.inv-bs-res.inv-bs-res .inv-bs-none .inv-bs-chip { height: 30px; }

/* Hoja de móvil: mismo foco que el campo de escritorio (tinta + halo menta) */
.inv-bs-hoja.inv-bs-hoja .inv-bs-field { background: #fff; border: 1px solid #dcd8e5; color: #5b546c; }
.inv-bs-hoja.inv-bs-hoja .inv-bs-field:focus-within { border-color: #20142e; box-shadow: 0 0 0 4px rgba(0, 226, 181, .22); }

/* Búsquedas rápidas y marcas son enlaces: sin subrayado ni color de enlace del tema */
.inv-bs-panel.inv-bs-panel a.inv-bs-chip, .inv-bs-res.inv-bs-res a.inv-bs-chip { text-decoration: none; color: #20142e; }
.inv-bs-panel.inv-bs-panel a.inv-bs-chip:focus-visible, .inv-bs-res.inv-bs-res a.inv-bs-chip:focus-visible { outline: 2px solid #505dc3; outline-offset: 2px; }
/* «Ver los N coches en el listado» arriba del todo cuando la búsqueda son solo filtros */
.inv-bs-cta--top { margin-top: 4px; margin-bottom: 8px; }
.inv-bs-cta span small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; color: #cfc9dc; }

/* El logo de la cabecera va en un contenedor flotante más ancho que el logo (308 px) que tapaba el
   principio del buscador: al pulsar ahí no se abría. Solo el enlace del logo recibe clics. */
.elementor-location-header .e-con[data-settings*='"position":"absolute"']:has(> .elementor-widget-image) { pointer-events: none; }
.elementor-location-header .e-con[data-settings*='"position":"absolute"']:has(> .elementor-widget-image) a { pointer-events: auto; }
