/* Extraído de css/style.css para modularizar la capa visual sin cambiar el orden de cascada. */

/* ==========================================================
   CATÁLOGO · ESTABILIDAD CONSOLIDADA
   Propiedades generales que seguían siendo efectivas tras los
   antiguos experimentos de tags. Se conservan aquí sin las
   implementaciones legacy V6-V15.
========================================================== */
.category{
    content-visibility:visible !important;
    contain-intrinsic-size:none !important;
}

.vehicle-card{
    position:relative !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:auto auto !important;
    will-change:auto !important;
}

.vehicle-card > .vehicle-image{
    grid-column:1 !important;
    grid-row:1 !important;
    margin:0 !important;
}

.vehicle-card > .vehicle-content{
    grid-column:1 !important;
    grid-row:2 !important;
}

.vehicle-image{
    position:relative !important;
    overflow:hidden !important;
    isolation:isolate !important;
    container-type:normal !important;
    container-name:none !important;
}

.vehicle-image::after{
    z-index:3 !important;
    pointer-events:none !important;
}

/* ==========================================================
   ONX ES · TAGS DE FOTO · BASE V18
   Base visual estable para los marcadores actuales.
   V19 aplica después el autoajuste al borde realmente visible.
========================================================== */
.vehicle-image{
    position:relative !important;
    overflow:hidden !important;
    isolation:isolate !important;
}

.vehicle-image > .vehicle-photo-markers{
    position:absolute !important;
    inset:0 !important;
    z-index:70 !important;
    display:block !important;
    width:100% !important;
    height:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:hidden !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:none !important;
    contain:none !important;
    content-visibility:visible !important;
}

.vehicle-image > .vehicle-photo-markers > .vehicle-photo-marker{
    --tag-color:#FACC15;
    --tag-border-color:#D1D5DB;
    --tag-icon-color:#111827;
    position:absolute !important;
    top:auto !important;
    left:auto !important;
    z-index:2 !important;
    box-sizing:border-box !important;
    display:grid !important;
    place-items:center !important;
    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    min-height:30px !important;
    max-width:30px !important;
    max-height:30px !important;
    margin:0 !important;
    padding:0 !important;
    color:var(--tag-icon-color) !important;
    background:var(--tag-color) !important;
    border:1px solid var(--tag-border-color) !important;
    border-radius:7px !important;
    font-size:13px !important;
    line-height:1 !important;
    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
    filter:drop-shadow(0 4px 7px rgba(0,0,0,.45)) !important;
    pointer-events:auto !important;
}

.vehicle-image > .vehicle-photo-markers > .vehicle-photo-marker > i{
    position:relative !important;
    z-index:4 !important;
    display:block !important;
    margin:0 !important;
    padding:0 !important;
    color:inherit !important;
    font-size:13px !important;
    line-height:1 !important;
    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
}

.vehicle-image > .vehicle-photo-markers > .vehicle-photo-marker-circle{
    border-radius:50% !important;
}

.vehicle-image > .vehicle-photo-markers > .vehicle-photo-marker-badge{
    border-radius:10px !important;
}

.vehicle-image > .vehicle-photo-markers > .vehicle-photo-marker-triangle{
    width:33px !important;
    min-width:33px !important;
    max-width:33px !important;
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    filter:drop-shadow(0 4px 7px rgba(0,0,0,.45)) !important;
}

.vehicle-image > .vehicle-photo-markers > .vehicle-photo-marker-triangle::before{
    content:"" !important;
    position:absolute !important;
    left:50% !important;
    bottom:0 !important;
    width:0 !important;
    height:0 !important;
    transform:translateX(-50%) !important;
    border-left:16.5px solid transparent !important;
    border-right:16.5px solid transparent !important;
    border-bottom:30px solid var(--tag-border-color) !important;
    z-index:1 !important;
}

.vehicle-image > .vehicle-photo-markers > .vehicle-photo-marker-triangle::after{
    content:"" !important;
    position:absolute !important;
    left:50% !important;
    bottom:2px !important;
    width:0 !important;
    height:0 !important;
    transform:translateX(-50%) !important;
    border-left:14px solid transparent !important;
    border-right:14px solid transparent !important;
    border-bottom:25.5px solid var(--tag-color) !important;
    z-index:2 !important;
}

.vehicle-image > .vehicle-photo-markers > .vehicle-photo-marker-triangle > i{
    z-index:4 !important;
    transform:translateY(4px) !important;
}

.vehicle-image::after{ z-index:3 !important; }
.vehicle-image > .vehicle-image-main{ z-index:2 !important; }
.vehicle-image > .vehicle-photo-markers{ z-index:70 !important; }
.vehicle-image > .vehicle-compare-toggle{ z-index:71 !important; }


