/* Motorsheet: mobile first */
:root {
  --ink: #0b1626;
  --ink-2: #3b4a5e;
  --ink-3: #6b7a8f;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --blue: #1557ff;
  --blue-d: #0b3fd1;
  --blue-l: #eaf0ff;
  --red: #d92d20;
  --red-l: #fdecea;
  --green: #067647;
  --green-l: #e7f6ee;
  --r: 14px;
  --shadow: 0 1px 2px rgba(11, 22, 38, .06), 0 6px 20px rgba(11, 22, 38, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; }
.brand .mark i { display: block; width: 14px; height: 4px; background: var(--blue); border-radius: 2px; box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff; }
.brand b { color: var(--blue); }
.nav { display: none; gap: 22px; font-weight: 600; font-size: .95rem; }
.nav a { color: var(--ink-2); }
.menu-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; border-radius: 2px; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.drawer { display: none; border-top: 1px solid var(--line); background: #fff; }
.drawer.open { display: block; }
.drawer a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }

/* Hero */
.hero { background: linear-gradient(180deg, #f2f6ff 0%, #fff 100%); padding: 28px 0 8px; }
.hero h1 { font-size: 2rem; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p.lead { color: var(--ink-2); font-size: 1.05rem; }

/* Finder */
.finder { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 10px; margin: 18px 0 8px; }
.finder label { font-size: .75rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 4px; }
.finder select { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.finder select:disabled { background-color: var(--bg-2); color: var(--ink-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 10px; border: 0; background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--blue-d); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Chips row */
.trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .875rem; color: var(--ink-2); }
.trust li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 6px; }

/* Sections */
section.block { padding: 26px 0; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 16px; }
a.card { color: var(--ink); display: block; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: #c7d3ff; box-shadow: var(--shadow); text-decoration: none; }
.brand-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; text-align: center; font-weight: 700; font-size: .9rem; }
.logo { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; flex: none; }
.logo img { width: 22px; height: 22px; }
.logo.txt { font-weight: 800; font-size: .7rem; color: var(--ink); }
.tool-card { display: flex; gap: 12px; align-items: flex-start; }
.tool-card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-l); color: var(--blue); display: grid; place-items: center; flex: none; font-size: 1.2rem; }
.tool-card h3 { margin: 0 0 2px; }
.tool-card p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.dark-band { background: var(--ink); color: #fff; border-radius: var(--r); padding: 22px 18px; }
.dark-band h2 { margin-top: 0; }
.dark-band p { color: #c3cbd8; }

/* Breadcrumbs */
.crumbs { font-size: .85rem; color: var(--ink-3); padding: 14px 0 0; overflow-x: auto; white-space: nowrap; }
.crumbs a { color: var(--ink-3); }
.crumbs span { margin: 0 6px; }

/* Spec page */
.spec-head { display: flex; gap: 12px; align-items: center; margin: 14px 0 6px; }
.spec-head .logo { width: 48px; height: 48px; }
.spec-head .logo img { width: 26px; height: 26px; }
.spec-head h1 { margin: 0; font-size: 1.55rem; }
.answer { background: var(--blue-l); border: 1px solid #c9d7ff; border-radius: var(--r); padding: 16px; margin: 14px 0; }
.answer .big { font-size: 2rem; font-weight: 900; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.answer .big small { font-size: 1rem; font-weight: 700; color: var(--ink-2); }
.answer p { margin: 6px 0 0; color: var(--ink-2); font-size: .95rem; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; }
.kpi .v { font-size: 1.2rem; font-weight: 800; margin-top: 2px; }
.toc { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; margin: 0 -16px; padding-left: 16px; scrollbar-width: none; }
.toc a { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .875rem; font-weight: 600; color: var(--ink-2); background: #fff; }
.toc a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* Tables: cards on mobile */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.filters select { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 15px; background: #fff; flex: 1 1 140px; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
table.data td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.num { font-weight: 800; white-space: nowrap; }
@media (max-width: 719px) {
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 0; }
  table.data td { border: 0; padding: 6px 14px; display: flex; justify-content: space-between; gap: 12px; }
  table.data td::before { content: attr(data-l); color: var(--ink-3); font-size: .8rem; font-weight: 600; }
  table.data td.num { font-size: 1.05rem; }
}
.note { border-left: 3px solid var(--red); background: var(--red-l); padding: 12px 14px; border-radius: 0 10px 10px 0; font-size: .92rem; color: #7a1d14; margin: 14px 0; }
.ok { border-left-color: var(--green); background: var(--green-l); color: #0a4d31; }

/* Calculator */
.calc { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--bg-2); }
.calc .row { display: grid; gap: 10px; }
.calc .hitch-row > div { min-width: 0; }
.calc label { font-size: .8rem; font-weight: 700; color: var(--ink-2); display: block; margin-bottom: 4px; }
.calc input, .calc select { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; background: #fff; }
.result { margin-top: 12px; border-radius: 12px; padding: 14px; font-weight: 600; display: none; }
.result.show { display: block; }
.result.good { background: var(--green-l); color: #0a4d31; border: 1px solid #b7e4cb; }
.result.warn { background: #fff7e6; color: #7a4b00; border: 1px solid #ffd99a; }
.result.bad { background: var(--red-l); color: #7a1d14; border: 1px solid #f5b8b1; }
.meter { height: 10px; background: #e6ebf2; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--green); width: 0; transition: width .3s; }
.result.warn .meter i { background: #f0a000; }
.result.bad .meter i { background: var(--red); }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin-bottom: 8px; background: #fff; }
summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); }

/* Years */
.years { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.years a { text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px 6px; font-weight: 800; color: var(--ink); }
.years a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.years a small { display: block; font-weight: 600; color: var(--ink-3); font-size: .72rem; }

.sources { font-size: .85rem; color: var(--ink-2); }
.sources li { margin-bottom: 6px; word-break: break-word; }
.reviewed { font-size: .85rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 18px; }
.ad-slot { display: none; }

/* Footer */
footer.site { background: var(--ink); color: #c3cbd8; margin-top: 40px; padding: 30px 0 90px; font-size: .9rem; }
footer.site a { color: #fff; }
footer.site .cols { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
footer.site h4 { color: #fff; margin: 0 0 8px; font-size: .9rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 6px; }
footer.site .legal { border-top: 1px solid #22314a; margin-top: 22px; padding-top: 16px; font-size: .8rem; color: #8d9ab0; }

@media (min-width: 720px) {
  h1 { font-size: 2.2rem; }
  .hero { padding: 48px 0 16px; }
  .hero h1 { font-size: 2.8rem; max-width: 720px; }
  .finder { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; padding: 18px; }
  .g4 { grid-template-columns: repeat(4, 1fr); }
  .g6 { grid-template-columns: repeat(6, 1fr); }
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .years { grid-template-columns: repeat(6, 1fr); }
  .calc .row { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .calc .hitch-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .spec-head h1 { font-size: 2rem; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  footer.site { padding-bottom: 30px; }
  footer.site .cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}
.side .card { position: sticky; top: 76px; }
@media (max-width: 719px) { .side { margin-top: 10px; } }
/* años en la barra lateral: siempre 3 columnas */
.side .years { grid-template-columns: repeat(3, 1fr); }
.side .years a { padding: 10px 4px; }

@media (min-width: 760px) {
  .calc .tool-vin-row { grid-template-columns: minmax(0, 1fr) auto; }
}
