/* =============================================================
   ZONAVAG — SISTEMA DE DISEÑO (tema claro)
   Una sola hoja para toda la web. Mobile first.
   ============================================================= */

/* ---------- 1. Tokens ---------- */
[hidden] { display: none !important; }

:root {
    --bg: #f7f7f8;
    --surface: #ffffff;
    --surface-2: #f2f2f4;
    --border: #e5e5e7;
    --border-strong: #d4d4d8;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --accent: #1d4ed8;
    --accent-hover: #1e40af;
    --accent-soft: #eef2ff;
    --accent-ring: rgba(29, 78, 216, 0.18);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
    --shadow-hover: 0 4px 12px rgba(16, 24, 40, 0.08);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --wrap: 1120px;
    --gutter: 16px;
    --header-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin: 0; color: var(--text); text-transform: none; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wrap, .container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
main { display: block; }

.section { padding-block: 40px; }
@media (min-width: 768px) { .section { padding-block: 56px; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: 22px; }
@media (min-width: 768px) { .section-head h2 { font-size: 26px; } }
.section-head a { font-size: 14px; font-weight: 600; white-space: nowrap; }
.section-lead { color: var(--muted); font-size: 15px; margin: -8px 0 20px; max-width: 640px; }

/* ---------- 3. Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.site-logo { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.site-logo:hover { color: var(--text); }
.site-logo span { color: var(--accent); }

.site-nav { display: none; }
.site-nav a { color: var(--text); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm); }
.site-nav a:hover { color: var(--accent); background: var(--accent-soft); }
.site-nav a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; margin-right: -11px;
    background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
    .site-nav.is-open {
        display: flex; flex-direction: column;
        position: absolute; top: var(--header-h); left: 0; right: 0;
        padding: 8px var(--gutter) 16px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-hover);
    }
    .site-nav.is-open a { padding: 12px; font-size: 16px; }
}
@media (min-width: 1024px) {
    .nav-toggle { display: none; }
    .site-nav { display: flex; gap: 2px; }
    .site-nav a { padding: 8px 10px; }
}

/* ---------- 4. Footer ---------- */
.site-footer { margin-top: 40px; padding: 32px 0 28px; background: var(--surface); border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.site-footer__inner { display: grid; gap: 16px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__links a { color: var(--muted); }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__copy { font-size: 13px; }
@media (min-width: 768px) {
    .site-footer__inner { grid-template-columns: auto 1fr; align-items: center; }
    .site-footer__links { justify-content: flex-end; }
    .site-footer__copy { grid-column: 1 / -1; }
}

/* ---------- 5. Componentes ---------- */
.btn, .btn-primary, .btn-share, .btn-legal-accept {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px;
    font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; text-transform: none; letter-spacing: 0;
    color: #fff; background: var(--accent);
    border: 1px solid var(--accent); border-radius: var(--radius-sm);
    cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover, .btn-primary:hover, .btn-share:hover, .btn-legal-accept:hover { color: #fff; background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px;
    font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0;
    color: var(--text); background: var(--surface);
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.btn--ghost:hover, .btn-ghost:hover { color: var(--accent); background: var(--surface); border-color: var(--accent); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0;
    display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
    font-size: 14px; font-weight: 500; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
    cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip:hover { color: var(--accent); border-color: var(--accent); }
.chip.is-active, .chip[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }

.tag {
    display: inline-flex; align-items: center;
    padding: 3px 8px; font-size: 12px; font-weight: 600; line-height: 1.4;
    color: var(--muted); background: var(--surface-2); border-radius: 6px;
}
.tag--accent { color: var(--accent); background: var(--accent-soft); }

.badge { display: inline-block; padding: 3px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; border-radius: 6px; color: var(--muted); background: var(--surface-2); }
.badge-green, .badge-yellow, .badge-red, .badge-gray { color: var(--muted) !important; background: var(--surface-2) !important; }
.badge-green { color: var(--accent) !important; background: var(--accent-soft) !important; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.link-card { display: flex; flex-direction: column; gap: 10px; color: var(--text); transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.link-card:hover { color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.link-card h3 { font-size: 17px; }
.link-card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.link-card .more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); }
.link-card p { font-size: 14px; color: var(--muted); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table-scroll table { border: 0; }

/* ---------- 6. Banner de cookies ---------- */
.cookie-banner {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9999;
    display: flex; flex-direction: column; gap: 12px;
    max-width: 720px; margin-inline: auto; padding: 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0; }
.cookie-banner a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 8px; }
.cookie-buttons button { flex: 1; }
@media (min-width: 600px) {
    .cookie-banner { flex-direction: row; align-items: center; }
    .cookie-buttons button { flex: none; }
}

/* ---------- 7. Portada ---------- */
.hero { padding: 40px 0 28px; }
@media (min-width: 768px) { .hero { padding: 72px 0 40px; text-align: center; } }
.hero h1 { font-size: 30px; letter-spacing: -0.02em; max-width: 760px; }
@media (min-width: 768px) { .hero h1 { font-size: 44px; margin-inline: auto; } }
.hero__sub { margin-top: 12px; font-size: 16px; color: var(--muted); max-width: 640px; }
@media (min-width: 768px) { .hero__sub { font-size: 18px; margin-inline: auto; } }

.search { position: relative; margin-top: 24px; max-width: 720px; }
@media (min-width: 768px) { .search { margin: 32px auto 0; text-align: left; } }
.search__field { position: relative; }
.search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: flex; }
.search__input {
    width: 100%; height: 56px; padding: 0 16px 0 48px;
    font-size: 16px; color: var(--text);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow); outline: none; -webkit-appearance: none; appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
@media (min-width: 768px) { .search__input { height: 64px; font-size: 17px; } }
.search__input::placeholder { color: #9a9aa0; }
@media (max-width: 400px) { .search__input { padding-left: 44px; padding-right: 12px; } .search__input::placeholder { font-size: 15px; } .search__icon { left: 14px; } }
.search__input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__results {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
    max-height: min(420px, 60vh); overflow-y: auto; margin: 0; padding: 6px; list-style: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
}
.search__results[hidden] { display: none; }
.search__option a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); }
.search__option a:hover, .search__option[aria-selected="true"] a { background: var(--accent-soft); color: var(--text); }
.search__option strong { font-size: 15px; font-weight: 600; }
.search__option span { font-size: 13px; color: var(--muted); }
.search__empty { padding: 12px; font-size: 14px; color: var(--muted); }
.search__hint { margin-top: 10px; font-size: 13px; color: var(--muted); }

.brands { padding: 4px 0 8px; }
@media (min-width: 768px) { .brands .chip-row { justify-content: center; } }

.engine-card .code { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.engine-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.engine-card dt { color: var(--muted); }
.engine-card dd { margin: 0; font-weight: 500; }

.issue-card .engine { font-size: 13px; font-weight: 600; color: var(--accent); }

.news-list[hidden] { display: none; }
.news-item .date { font-size: 13px; color: var(--muted); }

/* ---------- 8. Cabeceras de página (páginas interiores) ---------- */
.page-header, .motors-page-header { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 8px; border: 0; }
@media (min-width: 768px) { .page-header, .motors-page-header { padding-top: 48px; } }
.page-header-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.section-tag, .mph-tag { display: inline-block; font-size: 13px !important; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--accent) !important; margin: 0 0 8px; }
.header-line { display: none; }
.page-title, .mph-title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; text-transform: none; color: var(--text); margin: 0 0 8px; }
.mph-title span { color: inherit; }
@media (min-width: 768px) { .page-title, .mph-title { font-size: 36px; } }
.page-desc, .mph-desc { font-size: 16px; color: var(--muted); max-width: 640px; margin: 0; }
.page-header-actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.section-title { font-size: 26px; font-weight: 700; text-transform: none; color: var(--text); margin: 0 0 8px; letter-spacing: -0.01em; }
.section-desc { font-size: 16px; color: var(--muted); max-width: 640px; margin: 0 0 24px; }
.section-divider { height: 1px; max-width: var(--wrap); margin: 32px auto; background: var(--border); }
.section-divider > * { display: none; }
.reveal-up { opacity: 1 !important; transform: none !important; }

/* ---------- 9. Listado de motores ---------- */
.mph-stats { display: flex; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.mph-stat { display: flex; flex-direction: column; }
.mph-stat-n { font-size: 22px; font-weight: 700; color: var(--text); }
.mph-stat-l { font-size: 13px; color: var(--muted); }
.mph-stat-div { width: 1px; background: var(--border); }

.search-wrapper { position: relative; margin-bottom: 16px; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--muted); pointer-events: none; }
.engine-search {
    width: 100%; height: 52px; padding: 0 16px 0 44px; font-size: 16px; color: var(--text);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
    outline: none; box-shadow: var(--shadow);
}
.engine-search:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }

.filter-tabs { display: flex; gap: 8px; margin: 0 0 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
    flex-shrink: 0; min-height: 40px; padding: 8px 14px;
    font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; white-space: nowrap;
    color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
}
.filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.filter-tab.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.brand-filter { margin-bottom: 8px; }
.brand-filter .chip { min-height: 36px; padding: 6px 14px; font-size: 13px; }

.engine-group { margin-top: 32px; }
.group-header-new { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ghn-bar, .ghn-slash, .ghn-line { display: none; }
.ghn-title { font-size: 22px; font-weight: 700; text-transform: none; }
.ghn-sub { font-size: 14px; color: var(--muted); margin-top: 2px; text-transform: none; letter-spacing: 0; }
.ghn-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ghn-count { display: flex; align-items: baseline; gap: 4px; }
.ghn-count-n { font-size: 15px; font-weight: 700; }
.ghn-count-l { font-size: 13px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.ghn-family-badge { display: none; }

.engine-grid-new { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .engine-grid-new { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .engine-grid-new { grid-template-columns: repeat(3, 1fr); } }
.engine-card-new {
    display: flex; flex-direction: column; color: var(--text); text-decoration: none;
    padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.engine-card-new:hover { color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-hover); }
.ecn-top-bar { display: none; }
.ecn-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ecn-type-badge { padding: 3px 8px; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 6px; }
.ecn-category { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.ecn-years { margin-left: auto; font-size: 13px; color: var(--muted); }
.ecn-code-name { font-size: 18px; font-weight: 700; text-transform: none; margin: 0 0 2px; }
.ecn-full-name { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.ecn-reliability { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ecn-segs { display: inline-flex; gap: 3px; }
.ecn-seg { width: 16px; height: 6px; border-radius: 3px; background: var(--border); }
.ecn-seg.seg-on { background: var(--accent); }
.ecn-rel-value { font-size: 14px; font-weight: 600; }
.ecn-rel-label { font-size: 13px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.ecn-divider { height: 1px; background: var(--border); margin-bottom: 12px; }
.ecn-variants-header { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.ecn-variants-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ecn-variant-row { display: grid; grid-template-columns: 76px 1fr 40px; align-items: center; gap: 10px; }
.ecn-variant-code { font-size: 13px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecn-variant-bar-wrap { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.ecn-variant-bar { height: 6px; background: var(--accent); border-radius: 3px; opacity: 0.85; }
.ecn-variant-cv { font-size: 14px; font-weight: 600; text-align: right; }
.ecn-more { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.ecn-expand-hint { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); text-transform: none; letter-spacing: 0; }

/* ---------- 10. Ficha de motor ---------- */
.motor-hero { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter) 8px; background: none; border: 0; }
@media (min-width: 768px) { .motor-hero { padding-top: 40px; } }
.motor-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 16px; text-transform: none; letter-spacing: 0; }
.motor-breadcrumb a { color: var(--muted); }
.motor-breadcrumb a:hover { color: var(--accent); }
.motor-code-large { display: inline-block; padding: 4px 10px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 6px; letter-spacing: 0.02em; text-transform: none; }
.motor-title { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; text-transform: none; margin: 0 0 12px; }
@media (min-width: 768px) { .motor-title { font-size: 40px; } }
.motor-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.motor-badge { padding: 4px 10px; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.mbadge-diesel, .mbadge-gasolina, .mbadge-performance, .mbadge-hibrido { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.motor-power-display { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0; border: 0; }
@media (min-width: 768px) { .motor-power-display { grid-template-columns: repeat(4, 1fr); } }
.power-stat { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.power-stat-value { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.2; }
.power-stat-value span { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.power-stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; text-transform: none; letter-spacing: 0; }
.power-stat-stars { font-size: 18px !important; color: var(--accent); letter-spacing: 1px; }

.motor-body { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gutter) 24px; }
.motor-section { padding: 28px 0 0; border: 0; }
.motor-section-tag { display: none; }
.motor-section-title { font-size: 22px; font-weight: 700; text-transform: none; letter-spacing: -0.01em; margin: 0 0 16px; }
@media (min-width: 768px) { .motor-section-title { font-size: 24px; } }

.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 768px) { .specs-grid { grid-template-columns: repeat(3, 1fr); } }
.spec-item { padding: 14px 16px; background: var(--surface); }
.spec-label { font-size: 13px; color: var(--muted); margin-bottom: 4px; text-transform: none; letter-spacing: 0; }
.spec-value { font-size: 16px; font-weight: 600; color: var(--text); }
.spec-vehicles { margin-top: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.spec-vehicles .spec-text { font-size: 15px; color: var(--text); line-height: 1.7; }
.spec-note { font-size: 14px; color: var(--muted); }

.variants-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.variants-table th { padding: 10px 14px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; text-transform: none; letter-spacing: 0; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.variants-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.variants-table tr:last-child td { border-bottom: 0; }
.vt-code { font-weight: 600; color: var(--accent); }
.vt-cv { font-size: 16px; font-weight: 700; }
.vt-nm, .vt-years { font-size: 13px; color: var(--muted); }
.vt-torque { color: var(--text); }
.vt-years { white-space: nowrap; }
.vt-bar-wrap { width: 80px; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.vt-bar { height: 6px; background: var(--accent); border-radius: 3px; }
.vt-cars { color: var(--muted); }

.maint-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .maint-grid { grid-template-columns: repeat(3, 1fr); } }
.maint-card { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.maint-icon { font-size: 20px; margin-bottom: 8px; }
.maint-label { font-size: 13px; color: var(--muted); text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
.maint-value { font-size: 16px; font-weight: 600; color: var(--text); }
.maint-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

.issues-box { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.issues-label { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.issues-text { font-size: 15px; color: var(--text); line-height: 1.75; }
.recall-badge { display: inline-flex; align-items: center; gap: 4px; margin: 12px 6px 0 0; padding: 4px 10px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; text-transform: none; letter-spacing: 0; }
.reliability-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; }
.reliability-label { color: var(--muted); text-transform: none; letter-spacing: 0; }
.reliability-stars { letter-spacing: 2px; }
.star-on { color: var(--accent); }
.star-off { color: var(--border-strong); }
.reliability-score { color: var(--muted); }

.why-box { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.why-label { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.why-text { font-size: 15px; color: var(--text); line-height: 1.75; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-item summary { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '+'; flex-shrink: 0; width: 18px; font-weight: 700; color: var(--accent); }
.faq-item[open] summary::before { content: '–'; }
.faq-answer { padding: 0 18px 16px 48px; font-size: 15px; color: var(--muted); line-height: 1.75; }

.related-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }
.related-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.related-card:hover { color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-hover); }
.related-code { font-size: 13px; font-weight: 600; color: var(--accent); }
.related-name { font-size: 15px; font-weight: 600; }
.related-power { font-size: 13px; color: var(--muted); }

.motor-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 32px; }
.motor-backlink { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; font-size: 15px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); text-transform: none; letter-spacing: 0; }
.motor-backlink:hover { color: var(--accent); border-color: var(--accent); }
.motor-cta { text-align: center; padding-top: 40px !important; }
.motor-cta p { color: var(--muted); max-width: 440px; margin: 0 auto 16px; }

.not-found-state { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter); text-align: center; }
.not-found-state h1 { font-size: 28px; margin-bottom: 8px; }
.not-found-state p { color: var(--muted); margin-bottom: 20px; }
.motor-loading { padding: 80px var(--gutter); text-align: center; color: var(--muted); }

/* ---------- 11. Página de averías ---------- */
.averia-group { margin-top: 32px; }
.averia-group h2 { font-size: 22px; margin-bottom: 16px; }
.averia-engine { display: flex; flex-direction: column; gap: 12px; }
.averia-engine header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.averia-engine h3 { font-size: 18px; }
.averia-engine h3 a { color: var(--text); }
.averia-engine h3 a:hover { color: var(--accent); }
.averia-engine ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.averia-engine li { font-size: 15px; color: var(--muted); line-height: 1.65; }
.averia-engine li strong { color: var(--text); font-weight: 600; }
.averia-engine .more { font-size: 14px; font-weight: 600; }

/* ---------- 12. Comparador ---------- */
.quick-btn, .empty-preset-btn {
    min-height: 40px; padding: 8px 14px; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0;
    color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
}
.quick-btn:hover, .empty-preset-btn:hover { color: var(--accent); border-color: var(--accent); }
#engineSelectorInput {
    width: 100%; height: 52px; padding: 0 16px; font-size: 16px; color: var(--text);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); outline: none; box-shadow: var(--shadow);
}
#engineSelectorInput:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.search-dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; max-height: 360px; overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12); }
.search-dropdown.active:not(:empty) { display: block; }
.dropdown-item { padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.dropdown-item:hover { background: var(--accent-soft); }
.dropdown-item-title { font-weight: 600; }
.dropdown-item-sub { font-size: 13px; color: var(--muted); }
.selected-engines-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.engine-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; font-size: 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); }
.remove-tag { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-size: 18px; color: var(--muted); border-radius: 6px; cursor: pointer; }
.remove-tag:hover { color: var(--text); background: var(--surface-2); }
.preset-label { font-size: 13px !important; color: var(--muted) !important; margin-bottom: 12px !important; }
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.comparator-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 20px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.comparator-empty svg { stroke: var(--border-strong); }
.comparator-empty svg text { fill: var(--muted); font-family: var(--font) !important; }
.empty-headline { font-size: 18px; font-weight: 700; }
.empty-subtext { font-size: 15px; color: var(--muted); max-width: 460px; }
.quick-start-label { font-size: 13px; color: var(--muted); margin-top: 8px; text-transform: none; letter-spacing: 0; }
.empty-presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.decorative-background { display: none; }
#comparatorResults { display: none; }
.radar-container { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 20px; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
@media (min-width: 900px) { .radar-container { flex-direction: row; } }
.radar-axis { stroke: var(--border); stroke-width: 1; }
.radar-label { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.legend-swatch { width: 12px; height: 12px; border-radius: 3px; }
.legend-name { font-weight: 600; font-size: 15px; }
.comparison-table-wrapper { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.comp-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.comp-table th, .comp-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.comp-table th { font-size: 14px; font-weight: 700; background: var(--surface-2); }
.comp-table tr:last-child td { border-bottom: 0; }
.row-label { font-size: 13px; font-weight: 600 !important; color: var(--muted); white-space: nowrap; }
.comp-value { font-weight: 500; }
.comp-note { margin-top: 24px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.comp-note p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---------- 13. Comunidad ---------- */
#comunidad-hero { padding: 32px 0 0; }
@media (min-width: 768px) { #comunidad-hero { padding-top: 48px; } }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
.review-card { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.review-author { margin-bottom: 12px; }
.author-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 50%; }
.author-name { font-weight: 600; }
.review-engine { font-size: 13px; color: var(--muted); }
.review-text { font-size: 15px; color: var(--text); line-height: 1.7; }
.review-stars { margin-left: auto; color: var(--accent); font-size: 13px; }
.modal { display: none; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center; padding: 16px; background: rgba(17, 24, 39, 0.45); }
.modal.active { display: flex; }
.modal-content { position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; padding: 24px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 20px 48px rgba(16, 24, 40, 0.2); }
.modal-title { font-size: 20px; margin-bottom: 20px; padding-right: 32px; }
.close-modal { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 24px; color: var(--muted); border-radius: var(--radius-sm); cursor: pointer; }
.close-modal:hover { background: var(--surface-2); color: var(--text); }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 14px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea, .zv-input {
    width: 100%; padding: 12px 14px; font-size: 16px; color: var(--text);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .zv-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }

/* Modales creados por JS (newsletter, artículo) y avisos */
.zv-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(17, 24, 39, 0.45); }
.zv-dialog { position: relative; width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto; padding: 28px 24px 24px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 20px 48px rgba(16, 24, 40, 0.2); }
.zv-dialog--wide { max-width: 720px; }
.zv-dialog__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; font-size: 20px; color: var(--muted); background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer; }
.zv-dialog__close:hover { background: var(--surface-2); color: var(--text); }
.zv-dialog__kicker { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.zv-dialog h2 { font-size: 22px; margin-bottom: 12px; padding-right: 28px; }
.zv-dialog__text { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.zv-dialog form { display: flex; flex-direction: column; gap: 12px; }
.zv-article { font-size: 16px; color: var(--text); line-height: 1.75; }
.zv-article p { margin-bottom: 14px; }
.zv-article h3 { font-size: 17px; margin: 24px 0 8px; }
.zv-msg { font-size: 14px; margin-top: 12px; }
.zv-msg--ok { color: #15803d; }
.zv-msg--err { color: var(--text); }
.zv-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10001; max-width: calc(100% - 32px); padding: 14px 20px; font-size: 15px; text-align: center; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16); }

/* ---------- 14. Noticias / guías ---------- */
.ticker-wrap { max-width: var(--wrap); margin: 16px auto 0; padding: 0 var(--gutter); }
.ticker { display: flex; flex-wrap: wrap; gap: 8px; }
.ticker-item { padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.news-hero-card { display: flex; flex-direction: column; margin-bottom: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow 0.15s ease, border-color 0.15s ease; }
.news-hero-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-hover); }
@media (min-width: 900px) { .news-hero-card { flex-direction: row; } }
.news-hero-content { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.news-hero-content .section-title { font-size: 24px; margin: 0; }
.news-hero-content .section-desc { margin: 0; }
.news-hero-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.news-hero-side { display: none; }
@media (min-width: 900px) { .news-hero-side { display: flex; flex: 0 0 28%; align-items: center; justify-content: center; background: var(--accent-soft); } }
.side-bg-text { display: none; }
.news-hero-day { display: block; font-size: 40px; font-weight: 700; color: var(--accent); text-align: center; line-height: 1; }
.news-hero-month { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent); text-align: center; }
.pulse-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; }
.pulse-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.news-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; cursor: pointer; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow 0.15s ease, border-color 0.15s ease; }
.news-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-hover); }
.news-card h3 { font-size: 17px; }
.news-card p { font-size: 15px; color: var(--muted); }
.news-card .section-tag { margin: 0 !important; }
.news-card-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.news-date { font-size: 13px; color: var(--muted); }
.read-more-link { font-size: 14px; font-weight: 600; color: var(--accent); }
#noticias-hero .container { margin-top: 24px !important; }

/* ---------- 15. Páginas legales ---------- */
.legal-content { max-width: 760px; margin: 0 auto; padding: 16px var(--gutter) 24px; }
.legal-section { margin-bottom: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.legal-section h3 { font-size: 17px; margin-bottom: 10px; text-transform: none; letter-spacing: 0; }
.legal-section p, .legal-section li { font-size: 15px; color: var(--muted); line-height: 1.75; }
.legal-section p + p { margin-top: 10px; }
.legal-section strong { color: var(--text); }
.legal-section ul { margin: 10px 0 0; padding-left: 20px; }
.cookie-table { display: block; width: 100%; overflow-x: auto; margin-top: 12px; border-collapse: collapse; font-size: 14px; }
.cookie-table th, .cookie-table td { padding: 10px 12px; text-align: left; border: 1px solid var(--border); }
.cookie-table th { font-weight: 600; background: var(--surface-2); }

/* ---------- 16. Identifica tu coche ---------- */
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.search__alt { margin-top: 14px; font-size: 15px; }
.search__alt a { font-weight: 600; }
@media (min-width: 768px) { .search__alt { text-align: center; } }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 20px; padding: 6px; background: var(--surface-2); border-radius: var(--radius); }
.tab {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 12px;
    font-size: 15px; font-weight: 600; line-height: 1.25; text-align: center; color: var(--muted);
    background: transparent; border: 0; border-radius: var(--radius-sm); cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.tab svg { flex-shrink: 0; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--accent); background: var(--surface); box-shadow: var(--shadow); }
@media (min-width: 768px) { .tabs { max-width: 640px; } .tab { font-size: 16px; } }
.tab-panel[hidden] { display: none; }

.vin-form { display: flex; flex-direction: column; gap: 10px; max-width: 720px; padding: 20px; }
@media (min-width: 768px) { .vin-form { padding: 28px; } }
.vin-label { font-size: 17px; font-weight: 700; }
.vin-help { font-size: 14px; color: var(--muted); margin-top: -4px; }
.vin-input-row { position: relative; }
.vin-input {
    width: 100%; height: 60px; padding: 0 76px 0 16px;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); outline: none;
}
.vin-input::placeholder { font-family: var(--font); font-size: 15px; letter-spacing: 0; color: #9a9aa0; text-transform: none; }
.vin-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.vin-input[aria-invalid="true"] { border-color: var(--text); }
@media (min-width: 768px) { .vin-input { height: 64px; font-size: 20px; } }
.vin-count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: var(--muted); pointer-events: none; }
.vin-count.is-complete { color: var(--accent); }
.vin-error { padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--text); background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius-sm); }
.vin-error[hidden] { display: none; }
.vin-submit { width: 100%; min-height: 52px; font-size: 16px; }
@media (min-width: 600px) { .vin-submit { width: auto; align-self: flex-start; } }
.vin-privacy { font-size: 13px; color: var(--muted); }
.vin-where { margin-top: 4px; border-top: 1px solid var(--border); padding-top: 12px; }
.vin-where summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--accent); list-style: none; }
.vin-where summary::-webkit-details-marker { display: none; }
.vin-where summary::after { content: ' ▾'; }
.vin-where[open] summary::after { content: ' ▴'; }
.vin-where ul { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--muted); }
.vin-where strong { color: var(--text); }

.vin-result { margin-top: 20px; outline: none; }
.vin-result[hidden] { display: none; }
.vin-card { padding: 20px; }
@media (min-width: 768px) { .vin-card { padding: 28px; } }
.vin-card__kicker { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.vin-card__title { font-size: 24px; margin-bottom: 16px; }
.vin-strip { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
.vin-seg { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vin-seg__chars {
    padding: 6px 6px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 17px; font-weight: 600; letter-spacing: 0.06em;
    color: var(--muted); background: var(--surface-2); border-radius: 6px;
}
.vin-seg__label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.seg-wmi .vin-seg__chars, .seg-model .vin-seg__chars, .seg-year .vin-seg__chars, .seg-plant .vin-seg__chars { color: var(--accent); background: var(--accent-soft); }
.seg-serial .vin-seg__chars { color: var(--text); }
@media (min-width: 768px) { .vin-seg__chars { font-size: 20px; padding: 6px 8px; } }
.vin-alert { margin-bottom: 16px; padding: 12px 14px; font-size: 15px; color: var(--text); background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius-sm); }
.vin-facts { display: grid; grid-template-columns: 1fr; gap: 1px; margin: 0; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 600px) { .vin-facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vin-facts { grid-template-columns: repeat(3, 1fr); } }
.vin-fact { padding: 14px 16px; background: var(--surface); }
.vin-fact dt { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.vin-fact dd { margin: 0; font-size: 16px; font-weight: 600; }
.vin-fact__note { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.vin-engines { margin-top: 32px; }
.vin-engines .section-title { font-size: 22px; }
.vin-variants { font-size: 13px !important; }
.vin-sub { font-size: 18px; margin: 28px 0 12px; }
.vin-tip { margin-top: 16px; padding: 14px 16px; font-size: 14px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.vin-disclaimer { margin-top: 20px; font-size: 12px; color: var(--muted); }

.report-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.report-card h2 { font-size: 19px; }
.report-card p, .report-card li { font-size: 15px; color: var(--muted); }
.report-card ul { margin: 0 0 6px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.report-card .btn { margin-top: auto; align-self: flex-start; }
.report-price { align-self: flex-start; padding: 4px 12px; font-size: 14px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; }
.report-note { margin: 16px 0; font-size: 14px; color: var(--muted); }
.report-switch { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.report-switch p { font-size: 15px; color: var(--muted); }
.report-switch strong { color: var(--text); }
@media (min-width: 768px) { .report-switch { flex-direction: row; align-items: center; justify-content: space-between; } }

.vin-info { margin-top: 24px; }
.vin-info__block { padding-top: 32px; }
.vin-info__block h2 { font-size: 22px; margin-bottom: 12px; }
.vin-info__block > p { font-size: 15px; color: var(--muted); line-height: 1.75; max-width: 760px; margin-bottom: 12px; }
.vin-parts { margin: 0 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--muted); max-width: 760px; }
.vin-parts strong { color: var(--text); }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 10px; }
.year-cell { display: flex; justify-content: space-between; gap: 6px; padding: 8px 10px; font-size: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.year-cell .mono { font-weight: 700; color: var(--accent); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.data-table th { padding: 10px 14px; font-size: 12px; font-weight: 600; text-align: left; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: 0; }

/* ---------- 17. Códigos de avería OBD ---------- */
.sev-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 13px; font-weight: 600; border-radius: 999px; white-space: nowrap; }
.sev-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sev-green { color: #15803d; background: #f0fdf4; }
.sev-amber { color: #b45309; background: #fffbeb; }
.sev-red   { color: #b91c1c; background: #fef2f2; }

.obd-search { max-width: 720px; margin: 8px 0 20px; }
.obd-search__label { display: block; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.obd-search__row { display: flex; gap: 8px; }
.obd-search__input {
    flex: 1; min-width: 0; height: 60px; padding: 0 16px;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 22px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); outline: none; box-shadow: var(--shadow);
}
.obd-search__input::placeholder { color: #b4b4ba; }
.obd-search__input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.obd-search__btn { min-height: 60px; padding: 0 20px; flex-shrink: 0; }
.obd-search__msg { margin-top: 8px; font-size: 14px; color: var(--text); }
.obd-search__msg:empty { display: none; }
.obd-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.obd-filters .chip-row { flex-wrap: wrap; overflow: visible; }
.obd-count { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.obd-card[hidden] { display: none; }
.obd-card__code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 20px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
.obd-card h3 { font-size: 15px !important; font-weight: 600; line-height: 1.4; }
.obd-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.obd-card__fuel { font-size: 13px; color: var(--muted); }
.obd-howto { padding-top: 40px; }
.obd-howto h2 { font-size: 22px; margin-bottom: 10px; }
.obd-howto > p { font-size: 15px; color: var(--muted); max-width: 760px; margin-bottom: 16px; }
.howto-card h3 { font-size: 16px; margin-bottom: 6px; }
.howto-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.obd-howto .spec-note { margin-top: 14px; }
.obd-disclaimer { margin-top: 28px; font-size: 13px; color: var(--muted); }

.obd-hero { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter) 0; }
@media (min-width: 768px) { .obd-hero { padding-top: 40px; } }
.obd-title { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.obd-code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: 0.02em; color: var(--accent); }
.obd-title__text { font-size: 22px; font-weight: 700; line-height: 1.3; }
@media (min-width: 768px) { .obd-code { font-size: 56px; } .obd-title__text { font-size: 28px; } }
.obd-meta { margin-bottom: 16px; }
.obd-severity { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border-left-width: 4px; }
.obd-severity.sev-green { border-left-color: #16a34a; background: var(--surface); }
.obd-severity.sev-amber { border-left-color: #d97706; background: var(--surface); }
.obd-severity.sev-red   { border-left-color: #dc2626; background: var(--surface); }
.semaforo { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; padding: 8px; background: #27272a; border-radius: 12px; }
.light { width: 22px; height: 22px; border-radius: 50%; opacity: 0.22; }
.light-green { background: #22c55e; }
.light-amber { background: #f59e0b; }
.light-red   { background: #ef4444; }
.light.is-on { opacity: 1; box-shadow: 0 0 10px currentColor; }
.light-green.is-on { color: #22c55e; } .light-amber.is-on { color: #f59e0b; } .light-red.is-on { color: #ef4444; }
.obd-severity__level { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.obd-severity__level strong { color: var(--text); }
.obd-severity h2 { font-size: 18px; margin-bottom: 6px; }
.obd-severity__answer { font-size: 17px; font-weight: 500; line-height: 1.55; color: var(--text); }
.obd-text { font-size: 16px; line-height: 1.75; max-width: 760px; }
.obd-text--muted { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.obd-list, .obd-causes { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.6; max-width: 760px; }
.obd-causes li::marker { font-weight: 700; color: var(--accent); }
.obd-related { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 768px) { .obd-related { grid-template-columns: repeat(2, 1fr); } }
.obd-related__item { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "code sev" "title title"; gap: 4px 12px; align-items: center; padding: 14px 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.obd-related__item:hover { color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-hover); }
.obd-related__code { grid-area: code; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 17px; font-weight: 700; color: var(--accent); }
.obd-related__item .sev-tag { grid-area: sev; justify-self: end; }
.obd-related__title { grid-area: title; font-size: 14px; color: var(--muted); line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Portada: cabecera con foto ---------- */
.hero--photo { position: relative; isolation: isolate; overflow: hidden; padding: 0 0 32px; color: #fff; background: #17171a; }
.hero__media { display: block; position: relative; aspect-ratio: 800 / 560; max-width: 100%; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,23,26,0) 45%, #17171a 100%); }
.hero--photo .hero__inner { position: relative; margin-top: -48px; }
.hero__kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #a9bfff; }
.hero--photo h1 { margin-top: 8px; color: #fff; text-wrap: balance; }
.hero--photo .hero__sub { color: #c9c9ce; }
.hero--photo .search__input { border-color: transparent; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.hero--photo .search__results { color: var(--text); }
.hero--photo .search__alt a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); text-underline-offset: 3px; }
.hero--photo .search__alt a:hover { text-decoration-color: #fff; }
@media (min-width: 768px) {
    .hero--photo { display: flex; align-items: center; min-height: 560px; padding: 72px 0; text-align: left; }
    .hero__media { position: absolute; inset: 0 0 0 auto; width: min(64%, 980px); aspect-ratio: auto; z-index: -1; }
    .hero__media img { object-position: 60% 70%; }
    .hero__media::after { background: linear-gradient(90deg, #17171a 0%, rgba(23,23,26,0.75) 22%, rgba(23,23,26,0.15) 50%, rgba(23,23,26,0) 70%); }
    .hero--photo .hero__inner { margin-top: 0; width: 100%; }
    .hero--photo h1, .hero--photo .hero__sub { margin-inline: 0; max-width: 560px; }
    .hero--photo .search { margin: 32px 0 0; max-width: 560px; }
    .hero--photo .search__alt { text-align: left; }
}

/* ---------- Portada: bloque del despiece ---------- */
.feature-despiece__inner { display: grid; gap: 28px; align-items: center; }
.feature-despiece__text { min-width: 0; }
.feature-despiece__kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.feature-despiece h2 { margin-top: 6px; font-size: 28px; letter-spacing: -0.02em; text-wrap: balance; }
.feature-despiece__text > p:not(.feature-despiece__kicker) { margin-top: 10px; color: var(--muted); max-width: 44ch; }
.feature-despiece__list { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: fd; }
.feature-despiece__list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); counter-increment: fd; }
.feature-despiece__list li::before {
    content: counter(fd); flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -2px;
    font: 600 12px/1 'IBM Plex Mono', ui-monospace, Menlo, monospace; color: var(--text); border: 1.25px solid var(--text); border-radius: 50%; background: var(--surface);
}
.feature-despiece__list strong { color: var(--text); font-weight: 600; }
.feature-despiece__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.feature-despiece__meta { font-size: 13px; color: var(--muted); }
.feature-despiece .dp-mini { margin: 0; max-width: 560px; width: 100%; justify-self: center; }
@media (min-width: 900px) {
    .feature-despiece__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; }
    .feature-despiece h2 { font-size: 34px; }
    .feature-despiece .dp-mini { justify-self: end; }
}
.hero--photo + .brands { padding-top: 20px; }

/* ---------- Logo ---------- */
.site-logo--img { display: flex; align-items: center; }
.site-logo--img img { display: block; width: auto; height: 30px; }
@media (min-width: 768px) { .site-logo--img img { height: 34px; } }

/* ---------- Newsletter (formulario común) ---------- */
.nl-form { display: grid; gap: 12px; }
.nl-form__row { display: grid; gap: 8px; }
@media (min-width: 520px) { .nl-form__row { grid-template-columns: minmax(0, 1fr) auto; } }
.nl-form .zv-input { min-height: 48px; }
.nl-form .btn { min-height: 48px; }
.nl-form__check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.nl-form__check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.nl-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-form__msg { padding: 12px 14px; font-size: 14px; line-height: 1.5; border-radius: var(--radius-sm); background: var(--bg); }
.nl-form__msg.is-error { color: #9f1d1d; background: #fdecec; }
.nl-form__msg.is-ok { color: #145c2e; background: #e9f7ee; }
.zv-simple { padding-block: 48px 72px; max-width: 640px; display: grid; gap: 16px; }
.zv-simple h1 { font-size: 28px; }