/* ==========================================================
   ONX ES · TAGS VISUALES · V19 BORDE VISIBLE
   Solo afecta a los tags sobre la foto del catálogo.
   El grupo se ancla al borde derecho REALMENTE VISIBLE de la
   imagen, incluso si DevTools/resize/otro monitor recorta la card.
========================================================== */
.vehicle-image > .vehicle-photo-markers{
    --photo-marker-safe-right:10px;
    --photo-marker-scale:1;

    position:absolute !important;
    inset:auto !important;
    right:var(--photo-marker-safe-right) !important;
    bottom:10px !important;
    left:auto !important;
    top:auto !important;
    z-index:70 !important;

    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:flex-end !important;
    justify-content:flex-end !important;
    gap:8px !important;

    width:max-content !important;
    max-width:none !important;
    height:auto !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;

    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:none !important;

    transform:scale(var(--photo-marker-scale)) !important;
    transform-origin:bottom right !important;
    will-change:right,transform !important;
}

.vehicle-image > .vehicle-photo-markers > .vehicle-photo-marker{
    position:relative !important;
    inset:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    top:auto !important;
    flex:0 0 auto !important;
    display:grid !important;
    place-items:center !important;
    box-sizing:border-box !important;
    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    min-height:30px !important;
    max-width:30px !important;
    max-height:30px !important;
    margin:0 !important;
    padding:0 !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
}

.vehicle-image > .vehicle-photo-markers > .vehicle-photo-marker-triangle{
    width:33px !important;
    min-width:33px !important;
    max-width:33px !important;
}

/* =======================================================
   Catálogo resiliente · avisos de sincronización v1
   ======================================================= */
.catalog-sync-notifications {
    position: fixed;
    right: clamp(14px, 2vw, 28px);
    bottom: clamp(14px, 2vw, 28px);
    z-index: 99999;
    width: min(420px, calc(100vw - 28px));
    pointer-events: none;
}

.catalog-sync-toast {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: rgba(10, 15, 26, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #f8fafc;
    pointer-events: auto;
    animation: catalogSyncToastIn 180ms ease-out both;
}

.catalog-sync-toast.is-success {
    border-color: rgba(52, 211, 153, 0.36);
}

.catalog-sync-toast.is-warning {
    border-color: rgba(251, 191, 36, 0.36);
}

.catalog-sync-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.18);
    color: #bfdbfe;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.catalog-sync-toast.is-success .catalog-sync-toast-icon {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.2);
    color: #a7f3d0;
}

.catalog-sync-toast.is-warning .catalog-sync-toast-icon {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.2);
    color: #fde68a;
}

.catalog-sync-toast-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.catalog-sync-toast-copy strong {
    color: #f8fafc;
    font-size: 0.92rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.catalog-sync-toast-copy span {
    color: #aeb9ca;
    font-size: 0.79rem;
    line-height: 1.42;
}

.catalog-sync-toast-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #8290a5;
    font: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: color 140ms ease, background 140ms ease;
}

.catalog-sync-toast-close:hover,
.catalog-sync-toast-close:focus-visible {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.07);
    outline: none;
}

.catalog-sync-toast.is-leaving {
    animation: catalogSyncToastOut 180ms ease-in both;
}

@keyframes catalogSyncToastIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes catalogSyncToastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
}

@media (max-width: 640px) {
    .catalog-sync-notifications {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
    }

    .catalog-sync-toast {
        gap: 10px;
        padding: 12px;
        border-radius: 14px;
    }

    .catalog-sync-toast-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-sync-toast,
    .catalog-sync-toast.is-leaving {
        animation: none;
    }
}

/* ==========================================================
   ONX ES · PUBLICIDAD IN-FEED DISCRETA V1
   Se integra en el hueco final de una categoría sin imitar
   una ficha de vehículo ni desplazar el orden del catálogo.
========================================================== */
.catalog-ad-card{
    min-width:0;
    min-height:360px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border-radius:18px;
    border:1px solid rgba(148,163,184,.24);
    background:
        radial-gradient(circle at 50% 0%,rgba(96,165,250,.07),transparent 42%),
        linear-gradient(180deg,rgba(18,28,43,.94),rgba(14,22,34,.96));
    box-shadow:0 8px 18px rgba(0,0,0,.16);
    position:relative;
    isolation:isolate;
}

.catalog-ad-card::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    border-radius:inherit;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.catalog-ad-card__header{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:38px;
    padding:10px 14px 8px;
    border-bottom:1px solid rgba(148,163,184,.1);
}

.catalog-ad-card__label{
    flex:0 0 auto;
    color:#8fa2ba;
    font-size:9px;
    line-height:1;
    font-weight:800;
    letter-spacing:.16em;
    text-transform:uppercase;
}

.catalog-ad-card__separator{
    height:1px;
    flex:1;
    background:linear-gradient(90deg,rgba(148,163,184,.2),transparent);
}

.catalog-ad-card__body{
    min-width:0;
    min-height:300px;
    flex:1;
    display:flex;
    align-items:stretch;
    justify-content:stretch;
    padding:8px;
}

