/* ==========================================================================
   JPF AUTOS · Sistema de diseño y estilos
   Identidad: oscuro premium + rojo de marca. Un solo acento, superficies y
   hairlines para la profundidad (sin sombras ni brillos sobre negro).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* superficies */
  --bg: #0b0b0d;
  --bg-2: #141417;
  --bg-3: #1d1d21;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --light: #f4f4f2;
  --light-2: #ffffff;
  --line-light: rgba(15, 15, 17, .1);
  /* texto */
  --text: #f4f4f5;
  --text-2: #d4d4d8;
  --muted: #a1a1aa;
  --muted-2: #9494a0;
  --ink: #0f0f11;
  --ink-2: #4b4b52;
  /* acento */
  --red: #d91e2e;
  --red-dark: #b0121f;
  --red-text: #ff5a68;
  --red-soft: rgba(217, 30, 46, .14);
  --wa: #25d366;
  --wa-dark: #1fbf5b;
  --wa-ink: #06301a;
  /* tipografía */
  --font-head: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(1.9rem, 3.2vw, 2.5rem);
  --fs-display: clamp(2.3rem, 5vw, 3.9rem);
  /* espaciado y forma */
  --space-section: 96px;
  --space-section-sm: 64px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-light: 0 12px 40px rgba(15, 15, 17, .08);
  --max: 1220px;
  --hdr: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.12; }
h1 { font-size: var(--fs-display); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: var(--fs-md); font-weight: 700; }
p { margin: 0 0 1rem; }
[id] { scroll-margin-top: calc(var(--hdr) + 20px); }
.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }

/* iconos SVG inline (sprite): tamaño por defecto para que nunca desborden */
svg.i, .i-sm { width: 1em; height: 1em; vertical-align: -.15em; flex: none; }
.i-sm { width: 14px; height: 14px; }
.i-big { width: 56px; height: 56px; color: var(--red-text); }

