/* VS Buscador por Vehículo — línea del buscador del inicio (negro, amarillo Ventastore, píldoras),
   en versión compacta: en un PC deben verse sin bajar la barra, la ficha y el comienzo del catálogo. */

.vsbv {
    --vsbv-negro: #000;
    --vsbv-amarillo: #f9ec51;
    --vsbv-amarillo-fuerte: #ffdf00;
    --vsbv-amarillo-suave: #fffbe0;
    --vsbv-texto: #4a4a4a;
    --vsbv-gris: #8a8a8a;
    --vsbv-borde: #e6e6e6;
    --vsbv-fondo-suave: #f7f7f7;
    font-family: "Open Sans", sans-serif;
    color: var(--vsbv-texto);
    max-width: 1140px;
    margin: 0 auto;
    box-sizing: border-box;
}
.vsbv *,
.vsbv *::before,
.vsbv *::after { box-sizing: border-box; }

.vsbv-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ */
/* Barra de búsqueda (una fila)                                        */
/* ------------------------------------------------------------------ */
.vsbv-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 22px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--vsbv-negro);
}
.vsbv-titulo {
    margin: 0;
    color: var(--vsbv-amarillo-fuerte);
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}
.vsbv-bajada {
    margin: 2px 0 0;
    color: #cfcfcf;
    font-size: 12px;
    line-height: 1.3;
}
.vsbv-form {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, .8fr) auto;
    gap: 10px;
    align-items: center;
    margin: 0;
}
.vsbv-campo { display: block; margin: 0; }
.vsbv-form select {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 34px 0 12px;
    background: var(--vsbv-negro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 40px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.vsbv-form select:focus-visible { outline: 3px solid var(--vsbv-amarillo); outline-offset: 2px; }
.vsbv-form select:disabled { opacity: .55; cursor: not-allowed; }
.vsbv-form option,
.vsbv-form optgroup { color: #000; background: #fff; }

/* El tema (OceanWP) pone a los botones mayúsculas, letra chica y espaciado: se anula aquí. */
.vsbv button { text-transform: none; letter-spacing: normal; min-height: 0; box-shadow: none; }

.vsbv .vsbv-form .vsbv-boton {
    height: 42px;
    margin: 0;
    padding: 0 26px;
    border: 0;
    border-radius: 100px;
    background: var(--vsbv-amarillo);
    color: var(--vsbv-negro);
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 42px;
    cursor: pointer;
    transition: background-color .15s ease;
}
.vsbv .vsbv-form .vsbv-boton:hover:not(:disabled) { background: var(--vsbv-amarillo-fuerte); }
.vsbv .vsbv-form .vsbv-boton:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vsbv .vsbv-form .vsbv-boton:disabled { background: #dadada; color: #fff; cursor: not-allowed; }

/* ------------------------------------------------------------------ */
/* Estado (cargando / error)                                           */
/* ------------------------------------------------------------------ */
.vsbv-estado {
    margin: 10px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--vsbv-fondo-suave);
    font-size: 14px;
    text-align: center;
}
.vsbv-estado.is-error { background: #fff4f4; color: #9b1c1c; }
.vsbv-estado.is-cargando::before {
    content: "";
    display: inline-block;
    width: 13px; height: 13px;
    margin-right: 10px;
    vertical-align: -2px;
    border: 2px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: vsbv-giro .8s linear infinite;
}
@keyframes vsbv-giro { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ */
/* Ficha del vehículo                                                  */
/* ------------------------------------------------------------------ */
.vsbv-resultados { margin: 10px 0 0; }
.vsbv-ficha {
    border: 1px solid var(--vsbv-borde);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    scroll-margin-top: 110px;
}

.vsbv-ficha-cab {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    padding: 8px 16px;
    background: var(--vsbv-negro);
    color: #fff;
}
.vsbv-ficha-veh { min-width: 0; }
.vsbv-ficha-veh h3 {
    margin: 0;
    color: #fff;
    font-family: Inter, "Open Sans", sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}
.vsbv-ficha-veh small { display: block; margin-top: 2px; color: #bdbdbd; font-size: 12px; line-height: 1.3; }

.vsbv-ap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--vsbv-amarillo);
    color: #000;
}
.vsbv-ap span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.vsbv-ap strong { font-size: 22px; font-weight: 800; line-height: 1; }

.vsbv-datos { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.vsbv-datos dt { margin: 0; color: #a8a8a8; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.vsbv-datos dd { margin: 1px 0 0; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2; }

/* Selector de versión */
.vsbv-versiones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-bottom: 1px solid var(--vsbv-borde);
    background: var(--vsbv-fondo-suave);
    font-size: 12px;
}
.vsbv-versiones > b { margin-right: 4px; color: #000; font-size: 13px; }
.vsbv .vsbv-chip {
    margin: 0;
    padding: 3px 11px;
    border: 1px solid #cfcfcf;
    border-radius: 100px;
    background: #fff;
    color: #000;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}
.vsbv .vsbv-chip:hover { border-color: #000; }
.vsbv .vsbv-chip:focus-visible { outline: 3px solid var(--vsbv-amarillo); outline-offset: 2px; }
.vsbv .vsbv-chip.is-sel { background: var(--vsbv-amarillo); border-color: #000; font-weight: 800; }
.vsbv .vsbv-chip small { display: block; color: #6b6b6b; font-size: 10px; font-weight: 600; }

/* Tabla de medidas */
.vsbv-tabla-wrap { overflow-x: auto; }
.vsbv-tabla {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
}
.vsbv-tabla th,
.vsbv-tabla td {
    padding: 5px 16px;
    border: 0;
    border-bottom: 1px solid var(--vsbv-borde);
    text-align: left;
    vertical-align: middle;
}
.vsbv-tabla th {
    padding-top: 4px;
    padding-bottom: 4px;
    background: #fff;
    color: var(--vsbv-gris);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.vsbv-tabla tr:last-child td { border-bottom: 0; }
.vsbv-tabla tr.is-activa td { background: var(--vsbv-amarillo-suave); }
.vsbv-tabla tr.is-oculta { display: none; }
.vsbv-celda { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.vsbv-acc { display: flex; flex-wrap: wrap; gap: 6px; }
.vsbv-celda strong { color: #000; font-size: 14px; }
.vsbv-sub { display: block; color: var(--vsbv-gris); font-size: 11px; }

.vsbv-etiqueta {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 100px;
    background: #eee;
    color: #333;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.vsbv-etiqueta.is-fabrica { background: var(--vsbv-amarillo); color: #000; }

/* Botones */
.vsbv-link {
    display: inline-block;
    margin: 0;
    padding: 4px 12px;
    border: 0;
    border-radius: 100px;
    background: #000;
    color: #fff !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease;
}
.vsbv-link:hover { background: #333; }
.vsbv-link:focus-visible { outline: 3px solid var(--vsbv-amarillo); outline-offset: 2px; }
.vsbv-link.is-principal { background: var(--vsbv-amarillo); color: #000 !important; }
.vsbv-link.is-principal:hover { background: var(--vsbv-amarillo-fuerte); }
.vsbv-link.is-activo,
.vsbv-link.is-activo:hover { background: var(--vsbv-amarillo); color: #000 !important; box-shadow: inset 0 0 0 2px #000; }

/* Pie de la ficha */
.vsbv-pie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 8px 16px;
    border-top: 1px solid var(--vsbv-borde);
    font-size: 12px;
}
.vsbv .vsbv-pie > .vsbv-link { padding: 6px 14px; font-size: 13px; }

/* Medidas estándar (no de fábrica): se usan mucho, así que el botón es negro, con el número en amarillo y los aros. */
.vsbv .vsbv-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 8px;
    margin: 0;
    padding: 4px 14px 4px 5px;
    border: 1.5px solid #000;
    border-radius: 100px;
    background: #000;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease;
}
.vsbv .vsbv-toggle:hover { background: #333; border-color: #333; color: #fff; }
.vsbv .vsbv-toggle:focus-visible { outline: 3px solid var(--vsbv-amarillo); outline-offset: 2px; }
.vsbv .vsbv-toggle::after { content: "▾"; color: var(--vsbv-amarillo); font-size: 13px; line-height: 1; }
.vsbv-toggle-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 100px;
    background: var(--vsbv-amarillo);
    color: #000;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
.vsbv-toggle-aro { color: #cfcfcf; font-weight: 600; }
.vsbv .vsbv-toggle.is-abierto { padding: 4px 14px; background: #fff; color: #000; }
.vsbv .vsbv-toggle.is-abierto:hover { background: var(--vsbv-fondo-suave); border-color: #000; color: #000; }
.vsbv .vsbv-toggle.is-abierto::after { content: "▴"; color: #000; }

/* ------------------------------------------------------------------ */
/* "Abajo estás viendo…" (sobre el catálogo)                           */
/* ------------------------------------------------------------------ */
.vsbv-mostrando {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 10px 0 0;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--vsbv-negro);
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
}
.vsbv-mostrando[hidden] { display: none; }
.vsbv-mostrando b { color: var(--vsbv-amarillo); }
.vsbv-mostrando::before { content: "↓"; color: var(--vsbv-amarillo); font-weight: 800; }
.vsbv-mostrando.is-nuevo { animation: vsbv-pulso 1.4s ease-out 1; }
@keyframes vsbv-pulso {
    0%   { box-shadow: 0 0 0 0 rgba(249, 236, 81, .95); }
    100% { box-shadow: 0 0 0 16px rgba(249, 236, 81, 0); }
}

/* Aviso cuando no hay stock de una medida (reemplaza al catálogo) */
.vsbv-aviso {
    margin: 10px 0 0;
    padding: 14px 16px;
    border: 2px dashed #000;
    border-radius: 14px;
    background: var(--vsbv-amarillo-suave);
    color: #000;
    font-size: 14px;
    line-height: 1.45;
    scroll-margin-top: 110px;
}
.vsbv-aviso p { margin: 0 0 4px; }
.vsbv-aviso .vsbv-aviso-titulo { font-size: 16px; font-weight: 800; }
.vsbv-aviso-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Secciones del catálogo (Elementor) bajo la ficha */
.vsbv-cat { scroll-margin-top: 110px; }

/* ------------------------------------------------------------------ */
/* v0.6 (modo prueba): foto, nombre comercial, equivalentes, volver    */
/* ------------------------------------------------------------------ */

/* Foto referencial: miniatura chica junto al nombre (no agranda la cabecera). */
.vsbv .vsbv-foto {
    position: relative;
    flex: 0 0 auto;
    display: block;
    width: 84px;
    height: 56px;
    margin: 0 -10px 0 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    line-height: 0;
}
.vsbv button.vsbv-foto { cursor: pointer; }
.vsbv button.vsbv-foto:hover { background: #fff; }
.vsbv .vsbv-foto:focus-visible { outline: 3px solid var(--vsbv-amarillo); outline-offset: 2px; }
.vsbv .vsbv-foto img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: contain; }
/* Lupa en la esquina: indica que se puede ver en grande */
.vsbv-foto-zoom {
    position: absolute;
    right: 3px;
    bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .75);
    color: #fff;
}
.vsbv-foto-zoom svg { display: block; }
.vsbv button.vsbv-foto:hover .vsbv-foto-zoom { background: #000; color: var(--vsbv-amarillo); }

/* Foto en grande. Va fuera de .vsbv (cuelga del <body>): colores y medidas propias. */
html.vsbv-sin-scroll { overflow: hidden; }
.vsbv-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .82);
    font-family: "Open Sans", sans-serif;
    animation: vsbv-aparece .15s ease-out;
}
.vsbv-modal *,
.vsbv-modal *::before,
.vsbv-modal *::after { box-sizing: border-box; }
@keyframes vsbv-aparece { from { opacity: 0; } to { opacity: 1; } }
.vsbv-modal-caja {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 100%;
    overflow: auto;
    padding: 12px 12px 14px;
    border-radius: 14px;
    background: #fff;
    color: #000;
}
.vsbv-modal-img { border-radius: 10px; overflow: hidden; background: #fff; }
.vsbv-modal-img img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 68vh;
    margin: 0;
    object-fit: contain;
}
.vsbv-modal-pie { margin: 8px 4px 0; padding-right: 0; color: #4a4a4a; font-size: 14px; line-height: 1.35; }
.vsbv-modal-pie strong { color: #000; }
.vsbv-modal-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 4px 0; }
.vsbv-modal button { text-transform: none; letter-spacing: normal; box-shadow: none; font-family: inherit; }
.vsbv-modal .vsbv-modal-tab {
    min-height: 0;
    margin: 0;
    padding: 6px 14px;
    border: 1px solid #cfcfcf;
    border-radius: 100px;
    background: #fff;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}
.vsbv-modal .vsbv-modal-tab:hover { border-color: #000; background: #fff; color: #000; }
.vsbv-modal .vsbv-modal-tab.is-sel { border-color: #000; background: #f9ec51; font-weight: 800; }
.vsbv-modal .vsbv-modal-cerrar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.vsbv-modal .vsbv-modal-cerrar:hover { background: #333; color: #fff; }
.vsbv-modal button:focus-visible { outline: 3px solid #f9ec51; outline-offset: 2px; }

/* En PC, el nombre y su bajada se parten en dos líneas antes que mandar los datos (centro,
   rosca…) a otra fila: la cabecera no crece. */
.vsbv--beta .vsbv-ficha-veh { flex: 1 1 200px; }

/* Nombre comercial (GL, GLS, EX…) bajo el nombre técnico de la versión */
.vsbv .vsbv-chip .vsbv-chip-eq { color: #3a3a3a; font-size: 11px; font-weight: 700; }

/* Arma tu pack (llantas + neumáticos) */
.vsbv-link.is-pack { display: inline-flex; align-items: center; gap: 6px; background: #000; }
.vsbv-link.is-pack small { color: #cfcfcf; font-size: 11px; font-weight: 600; }
.vsbv-link.is-pack .vsbv-toggle-n { min-width: 19px; height: 19px; padding: 0 5px; font-size: 13px; }

/* Volver al producto desde el que vino el cliente */
.vsbv-link.is-volver { background: #fff; color: #000 !important; box-shadow: inset 0 0 0 1.5px #000; }
.vsbv-link.is-volver:hover { background: var(--vsbv-fondo-suave); }

/* Botón "Medidas equivalentes": blanco con borde, para no competir con el de medidas estándar */
.vsbv .vsbv-toggle-eq:not(.is-abierto) { background: #fff; color: #000; }
.vsbv .vsbv-toggle-eq:not(.is-abierto):hover { background: var(--vsbv-fondo-suave); color: #000; }
.vsbv .vsbv-toggle-eq:not(.is-abierto)::after { color: #000; }
.vsbv .vsbv-toggle-eq .vsbv-toggle-aro { color: #6b6b6b; }

/* Panel de medidas equivalentes (y lista compartida con la calculadora) */
.vsbv-eq-panel {
    padding: 10px 16px 12px;
    border-top: 1px solid var(--vsbv-borde);
    background: var(--vsbv-fondo-suave);
}
.vsbv-eq-cab h4 {
    margin: 0;
    color: #000;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}
.vsbv-eq-cab h4 b { font-weight: 800; }
.vsbv-eq-cab .vsbv-sub { margin-top: 2px; }
.vsbv-eq-bases { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 700; color: #000; }
.vsbv-eq-cuerpo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.vsbv-eq-cuerpo > .vsbv-estado { grid-column: 1 / -1; margin: 0; }
.vsbv-eq-aro {
    padding: 8px 10px;
    border: 1px solid var(--vsbv-borde);
    border-radius: 10px;
    background: #fff;
}
.vsbv-eq-aro-cab {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    margin-bottom: 2px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--vsbv-borde);
}
.vsbv-eq-aro-tit strong { color: #000; font-size: 14px; }
.vsbv-eq-aro-tit .vsbv-sub { display: block; }
.vsbv-eq-lista { margin: 0; padding: 0; list-style: none; }
.vsbv-eq-lista li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 10px;
    margin: 0;
    padding: 5px 0;
    border-bottom: 1px dashed #ececec;
}
.vsbv-eq-lista li:last-child { border-bottom: 0; }
.vsbv-eq-med { display: inline-flex; align-items: center; gap: 6px; }
.vsbv-eq-med strong { color: #000; font-size: 14px; }
.vsbv-eq-lista li.is-sin .vsbv-eq-med strong { color: #6b6b6b; font-weight: 600; }
.vsbv-eq-dif {
    padding: 0 6px;
    border-radius: 100px;
    background: #fff3c4;
    color: #5c4a00;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
}
.vsbv-eq-dif.is-ok { background: #dff3e2; color: #1d5c2a; }
.vsbv-eq-dif.is-alta { background: #ffe3cc; color: #7a3500; }
/* Opción de neumáticos más altos y aviso de frenos al bajar de aro */
.vsbv-eq-altas {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: #333;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
}
.vsbv-eq-altas b { color: #000; }
.vsbv-eq-altas input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: #000; }
.vsbv-eq-frenos {
    margin: 6px 0 2px;
    padding: 5px 8px;
    border-radius: 8px;
    background: #fff4e5;
    color: #6b3a00;
    font-size: 11px;
    line-height: 1.35;
}
.vsbv-eq-lista .vsbv-eq-mas { display: block; color: var(--vsbv-gris); }
.vsbv-eq-vacio { grid-column: 1 / -1; margin: 0; color: #000; font-size: 13px; }
.vsbv-eq-pie {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
}
.vsbv-eq-pie .vsbv-eq-calc { color: #000 !important; font-size: 12px; font-weight: 700; text-decoration: underline !important; }

/* ------------------------------------------------------------------ */
/* Tablet y móvil                                                      */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .vsbv-panel { grid-template-columns: 1fr; }
    .vsbv-titulo { white-space: normal; }
}

@media (max-width: 767px) {
    /* Todo el ancho del teléfono: el tema y Elementor dejan ~40 px de margen por lado. */
    .vsbv {
        width: calc(100vw - 16px);
        max-width: none;
        margin-left: calc(50% - 50vw + 8px);
        margin-right: calc(50% - 50vw + 8px);
    }
    /* En el home queda alineado con el filtro por medida, que deja 10 px por lado. */
    .vsbv.vsbv--redirige {
        width: calc(100vw - 20px);
        margin-left: calc(50% - 50vw + 10px);
        margin-right: calc(50% - 50vw + 10px);
    }

    /* Barra de búsqueda */
    .vsbv-panel { padding: 12px; border-radius: 12px; }
    .vsbv-titulo { font-size: 18px; }
    .vsbv-form { grid-template-columns: 1fr 1fr; gap: 8px; }
    .vsbv-form .vsbv-campo:first-child { grid-column: 1 / -1; }
    .vsbv .vsbv-form .vsbv-boton { width: 100%; padding: 0 12px; }

    /* Cabecera de la ficha: vehículo | apernadura, y los datos en 4 columnas parejas */
    .vsbv-ficha { border-radius: 12px; }
    .vsbv-ficha-cab {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 12px;
        padding: 12px;
    }
    .vsbv-ficha-veh h3 { font-size: 17px; }
    .vsbv-ficha-veh small { font-size: 11px; }
    .vsbv-ap { flex-direction: column; align-items: center; gap: 1px; padding: 6px 12px; }
    .vsbv-ap span { font-size: 9px; }
    .vsbv-ap strong { font-size: 21px; }
    .vsbv-datos {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        padding-top: 10px;
        border-top: 1px solid #2a2a2a;
    }
    .vsbv-datos dd { font-size: 13px; overflow-wrap: anywhere; }

    /* Versiones: lista a todo el ancho */
    .vsbv-versiones { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px 12px; }
    .vsbv-versiones > b { margin: 0 0 2px; }
    .vsbv .vsbv-chip { width: 100%; padding: 9px 12px; border-radius: 10px; font-size: 13px; }
    .vsbv .vsbv-chip.is-sel::after { content: "✓"; float: right; margin-left: 8px; }

    /* Medidas: una tarjeta por medida; texto a la izquierda, botón a la derecha */
    .vsbv-tabla thead { display: none; }
    .vsbv-tabla, .vsbv-tabla tbody, .vsbv-tabla tr, .vsbv-tabla td { display: block; width: 100%; }
    .vsbv-tabla tr { position: relative; padding: 12px; border-bottom: 1px solid var(--vsbv-borde); }
    .vsbv-tabla tr.is-oculta { display: none; }
    .vsbv-tabla td { padding: 0; border: 0; }
    .vsbv-tabla td + td { margin-top: 10px; }
    .vsbv-tabla td[data-col]::before {
        content: attr(data-col);
        display: block;
        margin-bottom: 3px;
        color: var(--vsbv-gris);
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .03em;
    }
    .vsbv-celda { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; }
    .vsbv-celda > .vsbv-etiqueta { position: absolute; top: 10px; right: 12px; }
    .vsbv-celda strong { font-size: 15px; }
    .vsbv-acc { justify-content: flex-end; }
    .vsbv-acc .vsbv-link { min-width: 136px; padding: 8px 14px; font-size: 13px; text-align: center; }
    .vsbv-tabla td.vsbv-td-presion { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: #000; font-size: 13px; }
    .vsbv-tabla td.vsbv-td-presion::before { display: inline; margin: 0; }
    .vsbv-tabla td.vsbv-td-presion .vsbv-sub { flex-basis: 100%; }

    /* Pie: medidas estándar y todas las llantas a todo el ancho */
    .vsbv-pie { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px; }
    .vsbv .vsbv-pie > .vsbv-link,
    .vsbv .vsbv-pie > .vsbv-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 8px 14px;
        font-size: 14px;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
    }
    .vsbv .vsbv-pie > .vsbv-toggle:not(.is-abierto) { padding-left: 8px; }

    .vsbv-mostrando { padding: 10px 12px; }
    .vsbv-mostrando .vsbv-ayuda { display: none; }

    /* v0.6: foto a la izquierda del nombre; los datos siguen abajo a todo el ancho */
    .vsbv-ficha-cab.con-foto { grid-template-columns: auto minmax(0, 1fr) auto; }
    .vsbv .vsbv-foto { width: 72px; height: 48px; margin: 0; }
    .vsbv .vsbv-chip .vsbv-chip-eq { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
    /* El ✓ de la versión elegida va a la derecha sin abrir una línea en blanco abajo */
    .vsbv--beta .vsbv-chip { position: relative; padding-right: 32px; }
    .vsbv--beta .vsbv-chip.is-sel::after { position: absolute; top: 50%; right: 12px; float: none; margin: 0; transform: translateY(-50%); }

    .vsbv-eq-panel { padding: 12px; }
    .vsbv-eq-cuerpo { grid-template-columns: 1fr; }
    .vsbv-eq-lista li { padding: 7px 0; }
    .vsbv-eq-lista .vsbv-link,
    .vsbv-eq-aro-cab .vsbv-link { padding: 8px 14px; font-size: 13px; }
    .vsbv-eq-aro-cab .vsbv-link { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .vsbv-modal { animation: none; }
    .vsbv-mostrando.is-nuevo { animation: none; }
    .vsbv-estado.is-cargando::before { animation: none; }
}