.catalog-ad-unit{
    width:100%;
    min-height:280px;
    flex:1 1 auto;
}

.catalog-ad-preview{
    width:100%;
    min-height:280px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:24px;
    text-align:center;
    color:#70839b;
    border:1px dashed rgba(148,163,184,.16);
    border-radius:13px;
    background:rgba(4,10,18,.22);
}

.catalog-ad-preview i{
    font-size:30px;
    opacity:.6;
}

.catalog-ad-preview strong{
    color:#9eb0c5;
    font-size:13px;
}

.catalog-ad-preview span{
    max-width:220px;
    font-size:10px;
    line-height:1.5;
}

@media (max-width:767px){
    .catalog-ad-card{
        min-height:300px;
    }

    .catalog-ad-card__body,
    .catalog-ad-preview,
    .catalog-ad-unit{
        min-height:240px;
    }
}

/* ==========================================================
   ONX ES · SELECTOR DE IDIOMA ES / EN · V26
   ========================================================== */
.onx-language-switcher{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:3px;
    min-height:34px;
    padding:3px 4px 3px 7px;
    border:1px solid rgba(148,163,184,.14);
    border-radius:999px;
    background:linear-gradient(180deg,rgba(22,31,47,.78),rgba(13,21,34,.78));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 5px 16px rgba(2,8,23,.10);
    color:#7f93aa;
    transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
}

.onx-language-switcher:hover{
    border-color:rgba(148,163,184,.22);
    background:linear-gradient(180deg,rgba(25,35,52,.88),rgba(14,23,37,.88));
}

.onx-language-switcher > i{
    flex:0 0 auto;
    width:11px;
    margin:0 2px 0 0;
    color:#73869d;
    font-size:10px;
    line-height:1;
    text-align:center;
    opacity:.86;
}

.header-buttons .onx-language-switcher .onx-language-option{
    width:auto;
    min-width:27px;
    min-height:26px;
    height:26px;
    padding:0 6px;
    border:1px solid transparent;
    border-radius:999px;
    background:transparent;
    color:#8295ab;
    font-size:10px;
    font-weight:750;
    letter-spacing:.045em;
    line-height:1;
    cursor:pointer;
    box-shadow:none;
    transition:color .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease;
}

.header-buttons .onx-language-switcher .onx-language-option:hover,
.header-buttons .onx-language-switcher .onx-language-option:focus-visible{
    border-color:rgba(148,163,184,.14);
    background:rgba(148,163,184,.07);
    color:#d7e2ef;
    outline:none;
}

.header-buttons .onx-language-switcher .onx-language-option.active,
.header-buttons .onx-language-switcher .onx-language-option[aria-pressed="true"]{
    border-color:rgba(96,165,250,.19);
    background:linear-gradient(180deg,rgba(59,130,246,.16),rgba(37,99,235,.10));
    color:#edf6ff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}

.onx-language-divider{
    display:block;
    width:1px;
    height:12px;
    margin:0 1px;
    overflow:hidden;
    background:rgba(148,163,184,.18);
    color:transparent;
    font-size:0;
    line-height:0;
    user-select:none;
}

@media (max-width:820px){
    .header-buttons .onx-language-switcher{
        width:auto;
        min-width:0;
        flex:0 0 auto;
    }
}


/* ==========================================================
   ONX ES · ACCIONES DE CABECERA · V29
   Rediseño visual de Proponer / Comparar / Restablecer /
   Expandir / Contraer. No afecta idioma, notificaciones o perfil.
   ========================================================== */
.header-action-toolbar{
    display:inline-flex;
    align-items:center;
    gap:4px;
    min-height:46px;
    padding:4px;
    border:1px solid rgba(148,163,184,.13);
    border-radius:14px;
    background:linear-gradient(180deg,rgba(18,29,46,.78),rgba(10,18,31,.72));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025),
        0 8px 24px rgba(2,8,23,.12);
}

