/* ==========================================================
   Vehículos Autlán — asfalto de noche, naranja y cromo
   ========================================================== */
:root {
  --bg: #0A0C10; --bg-2: #0E1117; --surface: #151A22; --surface-2: #1C222C; --surface-3: #232A36;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .15);
  --ink: #F3F5F8; --muted: #9AA4B2;
  --hot: #FF6B2C; --hot-2: #FFB547; --hot-3: #E8451B;
  --cyan: #46D2FF; --green: #35D39A; --blue: #7FB6FF; --orange: #FFA24D; --grey: #8F98A5;
  --grad: linear-gradient(100deg, #FFC56B, #FF6B2C 52%, #FF3D6E);
  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 18px; --r-lg: 26px; --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .75);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.no-scroll { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--hot); color: #1d0a02; }
.wrap { width: min(1220px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--hot); color: #1d0a02; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 16px; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hot { color: var(--hot); }
.tiny { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.tiny b { color: var(--hot-2); font-weight: 700; }
.note { margin-top: 18px; font-size: 13.5px; color: var(--muted); text-align: center; }
.note b { color: var(--blue); letter-spacing: .04em; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.link { color: var(--hot-2); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 181, 71, .4); }
.link:hover { text-decoration-color: currentColor; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 700 15px/1 var(--body); white-space: nowrap; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s, color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn--sm { min-height: 40px; padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--hot { background: linear-gradient(180deg, #FF8A4C, #F2561B); color: #fff; box-shadow: 0 10px 28px -10px rgba(255, 107, 44, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--hot:hover { box-shadow: 0 16px 36px -10px rgba(255, 107, 44, .95), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--line { border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.btn--line:hover { border-color: var(--hot); color: var(--hot-2); }
.btn--ghost { color: var(--muted); padding-inline: 14px; }
.btn--ghost:hover { color: var(--ink); }
.btn--wa { background: #1FB855; color: #04210f; }

/* ---------- Etiquetas ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 800 10.5px/1 var(--body); letter-spacing: .07em; text-transform: uppercase; background: rgba(255, 255, 255, .08); color: var(--muted); white-space: nowrap; }
.tag--disponible { background: rgba(53, 211, 154, .16); color: var(--green); }
.tag--apartado { background: rgba(255, 162, 77, .18); color: var(--orange); }
.tag--vendido { background: rgba(143, 152, 165, .22); color: #C3CAD3; }
.tag--ej { background: rgba(127, 182, 255, .18); color: var(--blue); }
.tag--est { background: rgba(255, 181, 71, .16); color: var(--hot-2); }
.tag--neg { background: rgba(70, 210, 255, .14); color: var(--cyan); }

/* ---------- Encabezado ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.top.is-stuck { background: rgba(10, 12, 16, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top__in { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 19px/1 var(--display); letter-spacing: -.02em; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); box-shadow: 0 6px 18px -6px rgba(255, 107, 44, .9); }
.brand__mark svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 9px 13px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.back { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px 8px 11px; border-radius: 999px; border: 1.5px solid var(--line-2); background: rgba(10, 12, 16, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 700; font-size: 14px; white-space: nowrap; transition: border-color .2s, color .2s; }
.back:hover { border-color: var(--hot); color: var(--hot-2); }
.back .ic { width: 17px; height: 17px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: grid; align-items: center; padding: 104px 0 64px; overflow: hidden;
  background: radial-gradient(900px 560px at 85% 20%, rgba(255, 107, 44, .17), transparent 60%), radial-gradient(700px 520px at 0% 100%, rgba(70, 210, 255, .1), transparent 60%), var(--bg); }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font: 700 12.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--hot-2); background: rgba(255, 255, 255, .03); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(53, 211, 154, .22); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(53, 211, 154, 0); } }
.hero h1 { margin-top: 22px; font-size: clamp(2.15rem, 4.8vw, 3.9rem); font-weight: 800; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__p { margin-top: 18px; max-width: 56ch; color: var(--muted); font-size: 1.06rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero__stats li { display: flex; align-items: baseline; gap: 9px; color: var(--muted); font-size: 14px; }
.hero__stats b { font: 800 1.9rem/1 var(--display); color: var(--ink); }

/* Búsqueda rápida */
.finder { margin-top: 28px; padding: 10px; border-radius: 22px; background: rgba(21, 26, 34, .85); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(10px); max-width: 560px; }
.finder__tipos { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.finder__tipos::-webkit-scrollbar { display: none; }
.finder__tipos button { flex: 1 0 auto; min-height: 38px; padding: 6px 12px; border-radius: 12px; font: 700 14px/1 var(--body); color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.finder__tipos button:hover { color: var(--ink); }
.finder__tipos button.is-on { background: rgba(255, 107, 44, .16); color: var(--hot-2); box-shadow: inset 0 0 0 1px rgba(255, 107, 44, .5); }
.finder__row { display: flex; align-items: end; gap: 10px; padding-top: 10px; }
.finder__f { flex: 1; display: grid; gap: 4px; padding-left: 8px; }
.finder__f span { font: 700 11.5px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.finder__f select { border: 0; background-color: transparent; padding-left: 0; min-height: 36px; font-weight: 700; font-size: 16px; }
.finder__f select:focus { box-shadow: none; }

/* Escena animada */
.hero__art { position: relative; width: 100%; max-width: 620px; justify-self: center; }
.scene { position: relative; aspect-ratio: 5 / 4; border-radius: 30px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow);
  background: linear-gradient(180deg, #1a1530 0%, #3b2140 38%, #9b3f2f 68%, #e0793a 100%); }
.scene__sun { position: absolute; left: 50%; top: 44%; width: 34%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #FFE3A3 0%, #FFB547 45%, rgba(255, 107, 44, 0) 72%); filter: blur(1px); }
.scene__hills { position: absolute; left: 0; right: 0; bottom: 26%; width: 200%; height: 46%; animation: drift 40s linear infinite; }
.scene__hills .h1 { fill: #3a1d34; opacity: .9; }
.scene__hills .h2 { fill: #22142a; }
@keyframes drift { to { transform: translateX(-50%); } }
.scene__posts { position: absolute; left: 0; right: 0; bottom: 26%; height: 40%; }
.scene__posts i { position: absolute; bottom: 0; width: 4px; height: 100%; background: #120d18; border-radius: 2px; animation: post 3.2s linear infinite; }
.scene__posts i::before { content: ""; position: absolute; top: 0; right: -2px; width: 26px; height: 4px; border-radius: 2px; background: #120d18; }
.scene__posts i::after { content: ""; position: absolute; top: 3px; right: -2px; width: 14px; height: 8px; border-radius: 0 0 8px 8px; background: #FFE3A3; box-shadow: 0 6px 24px 6px rgba(255, 210, 120, .45); }
.scene__posts i:nth-child(2) { animation-delay: -1.07s; } .scene__posts i:nth-child(3) { animation-delay: -2.14s; }
@keyframes post { from { left: 110%; } to { left: -12%; } }
.scene__road { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(180deg, #1b1d24, #0d0f13); border-top: 3px solid #2c2f38; overflow: hidden; }
.scene__dash { position: absolute; left: 0; top: 46%; width: 200%; height: 5px; background: repeating-linear-gradient(90deg, #FFD27A 0 46px, transparent 46px 96px); opacity: .8; animation: road .7s linear infinite; }
@keyframes road { to { transform: translateX(-96px); } }
.scene__car { position: absolute; left: 8%; right: 8%; bottom: 13%; animation: bob 1.2s ease-in-out infinite; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .45)); }
.scene__car .rin { animation: girar .5s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-2px); } }
.tagf { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; font: 700 13.5px/1 var(--body); background: rgba(21, 26, 34, .88); border: 1px solid var(--line-2); backdrop-filter: blur(8px); box-shadow: var(--shadow); animation: float 4s ease-in-out infinite; }
.tagf .ic { color: var(--hot); }
.tagf--a { left: 5%; top: 7%; } .tagf--b { right: 5%; top: 21%; animation-delay: 1s; } .tagf--c { left: 9%; top: 35%; animation-delay: 2s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Secciones ---------- */
.sec { padding: clamp(64px, 9vw, 116px) 0; position: relative; }
.sec--deep { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.sec--cat { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec__head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec__head--row { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px 48px; align-items: end; }
.kicker { font: 800 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--hot); margin-bottom: 14px; }
.sec h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 800; }
.lead { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.sec__head--row .lead { margin-top: 0; }
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .field label > span { display: flex; justify-content: space-between; gap: 8px; font: 700 12.5px/1.2 var(--body); color: var(--muted); letter-spacing: .02em; }
.field > span b, .field label > span b { color: var(--hot-2); }
.field label { display: grid; gap: 7px; min-width: 0; }
.field--2 { grid-template-columns: 1fr 1fr; gap: 10px; }
.field--3 { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
select, input[type="text"], input[type="tel"], input[type="number"], textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA4B2' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; text-overflow: ellipsis; }
select option { background: #151A22; color: var(--ink); }
textarea { resize: vertical; min-height: 76px; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--hot); box-shadow: 0 0 0 3px rgba(255, 107, 44, .22); }
::placeholder { color: rgba(154, 164, 178, .65); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #FFE1C8, #FF6B2C 62%, #C9400E); border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #FF6B2C; border: 0; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.seg--wrap { flex-wrap: wrap; }
.seg button { flex: 1 1 auto; min-height: 36px; padding: 6px 9px; border-radius: 9px; font: 700 13px/1 var(--body); color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--hot); color: #fff; }
.check, .field label.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--hot); flex: none; }
.tool { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; font: 700 13.5px/1 var(--body); color: var(--ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); }
.tool i { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font: 800 11px/1 var(--body); font-style: normal; background: var(--hot); color: #fff; }

/* ---------- Catálogo ---------- */
.cat { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.filters { position: sticky; top: 84px; display: grid; gap: 16px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.filters__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filters__top strong { font: 800 1.1rem/1 var(--display); }
.filters .tool--filt { display: none; }
.results__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.results__txt { color: var(--muted); font-size: 14.5px; }
.results__txt b { color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; font: 700 13px/1 var(--body); color: var(--muted); }
.sort select { width: auto; min-height: 40px; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 14px; }
.empty { padding: 40px 18px; text-align: center; color: var(--muted); font-size: 15px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); }

.card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; transition: transform .35s var(--ease), border-color .25s, box-shadow .35s; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 107, 44, .55); box-shadow: 0 22px 40px -22px rgba(255, 107, 44, .45); }
.card.is-cmp { border-color: var(--cyan); }
.card.is-off { opacity: .66; }
.card__img { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 110%, rgba(255, 107, 44, .22), transparent 60%), linear-gradient(180deg, #202734, #151A22); }
.card__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 16%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); }
.card__img .veh { width: 88%; transition: transform .5s var(--ease); }
.card:hover .card__img .veh { transform: translateX(6px) scale(1.02); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__tags { position: absolute; left: 10px; top: 10px; right: 10px; z-index: 2; }
.card__b { display: grid; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card h3 { font: 800 1.12rem/1.15 var(--display); }
.card h3 span { color: var(--muted); font-weight: 600; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.card__meta .ic { width: 14px; height: 14px; }
.card__f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.card__p { font: 800 1.28rem/1 var(--display); color: var(--hot-2); letter-spacing: -.02em; }
.card__p small { display: block; margin-top: 4px; font: 600 11.5px/1 var(--body); color: var(--muted); letter-spacing: 0; }
.card__p.is-vendido { color: var(--grey); text-decoration: line-through; }
.cmpbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; font: 700 12.5px/1 var(--body); color: var(--muted); border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, .03); transition: color .2s, border-color .2s, background .2s; }
.cmpbtn:hover { color: var(--ink); border-color: var(--cyan); }
.cmpbtn[aria-pressed="true"] { color: #052430; background: var(--cyan); border-color: transparent; }

/* ---------- Comparador ---------- */
.cmp__empty { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cmp__slot { display: grid; place-items: center; gap: 10px; min-height: 200px; padding: 20px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-2); color: var(--muted); text-align: center; font-size: 14.5px; }
.cmp__slot .ic { width: 34px; height: 34px; color: var(--hot); opacity: .8; }
.cmp__wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); scrollbar-width: thin; }
.cmp table { width: 100%; min-width: 640px; border-collapse: collapse; table-layout: fixed; }
.cmp th, .cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.cmp thead th { vertical-align: top; padding-top: 16px; }
.cmp tbody th { width: 170px; color: var(--muted); font-weight: 700; font-size: 13px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.cmp thead th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; width: 170px; }
.cmp td { font-weight: 700; font-variant-numeric: tabular-nums; }
.cmp td.is-best { color: var(--green); }
.cmp td.is-best::after { content: "★ mejor"; margin-left: 8px; font: 800 10px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 3px 6px; border-radius: 6px; background: rgba(53, 211, 154, .15); vertical-align: 2px; }
.cmp__veh { display: grid; gap: 8px; }
.cmp__veh .veh { width: 100%; max-width: 220px; }
.cmp__veh b { font: 800 1.05rem/1.15 var(--display); }
.cmp__veh .row { margin-top: 0; gap: 6px; }
.cmp__veh .link { font-size: 13px; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }

/* ---------- Crédito ---------- */
.fin { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.calc { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); scroll-margin-top: 90px; }
.calc__in { padding: 24px; display: grid; gap: 16px; align-content: start; }
.calc__out { padding: 24px; display: grid; gap: 8px; align-content: start; background: linear-gradient(160deg, rgba(255, 107, 44, .17), rgba(70, 210, 255, .07) 60%, transparent), var(--surface-2); border-left: 1px solid var(--line); }
.calc__out .tag { justify-self: start; }
.calc__lbl { margin-top: 8px; font-weight: 700; color: var(--muted); font-size: 14px; }
.calc__big { font: 800 clamp(2.3rem, 4.4vw, 3.3rem)/1 var(--display); letter-spacing: -.03em; color: var(--hot-2); font-variant-numeric: tabular-nums; }
.calc__sub { font-size: 13.5px; color: var(--muted); min-height: 2.6em; }
.calc__dl { display: grid; margin: 8px 0 6px; }
.calc__dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.calc__dl dt { color: var(--muted); } .calc__dl dd { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.calc__dl .is-total dd, .calc__dl .is-total dt { color: var(--ink); font-weight: 800; }
.calc__bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin: 6px 0 2px; background: rgba(255, 255, 255, .08); }
.calc__bar i { display: block; height: 100%; transition: width .4s var(--ease); }
.calc__bar i:nth-child(1) { background: var(--cyan); } .calc__bar i:nth-child(2) { background: var(--hot); } .calc__bar i:nth-child(3) { background: #FF3D6E; }
.calc__key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.calc__key span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.money { position: relative; display: block; }
.money i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); pointer-events: none; }
.money input { padding-left: 26px; }
.suffix { position: relative; display: block; }
.suffix i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); pointer-events: none; }
.suffix input { padding-right: 30px; }
.fin__side { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.fin__side h3 { font-size: 1.3rem; }
.opts { display: grid; gap: 10px; margin: 16px 0 12px; }
.opts li { display: grid; gap: 3px; padding: 13px 14px; border-radius: 13px; background: rgba(0, 0, 0, .22); border-left: 3px solid var(--hot); }
.opts b { font-weight: 800; } .opts span { font-size: 13.5px; color: var(--muted); }

/* ---------- Vender ---------- */
.sell { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.sell__form { padding: 24px; display: grid; gap: 16px; align-content: start; }
.sell__form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.sell__form legend { padding: 0; margin-bottom: 4px; font: 800 12.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--hot); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: transform .2s; }
.swatches button:hover { transform: scale(1.1); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--hot); }
.drop { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--line-2); cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: border-color .2s, color .2s; }
.drop:hover { border-color: var(--hot); color: var(--ink); }
.drop .ic { width: 26px; height: 26px; color: var(--hot); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 9px; flex: none; border: 1px solid var(--line-2); }
.sell__out { padding: 24px; display: grid; gap: 14px; align-content: start; background: linear-gradient(170deg, rgba(255, 107, 44, .1), transparent 50%), var(--surface-2); border-left: 1px solid var(--line); min-width: 0; }
.sell__out > h3 { font: 800 12.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sell__card { max-width: 360px; width: 100%; justify-self: center; pointer-events: none; }
.sell__card .card { cursor: default; }
.steps { display: grid; gap: 8px; counter-reset: s; }
.steps li { position: relative; padding-left: 38px; font-size: 14px; color: var(--muted); min-height: 28px; display: flex; align-items: center; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 800 13px/1 var(--display); color: #fff; background: var(--grad); }
.msg { margin: 0; max-height: 220px; overflow: auto; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .32); border: 1px dashed var(--line-2); font: 500 13px/1.55 var(--body); white-space: pre-wrap; overflow-wrap: anywhere; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Compra segura ---------- */
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: t; }
.tip { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s, opacity .7s var(--ease); }
.tip:hover { transform: translateY(-4px); border-color: rgba(255, 107, 44, .45); }
.tip::before { counter-increment: t; content: "0" counter(t); position: absolute; right: 18px; top: 16px; font: 800 13px/1 var(--display); color: rgba(255, 255, 255, .22); }
.tip__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(255, 107, 44, .13); color: var(--hot); font-size: 21px; }
.tip h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.2; }
.tip p { color: var(--muted); font-size: 14.5px; }

/* ---------- Pie ---------- */
.foot { padding: 44px 0 110px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot__in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px 48px; }
.foot p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.foot .tiny { margin-top: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot__links a { font-weight: 700; color: var(--hot-2); }
.foot__links a:hover { text-decoration: underline; }
.dock { display: none; }

/* ---------- Barra de comparación ---------- */
.cbar { position: fixed; left: 50%; bottom: 18px; z-index: 130; translate: -50% 0; width: min(560px, calc(100% - 24px)); padding: 8px 8px 8px 12px; border-radius: 20px; background: rgba(21, 26, 34, .94); border: 1px solid rgba(70, 210, 255, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); animation: up .35s var(--ease); }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }
.cbar__in { display: flex; align-items: center; gap: 10px; }
.cbar__list { flex: 1; display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cbar__list li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 999px; background: rgba(70, 210, 255, .12); font: 700 12.5px/1 var(--body); white-space: nowrap; }
.cbar__list button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.cbar__list button .ic { width: 12px; height: 12px; }

/* ---------- Hoja de la ficha ---------- */
.sheet { position: fixed; inset: 0; z-index: 250; }
.sheet__back { position: absolute; inset: 0; background: rgba(4, 5, 8, .64); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s; }
.sheet__card { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%); overflow-y: auto; overscroll-behavior: contain; background: var(--bg-2); border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px rgba(0, 0, 0, .6); transform: translateX(100%); transition: transform .45s var(--ease); outline: none; }
.sheet.is-on .sheet__back { opacity: 1; } .sheet.is-on .sheet__card { transform: none; }
.sheet__x { position: sticky; top: 12px; z-index: 5; float: right; margin: 12px 12px -56px 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; background: rgba(10, 12, 16, .86); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.sheet__x:hover { background: var(--hot); color: #fff; }
.stage { position: relative; clear: both; display: grid; place-items: center; height: 280px; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 100%, rgba(255, 107, 44, .28), transparent 65%), linear-gradient(180deg, #232B39, #121620); }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent); }
.stage .veh { width: min(92%, 520px); }
.stage__tags { position: absolute; left: 14px; bottom: 14px; z-index: 2; }
.gal { display: flex; height: 300px; overflow-x: auto; scroll-snap-type: x mandatory; background: #10141b; scrollbar-width: none; clear: both; }
.gal::-webkit-scrollbar { display: none; }
.gal figure { flex: 0 0 100%; scroll-snap-align: start; }
.gal--multi figure { flex-basis: 86%; }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.sheet__pad { padding: 20px clamp(16px, 4vw, 26px) 40px; }
.sheet__pad h2 { margin-top: 12px; font-size: clamp(1.6rem, 4vw, 2.05rem); }
.sheet__pad h2 span { color: var(--muted); font-weight: 600; }
.sheet__sub { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.sheet__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 16px; }
.sheet__price b { font: 800 clamp(1.8rem, 5vw, 2.3rem)/1 var(--display); color: var(--hot-2); letter-spacing: -.03em; }
.sheet__price b.is-vendido { color: var(--grey); text-decoration: line-through; }
.sheet__price span { color: var(--muted); font-size: 14px; }
.alert { margin-top: 14px; padding: 12px 14px; border-radius: 13px; font-size: 14px; background: rgba(127, 182, 255, .12); border: 1px solid rgba(127, 182, 255, .35); color: #D6E7FF; }
.alert--warn { background: rgba(255, 162, 77, .12); border-color: rgba(255, 162, 77, .35); color: #FFE2C4; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.facts span { display: grid; gap: 4px; padding: 11px 12px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts b { font: 800 1.02rem/1.15 var(--display); color: var(--ink); text-transform: none; letter-spacing: -.01em; }
.sheet__pad h3 { margin: 22px 0 10px; font: 800 12.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: rgba(53, 211, 154, .12); color: #BFF3E0; border: 1px solid rgba(53, 211, 154, .25); }
.chips li .ic { width: 14px; height: 14px; }
.chips--soft li { background: rgba(255, 255, 255, .05); color: var(--ink); border-color: var(--line); }
.sheet__desc { color: var(--ink); font-size: 15px; }
.calc--sheet { grid-template-columns: 1fr; }
.calc--sheet .calc__out { border-left: 0; border-top: 1px solid var(--line); }
.calc--sheet .calc__in, .calc--sheet .calc__out { padding: 18px; }
.sheet__cta { display: grid; gap: 9px; margin-top: 22px; }
.sheet__cta .btn { width: 100%; }
.sheet__more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sheet__more .btn { flex: 1 1 auto; }

.toast { position: fixed; left: 50%; bottom: 96px; z-index: 400; translate: -50% 20px; max-width: calc(100% - 32px); padding: 13px 20px; border-radius: 999px; font-weight: 700; font-size: 14.5px; background: var(--hot); color: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s var(--ease); }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ==========================================================
   Tableta y celular
   ========================================================== */
@media (max-width: 1100px) {
  .fin { grid-template-columns: 1fr; }
  .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat { grid-template-columns: 270px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav, .top .btn { display: none; }
  .top__in { position: relative; height: 58px; justify-content: center; }
  .back { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); min-height: 38px; padding: 7px 12px 7px 9px; font-size: 13px; }
  .hero { padding: 84px 0 44px; min-height: 0; }
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__art { max-width: 520px; }
  .tagf { font-size: 11.5px; padding: 7px 10px; }
  .finder { max-width: none; }
  .hero__stats { gap: 12px 22px; margin-top: 24px; }
  .hero__stats b { font-size: 1.5rem; }
  .sec__head--row, .calc, .sell, .foot__in { grid-template-columns: minmax(0, 1fr); }
  .calc__out, .sell__out { border-left: 0; border-top: 1px solid var(--line); }
  .calc__in, .calc__out, .sell__form, .sell__out, .fin__side { padding: 18px; }

  /* Catálogo: filtros plegables arriba */
  .cat { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cmp td.is-best::after { content: "★"; margin-left: 6px; padding: 3px 5px; }
  .filters { position: static; gap: 0; padding: 12px 14px; }
  .filters > *:not(.filters__top) { display: none; }
  .filters.is-open { gap: 14px; }
  .filters.is-open > *:not(.filters__top) { display: grid; }
  .filters.is-open > .check { display: flex; }
  .filters #f-reset { display: none; margin-left: auto; }
  .filters.is-open #f-reset { display: inline; }
  .filters .tool--filt { display: inline-flex; }
  .results__bar { flex-wrap: wrap; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
  .card:hover { transform: none; }

  .cmp__empty { grid-template-columns: 1fr; }
  .cmp__slot { min-height: 0; grid-auto-flow: column; justify-content: start; text-align: left; padding: 16px; }
  .cmp__slot:nth-child(n+2) { display: none; }
  .cmp tbody th, .cmp thead th:first-child { width: 112px; }
  .cmp th, .cmp td { padding: 11px 12px; font-size: 13.5px; }
  .cmp table { min-width: 560px; }

  /* Ficha: hoja inferior */
  .sheet__card { top: auto; left: 0; width: 100%; height: 94svh; border-left: 0; border-radius: 24px 24px 0 0; transform: translateY(100%); }
  .stage { height: 220px; }
  .gal { height: 240px; }

  .foot { padding-bottom: 120px; }
  .dock { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 120; display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr; gap: 2px; padding: 6px; border-radius: 20px; background: rgba(14, 17, 23, .93); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
  .dock a { display: grid; justify-items: center; gap: 4px; padding: 7px 2px; border-radius: 14px; font: 700 10.5px/1 var(--body); color: var(--muted); }
  .dock a .ic { font-size: 19px; }
  .dock__go { align-content: center; background: linear-gradient(180deg, #FF8A4C, #F2561B); color: #fff !important; font-size: 13.5px !important; }
  .cbar { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 74px); }
  .toast { bottom: 92px; }
}
@media (max-width: 560px) {
  .tips { grid-template-columns: 1fr; }
  .field--2 { grid-template-columns: 1fr 1fr; }
  .field--3 { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .finder__row .btn { padding-inline: 18px; }
  .tagf--c { display: none; }
}
@media (max-width: 420px) { .top .brand__name { display: none; } .checks { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Tarjeta: toda el área abre la ficha ---------- */
.card__open { font: inherit; color: inherit; text-align: left; letter-spacing: inherit; }
.card__open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__open:focus-visible { outline: none; }
.card:has(.card__open:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 3px; }
.cmpbtn { position: relative; z-index: 2; }
@media (max-width: 900px) { .toast { bottom: 168px; } }