/* foco visible (teclado) */
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.light :focus-visible, .white :focus-visible { outline-color: var(--ink); }
.car:focus-within { border-color: #fff; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(217, 30, 46, .28); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-section) 0; }
.section--tight { padding: var(--space-section-sm) 0; }
.section--flush-top { padding-top: 0; }
.section.light { background: var(--light); color: var(--ink); }
.section.light .muted, .light .muted { color: var(--ink-2); }
.muted { color: var(--muted); }
.center { text-align: center; }
.hide { display: none !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red-text);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.light .eyebrow { color: var(--red); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { max-width: 580px; margin: 12px 0 0; font-size: var(--fs-md); color: var(--muted); }
.light .section-head p { color: var(--ink-2); }
.lead { font-size: var(--fs-md); color: var(--text-2); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 24px; border-radius: var(--r-pill);
  font-weight: 700; font-size: .95rem; line-height: 1.2; border: 1.5px solid transparent;
  cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease, filter .18s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.985); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); filter: none; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #ececec; filter: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); filter: none; }
.btn-outline { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .06); filter: none; }
.light .btn-outline { border-color: rgba(15, 15, 17, .22); color: var(--ink); }
.light .btn-outline:hover { border-color: var(--ink); background: rgba(15, 15, 17, .04); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: var(--wa-dark); filter: none; }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: 15px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; }
.btn-icon svg { width: 22px; height: 22px; }
.link { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; }
.link:hover { text-decoration-color: #fff; }
.link-red { color: var(--red-text); font-weight: 600; }
.link-red:hover { text-decoration: underline; text-underline-offset: 4px; }
.light .link { color: var(--ink); text-decoration-color: rgba(15, 15, 17, .3); }
.light .link-red { color: var(--red); }
.links-row { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; font-size: .9rem; }
.links-row a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; }
.links-row a:hover { color: #fff; }
.links-row svg { width: 16px; height: 16px; }
.links-row .dot { color: var(--muted-2); }

/* ---------- Header ---------- */
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar .left, .topbar .right { display: flex; gap: 22px; align-items: center; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; }
header.site {
  position: sticky; top: 0; z-index: 60; background: rgba(11, 11, 13, .9);
  border-bottom: 1px solid var(--line);
}
@media (hover: hover) { header.site { backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); background: rgba(11, 11, 13, .82); } }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); gap: 24px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 40px; width: auto; }
nav.main { display: flex; gap: 30px; align-items: center; }
nav.main a { font-weight: 600; font-size: .92rem; color: var(--muted); position: relative; padding: 8px 0; }
nav.main a:hover, nav.main a.active { color: #fff; }
nav.main a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); border-radius: 2px; }
.header-cta { display: flex; gap: 14px; align-items: center; }
.header-cta .tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--text-2); }
.header-cta .tel:hover { color: #fff; }
.header-cta .tel svg { width: 17px; height: 17px; color: var(--red-text); }
.burger, .wa-mini { display: none; }
.burger { background: none; border: 0; color: #fff; cursor: pointer; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; border-radius: 50%; }
.burger svg { width: 26px; height: 26px; }
.wa-mini { width: 44px; height: 44px; border-radius: 50%; background: var(--wa); color: var(--wa-ink); align-items: center; justify-content: center; }
.wa-mini svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 90; background: var(--bg);
  padding: 20px 24px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mobile-nav__top img { height: 34px; width: auto; }
.mobile-nav .close { background: none; border: 0; color: #fff; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.mobile-nav .close svg { width: 28px; height: 28px; }
.mobile-nav__links { display: flex; flex-direction: column; }
.mobile-nav__links a { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-nav__links a.active { color: var(--red-text); }
.mobile-nav__ctas { display: grid; gap: 10px; margin-top: 22px; }
.mobile-nav__foot { margin-top: auto; padding-top: 24px; font-size: .85rem; color: var(--muted); display: grid; gap: 6px; }
.mobile-nav__foot span { display: flex; gap: 8px; align-items: center; }
.mobile-nav__foot svg { width: 15px; height: 15px; color: var(--red-text); flex: none; }
body.nav-open { overflow: hidden; }

/* ---------- Hero (cinemático editorial) ----------
   Fotos reales del stock a sangre con gradado uniforme, titular grande a la izquierda con entrada
   enmascarada (una sola vez), pase muy lento entre 3 fotos con zoom sutil (Ken Burns) y fundido,
   pie de foto editorial con precio y enlace a la ficha, barras de progreso y pausa accesible.
   Si existe img/hero/hero.mp4, build.py inserta un <video> y el JS lo usa en lugar del pase. */
.hero { position: relative; background: var(--bg); overflow: hidden; }
.hero--cine { min-height: min(80vh, 780px); display: grid; grid-template-rows: 1fr auto; }
.hero__media { position: absolute; inset: 0; background: #000; }
.hero__slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity 1.6s ease-in-out; will-change: opacity; }
.hero__slide.is-on, .hero__slide.is-base { opacity: 1; }
.hero__img, .hero__video {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 100% 62%);
  transform-origin: var(--pos, 100% 62%); filter: saturate(.84) contrast(1.05) brightness(.92);
}
.hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero--video-on .hero__video { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11, 11, 13, .95) 0%, rgba(11, 11, 13, .8) 30%, rgba(11, 11, 13, .3) 58%, rgba(11, 11, 13, 0) 100%),
  linear-gradient(180deg, rgba(11, 11, 13, .5) 0%, rgba(11, 11, 13, 0) 26%, rgba(11, 11, 13, 0) 50%, rgba(11, 11, 13, .55) 76%, var(--bg) 100%); }
.hero__tint { position: absolute; inset: 0; background: radial-gradient(60% 70% at 88% 96%, rgba(217, 30, 46, .1) 0%, rgba(217, 30, 46, 0) 70%); }
.hero__body { position: relative; width: 100%; max-width: var(--max); padding: 64px 24px 40px; align-self: center; }
.hero--cine .kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2);
}
.hero--cine .kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }
.hero--cine .kicker [data-count] { color: #fff; }
.hero--cine h1 { max-width: 10.8em; font-size: clamp(2.6rem, 4.9vw, 4.25rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--red-text); }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .04em .14em 0; margin: -.06em 0 -.14em 0; }
.hero h1 .w__in { display: inline-block; }
.hero .lead { max-width: 520px; margin: 26px 0 34px; font-size: var(--fs-md); line-height: 1.55; }
.hero .lead--short { display: none; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* CTA con microinteracción: la flecha avanza y el fondo se desliza al rojo oscuro */
.btn-cta { position: relative; overflow: hidden; gap: 12px; padding-right: 26px; isolation: isolate; }
.btn-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red-dark); transform: translateX(-101%); transition: transform .32s cubic-bezier(.2, .7, .2, 1); }
.btn-cta:hover::before, .btn-cta:focus-visible::before { transform: none; }
.btn-cta:hover { background: var(--red); }
.btn-cta svg { transition: transform .32s cubic-bezier(.2, .7, .2, 1); }
.btn-cta:hover svg, .btn-cta:focus-visible svg { transform: translateX(5px); }
/* franja inferior: sellos + pie de foto + barras + pausa; deja ≥ 100 px libres para el buscador .quick */
.hero__foot { position: relative; padding-bottom: 104px; }
.hero__foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line-strong); padding-top: 18px; }
.stats { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
.stats div { font-family: var(--font-head); display: flex; align-items: baseline; gap: 8px; }
.stats b { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stats span { font-size: .85rem; color: var(--muted); }
.stats .seal { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; line-height: 1.3; }
.stats .seal svg { width: 17px; height: 17px; color: var(--red-text); flex: none; }
.hero__meta { display: flex; align-items: center; gap: 16px; }
.hero__cap { margin: 0; display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); transition: opacity .6s ease; white-space: nowrap; }
.hero__cap.is-out { opacity: 0; }
.hero__cap a { color: var(--text-2); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.hero__cap a:hover { color: #fff; border-color: #fff; }
.hero__idx { font-family: var(--font-head); font-weight: 800; color: var(--red-text); letter-spacing: .06em; }
.hero__idx::after { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--line-strong); margin-left: 10px; vertical-align: middle; }
.hero__bars { display: flex; gap: 6px; align-items: center; }
.hero__bars:empty { display: none; }
.hero__bars i { display: block; width: 22px; height: 2px; background: rgba(255, 255, 255, .22); position: relative; overflow: hidden; border-radius: 1px; }
.hero__bars i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.hero__bars i.is-done::after { transform: none; }
.hero__bars i.is-on::after { animation: hero-bar var(--dur, 10s) linear forwards; }
.hero--cine.is-paused .hero__bars i.is-on::after { animation-play-state: paused; }
.hero__pause { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(11, 11, 13, .45); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: border-color .18s ease, color .18s ease; visibility: hidden; }
.hero__pause.is-ready { visibility: visible; }
.hero__pause:hover { border-color: #fff; color: #fff; }
.hero__pause svg { fill: currentColor; }
.hero__pause .p-play { display: none; }
.hero__pause[aria-pressed="true"] .p-play { display: block; }
.hero__pause[aria-pressed="true"] .p-pause { display: none; }
.no-js .hero__pause, .no-js .hero__bars { display: none; }
/* movimiento (solo con JS y sin "reducir movimiento"): entrada del titular y zoom lento de cada foto */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .w__in { transform: translateY(112%); animation: hero-word .6s cubic-bezier(.2, .7, .1, 1) forwards; animation-delay: calc(120ms + var(--i, 0) * 85ms); }
  .js .hero--cine .kicker::before { transform-origin: left; animation: hero-rule .6s cubic-bezier(.2, .7, .1, 1) both; }
  .js .hero--cine .kicker, .js .hero--cine .lead, .js .hero--cine .actions, .js .hero__foot .wrap { opacity: 0; animation: hero-fade .7s ease forwards; }
  .js .hero--cine .kicker { animation-delay: 60ms; }
  .js .hero--cine .lead { animation-delay: 480ms; }
  .js .hero--cine .actions { animation-delay: 600ms; }
  .js .hero__foot .wrap { animation-delay: 760ms; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
  .js .hero--cine .hero__slide.is-on .hero__img { animation: hero-kb var(--kb, 12s) linear forwards; }
  .hero--cine.is-paused .hero__img { animation-play-state: paused; }
}
@keyframes hero-word { to { transform: none; } }
@keyframes hero-rule { from { transform: scaleX(0); } to { transform: none; } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hero-kb { from { transform: scale(1); } to { transform: scale(1.045); } }
@keyframes hero-bar { from { transform: scaleX(0); } to { transform: none; } }

/* ---------- Buscador rápido y exploración ---------- */
.quick { position: relative; z-index: 2; margin-top: -66px; }
.quick__box {
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  padding: 18px; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr auto; gap: 12px; align-items: end;
}
.quick__mobile { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea, .toolbar select {
  background: var(--bg-3); border: 1px solid var(--line); color: #fff; min-height: 46px; padding: 11px 14px; border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: .95rem; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input[type="radio"], .field input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field select, .toolbar select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.4'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; }
.light .field input, .light .field select, .light .field textarea { background: #fff; color: var(--ink); border-color: var(--line-light); }
.light .field input::placeholder, .light .field textarea::placeholder { color: #8a8a93; }
.light .field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234b4b52' stroke-width='2.4'><path d='M6 9l6 6 6-6'/></svg>"); }
.field .hint { font-size: .78rem; color: var(--muted-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.light .form-note { color: var(--ink-2); }
.form-actions { display: grid; gap: 10px; grid-template-columns: 1fr; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); padding: 10px 14px; border-radius: var(--r-pill); font-size: .9rem; cursor: pointer; color: var(--text-2); min-height: 44px; }
.radio-row label:has(input:checked) { border-color: var(--red); background: var(--red-soft); color: #fff; }
.radio-row input { accent-color: var(--red); margin: 0; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.check-row input { accent-color: var(--red); margin-top: 4px; }

.explore { padding: 28px 0 0; display: grid; gap: 14px; }
.explore__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.explore__row .label { flex: none; min-width: 90px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); padding: 8px 14px; min-height: 40px;
  border-radius: var(--r-pill); font-size: .875rem; cursor: pointer; background: transparent; color: var(--text-2); font-family: var(--font-body);
  transition: border-color .15s, background .15s, color .15s; -webkit-tap-highlight-color: transparent;
}
.chip:hover { color: #fff; border-color: #fff; }
.chip.on, .chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.chip .n { color: var(--muted-2); font-size: .8rem; }
.chip.on .n, .chip[aria-pressed="true"] .n { color: rgba(255, 255, 255, .8); }
.chip svg { width: 14px; height: 14px; }

/* ---------- Tarjeta de vehículo ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.car {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; position: relative; min-width: 0;
  transition: border-color .25s; -webkit-tap-highlight-color: transparent;
}
.car:hover { border-color: var(--line-strong); }
.car:active { transform: scale(.99); }
.light .car { background: #fff; border-color: var(--line-light); color: var(--ink); }
.light .car:hover { box-shadow: var(--shadow-light); }
.car__ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #202024; }
.car__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.car:hover .car__ph img { transform: scale(1.025); }
.car__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 24px); }
.badge { background: rgba(11, 11, 13, .8); backdrop-filter: blur(6px); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.badge.red { background: var(--red); }
.badge.grey { background: rgba(255, 255, 255, .85); color: var(--ink); }
.car__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; background: rgba(11, 11, 13, .7); color: #fff; font-size: .74rem; font-weight: 600; padding: 4px 9px; border-radius: var(--r-pill); }
.car__count svg { width: 13px; height: 13px; }
.car__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.car__brand { font-size: .82rem; font-weight: 600; color: var(--muted); }
.light .car__brand { color: var(--ink-2); }
.car h3 { font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.car__ver { color: var(--muted); font-size: .9rem; }
.light .car__ver { color: var(--ink-2); }
.car__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin-top: 8px; font-size: .82rem; color: var(--muted); }
.light .car__meta { color: var(--ink-2); }
.car__meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car__meta svg { width: 14px; height: 14px; flex: none; opacity: .8; }
.car__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); gap: 10px; }
.light .car__foot { border-color: var(--line-light); }
.price { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; }
.price s { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.price small { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); font-family: var(--font-body); }
.car .arrow { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: .2s; }
.light .car .arrow { border-color: rgba(15, 15, 17, .18); }
.car:hover .arrow { background: var(--red); border-color: var(--red); color: #fff; }
.car .arrow svg { width: 18px; height: 18px; }
.car a.cover { position: absolute; inset: 0; border-radius: var(--r-lg); }
.car--reservado .car__ph img { filter: grayscale(.5); }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); display: grid; gap: 16px; justify-items: center; }
.empty p { margin: 0; max-width: 460px; }
.empty .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- Servicio 360 ---------- */
.s360 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.s360__item { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.ico { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--red-soft); color: var(--red-text); display: grid; place-items: center; flex: none; }
.ico svg { width: 22px; height: 22px; }
.light .ico { background: var(--ink); color: #fff; }
.s360__item h3 { font-size: 1.05rem; }
.s360__item p { margin: 0; color: var(--muted); font-size: .93rem; }
.process { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 34px; }
.process__title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-bottom: 20px; color: var(--text-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 26px 24px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
.step__n { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; color: var(--red-text); font-size: .85rem; letter-spacing: .08em; margin-bottom: 14px; }
.step__n::after { content: ""; width: 24px; height: 1px; background: var(--red-text); opacity: .7; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: .93rem; }
.steps--compact .step { padding: 18px 20px; }
.steps--compact .step h3 { font-size: 1rem; }
.steps--stack { grid-template-columns: 1fr; gap: 12px; }

/* ---------- Servicios (claro) ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { background: #fff; border-radius: var(--r-lg); padding: 28px 24px; border: 1px solid var(--line-light); display: flex; flex-direction: column; gap: 12px; transition: box-shadow .25s; }
.service:hover { box-shadow: var(--shadow-light); }
.service h3 { font-size: 1.1rem; }
.service p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.service a { margin-top: auto; }

/* ---------- Financiamiento / calculadora ---------- */
.fin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.facts { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--text-2); }
.facts svg { width: 20px; height: 20px; color: var(--red-text); flex: none; margin-top: 3px; }
.calc { background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 16px; }
.calc h3 { font-size: 1.1rem; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .95rem; }
.calc__row b { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: -.02em; }
.calc__slider { display: grid; gap: 8px; }
.calc__slider .top { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); }
.calc__slider .top b { color: #fff; }
input[type="range"] { width: 100%; accent-color: var(--red); height: 32px; cursor: pointer; }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc__out div { background: var(--bg-3); border-radius: var(--r-md); padding: 12px 14px; }
.calc__out span { display: block; font-size: .8rem; color: var(--muted); }
.calc__out b { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: -.02em; }
.calc__note { font-size: .82rem; color: var(--muted-2); margin: 0; }

/* ---------- Vender (banner inicio) ---------- */
.sell {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-strong);
  display: grid; grid-template-columns: 1.05fr 1fr; min-height: 440px;
}
.sell__photo { position: relative; min-height: 320px; }
.sell__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.sell__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 20, 23, 0) 55%, var(--bg-2) 100%); }
.sell__txt { padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; }
.sell__txt h2 { margin-bottom: 14px; }
.sell__txt p { color: var(--muted); max-width: 460px; }
.sell__txt ul { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; gap: 10px; }
.sell__txt li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--text-2); }
.sell__txt li svg { width: 18px; height: 18px; color: var(--red-text); flex: none; }
.sell__txt .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__pic { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: #202024; }
.about__pic img { width: 100%; height: 100%; object-fit: cover; }
.about__pic .tag { position: absolute; left: 18px; bottom: 18px; background: rgba(11, 11, 13, .8); backdrop-filter: blur(6px); border: 1px solid var(--line-strong); padding: 10px 14px; border-radius: var(--r-md); font-size: .85rem; display: inline-flex; gap: 8px; align-items: center; }
.about__pic .tag svg { width: 15px; height: 15px; color: var(--red-text); }
.about h2 { margin-bottom: 16px; }
.about p { color: var(--muted); }
blockquote.q { margin: 22px 0; padding: 16px 20px; border-left: 3px solid var(--red); background: var(--bg-2); color: var(--text-2); border-radius: 0 var(--r-md) var(--r-md) 0; font-style: italic; }
.founders { display: flex; gap: 22px; flex-wrap: wrap; margin: 20px 0 26px; }
.founder { display: flex; gap: 12px; align-items: center; }
.founder i { width: 42px; height: 42px; border-radius: 50%; background: var(--red-soft); color: var(--red-text); display: grid; place-items: center; font-style: normal; font-weight: 800; font-family: var(--font-head); font-size: .85rem; }
.founder b { display: block; font-size: .95rem; }
.founder span { font-size: .8rem; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.values div { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); }
.values b { display: block; font-family: var(--font-head); margin-bottom: 4px; font-size: .95rem; }
.values span { font-size: .85rem; color: var(--muted); }

/* ---------- Testimonios ---------- */
.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.quote__mark { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: .6; color: var(--red-text); opacity: .9; }
.quote blockquote { margin: 0; }
.quote p { margin: 0; color: var(--text-2); font-size: 1.02rem; line-height: 1.7; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .who i { width: 40px; height: 40px; border-radius: 50%; background: var(--red-soft); color: var(--red-text); display: grid; place-items: center; font-style: normal; font-weight: 800; font-family: var(--font-head); font-size: .8rem; }
.quote .who b { display: block; font-size: .95rem; }
.quote .who span { font-size: .8rem; color: var(--muted); }

/* ---------- Vendidos ---------- */
.sold-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.sold { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: #202024; }
.sold img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: grayscale(.35); transition: .4s; }
.sold:hover img { filter: none; }
.sold span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: .82rem; font-weight: 600; background: linear-gradient(0deg, rgba(0, 0, 0, .88), transparent); line-height: 1.3; }
.sold i { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-style: normal; font-size: .7rem; font-weight: 800; padding: 4px 8px; border-radius: var(--r-pill); letter-spacing: .08em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--red-text); flex: none; transition: transform .2s; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 22px 20px; color: var(--muted); font-size: .97rem; }
.faq .a p { margin: 0 0 .6rem; }
.faq .a p:last-child { margin: 0; }

/* ---------- Contacto (claro) ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: start; }
.contact__info { display: grid; gap: 14px; }
.row-card { display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line-light); align-items: flex-start; }
.row-card b { display: block; font-family: var(--font-head); margin-bottom: 2px; }
.row-card span, .row-card a { color: var(--ink-2); font-size: .95rem; display: block; }
.row-card a:hover { color: var(--red); }
.row-card .links-row a { display: inline-flex; color: var(--ink); }
.agenda { background: #fff; border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 14px; }
.agenda h3 { font-size: 1.15rem; }
.agenda .muted { font-size: .92rem; margin: 0; }
.map { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); min-height: 300px; aspect-ratio: 4 / 3; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; text-align: center; padding: 24px; background: radial-gradient(600px 300px at 50% 40%, rgba(217, 30, 46, .25), transparent), var(--bg-2); }
.map__facade svg { width: 40px; height: 40px; color: var(--red-text); }
.map__facade b { font-family: var(--font-head); font-size: 1.1rem; }
.map__facade span { color: var(--muted); font-size: .9rem; }
.map__facade .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.map.loaded .map__facade { display: none; }

/* ---------- Footer ---------- */
footer { background: #050506; border-top: 1px solid var(--line); padding: 64px 0 28px; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 40px; }
footer .h { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; font-weight: 700; font-family: var(--font-body); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .93rem; }
footer li a { display: inline-block; padding: 5px 0; }
footer li a:hover { color: #fff; }
footer .brand img { height: 44px; width: auto; }
footer .brand p { max-width: 320px; font-size: .93rem; margin-top: 16px; }
footer .social { display: flex; gap: 10px; margin-top: 18px; }
footer .social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; }
footer .social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
footer .social svg { width: 17px; height: 17px; }
footer .legal { border-top: 1px solid var(--line); padding-top: 22px; font-size: .8rem; color: var(--muted-2); display: grid; gap: 8px; }
footer .legal p { margin: 0; max-width: 980px; }
footer .bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: .8rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 55; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: var(--wa-ink); display: grid; place-items: center; border: 1px solid rgba(0, 0, 0, .15);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: var(--wa-dark); }
body.no-float .wa-float { display: none; }

/* ---------- Cabecera de página (stock / vender / 404) ---------- */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: var(--bg); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-head p { color: var(--muted); max-width: 620px; margin: 14px 0 0; font-size: var(--fs-md); }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { padding: 6px 0; display: inline-block; }
.crumbs a:hover { color: #fff; }
.crumbs--bar { justify-content: space-between; }
.page-head--photo { position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: center; border-bottom: 0; }
.page-head--photo img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.page-head--photo .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 13, .95) 0%, rgba(11, 11, 13, .85) 40%, rgba(11, 11, 13, .3) 75%, rgba(11, 11, 13, .1) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 13, 0) 30%); }
.page-head--photo .wrap { position: relative; }

/* ---------- Stock ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 28px 0 18px; }
.toolbar .count { color: var(--muted); font-size: .95rem; }
.toolbar .count b { color: #fff; }
.toolbar .right { display: flex; gap: 10px; align-items: center; }
.toolbar select { width: auto; min-width: 200px; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.active-filters .chip { background: var(--bg-2); border-color: var(--line-strong); color: #fff; min-height: 36px; padding: 6px 12px; }
.active-filters .chip svg { color: var(--muted); }
.stock-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--hdr) + 16px); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 18px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; }
.filters__head h2 { font-size: 1.05rem; }
.filters__head button { background: none; border: 0; color: var(--red-text); font-size: .85rem; cursor: pointer; font-weight: 700; padding: 8px 4px; min-height: 40px; }
.filters .close-sheet { display: none; }
.filters__group { display: grid; gap: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filters__foot { display: none; }
.filters-toggle { display: none; }
.filters-toggle .n { background: var(--red); color: #fff; border-radius: var(--r-pill); font-size: .75rem; padding: 2px 8px; }
.sheet-backdrop { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 70; }
.stock-foot { margin-top: 40px; }

/* ---------- Ficha de vehículo ---------- */
.veh { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-areas: "gallery title" "gallery side"; gap: 22px 32px; align-items: start; }
.veh > * { min-width: 0; }
.gallery { grid-area: gallery; }
.veh__title { grid-area: title; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 22px 26px; display: grid; gap: 6px; }
.veh__title .brand { font-size: .85rem; font-weight: 600; color: var(--muted); }
.veh__title h1 { font-size: 1.65rem; }
.veh__title .ver { color: var(--muted); }
.veh__title .tags { margin-bottom: 8px; }
.veh__title .price--mobile { display: none; }
.sidecard { grid-area: side; }
.gallery__main { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: #202024; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__zoom { position: absolute; inset: 0; background: none; border: 0; cursor: zoom-in; width: 100%; height: 100%; }
.gallery .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(11, 11, 13, .7); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.gallery .nav:hover { background: var(--red); }
.gallery .nav.prev { left: 14px; } .gallery .nav.next { right: 14px; }
.gallery .nav svg { width: 20px; height: 20px; }
.gallery .counter { position: absolute; right: 14px; bottom: 14px; background: rgba(11, 11, 13, .7); padding: 6px 12px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 600; z-index: 2; }
.gallery .expand { position: absolute; left: 14px; bottom: 14px; background: rgba(11, 11, 13, .7); color: #fff; border: 0; padding: 7px 12px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; z-index: 2; }
.gallery .expand svg { width: 14px; height: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.thumbs button { border: 2px solid transparent; padding: 0; background: none; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; opacity: .6; transition: .15s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"], .thumbs button:hover { opacity: 1; border-color: var(--red); }
.sidecard { position: sticky; top: calc(var(--hdr) + 16px); background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 18px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { background: var(--red-soft); color: var(--red-text); font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill); }
.sidecard .brand { font-size: .85rem; font-weight: 600; color: var(--muted); }
.sidecard h1 { font-size: 1.65rem; margin: 4px 0 2px; }
.sidecard .ver { color: var(--muted); }
.sidecard .price { font-size: 2.1rem; }
.sidecard .price small { margin-top: 4px; }
.keyspecs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.keyspecs div { background: var(--bg-3); border-radius: var(--r-md); padding: 11px 14px; }
.keyspecs span { display: block; font-size: .8rem; color: var(--muted); }
.keyspecs b { font-family: var(--font-head); font-size: 1rem; }
.ctas { display: grid; gap: 12px; }
.sidecard .fin { padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.sidecard .fin b { color: #fff; }
.mini { background: var(--bg-3); border-radius: var(--r-md); padding: 16px; display: grid; gap: 12px; }
.mini h3 { font-size: 1rem; }
.mini .muted { font-size: .88rem; margin: 0; }
.veh-content { margin-top: 36px; max-width: 900px; display: grid; gap: 22px; }
.block { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.block h2 { font-size: 1.3rem; margin-bottom: 16px; }
.block .desc p { color: var(--text-2); }
.block .desc p:last-child { margin: 0; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.spec-table div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.spec-table span { color: var(--muted); }
.spec-table b { text-align: right; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--text-2); }
.checklist li svg { width: 17px; height: 17px; color: var(--red-text); flex: none; margin-top: 3px; }
.checklist--1 { grid-template-columns: 1fr; }
.veh-bar { display: none; }
.notfound { text-align: center; padding: 72px 20px; display: grid; gap: 14px; justify-items: center; }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.notfound p { color: var(--muted); max-width: 520px; margin: 0; }
.notfound .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .95); z-index: 100; display: none; align-items: center; justify-content: center; touch-action: pinch-zoom; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: var(--red); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox .x { top: 16px; right: 16px; }
.lightbox .p { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .nx { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: .85rem; font-weight: 600; background: rgba(255, 255, 255, .1); padding: 6px 12px; border-radius: var(--r-pill); }
body.lb-open { overflow: hidden; }

/* ---------- Vender ---------- */
.sell-page { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.why { display: grid; gap: 12px; margin-top: 24px; }
.why > div { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.why b { display: block; font-family: var(--font-head); margin-bottom: 2px; }
.why span { font-size: .92rem; color: var(--muted); }
.two-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.two-ways div { padding: 20px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.two-ways b { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 6px; }
.two-ways span { font-size: .92rem; color: var(--muted); }
.formcard { background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 32px; }
.formcard h2 { font-size: 1.45rem; margin-bottom: 6px; }
.formcard .muted { font-size: .92rem; }

/* ---------- Animación de entrada (solo con JS y sin reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: opacity 1.6s ease-in-out !important; }
  .hero__cap { transition: opacity .6s ease !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .s360, .services { grid-template-columns: repeat(2, 1fr); }
  .quick__box { grid-template-columns: 1fr 1fr; }
  .quick__box .btn { grid-column: 1 / -1; }
  .sold-strip { grid-template-columns: repeat(3, 1fr); }
  .fin-grid, .about, .contact, .veh, .sell-page { grid-template-columns: 1fr; }
  .sell { grid-template-columns: 1fr; }
  .sell__photo { min-height: 260px; }
  .sell__photo::after { background: linear-gradient(0deg, var(--bg-2) 0%, rgba(20, 20, 23, 0) 60%); }
  .sidecard { position: static; }
  .testi { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .stock-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-toggle { display: inline-flex; }
  .filters { display: none; }
  .filters.open { display: grid; position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 84vh; overflow-y: auto; z-index: 80; border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .filters .close-sheet { display: grid; }
  .filters.open .filters__foot { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); background: var(--bg-2); border-top: 1px solid var(--line); z-index: 81; }
  .sheet-backdrop.open { display: block; }
  .thumbs { grid-template-columns: repeat(6, 1fr); }
  .veh { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "gallery" "side"; gap: 16px; }
  .veh__title .price--mobile { display: block; font-size: 1.6rem; margin-top: 6px; }
  .veh__title .tags { margin-bottom: 4px; }
  .sidecard .price { font-size: 1.7rem; }
  .veh-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 11, 13, .96); border-top: 1px solid var(--line-strong);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .veh-bar.show { transform: none; }
  .veh-bar .price { font-size: 1.15rem; }
  .veh-bar .price small { font-size: .72rem; }
  .veh-bar .btns { display: flex; gap: 8px; }
  body.ficha { padding-bottom: 80px; }
}
@media (max-width: 760px) {
  :root { --hdr: 62px; --space-section: 64px; --space-section-sm: 48px; }
  .topbar { display: none; }
  nav.main, .header-cta .tel, .header-cta .btn { display: none; }
  .burger, .wa-mini { display: inline-flex; }
  .header-cta { gap: 6px; }
  .logo img { height: 34px; }
  /* Hero móvil: la foto ocupa la parte superior (frente del auto); kicker, titular, lead corto y botones
     entran sobre el degradado inferior (ruedas y suelo); sellos en rejilla 2x2 y pie de foto debajo. */
  .hero--cine { min-height: 0; display: block; }
  .hero__media { position: relative; height: clamp(400px, 60vh, 560px); }
  .hero__img, .hero__video { object-position: var(--mpos, 50% 50%); transform: none; animation: none !important; }
  .hero__shade { background: linear-gradient(180deg, rgba(11, 11, 13, .35) 0%, rgba(11, 11, 13, 0) 22%, rgba(11, 11, 13, 0) 40%, rgba(11, 11, 13, .55) 58%, rgba(11, 11, 13, .84) 70%, rgba(11, 11, 13, .97) 84%, var(--bg) 100%); }
  .hero__tint { background: radial-gradient(70% 50% at 60% 40%, rgba(217, 30, 46, .1) 0%, rgba(217, 30, 46, 0) 70%); }
  .hero__body { display: flex; flex-direction: column; margin-top: -170px; padding: 0 24px; }
  .hero--cine .kicker { margin-bottom: 14px; }
  .hero--cine h1 { font-size: clamp(1.5rem, 8vw, 2rem); max-width: none; line-height: 1.06; }
  .hero .lead { display: none; }
  .hero .lead--short { display: block; font-size: 1rem; margin: 16px 0 20px; color: var(--muted); }
  .hero .actions { flex-direction: column; gap: 10px; }
  .hero .actions .btn { width: 100%; }
  .hero__foot { padding-top: 28px; padding-bottom: 96px; }
  .hero__foot .wrap { display: grid; gap: 18px; padding-top: 18px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .stats div:not(.seal) { flex-direction: column; align-items: flex-start; gap: 3px; }
  .stats .seal { align-items: flex-start; font-size: .88rem; }
  .stats .seal svg { margin-top: 2px; }
  .stats b { font-size: 1.3rem; }
  .hero__meta { justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .hero__cap { white-space: normal; }
  .quick { margin-top: -58px; }
  .quick__box { display: none; }
  .quick__mobile { display: grid; gap: 12px; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 16px; }
  .quick__mobile .chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .quick__mobile .chips::-webkit-scrollbar { display: none; }
  .quick__mobile .chip { flex: none; }
  .explore { display: none; }
  .grid, .grid--2 { grid-template-columns: 1fr; }
  .s360, .services, .steps, .form-grid, .two-ways, .calc__out, .spec-table, .checklist, .keyspecs, .sold-strip { grid-template-columns: 1fr; }
  .keyspecs { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service { padding: 18px 16px; }
  .service p { font-size: .85rem; }
  .sold-strip { grid-template-columns: repeat(2, 1fr); }
  .sell__txt, .formcard, .calc, .block, .sidecard { padding: 24px 20px; }
  .section-head { margin-bottom: 26px; }
  footer .cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  footer .cols .brand, footer .cols .contact-col { grid-column: 1 / -1; }
  footer li a { padding: 9px 0; }
  .page-head { padding: 40px 0 32px; }
  .page-head--photo { min-height: 320px; }
  .thumbs { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumbs button { flex: 0 0 76px; scroll-snap-align: center; }
  .gallery__main { aspect-ratio: 4 / 3; }
  .sell-page .formcard { order: -1; }
  .field input, .field select, .field textarea, .toolbar select { font-size: 16px; }
  .chip { min-height: 42px; padding: 9px 14px; font-size: .9rem; }
  .toolbar select { min-width: 0; }
  .btn-sm { min-height: 44px; }
  .crumbs { font-size: .82rem; }
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  body.has-float { padding-bottom: 20px; }
}
@media (max-width: 480px) {
  .car__meta { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr; }
}

/* carrusel móvil (destacados, vendidos, testimonios); al final para tener prioridad sobre las reglas base */
@media (max-width: 760px) {
  .carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 24px 12px; margin: 0 -24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding: 24px; }
  .carousel::-webkit-scrollbar { display: none; }
  .carousel > * { flex: 0 0 82vw; scroll-snap-align: start; }
  .sold-strip.carousel > * { flex: 0 0 56vw; }
}