.header-action-toolbar > .header-link,
.header-action-toolbar > button{
    position:relative;
    width:auto;
    min-width:0;
    min-height:36px;
    height:36px;
    padding:0 12px;
    border:1px solid transparent;
    border-radius:10px;
    background:transparent;
    color:#aebed1;
    box-shadow:none;
    font-size:13px;
    font-weight:700;
    letter-spacing:-.01em;
    line-height:1;
    text-decoration:none;
    transition:
        color .16s ease,
        background .16s ease,
        border-color .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

.header-action-toolbar > .header-link i,
.header-action-toolbar > button > i{
    width:14px;
    flex:0 0 14px;
    color:#7f94ad;
    font-size:12px;
    line-height:1;
    text-align:center;
    transition:color .16s ease,transform .16s ease;
}

.header-action-toolbar > button:hover:not(:disabled),
.header-action-toolbar > button:focus-visible{
    border-color:rgba(96,165,250,.19);
    background:linear-gradient(180deg,rgba(47,65,94,.34),rgba(25,39,61,.28));
    color:#edf5ff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
    outline:none;
    transform:translateY(-1px);
}

.header-action-toolbar > button:hover:not(:disabled) > i,
.header-action-toolbar > button:focus-visible > i{
    color:#9bc3ff;
}

.header-action-toolbar > .contribute{
    padding-inline:13px 14px;
    border-color:rgba(34,197,94,.30);
    background:linear-gradient(180deg,rgba(34,197,94,.16),rgba(22,163,74,.10));
    color:#ecfdf3;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035),
        0 0 0 1px rgba(34,197,94,.025);
}

.header-action-toolbar > .contribute i{
    color:#68e89a;
    font-size:11px;
}

.header-action-toolbar > .contribute:hover,
.header-action-toolbar > .contribute:focus-visible{
    border-color:rgba(74,222,128,.55);
    background:linear-gradient(180deg,rgba(34,197,94,.23),rgba(22,163,74,.15));
    color:#ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 7px 18px rgba(22,163,74,.10);
    outline:none;
    transform:translateY(-1px);
}

.header-action-toolbar > .header-compare-button{
    gap:7px;
}

.header-action-toolbar > .header-compare-button:disabled{
    opacity:.52;
    color:#8190a3;
    background:transparent;
    border-color:transparent;
    cursor:not-allowed;
}

.header-action-toolbar .header-compare-count{
    min-width:19px;
    height:19px;
    padding:0 5px;
    border-color:rgba(148,163,184,.13);
    background:rgba(15,23,42,.62);
    color:#9fb2c9;
    font-size:10px;
    font-weight:800;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.header-action-toolbar > .header-compare-button:not(:disabled) .header-compare-count{
    border-color:rgba(96,165,250,.20);
    background:rgba(37,99,235,.10);
    color:#cfe4ff;
}

.header-action-separator{
    width:1px;
    height:20px;
    flex:0 0 1px;
    margin:0 2px;
    background:linear-gradient(180deg,transparent,rgba(148,163,184,.22),transparent);
    pointer-events:none;
}

@media (max-width:1100px){
    .header-action-toolbar{
        flex-wrap:wrap;
    }
}

@media (max-width:820px){
    .header-action-toolbar{
        grid-column:1/-1;
        width:100%;
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:6px;
        padding:6px;
        border-radius:13px;
    }

    .header-action-toolbar > .header-link,
    .header-action-toolbar > button{
        width:100%;
        min-height:40px;
        height:40px;
        padding-inline:10px;
    }

    .header-action-toolbar > .contribute{
        grid-column:1/-1;
    }

    .header-action-toolbar > .header-compare-button{
        grid-column:1/-1;
    }

    .header-action-separator{
        display:none;
    }
}

@media (max-width:480px) and (pointer:coarse){
    .header-action-toolbar{
        grid-template-columns:minmax(0,1fr);
    }

    .header-action-toolbar > .contribute,
    .header-action-toolbar > .header-compare-button{
        grid-column:auto;
    }
}


/* ==========================================================
   ADSENSE READY V97 · TRANSPARENCIA PÚBLICA Y ADS
========================================================== */
.site-footer-links{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:7px 14px;
    min-width:0;
}
.site-footer-links a{
    color:#8295ac;
    font-size:10px;
    font-weight:700;
    line-height:1.35;
    text-decoration:none;
    transition:color .16s ease;
}
.site-footer-links a:hover{color:#c1d1e4}

.catalog-ad-card{
    border-style:dashed;
    border-color:rgba(96,165,250,.24);
    box-shadow:0 8px 18px rgba(0,0,0,.11);
}
.catalog-ad-card__header{
    background:rgba(30,64,175,.045);
}
.catalog-ad-card__label{
    color:#93b4d8;
    font-size:10px;
    letter-spacing:.14em;
}
.catalog-ad-card__body{
    cursor:default;
}
@media(max-width:900px){
    .site-footer-links{order:4;width:100%;}
}


/* ==========================================================
   V120 · DESPLEGABLES BUSCABLES DEL INDEX
   Mismo patrón visual que los selectores integrados de Admin.
========================================================== */
.toolbar > .index-searchable-select{
    position:relative;
    flex:1;
    min-width:170px;
    min-height:50px;
}
.index-searchable-select-native{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    opacity:0!important;
    pointer-events:none!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
}
.index-searchable-select-trigger{
    width:100%;
    min-width:0;
    min-height:50px;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:0 15px;
    border:1px solid var(--border);
    border-radius:12px;
    outline:none;
    background:var(--card);
    color:#fff;
    font:inherit;
    font-size:15px;
    font-weight:500;
    text-align:left;
    cursor:pointer;
    transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.index-searchable-select-trigger:hover,
.index-searchable-select.is-open .index-searchable-select-trigger{
    border-color:color-mix(in srgb,var(--blue) 58%,var(--border));
    background:color-mix(in srgb,var(--card) 94%,var(--blue));
}
.index-searchable-select.is-open .index-searchable-select-trigger,
.index-searchable-select-trigger:focus-visible{
    border-color:var(--blue);
    box-shadow:0 0 0 3px rgba(59,130,246,.12);
}
.index-searchable-select-value{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.index-searchable-select-trigger > i{
    flex:0 0 auto;
    color:var(--text2);
    font-size:11px;
    transition:transform .18s ease,color .18s ease;
}
.index-searchable-select.is-open .index-searchable-select-trigger > i{
    transform:rotate(180deg);
    color:#93c5fd;
}
.index-searchable-select-menu{
    position:absolute;
    z-index:5000;
    top:calc(100% + 7px);
    left:0;
    width:100%;
    min-width:220px;
    max-width:min(390px,calc(100vw - 24px));
    padding:8px;
    border:1px solid rgba(96,165,250,.24);
    border-radius:13px;
    background:#0b1525;
    box-shadow:0 18px 48px rgba(0,0,0,.44),0 0 0 1px rgba(255,255,255,.018) inset;
}
.index-searchable-select.opens-up .index-searchable-select-menu{
    top:auto;
    bottom:calc(100% + 7px);
}
.index-searchable-select-menu[hidden]{display:none!important;}
.index-searchable-select-search{
    position:relative;
    display:block;
    margin:0 0 7px;
}
.index-searchable-select-search > i{
    position:absolute;
    z-index:1;
    left:13px;
    top:50%;
    transform:translateY(-50%);
    color:#71819a;
    font-size:11px;
    pointer-events:none;
}
.index-searchable-select-search input{
    width:100%;
    min-height:40px;
    padding:0 12px 0 35px!important;
    border:1px solid rgba(148,163,184,.16);
    border-radius:10px;
    outline:none;
    background:#101c2f;
    color:#eef6ff;
    font-size:13px;
}
.index-searchable-select-search input::placeholder{color:#708198;}
.index-searchable-select-search input:focus{
    border-color:rgba(96,165,250,.50);
    box-shadow:0 0 0 3px rgba(37,99,235,.09);
}
.index-searchable-select-options{
    display:grid;
    gap:3px;
    max-height:280px;
    overflow:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
}
.index-searchable-select-option{
    width:100%;
    min-height:40px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:8px 10px;
    border:1px solid transparent;
    border-radius:9px;
    background:transparent;
    color:#b8c7da;
    font:inherit;
    font-size:13px;
    text-align:left;
    cursor:pointer;
}
.index-searchable-select-option:hover,
.index-searchable-select-option:focus-visible{
    border-color:rgba(96,165,250,.20);
    background:rgba(59,130,246,.09);
    color:#eef6ff;
    outline:none;
}
.index-searchable-select-option[aria-selected="true"]{
    border-color:rgba(96,165,250,.28);
    background:rgba(37,99,235,.14);
    color:#dbeafe;
}
.index-searchable-select-option > span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.index-searchable-select-option > i{
    flex:0 0 auto;
    color:#60a5fa;
    font-size:10px;
}
.index-searchable-select-empty{
    padding:15px 10px;
    color:#708198;
    font-size:12px;
    text-align:center;
}

@media (max-width:820px){
    .toolbar > .index-searchable-select{
        width:100%;
        min-width:0;
    }
    .index-searchable-select-menu{
        min-width:100%;
        max-width:min(420px,calc(100vw - 32px));
    }
    .index-searchable-select-options{max-height:240px;}
    .index-searchable-select-search input{
        min-height:44px;
        font-size:16px!important;
    }
    .index-searchable-select-option{
        min-height:44px;
        font-size:14px;
    }
}

@media (max-width:480px){
    .toolbar > .index-searchable-select{
        flex:none;
        width:100%;
    }
    .index-searchable-select-trigger{
        min-height:48px;
        font-size:14px;
    }
    .index-searchable-select-menu{
        width:100%;
        min-width:0;
        max-width:100%;
    }
}

/* ==========================================================
   V128 · INDEX · FOOTER EN UNA SOLA FILA EN ESCRITORIO
   El footer tiene cuatro bloques reales; la rejilla anterior
   solo declaraba tres columnas y empujaba el crédito/© abajo.
   ========================================================== */
@media (min-width:1101px){
    .site-footer-shell{
        grid-template-columns:auto minmax(220px,1fr) auto auto;
        gap:clamp(14px,1.25vw,24px);
    }

    .site-footer-brand,
    .site-footer-status,
    .site-footer-links,
    .site-footer-credit{
        min-width:0;
    }

    .site-footer-credit{
        flex-direction:row;
        align-items:center;
        justify-content:flex-end;
        gap:8px;
        white-space:nowrap;
    }

    .site-footer-credit > span{
        white-space:nowrap;
    }
}

@media (min-width:851px) and (max-width:1100px){
    .site-footer-shell{
        grid-template-columns:auto minmax(0,1fr) auto;
        row-gap:10px;
    }

    .site-footer-links{
        grid-column:1 / -1;
        width:100%;
        justify-self:center;
    }

    .site-footer-credit{
        flex-direction:row;
        align-items:center;
        gap:8px;
        white-space:nowrap;
    }
}

@media (max-width:850px){
    .site-footer-credit{
        flex-direction:row;
        align-items:center;
        justify-content:center;
        gap:8px;
        flex-wrap:wrap;
    }
}


/* ==========================================================
   V135 · CONTENIDO EDITORIAL PÚBLICO / ADSENSE QUALITY
   Contenido útil, estático y siempre rastreable bajo el catálogo.
   ========================================================== */
.catalog-editorial{
    width:min(1540px,calc(100% - 40px));
    margin:34px auto 28px;
    padding:28px;
    border:1px solid rgba(148,163,184,.14);
    border-radius:24px;
    background:linear-gradient(145deg,rgba(14,25,41,.96),rgba(9,17,29,.96));
    box-shadow:0 20px 55px rgba(0,0,0,.16);
}

.catalog-editorial-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:24px;
    padding-bottom:22px;
    border-bottom:1px solid rgba(148,163,184,.11);
}

.catalog-editorial-heading > div{min-width:0;max-width:920px}
.catalog-editorial-kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#60a5fa;
    font-size:10px;
    font-weight:900;
    letter-spacing:.17em;
}
.catalog-editorial-heading h2{
    margin:9px 0 8px;
    color:#f1f5f9;
    font-size:clamp(22px,2.2vw,31px);
    line-height:1.12;
    letter-spacing:-.025em;
}
.catalog-editorial-heading p{
    margin:0;
    max-width:850px;
    color:#93a7bd;
    font-size:13px;
    line-height:1.7;
}
.catalog-editorial-guide-link{
    flex:0 0 auto;
    min-height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:0 15px;
    border:1px solid rgba(96,165,250,.25);
    border-radius:12px;
    color:#dbeafe;
    background:rgba(37,99,235,.1);
    text-decoration:none;
    font-size:12px;
    font-weight:800;
    transition:.18s ease;
}
.catalog-editorial-guide-link:hover{
    border-color:rgba(96,165,250,.42);
    background:rgba(37,99,235,.16);
    transform:translateY(-1px);
}
.catalog-editorial-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-top:20px;
}
.catalog-editorial-card{
    min-width:0;
    padding:18px;
    border:1px solid rgba(148,163,184,.12);
    border-radius:17px;
    background:rgba(12,22,36,.76);
}
.catalog-editorial-card-icon{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    margin-bottom:13px;
    border:1px solid rgba(96,165,250,.18);
    border-radius:12px;
    color:#93c5fd;
    background:rgba(37,99,235,.1);
}
.catalog-editorial-card h3{
    margin:0 0 8px;
    color:#e5edf7;
    font-size:14px;
}
.catalog-editorial-card p{
    margin:0;
    color:#879bb2;
    font-size:12px;
    line-height:1.68;
}
.catalog-editorial-note{
    display:flex;
    align-items:flex-start;
    gap:11px;
    margin-top:16px;
    padding:14px 16px;
    border:1px solid rgba(56,189,248,.13);
    border-radius:14px;
    color:#8fa5bb;
    background:rgba(14,116,144,.055);
}
.catalog-editorial-note > i{margin-top:3px;color:#67e8f9}
.catalog-editorial-note p{margin:0;font-size:11.5px;line-height:1.65}
.catalog-editorial-note strong{color:#c9d9e9}

@media(max-width:1180px){
    .catalog-editorial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
    .catalog-editorial{width:min(100% - 22px,1540px);margin:24px auto 20px;padding:19px;border-radius:18px}
    .catalog-editorial-heading{align-items:flex-start;flex-direction:column;gap:15px;padding-bottom:18px}
    .catalog-editorial-guide-link{width:100%}
    .catalog-editorial-grid{grid-template-columns:1fr;gap:10px;margin-top:15px}
    .catalog-editorial-card{padding:16px}
}


@media (max-width:620px){
    #adminLogo{
        gap:12px;
    }

    #adminLogo .logo-img{
        width:48px;
        height:48px;
        padding:2px;
        border-radius:12px;
    }

    #adminLogo h1{
        font-size:20px;
    }

    #adminLogo span{
        font-size:11px;
    }
}

/* =======================================================
   Catálogo · arranque frío de Render v2
   Solo se muestra cuando no existe snapshot local usable.
   ======================================================= */
.catalog-boot-state{
    position:relative;
    width:min(760px,100%);
    min-height:210px;
    margin:18px auto 34px;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:22px;
    padding:28px;
    border:1px solid rgba(96,165,250,.2);
    border-radius:22px;
    background:
        radial-gradient(circle at 92% 0%, rgba(59,130,246,.14), transparent 260px),
        linear-gradient(180deg, rgba(13,22,37,.96), rgba(8,15,26,.97));
    box-shadow:0 20px 52px rgba(0,0,0,.24);
    overflow:hidden;
}

.catalog-boot-state::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(115deg, transparent 12%, rgba(255,255,255,.025) 48%, transparent 78%);
}

