/* Top Cars — urbano y formal. Asfalto + papel, rojo del rótulo como único acento.
   Layout: bandas a todo el ancho que alternan asfalto / hormigón / papel; rejilla de 12 con filetes finos. */
:root {
  --asphalt: #121417;
  --asphalt-2: #1c1f24;
  --asphalt-line: #2c3037;
  --concrete: #e7e8ea;
  --paper: #ffffff;
  --ink: #121417;
  --ink-2: #3f444c;
  --steel: #6c727b;
  --line: #d6d8dc;
  --accent: #d7141a;
  --accent-deep: #a90f14;
  --plate-blue: #1c3f94;
  --ok: #157f3b;
  --warn: #8a5a00;
  --warn-bg: #fff1d6;
  --wa: #1fa855;
  --on-dark: #f3f4f5;
  --on-dark-2: #a9aeb6;

  --f-display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-data: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;  /* rótulos y datos: estilo DIN de señalética */
  --f-plate: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --price: #d7141a;
  --price-on-dark: #ff4146;

  --r: 2px;
  --gutter: 16px;
  --top-h: 70px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .95; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { font-size: 1rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
.muted { color: var(--steel); }
.mono { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.section { padding-block: 64px; }
.section--soft { background: var(--concrete); }
.section--dark { background: var(--asphalt); color: var(--on-dark); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.section--dark .section__head { border-color: var(--on-dark); }
.section__head h2 { margin: 0; }
.eyebrow { font-family: var(--f-data); font-size: .86rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--accent); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: var(--r); border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-weight: 600; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-deep); }
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: #33373e; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.section--dark .btn--ghost, .hero .btn--ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--on-dark); }
.btn--wa { background: var(--wa); }
.btn--wa:hover { background: #178d46; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .78rem; }
.btn--block { width: 100%; }
.link { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 1px; }
.link:hover { color: var(--accent); }
.section--dark .link { color: var(--on-dark); }

/* Cabecera */
body::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--asphalt); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--asphalt); color: var(--on-dark); border-bottom: 1px solid var(--asphalt-line); }
.top__in { height: var(--top-h); display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; text-decoration: none; transform: skewX(-12deg); background: var(--accent); padding: 5px 14px; }
.logo span { transform: skewX(12deg); display: block; color: #fff; font-family: var(--f-display); font-weight: 900; letter-spacing: .06em; font-size: 1.75rem; line-height: 1.1; font-style: italic; }
.logo--sm span { font-size: 1.2rem; }
.nav { display: none; }
.top__call { margin-left: auto; font-family: var(--f-data); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 9px 14px; box-shadow: inset 0 0 0 1px var(--asphalt-line); border-radius: var(--r); }
.top__call:hover { box-shadow: inset 0 0 0 1px var(--on-dark-2); }
.burger { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; margin-right: -10px; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: var(--on-dark); position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.nav.open { display: flex; flex-direction: column; position: absolute; top: var(--top-h); left: 0; right: 0; background: var(--asphalt); border-bottom: 1px solid var(--asphalt-line); padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 18px max(var(--gutter), env(safe-area-inset-left, 0px)); }
.nav a { text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; padding: 12px 0; border-bottom: 1px solid var(--asphalt-line); }
.nav a:last-child { border: 0; }
.nav a.active { color: var(--accent); }
@media (min-width: 900px) {
  .nav, .nav.open { display: flex; position: static; flex-direction: row; gap: 2px; margin-left: 28px; padding: 0; border: 0; background: none; }
  .nav a { font-family: var(--f-body); font-size: .8rem; font-weight: 600; letter-spacing: .1em; padding: 22px 14px; border: 0; border-bottom: 2px solid transparent; }
  .nav a:hover { border-bottom-color: var(--on-dark-2); }
  .nav a.active { color: var(--on-dark); border-bottom-color: var(--accent); }
  .burger { display: none; }
}

/* Hero */
.hero { position: relative; color: var(--on-dark); overflow: hidden; background: var(--asphalt); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 72%; opacity: .32; filter: grayscale(.35) contrast(1.1); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,20,23,.2) 0%, rgba(18,20,23,.85) 78%, var(--asphalt) 100%); }
@media (min-width: 900px) {
  .hero__img { left: 42%; width: 58%; opacity: .7; filter: grayscale(.2) contrast(1.05); }
  .hero::after { background: linear-gradient(90deg, var(--asphalt) 40%, rgba(18,20,23,.55) 62%, rgba(18,20,23,.15) 100%); }
}
.hero__in { position: relative; z-index: 1; padding-block: 52px 0; }
.hero__kicker { font-family: var(--f-data); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 18px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__kicker span + span::before { content: '/'; margin-right: 14px; color: var(--accent); }
.hero h1 { max-width: 15ch; margin-bottom: 20px; font-size: clamp(2.3rem, 7.4vw, 4.6rem); }
@media (min-width: 900px) { .hero h1 { max-width: 13ch; } }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 1.08rem; max-width: 44ch; color: var(--on-dark-2); }
.hero__lead b { color: var(--on-dark); font-weight: 600; }
.qs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--asphalt-line); border: 1px solid var(--asphalt-line); margin-top: 28px; max-width: 900px; }
.qs .field { margin: 0; background: var(--asphalt-2); padding: 10px 14px 12px; gap: 2px; }
.qs .field label { color: var(--on-dark-2); }
.qs .input { background: transparent; border: 0; color: var(--on-dark); padding: 4px 30px 4px 0; min-height: 34px; font-size: 1.02rem; font-weight: 500; }
.qs select.input { background-color: transparent; background-image: linear-gradient(45deg, transparent 50%, var(--on-dark-2) 50%), linear-gradient(135deg, var(--on-dark-2) 50%, transparent 50%); background-position: calc(100% - 12px) 15px, calc(100% - 7px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
.qs .input option { color: var(--ink); }
.qs .qs__price, .qs .btn { grid-column: 1 / -1; }
.qs .btn { min-height: 56px; border-radius: 0; }
@media (min-width: 760px) {
  .hero__in { padding-block: 96px 0; }
  .qs { grid-template-columns: 1fr 1fr 1fr 190px; }
  .qs .qs__price, .qs .btn { grid-column: auto; }
  .qs .btn { min-height: 100%; }
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--asphalt-line); }
.stat { padding: 18px 12px 22px 0; }
.stat + .stat { border-left: 1px solid var(--asphalt-line); padding-left: 14px; }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(1.8rem, 6vw, 3rem); font-weight: 800; line-height: 1; }
.stat span { font-family: var(--f-data); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); }