.catalog-boot-visual{
    position:relative;
    z-index:1;
    width:70px;
    height:70px;
    display:grid;
    place-items:center;
    border:1px solid rgba(96,165,250,.24);
    border-radius:20px;
    background:rgba(37,99,235,.11);
    color:#93c5fd;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 14px 30px rgba(0,0,0,.18);
}

.catalog-boot-spinner{
    width:30px;
    height:30px;
    border:3px solid rgba(147,197,253,.2);
    border-top-color:#60a5fa;
    border-radius:50%;
    animation:catalogBootSpin .8s linear infinite;
}

.catalog-boot-state.is-ready .catalog-boot-visual{
    border-color:rgba(52,211,153,.28);
    background:rgba(16,185,129,.1);
    color:#86efac;
}

.catalog-boot-state.is-ready .catalog-boot-visual i{
    font-size:26px;
}

.catalog-boot-copy{
    position:relative;
    z-index:1;
    min-width:0;
}

.catalog-boot-kicker{
    display:block;
    margin-bottom:7px;
    color:#7fb7fb;
    font-size:10px;
    font-weight:900;
    letter-spacing:.16em;
    text-transform:uppercase;
}

.catalog-boot-state.is-ready .catalog-boot-kicker{
    color:#6ee7b7;
}

.catalog-boot-copy h2{
    margin:0;
    color:#f8fbff;
    font-size:clamp(20px,2vw,28px);
    line-height:1.15;
    letter-spacing:-.025em;
}

.catalog-boot-copy p{
    max-width:590px;
    margin:9px 0 17px;
    color:#9eafc4;
    font-size:13px;
    line-height:1.65;
}

.catalog-boot-progress{
    width:min(420px,100%);
    height:5px;
    overflow:hidden;
    border-radius:999px;
    background:rgba(148,163,184,.12);
}

.catalog-boot-progress span{
    display:block;
    width:36%;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg,#2563eb,#60a5fa,#93c5fd);
    animation:catalogBootProgress 1.55s ease-in-out infinite;
}

.catalog-boot-state.is-ready .catalog-boot-progress span{
    width:100%;
    background:linear-gradient(90deg,#059669,#34d399);
    animation:none;
}

@keyframes catalogBootSpin{
    to{transform:rotate(360deg)}
}

@keyframes catalogBootProgress{
    0%{transform:translateX(-115%)}
    55%{transform:translateX(120%)}
    100%{transform:translateX(260%)}
}

@media(max-width:640px){
    .catalog-boot-state{
        grid-template-columns:1fr;
        gap:16px;
        min-height:0;
        margin:10px auto 26px;
        padding:22px 19px;
        border-radius:18px;
    }

    .catalog-boot-visual{
        width:58px;
        height:58px;
        border-radius:17px;
    }

    .catalog-boot-copy p{
        margin-bottom:15px;
    }
}

@media(prefers-reduced-motion:reduce){
    .catalog-boot-spinner,
    .catalog-boot-progress span{
        animation-duration:2.6s;
    }
}


/* ==========================================================
   ONX ES · EDITORIAL RESOURCE HUB · ADSENSE CONTENT V144
========================================================== */
.catalog-editorial-resource-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin-top:14px;
}
.catalog-editorial-resource{
    min-width:0;
    display:grid;
    grid-template-columns:42px minmax(0,1fr) 16px;
    align-items:center;
    gap:12px;
    padding:15px;
    border:1px solid rgba(148,163,184,.13);
    border-radius:17px;
    color:#dbeafe;
    background:linear-gradient(180deg,rgba(12,21,35,.84),rgba(8,15,26,.90));
    text-decoration:none;
    transition:transform .17s ease,border-color .17s ease,background .17s ease;
}
.catalog-editorial-resource:hover{
    transform:translateY(-2px);
    border-color:rgba(96,165,250,.30);
    background:linear-gradient(180deg,rgba(17,29,48,.92),rgba(9,17,29,.94));
}
.catalog-editorial-resource>span{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border:1px solid rgba(96,165,250,.18);
    border-radius:13px;
    color:#8ec5ff;
    background:rgba(37,99,235,.10);
}
.catalog-editorial-resource strong{display:block;margin-bottom:5px;color:#eef6ff;font-size:12.5px}
.catalog-editorial-resource p{margin:0;color:#94a7bd;font-size:10.8px;line-height:1.58}
.catalog-editorial-resource>i{color:#5f7d9f;font-size:11px}
@media(max-width:1080px){.catalog-editorial-resource-grid{grid-template-columns:1fr}}
@media(max-width:620px){
    .catalog-editorial-resource{grid-template-columns:38px minmax(0,1fr) 14px;padding:13px;gap:10px}
    .catalog-editorial-resource>span{width:38px;height:38px;border-radius:12px}
}


/* ==========================================================
   V164 · BROKEN VIRTUAL / AVISO OPERATIVO TEMPORAL
========================================================== */
.vehicle-broken-alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 2px;
    padding: 9px 11px;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, .28);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(63, 38, 7, .72), rgba(34, 21, 6, .64));
    color: #fde68a;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, .03) inset, 0 0 20px rgba(245, 158, 11, .05);
}