/* Incluido: tabla de cuatro celdas con filete, sin tarjetas */
.incl { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 900px) { .incl { grid-template-columns: repeat(4, 1fr); } }
.incl__item { padding: 22px 18px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.section--soft .incl { border-color: #cfd1d5; }
.section--soft .incl__item { border-color: #cfd1d5; }
.incl__item b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.incl__item span { font-size: .9rem; color: var(--ink-2); }
.incl__ico { font-family: var(--f-display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: 14px; }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .field .lbl { font-family: var(--f-data); font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--paper); font-size: 16px; appearance: none;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); outline: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 > * { min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line); font-size: .86rem; cursor: pointer; background: var(--paper); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Matrícula: referencia de stock */
.plate { display: inline-flex; align-items: stretch; height: 26px; background: #fff; border: 1.5px solid #111; border-radius: 3px; overflow: hidden; font-family: var(--f-plate); font-weight: 700; font-size: 1.02rem; letter-spacing: .06em; color: #111; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.plate i { font-style: normal; width: 14px; background: var(--plate-blue); color: #fff; font-size: .52rem; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; }
.plate b { display: flex; align-items: center; padding: 1px 9px 0; font-weight: 700; line-height: 1; }
.plate--lg { height: 36px; font-size: 1.35rem; }
.plate--lg i { width: 18px; font-size: .62rem; }

/* Listado */
.list-head { background: var(--asphalt); color: var(--on-dark); padding-block: 36px 0; }
.list-head h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); margin: 0; }
.list-head .crumbs { color: var(--on-dark-2); padding-top: 0; }
.list { padding-block: 0 72px; }
.filters { display: none; }
.filters.open { display: block; position: fixed; inset: 0; z-index: 60; background: var(--paper); overflow: auto; padding: 16px max(var(--gutter), env(safe-area-inset-right, 0px)) 96px max(var(--gutter), env(safe-area-inset-left, 0px)); }
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters__head h2 { font-size: 1.8rem; margin: 0; }
.filters__foot { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); background: var(--paper); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.filters__foot .btn { flex: 1; }
.fgroup { padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fgroup > .lbl { display: block; font-family: var(--f-data); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.filters .reset { background: none; border: 0; padding: 8px 0; cursor: pointer; }
@media (min-width: 1000px) {
  /* Panel horizontal bajo la cabecera del listado */
  .filters, .filters.open { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; position: static; padding: 0; background: var(--concrete); border: 1px solid #cfd1d5; border-top: 0; margin-bottom: 28px; overflow: visible; }
  .filters__head, .filters__foot { display: none; }
  .fgroup { padding: 14px 16px 16px; border-bottom: 0; border-right: 1px solid #cfd1d5; }
  .fgroup--wide { grid-column: span 2; }
  .fgroup--row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; border-top: 1px solid #cfd1d5; border-right: 0; padding-block: 12px; }
  .fgroup--row > div { display: flex; align-items: center; gap: 10px; }
  .fgroup--row .lbl { margin: 0; }
  .fgroup .input { background-color: var(--paper); }
  .filters .reset { margin-left: auto; }
}
.toolbar { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding-block: 20px 16px; flex-wrap: wrap; }
.toolbar__count { font-family: var(--f-data); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.toolbar__right { display: flex; gap: 8px; align-items: center; }
.toolbar select.input { min-height: 42px; width: auto; }
.btn-filters { min-height: 42px; }
@media (min-width: 1000px) { .btn-filters { display: none; } .toolbar { padding-top: 0; } }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.tag-x { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 10px; border-radius: var(--r); background: var(--ink); color: #fff; border: 0; font-size: .8rem; cursor: pointer; }
.tag-x::after { content: '×'; font-size: 1rem; line-height: 1; opacity: .7; }

.grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid > * { min-width: 0; }

.card { position: relative; background: var(--paper); text-decoration: none; display: flex; flex-direction: column; border-top: 3px solid var(--ink); }
.card__img { aspect-ratio: 4 / 3; max-width: 100%; background: var(--concrete); position: relative; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.035); }
.card:hover { border-top-color: var(--accent); }
.card__plate { position: absolute; left: 10px; bottom: 10px; }
.card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: var(--r); font-family: var(--f-data); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--paper); color: var(--ink); }
.badge--res { background: var(--warn-bg); color: var(--warn); }
.badge--sold { background: var(--ink); color: #fff; }
.badge--deal { background: var(--ok); color: #fff; }
.dgt { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-family: var(--f-body); font-size: .68rem; font-weight: 800; position: absolute; top: 10px; right: 10px; box-shadow: 0 0 0 2px #fff; }
.dgt--C { background: #1f9d55; color: #fff; }
.dgt--B { background: #f2c200; color: #111; }
.dgt--ECO { background: linear-gradient(90deg, #1f9d55 50%, #1f6fbf 50%); color: #fff; font-size: .55rem; }
.dgt--0 { background: #1f6fbf; color: #fff; }
.dgt--Sin { background: #ddd; color: #555; font-size: .5rem; }
.card__body { padding: 14px 0 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card__title { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; line-height: 1; text-transform: uppercase; }
.card__ver { font-size: .86rem; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__specs { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px; margin: 12px 0 14px; padding: 9px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec { display: flex; flex-direction: column; min-width: 0; }
.spec i { font-style: normal; font-family: var(--f-data); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); line-height: 1.2; }
.spec b { font-family: var(--f-body); font-size: .9rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card__price { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.cash { font-family: var(--f-data); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.cash-meta { font-family: var(--f-data); font-size: .86rem; font-weight: 500; color: var(--ink-2); margin-top: 4px; }
.card__price b { font-family: var(--f-display); font-size: 2.2rem; font-weight: 800; line-height: .95; color: var(--price); }
.card__price .cuota { font-family: var(--f-data); font-size: .86rem; font-weight: 500; color: var(--steel); padding-bottom: 2px; }
.was { display: block; font-family: var(--f-data); font-size: .82rem; font-weight: 600; color: var(--steel); letter-spacing: .02em; margin-bottom: 2px; }
.was s { font-size: 1.05rem; color: var(--ink-2); text-decoration-thickness: 2px; text-decoration-color: var(--price); margin-left: 4px; }
.card--sold .card__price b { color: var(--steel); }
.card--sold .card__img img { filter: grayscale(1); opacity: .65; }
.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--line); }

/* Ficha */
.crumbs { font-family: var(--f-data); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); padding-block: 18px 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 120px; }
@media (min-width: 1000px) { .detail { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; padding-bottom: 72px; } }
.gal { position: relative; margin: 0 calc(max(var(--gutter), env(safe-area-inset-left, 0px)) * -1); }
@media (min-width: 700px) { .gal { margin: 0; } }
.gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--asphalt); }
.gal__track::-webkit-scrollbar { display: none; }
.gal__track img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 65%; scroll-snap-align: start; }
@media (min-width: 700px) { .gal__track img { aspect-ratio: 4 / 3.4; } }
.gal__count { position: absolute; right: 12px; bottom: 12px; background: var(--asphalt); color: #fff; font-family: var(--f-data); font-size: .74rem; padding: 5px 10px; }
.gal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; background: var(--asphalt); color: #fff; cursor: pointer; display: none; place-items: center; font-size: 1.4rem; }
.gal__nav:hover { background: var(--accent); }
.gal__nav--prev { left: 0; } .gal__nav--next { right: 0; }
@media (min-width: 700px) { .gal__nav { display: grid; } }
.thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: thin; }
.thumbs button { flex: 0 0 78px; height: 58px; overflow: hidden; border: 0; border-bottom: 3px solid transparent; padding: 0; cursor: pointer; background: none; opacity: .55; }
.thumbs button.on { border-bottom-color: var(--accent); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.d-head { border-top: 3px solid var(--ink); padding-top: 18px; }
.d-head h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin: 10px 0 4px; }
.d-head .ver { color: var(--steel); margin-bottom: 14px; }
.d-quick { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.d-quick .spec b { font-size: 1.05rem; }
.panel { border: 1px solid var(--line); padding: 22px; background: var(--paper); }
.price-box { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px) + 20px); background: var(--asphalt); color: var(--on-dark); border: 0; }
.price-box .lbl { font-family: var(--f-data); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
.price-box .p { font-family: var(--f-display); font-size: 3.8rem; font-weight: 800; line-height: .95; margin: 6px 0 2px; color: var(--price-on-dark); }
.price-box .was { color: var(--on-dark-2); font-size: .95rem; margin-top: 10px; }
.price-box .was s { color: var(--on-dark); font-size: 1.3rem; }
.price-box .q { color: var(--on-dark-2); font-family: var(--f-data); font-size: .78rem; margin: 6px 0 18px; }
.price-box ul { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--asphalt-line); }
.price-box li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--asphalt-line); font-size: .94rem; }
.price-box li::before { content: ''; width: 8px; height: 8px; flex: none; background: var(--accent); }
.price-box .btns { display: grid; gap: 8px; }
.price-box .btn--ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--on-dark-2); }
.price-box .btn--ghost:hover { background: var(--on-dark); color: var(--ink); }
.price-box .note { color: var(--on-dark-2); }
.specs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 10px 0 32px; }
@media (min-width: 700px) { .specs { grid-template-columns: repeat(4, 1fr); } }
.specs div { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--f-data); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin: 0; }
.specs dd { margin: 4px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.d-sub { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; margin: 28px 0 0; }
.blk { margin-bottom: 26px; }
.blk h3 { font-family: var(--f-data); font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.blk ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px 24px; }
@media (min-width: 700px) { .blk ul.cols { grid-template-columns: 1fr 1fr; } }
.blk li { position: relative; padding-left: 18px; color: var(--ink-2); }
.blk li::before { content: ''; position: absolute; left: 0; top: .66em; width: 8px; height: 2px; background: var(--accent); }
.note { font-size: .82rem; color: var(--steel); }
.callout { background: var(--concrete); border-left: 3px solid var(--ink); padding: 16px 18px; font-size: .94rem; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 8px; padding: 10px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); background: var(--asphalt); color: var(--on-dark); }
.sticky-cta .btn { flex: 1; min-height: 50px; padding: 0 12px; }
.sticky-cta .sp { display: flex; flex-direction: column; justify-content: center; margin-right: 4px; line-height: 1.05; }
.sticky-cta .sp b { font-family: var(--f-display); font-size: 1.7rem; font-weight: 800; color: var(--price-on-dark); }
.sticky-cta .sp span { font-family: var(--f-data); font-size: .68rem; color: var(--on-dark-2); }
.sticky-cta .btn--dark { background: var(--paper); color: var(--ink); }
@media (min-width: 1000px) { .sticky-cta { display: none; } }
@media (max-width: 999px) { body.has-sticky .wa { display: none; } body.has-sticky .cookies { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* WhatsApp fijo */
.wa { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 18px 0 16px; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; box-shadow: 0 10px 28px rgba(18,20,23,.3); }
.wa svg { width: 26px; height: 26px; }
@media (max-width: 420px) { .wa span { display: none; } .wa { width: 54px; padding: 0; justify-content: center; } }

/* Vende */
.sell-hero { background: var(--asphalt); color: var(--on-dark); padding-block: 44px 40px; }
.sell-hero h1 { max-width: 14ch; font-size: clamp(2.6rem, 8vw, 4.8rem); }
.sell-hero p { color: var(--on-dark-2); max-width: 50ch; font-size: 1.05rem; margin: 0; }
.sell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px 72px; }
@media (min-width: 960px) { .sell { grid-template-columns: 1fr 1.05fr; align-items: start; gap: 56px; } }
.promise { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); margin-bottom: 24px; }
.promise div { padding: 16px 0 18px; }
.promise div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.promise b { font-family: var(--f-display); font-size: 3.2rem; font-weight: 800; display: block; line-height: 1; color: var(--accent); }
.promise span { font-family: var(--f-data); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.steps { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; counter-increment: s; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-data); font-size: .9rem; color: var(--accent); padding-top: 2px; }
.steps b { display: block; }
.sell .panel { border: 0; border-top: 3px solid var(--ink); background: var(--concrete); }
.sell .panel h2 { font-size: 2rem; }
.drop { border: 1px dashed #b8bbc1; padding: 18px; text-align: center; font-size: .92rem; cursor: pointer; display: block; background: var(--paper); }
.drop:hover { border-color: var(--ink); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.previews { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.previews img { width: 64px; height: 64px; object-fit: cover; }
.ok-msg { background: #e6f4ec; color: #0f5c2b; border-left: 3px solid var(--ok); padding: 14px; margin-top: 12px; }

/* Confianza */
.rating { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.rating b { font-family: var(--f-display); font-size: 4.4rem; line-height: .9; font-weight: 800; }
.stars { color: var(--accent); letter-spacing: 3px; font-size: 1.1rem; }
.reviews { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; padding: 22px 20px 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .review + .review { border-left: 1px solid var(--line); padding-left: 20px; } }
.section--soft .reviews, .section--soft .review { border-color: #cfd1d5; }
.review p { font-size: 1.15rem; font-weight: 500; line-height: 1.4; }
.review footer { font-family: var(--f-data); font-size: .72rem; letter-spacing: .04em; color: var(--steel); }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; } }
.split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.map { position: relative; overflow: hidden; background: var(--asphalt); color: var(--on-dark); aspect-ratio: 4 / 3; max-width: 100%;
  background-image: linear-gradient(var(--asphalt-line) 1px, transparent 1px), linear-gradient(90deg, var(--asphalt-line) 1px, transparent 1px); background-size: 48px 48px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.map__ph::before { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -70px 0 0 -9px; background: var(--accent); box-shadow: 0 0 0 8px rgba(215,20,26,.25); }
.map__ph p { margin-top: 20px; }
.map__ph .note { color: var(--on-dark-2); }
.map .btn--dark { background: var(--paper); color: var(--ink); }
.hours { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-variant-numeric: tabular-nums; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-family: var(--f-data); font-size: .9rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; border-top: 2px solid var(--ink); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-list small { font-family: var(--f-data); color: var(--steel); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-list a, .contact-list span { font-weight: 600; text-decoration: none; min-width: 0; }

.cta-band { background: var(--accent); color: #fff; padding: 32px 24px; display: grid; gap: 18px; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 44px; } }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; max-width: 56ch; }
.cta-band .btn { background: var(--asphalt); }
.cta-band .btn:hover { background: #000; }

.about-hero { background: var(--asphalt); color: var(--on-dark); }
.about-hero p { color: var(--on-dark-2); }
.about-hero img { filter: grayscale(.25); }

.legal { max-width: 760px; padding-block: 36px 72px; }
.legal h2 { margin-top: 1.4em; font-size: 1.8rem; }

/* Pie */
.foot { background: var(--asphalt); color: var(--on-dark-2); padding-block: 56px 24px; border-top: 3px solid var(--accent); }
.foot h3 { color: var(--on-dark); font-family: var(--f-data); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.foot p { margin: 0 0 6px; font-size: .94rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-dark); }
.foot .muted { color: #80858d; }
.foot__grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.foot__grid > :first-child { grid-column: 1 / -1; }
.foot__grid > * { min-width: 0; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 2fr 1.4fr 1fr 1fr; } .foot__grid > :first-child { grid-column: auto; } }
.foot__bottom { border-top: 1px solid var(--asphalt-line); margin-top: 36px; padding-top: 16px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-family: var(--f-data); font-size: .7rem; letter-spacing: .04em; }

.cookies { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 70; background: var(--paper); color: var(--ink); border-top: 3px solid var(--ink); box-shadow: 0 12px 40px rgba(18,20,23,.25); padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: .86rem; max-width: 560px; }
.cookies p { margin: 0; flex: 1; }
.cookies[hidden], [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media (min-width: 1000px) { .fgroup--row > .fgroup { padding: 0; border: 0; } }
.legal h1, .empty h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }

/* Plataformas donde estamos verificados */
.platforms { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
@media (min-width: 760px) { .platforms { grid-template-columns: 1fr 1fr; } }
.platform { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--paper); border-top: 3px solid var(--ink); text-decoration: none; transition: border-color .15s; }
.platform:hover { border-top-color: var(--accent); }
.platform__name { font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1; text-transform: uppercase; }
.platform__tag { font-family: var(--f-data); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.platform dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 0 4px; border-top: 1px solid var(--line); }
.platform dl div { padding: 10px 0 2px; }
.platform dl div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.platform dt { font-family: var(--f-data); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.platform dd { margin: 2px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.platform__quote { font-size: .9rem; color: var(--ink-2); margin: 6px 0 0; }
.platform__go { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: .9rem; color: var(--accent); }

/* Comparativa de mercado en la ficha */
.market { border-top: 3px solid var(--ink); background: var(--concrete); padding: 18px 20px 20px; margin-bottom: 24px; }
.market h3 { font-family: var(--f-data); font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-bottom: 12px; }
.market__bars { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #cfd1d5; }
.market__bars div { padding: 10px 0 4px; }
.market__bars div + div { border-left: 1px solid #cfd1d5; padding-left: 14px; }
.market__bars span { display: block; font-family: var(--f-data); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.market__bars b { font-family: var(--f-display); font-weight: 800; font-size: 2.1rem; line-height: 1.05; }
.market__bars div:first-child b { color: var(--price); }
.market__diff { font-size: .92rem; margin: 8px 0 12px; }
.market__diff.is-low { color: var(--ok); font-weight: 600; }
.price-box__deal { display: inline-block; margin-top: 8px; background: var(--ok); color: #fff; font-family: var(--f-data); font-size: .72rem; letter-spacing: .04em; padding: 5px 9px; }

/* Selector de idioma */
.lang { display: inline-flex; margin-left: auto; border: 1px solid var(--asphalt-line); border-radius: var(--r); overflow: hidden; }
.lang button { background: none; border: 0; color: var(--on-dark-2); font-family: var(--f-data); font-weight: 600; font-size: .82rem; letter-spacing: .08em; padding: 7px 9px; cursor: pointer; min-width: 34px; }
.lang button[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--on-dark); }
.lang + .top__call { margin-left: 8px; }
@media (max-width: 359px) { .top__call { display: none; } }
.logo { flex: none; }
.logo span { white-space: nowrap; }
@media (max-width: 420px) {
  .top__in { gap: 8px; }
  .logo { padding: 5px 12px; }
  .logo span { font-size: 1.4rem; }
  .top__call { padding: 8px 9px; font-size: .74rem; }
  .lang button { padding: 7px 6px; min-width: 30px; font-size: .76rem; }
}

/* Portada en móvil: solo el coche (sin el rótulo de la pared), nítido arriba, y el texto entra debajo */
@media (max-width: 899px) {
  .hero__img { position: relative; inset: auto; display: block; width: 100%; height: auto; max-width: 100%;
    opacity: 1; filter: none;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  .hero::after { display: none; }
  .hero__in { margin-top: -64px; padding-block: 0 0; }
}

/* ===== Vendidos ===== */
/* Foto en blanco y negro con un velo oscuro; el sello rojo es lo único en color */
.card--sold .card__img img { filter: grayscale(1) contrast(1.08) brightness(.78); opacity: 1; }
.card--sold .card__img::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(18,20,23,.05) 0%, rgba(18,20,23,.45) 100%); pointer-events: none; }
.card--sold { border-top-color: var(--accent); }
.card--sold .dgt { opacity: .55; }

/* Sello tipo tampón: doble marco, inclinado, con la fecha de venta */
.sello {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-11deg);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 22px 8px;
  border: 4px solid var(--accent); outline: 2px solid var(--accent); outline-offset: 4px;
  border-radius: 6px;
  background: rgba(215, 20, 26, .1);
  color: #ff3b40;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.3);
}
.sello b { font-family: var(--f-display); font-weight: 900; font-size: 2.5rem; line-height: .9; letter-spacing: .1em; text-transform: uppercase; padding-left: .1em; }
.sello i { font-style: normal; font-family: var(--f-data); font-weight: 600; font-size: .8rem; letter-spacing: .22em; color: #fff; opacity: .9; }
.card--sold:hover .sello { transform: translate(-50%, -50%) rotate(-7deg) scale(1.06); }
.sello--lg { padding: 14px 34px 12px; border-width: 6px; outline-width: 3px; outline-offset: 6px; }
.sello--lg b { font-size: clamp(3rem, 12vw, 5.5rem); }
.sello--lg i { font-size: 1rem; }

/* Precio del vendido: tachado en rojo */
.card--sold .card__price b { color: var(--steel); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--accent); }
.cash--sold { color: var(--accent); }
.card--sold .cash-meta { color: var(--ink); font-weight: 600; }

/* Ficha de un vendido */
.gal--sold .gal__track img { filter: grayscale(1) contrast(1.05) brightness(.82); }
.gal--sold::after { content: ''; position: absolute; inset: 0; background: rgba(18,20,23,.18); pointer-events: none; }

/* Separador "Vendidos" dentro del catálogo */
.sold-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin: 56px 0 20px; padding-top: 18px; border-top: 3px solid var(--accent); }
.sold-head h2 { margin: 0; color: var(--ink); }
.sold-head h2::after { content: '.'; color: var(--accent); }
.sold-head p { margin: 0; color: var(--steel); }

/* Bloque "Últimos vendidos" de la portada */
.sold-band .card { background: var(--asphalt-2); }
.sold-band .card__title, .sold-band .card .spec b { color: var(--on-dark); }
.sold-band .card__ver, .sold-band .card .spec i { color: var(--on-dark-2); }
.sold-band .card__specs, .sold-band .card__price { border-color: var(--asphalt-line); }
.sold-band .card--sold .cash-meta { color: var(--on-dark); }
.sold-band__note { margin: 24px 0 0; color: var(--on-dark-2); font-family: var(--f-data); font-size: .9rem; letter-spacing: .04em; }

/* Página Vendidos */
.sold-hero h1 em { font-style: normal; color: var(--accent); }
.sold-hero__lead { color: var(--on-dark-2); max-width: 52ch; margin: 10px 0 24px; font-size: 1.05rem; }
.sold-hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--asphalt-line); padding-bottom: 8px; max-width: 640px; }
.sold-hero__stats div { padding: 14px 12px 12px 0; }
.sold-hero__stats div + div { border-left: 1px solid var(--asphalt-line); padding-left: 14px; }
.sold-hero__stats b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1; }
.sold-hero__stats span { font-family: var(--f-data); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }

@media (prefers-reduced-motion: reduce) { .sello { transition: none; } }