.vehicle-broken-alert::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(251, 191, 36, .08) 48%, transparent 66%);
    transform: translateX(-120%);
    animation: onxBrokenNoticeSweep 5.5s ease-in-out infinite;
}

.vehicle-broken-alert > i {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    color: #fbbf24;
    font-size: 14px;
}

.vehicle-broken-alert > div {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.vehicle-broken-alert small {
    color: #f59e0b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
}

.vehicle-broken-alert strong {
    display: -webkit-box;
    overflow: hidden;
    color: #fde9ad;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.vehicle-detail-broken-notice {
    position: relative;
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 17px;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, .32);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(61, 36, 7, .82), rgba(28, 18, 7, .88));
    box-shadow: 0 14px 36px rgba(0, 0, 0, .16), 0 0 26px rgba(245, 158, 11, .06);
}

.vehicle-detail-broken-notice[hidden] { display: none !important; }

.vehicle-detail-broken-notice::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 35%, rgba(251, 191, 36, .08) 50%, transparent 65%);
    transform: translateX(-125%);
    animation: onxBrokenNoticeSweep 5.5s ease-in-out infinite;
}

.vehicle-detail-broken-notice-icon {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fbbf24;
    background: rgba(245, 158, 11, .15);
    box-shadow: 0 0 18px rgba(245, 158, 11, .08);
}

.vehicle-detail-broken-notice > div {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: grid;
    gap: 4px;
}

.vehicle-detail-broken-notice-kicker {
    color: #f59e0b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
}

.vehicle-detail-broken-notice strong {
    color: #fff0bd;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.55;
}

@keyframes onxBrokenNoticeSweep {
    0%, 68%, 100% { transform: translateX(-125%); }
    82% { transform: translateX(125%); }
}

@media (prefers-reduced-motion: reduce) {
    .vehicle-broken-alert::after,
    .vehicle-detail-broken-notice::after { animation: none; }
}

@media (max-width: 640px) {
    .vehicle-detail-broken-notice { padding: 13px 14px; }
    .vehicle-detail-broken-notice strong { font-size: 12px; }
}


/* ==========================================================
   V165 · DETALLE VEHÍCULO · PATRULLAS TEMPORALES BROKEN
========================================================== */
.vehicle-detail-info-item-temporary {
    position: relative;
    border-color: rgba(245, 158, 11, .42);
    background: linear-gradient(180deg, rgba(43, 27, 8, .92), rgba(24, 17, 9, .96));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 0 0 1px rgba(245, 158, 11, .10),
        0 0 16px rgba(245, 158, 11, .12),
        0 10px 22px rgba(0,0,0,.18);
}

.vehicle-detail-info-item-temporary span {
    color: #f3b840;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vehicle-detail-info-item-temporary span i {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, .22));
}

.vehicle-detail-info-item-temporary strong {
    color: #fff3d4;
}

/* =========================================================
   v14 · Bloque editorial rastreable de portada (AdSense/SEO)
   ========================================================= */
.catalog-seo-intro{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:24px auto 18px;width:min(1480px,calc(100% - 40px));padding:24px 28px;border:1px solid rgba(91,137,198,.25);border-radius:18px;background:linear-gradient(135deg,rgba(11,24,42,.96),rgba(9,18,32,.95));box-shadow:0 18px 50px rgba(0,0,0,.16)}.catalog-seo-intro>div:first-child{max-width:980px}.catalog-seo-intro h2{margin:6px 0 10px;color:#f4f8ff;font-size:clamp(22px,2vw,31px)}.catalog-seo-intro p{margin:7px 0;color:#aebfd5;line-height:1.65}.catalog-seo-intro-actions{display:flex;flex-direction:column;gap:9px;min-width:245px}.catalog-seo-intro-actions a{display:flex;align-items:center;gap:9px;justify-content:center;padding:11px 14px;border:1px solid rgba(92,158,242,.35);border-radius:11px;background:rgba(20,48,81,.55);color:#dbeaff;font-weight:800;text-decoration:none;font-size:13px}.catalog-seo-intro-actions a:hover{background:rgba(33,73,121,.7)}@media(max-width:820px){.catalog-seo-intro{align-items:stretch;flex-direction:column;width:min(100% - 20px,1480px);padding:20px}.catalog-seo-intro-actions{min-width:0}}
