/* ==========================================================================
   BALDA GARAGE · Design system
   ========================================================================== */
:root {
  --bg: #0b0c0e;
  --bg-2: #101215;
  --surface: #15171b;
  --surface-2: #1c1f24;
  --surface-3: #252930;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f2ee;
  --text-2: #c4c6ca;
  --muted: #8b9098;
  --accent: #ff5a1f;
  --accent-2: #ff7a45;
  --accent-ink: #160700;
  --accent-soft: rgba(255, 90, 31, 0.14);
  --ok: #3ddc97;
  --warn: #ffc247;
  --danger: #ff4d5e;

  --ff-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 48px -24px rgba(0,0,0,.6);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--ff-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1.2em; height: 1.2em; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
  cursor: pointer; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(255, 90, 31, .7); }
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 14px 36px -10px rgba(255, 90, 31, .85); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.24); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2); color: var(--text);
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 12, 14, .78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.logo-mark { width: 34px; height: 34px; }
.logo-text { display: inline-flex; flex-direction: column; line-height: 1; font-family: var(--ff-display); }
.logo-text b { font-weight: 850; font-stretch: 125%; font-size: 19px; letter-spacing: .02em; }
.logo-text small { font-weight: 600; font-size: 9.5px; letter-spacing: .58em; color: var(--muted); margin-top: 4px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-2);
  transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: rgba(255,255,255,.06); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.fav-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.menu-btn { display: none; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  background: rgba(11,12,14,.97); backdrop-filter: blur(20px);
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  animation: fadeIn .25s var(--ease);
}
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a {
  font-family: var(--ff-display); font-stretch: 112%; font-weight: 700; font-size: 30px;
  padding: 14px 0; border-bottom: 1px solid var(--line); letter-spacing: -.01em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(680px, 100svh);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  isolation: isolate; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards;
  filter: saturate(.9) contrast(1.05);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(11,12,14,.78) 0%, rgba(11,12,14,.55) 55%, rgba(11,12,14,.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11,12,14,0) 40%),
    linear-gradient(180deg, rgba(11,12,14,.7) 0%, rgba(11,12,14,0) 25%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 500; color: var(--text-2); margin: 0 0 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: pulse 2s infinite; }
.hero-title {
  font-family: var(--ff-display); font-weight: 800; font-stretch: 118%;
  font-size: clamp(44px, 8.2vw, 112px); line-height: .92; letter-spacing: -.035em;
  margin: 0 0 28px; max-width: 14ch; text-shadow: 0 4px 40px rgba(0,0,0,.45);
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { max-width: 58ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); margin: 0 auto 40px; text-shadow: 0 2px 20px rgba(0,0,0,.6); }

.quick-search {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 6px;
  width: 100%; max-width: 820px; padding: 6px; text-align: left;
  background: rgba(21, 23, 27, .72); border: 1px solid var(--line-2); border-radius: 22px;
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.qs-field { display: flex; flex-direction: column; padding: 10px 16px 9px; border-radius: 16px; transition: background .2s; position: relative; }
.qs-field:hover { background: rgba(255,255,255,.05); }
.qs-field + .qs-field::before { content: ""; position: absolute; left: -3px; top: 22%; bottom: 22%; width: 1px; background: var(--line-2); }
.qs-field span { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.qs-field select { appearance: none; background: transparent; border: 0; padding: 2px 0 0; font-size: 16px; font-weight: 600; cursor: pointer; outline: none; }
.qs-field select option { background: var(--surface); }
.qs-submit { height: auto; border-radius: 16px; padding: 0 28px; }

.hero-stats { display: flex; justify-content: center; gap: clamp(24px, 5vw, 72px); margin: 48px 0 0; padding: 0; }
.hero-stats div { display: flex; flex-direction: column; align-items: center; }
.hero-stats dt { order: 2; text-align: center; font-size: 13.5px; color: var(--muted); max-width: 18ch; line-height: 1.35; margin-top: 4px; }
.hero-stats dd { order: 1; margin: 0; font-family: var(--ff-display); font-stretch: 115%; font-weight: 750; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }

.hero-stats .stat-text dd { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); }
.hero-stats .stat-text dd svg { width: .8em; height: .8em; }
.hero-stats .stat-text dt { max-width: 22ch; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 3px; background: var(--text); translate: -50% 0; animation: scrollCue 1.8s infinite; }

/* ---------- Brands marquee ---------- */
.brands { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.brands-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.brands-track button { margin-right: 64px;
  background: none; border: 0; padding: 0;
  font-family: var(--ff-display); font-weight: 800; font-stretch: 125%; font-size: 22px; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.28); transition: color .25s; white-space: nowrap;
}
.brands-track button:hover { color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.section-title { margin: 0; font-family: var(--ff-display); font-weight: 800; font-stretch: 115%; font-size: clamp(34px, 5.2vw, 64px); line-height: .98; letter-spacing: -.03em; }
.section-lead { margin: 0; color: var(--text-2); font-size: 17px; }

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.search-box {
  flex: 1 1 280px; max-width: 380px; display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-box svg { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 15px; }
.search-box input::placeholder { color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  background: transparent; border: 1px solid var(--line-2); color: var(--text-2);
  font-size: 14px; font-weight: 500; transition: all .2s;
}
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.28); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.toolbar-right { display: flex; gap: 8px; margin-left: auto; }
.sort select, .f-group select, .field select {
  appearance: none; height: 40px; padding: 0 38px 0 16px; border-radius: 999px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238b9098' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 15px center;
  border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; cursor: pointer; outline: none;
}
.sort select:focus, .f-group select:focus { border-color: var(--accent); }
select option { background: var(--surface); color: var(--text); }
.badge-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; }
.filters-open { display: none; }

.stock-layout { display: grid; grid-template-columns: 268px 1fr; gap: 32px; align-items: start; }
.filters {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 22px;
}
.filters-head { display: flex; align-items: center; justify-content: space-between; }
.filters-head h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.filters-close, .filters-foot .filters-apply { display: none; }
.filters-foot { display: flex; gap: 8px; }
.filters-foot .btn { flex: 1; --h: 42px; }
.f-group { display: flex; flex-direction: column; gap: 10px; }
.f-group > label:first-child:not(.switch) { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.f-group output { color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.f-group select { width: 100%; border-radius: 12px; height: 44px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-row input, .field input, .field textarea, .field select {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); outline: none; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 88px; }
.f-row input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.f-row input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #5f646c; }
.f-row input::-webkit-outer-spin-button, .f-row input::-webkit-inner-spin-button { -webkit-appearance: none; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; --p: 100%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p), var(--surface-3) var(--p)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p), var(--surface-3) var(--p)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.4); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button, .seg label span {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text-2); transition: all .18s; cursor: pointer;
}
.seg button:hover, .seg label span:hover { color: var(--text); }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg-lg { display: grid; grid-template-columns: 1fr 1fr; }
.seg-lg label span { width: 100%; height: 44px; font-size: 14.5px; }

.switch { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); transition: background .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Results grid ---------- */
.results-meta { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.results-meta b { color: var(--text); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }

.car {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
  animation: cardIn .5s var(--ease) both;
}
.car:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.car-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.car-media img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity .4s; opacity: 0; }
.car-media img.loaded { opacity: 1; }
.car-media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent); pointer-events: none; }
.car-tags { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; max-width: calc(100% - 64px); }
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; flex: none;
  background: rgba(11,12,14,.72); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); color: var(--text);
}
.tag-accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.tag-warn { background: var(--warn); color: #1d1400; border-color: transparent; }
.tag-fin { background: rgba(61,220,151,.16); color: var(--ok); border-color: rgba(61,220,151,.35); }
.tag-sold { background: var(--text); color: var(--bg); border-color: transparent; }
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11,12,14,.6); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); color: var(--text);
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.fav-btn:hover { transform: scale(1.08); }
.fav-btn svg { width: 19px; height: 19px; }
.fav-btn[aria-pressed="true"] { color: var(--accent); background: rgba(255,255,255,.92); }
.fav-btn[aria-pressed="true"] svg path { fill: currentColor; }
.fav-btn.pop { animation: pop .4s var(--ease); }
.photo-count { position: absolute; right: 12px; bottom: 12px; z-index: 1; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(11,12,14,.7); }

.car-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.car-title { margin: 0; font-family: var(--ff-display); font-stretch: 108%; font-weight: 700; font-size: 20px; line-height: 1.15; letter-spacing: -.015em; }
.car-title small { display: block; font-family: var(--ff-body); font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 4px; letter-spacing: 0; font-stretch: 100%; }
.car-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-2); }
.car-specs li { display: inline-flex; align-items: center; gap: 6px; }
.car-specs svg { width: 15px; height: 15px; color: var(--muted); }
.car-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price { font-family: var(--ff-display); font-stretch: 110%; font-weight: 750; font-size: 24px; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: .55em; font-weight: 600; color: var(--muted); margin-right: 4px; letter-spacing: 0; }
.cuota { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.cuota b { color: var(--text-2); font-weight: 600; }
.car-cta { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text); transition: background .25s, color .25s, transform .3s var(--ease); flex: none; }
.car:hover .car-cta { background: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }
.car.is-sold .car-media img { filter: grayscale(.85) brightness(.6); }
.car.is-sold .price { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }

.car.featured-wide { grid-column: span 2; }
.car.featured-wide .car-media { aspect-ratio: 16 / 9; }

.skeleton { border-radius: var(--r-lg); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s infinite; aspect-ratio: 3 / 4; }

.empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty-ico { width: 44px; height: 44px; color: var(--muted); margin-bottom: 12px; }
.empty h3 { margin: 0 0 8px; font-size: 20px; }
.empty p { margin: 0 auto 24px; color: var(--muted); max-width: 46ch; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Why ---------- */
.why { background: var(--bg-2); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card {
  position: relative; padding: 28px 24px 30px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease);
}
.why-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,90,31,.12), transparent 40%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.why-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.why-card:hover::before { opacity: 1; }
.why-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; }
.why-ico svg { width: 24px; height: 24px; }
.why-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.why-card p { margin: 0; color: var(--text-2); font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--line-2) 60%); }
.steps li { position: relative; display: flex; flex-direction: column; gap: 16px; padding-right: 24px; }
.step-n { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--ff-display); font-weight: 800; font-stretch: 120%; }
.steps li:first-child .step-n { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.steps h4 { margin: 0 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Sell ---------- */
.sell-inner { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.sell-copy .section-lead { margin: 24px 0 32px; max-width: 46ch; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.check-list svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.form { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.form h3 { margin: 0 0 4px; font-family: var(--ff-display); font-stretch: 110%; font-size: 24px; letter-spacing: -.015em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field select { border-radius: 12px; background-color: var(--bg-2); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255,77,94,.12); }
.form-note { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- Finance ---------- */
.finance { background: radial-gradient(1000px 500px at 85% 0%, rgba(255,90,31,.10), transparent 60%), var(--bg); }
.sim { display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; }
.sim-controls { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 32px; }
.sim-controls .f-group output { font-family: var(--ff-display); font-stretch: 110%; font-size: 18px; font-weight: 700; }
.sim-controls .seg button { height: 44px; padding: 0 20px; font-size: 15px; flex: 1; }
.sim-result { padding: clamp(24px, 4vw, 48px); background: var(--surface-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.sim-label { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.sim-value { margin: 0; font-family: var(--ff-display); font-stretch: 118%; font-weight: 800; font-size: clamp(40px, 5vw, 60px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.sim-value small { font-size: .38em; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.sim-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 6px; padding: 16px 0; border-block: 1px solid var(--line); }
.sim-breakdown dt { font-size: 12px; color: var(--muted); }
.sim-breakdown dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: clamp(13px, 3.6vw, 16px); }

/* ---------- About ---------- */
.about { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.about-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.about-card { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.about-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,12,14,.85), transparent 55%); }
.about-badge {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1;
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px;
  background: rgba(21,23,27,.75); backdrop-filter: blur(16px); border: 1px solid var(--line-2);
}
.about-badge > svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.about-badge b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.about-badge span { font-weight: 600; font-size: 15px; line-height: 1.3; }
.about-copy p { color: var(--text-2); font-size: 17px; margin: 0 0 18px; max-width: 58ch; }
.about-copy .section-title { margin-bottom: 28px; }
.about-copy p.kicker { color: var(--accent); font-size: 13px; margin: 0 0 16px; }
.about-copy strong { color: var(--text); font-weight: 600; }
.about-lead { font-size: 20px !important; color: var(--text) !important; line-height: 1.5; }
.quote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-family: var(--ff-display); font-stretch: 108%; font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.about-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' stroke='%23f3f2ee' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 1v10M1 6h10'/%3E%3C/svg%3E") center no-repeat; transition: transform .3s var(--ease), background-color .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-soft); border-color: var(--accent); }
.faq-list summary:hover { color: var(--accent-2); }
.faq-a { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 56px 26px 0; color: var(--text-2); max-width: 62ch; }
.faq-list details.closing summary::after { transform: none; background-color: transparent; border-color: var(--line-2); }
.faq-list details { transition: background-color .3s; }
.faq-list details[open]:not(.closing) summary { color: var(--text); }

/* ---------- Contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(32px, 5vw, 80px);
  padding: clamp(28px, 5vw, 72px); border-radius: var(--r-xl);
  background:
    radial-gradient(600px 400px at 0% 100%, rgba(255,90,31,.22), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); position: relative; overflow: hidden;
}
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 16.5px; }
.contact-list svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--accent); }
.contact-list a:hover { color: var(--accent-2); }
.contact-form { padding: 0; justify-content: center; }
.contact-form .field input, .contact-form .field textarea { background: rgba(11,12,14,.5); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; }
.footer-brand p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14.5px; color: var(--text-2); }
.footer-nav a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); max-width: 100ch; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transition: transform .25s var(--ease), opacity .3s; opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
}
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s infinite; }

/* ---------- Vehicle dialog ---------- */
.vdialog {
  width: min(1180px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto;
  padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-xl);
  background: var(--surface); color: var(--text); overflow: hidden;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.9);
}
.vdialog[open] { animation: dialogIn .4s var(--ease); }
.vdialog::backdrop { background: rgba(5,6,8,.78); backdrop-filter: blur(6px); animation: fadeIn .3s; }
.vd { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); height: min(780px, calc(100dvh - 34px)); }
.vd-gallery { position: relative; background: #000; display: flex; flex-direction: column; min-height: 0; }
.vd-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y; }
.vd-slides { display: flex; height: 100%; transition: transform .5s var(--ease); }
.vd-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; background: #08090b; }
.vd-slide img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.vd-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(11,12,14,.6); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); color: var(--text); transition: background .2s; }
.vd-nav:hover { background: rgba(11,12,14,.9); }
.vd-prev { left: 14px; } .vd-next { right: 14px; }
.vd-counter { position: absolute; left: 14px; bottom: 14px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(11,12,14,.7); }
.vd-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: var(--bg); scrollbar-width: thin; }
.vd-thumbs button { flex: 0 0 84px; height: 60px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .55; transition: opacity .2s, border-color .2s; background: var(--surface-2); }
.vd-thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.vd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.vd-info { overflow-y: auto; padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 22px; overscroll-behavior: contain; }
.vd-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.vd-actions { display: flex; gap: 8px; }
.vd-title { margin: 6px 0 0; font-family: var(--ff-display); font-stretch: 112%; font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.02; letter-spacing: -.025em; }
.vd-version { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.vd-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.vd-price-row .price { font-size: 34px; }
.vd-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.vd-specs div { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.vd-specs dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.vd-specs dd { margin: 3px 0 0; font-weight: 600; font-size: 14.5px; }
.vd h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.vd-desc { margin: 0; color: var(--text-2); }
.vd-equip { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.vd-equip li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13.5px; }
.vd-equip svg { width: 14px; height: 14px; color: var(--accent); }
.vd-mini-sim { padding: 18px; border-radius: var(--r); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.vd-mini-sim .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vd-mini-sim .big { font-family: var(--ff-display); font-stretch: 112%; font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.vd-cta { position: sticky; bottom: -24px; margin: 0 -28px -24px; padding: 16px 28px calc(20px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(21,23,27,0), var(--surface) 30%); display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.vd-close-m { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 100;
  translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 14.5px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
  transition: opacity .3s, translate .3s var(--ease);
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { opacity: 1; transform: none; transition: none; animation: heroIn 1s var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3) { animation-delay: .18s; }
.hero .reveal:nth-child(4) { animation-delay: .28s; }
.hero .reveal:nth-child(5) { animation-delay: .38s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Animations ---------- */
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.6); } 70% { box-shadow: 0 0 0 10px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes shimmer { to { background-position: -100% 0; } }
@keyframes pop { 50% { transform: scale(1.3); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .car.featured-wide { grid-column: auto; }
  .car.featured-wide .car-media { aspect-ratio: 16 / 9; }
}

@media (max-width: 960px) {
  .main-nav, .hide-sm { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .stock-layout { grid-template-columns: 1fr; }
  .filters-open { display: inline-flex; }
  .filters {
    position: fixed; inset: auto 0 0; top: auto; z-index: 60; max-height: 88dvh; overflow-y: auto;
    border-radius: var(--r-xl) var(--r-xl) 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom));
    transform: translateY(105%); transition: transform .45s var(--ease); box-shadow: 0 -30px 80px rgba(0,0,0,.7);
  }
  .filters.open { transform: none; }
  .filters-close, .filters-foot .filters-apply { display: inline-flex; }
  .filters-backdrop { position: fixed; inset: 0; z-index: 59; background: rgba(0,0,0,.6); animation: fadeIn .3s; }
  .filters-foot { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); background: var(--surface); padding: 12px 0 0; margin-top: -8px; }
  .sell-inner, .about-inner, .faq-inner, .contact-card { grid-template-columns: 1fr; }
  .about-card { aspect-ratio: 4 / 5; max-width: 480px; margin: 0 auto; }
  .sim { grid-template-columns: 1fr; }
  .sim-result { border-left: 0; border-top: 1px solid var(--line); }
  .vd { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .vd-info { overflow: visible; }
  .vd { height: auto; max-height: calc(100dvh - 34px); }
  .vd-stage { flex: none; aspect-ratio: 4 / 3; }
  .vd-close-m { display: grid; position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(11,12,14,.7); backdrop-filter: blur(8px); }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .hero { min-height: 100svh; padding-bottom: 56px; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 8%, rgba(11,12,14,.8) 45%, rgba(11,12,14,.45) 100%); }
  .hero-media img { object-position: 50% 50%; }
  .quick-search { grid-template-columns: 1fr 1fr; border-radius: 20px; }
  .qs-field:nth-child(3) { grid-column: 1 / -1; }
  .qs-field:nth-child(3)::before { display: none; }
  .qs-submit { grid-column: 1 / -1; height: 50px; }
  .hero-stats { gap: 22px 36px; flex-wrap: wrap; }
  .hero-stats .stat-text { flex-basis: 100%; }
  .hero-stats .stat-text dt { max-width: none; }
  .hero-stats dt { font-size: 12px; }
  .scroll-cue { display: none; }
  .toolbar { gap: 10px; }
  .search-box { max-width: none; flex-basis: 100%; }
  .chips { order: 3; flex-basis: 100%; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .toolbar-right { margin-left: 0; width: 100%; }
  .toolbar-right .sort { flex: 1; }
  .toolbar-right .sort select { width: 100%; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), var(--line-2) 60%); }
  .steps li { flex-direction: row; align-items: flex-start; padding: 0; }
  .form-row { grid-template-columns: 1fr; }
  .vdialog { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .vd { max-height: 100dvh; height: 100dvh; }
  .vd-info { padding: 22px 18px 24px; }
  .vd-cta { margin: 0 -18px -24px; padding-inline: 18px; }
  .vd-specs { grid-template-columns: repeat(2, 1fr); }
  .vd-price-row .price { font-size: 28px; }
  .footer-inner { grid-template-columns: 1fr; }
  .sim-breakdown { grid-template-columns: repeat(3, 1fr); }
  .sim-controls .seg button { padding: 0 8px; }
  .contact-list li { font-size: 15px; }
}

/* ---------- Vista previa del borrador ---------- */
.preview-bar {
  position: fixed; left: 50%; top: calc(var(--header-h) + 10px); translate: -50% 0; z-index: 45;
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 999px;
  background: var(--warn); color: #1d1400; font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  max-width: calc(100vw - 24px);
}
.preview-bar button { border: 0; border-radius: 999px; padding: 6px 12px; background: #1d1400; color: var(--warn); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
@media (max-width: 720px) {
  .preview-bar { left: 12px; right: 12px; translate: none; border-radius: 14px; padding: 10px 10px 10px 14px; }
  .preview-bar span { flex: 1; font-size: 12px; line-height: 1.35; }
  .hide-xs { display: none; }
}


/* ==========================================================================
   Movimiento
   ========================================================================== */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(0); }

.hero-media img { will-change: transform, translate; }
.hero-inner { will-change: translate, opacity; }

/* Títulos: renglones que suben desde una máscara */
.section-title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.section-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.section-title.in .line > span { transform: none; }

/* Variantes de aparición */
.reveal-right { transform: translateX(32px); }
.reveal-clip { opacity: 1; transform: none; }
.reveal-clip .about-card { clip-path: inset(0 0 100% 0 round var(--r-xl)); transition: clip-path 1.3s var(--ease); }
.reveal-clip img { transform: scale(1.18); transition: transform 1.8s var(--ease); }
.reveal-clip.in .about-card { clip-path: inset(0 0 0 0 round var(--r-xl)); }
.reveal-clip.in img { transform: none; }
.reveal-clip .about-badge { opacity: 0; transform: translateY(16px); transition: opacity .8s .7s var(--ease), transform .8s .7s var(--ease); }
.reveal-clip.in .about-badge { opacity: 1; transform: none; }

/* Pasos: la línea se dibuja */
.steps::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s var(--ease) .2s; }
.steps.in::before { transform: none; }
.steps .step-n { transition: background .4s, border-color .4s, transform .5s var(--ease); }
.steps li:hover .step-n { transform: scale(1.08); border-color: var(--accent); }

/* Navegación: subrayado animado */
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

/* Botón principal: destello */
.btn-accent { position: relative; overflow: hidden; isolation: isolate; }
.btn-accent::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-accent:hover::after { transform: translateX(120%); }
.btn-accent svg, .btn-accent span { position: relative; }

/* Tarjetas del stock: brillo que sigue al mouse */
.car::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.07), transparent 45%); opacity: 0; transition: opacity .3s; }
.car:hover::before { opacity: 1; }

/* Íconos de método */
.why-card .why-ico { transition: transform .5s var(--ease), background .3s; }
.why-card:hover .why-ico { transform: rotate(-8deg) scale(1.08); background: var(--accent); color: var(--accent-ink); }

/* ---------- Vendidos ---------- */
.sold { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.sold-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.sold-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  opacity: 0; transform: translateY(28px) scale(.98);
  transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .3s, box-shadow .4s;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.sold-card.in { opacity: 1; transform: none; }
.sold-card:hover { border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); transition-delay: 0s; }
.sold-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.sold-media img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(1) brightness(.75); transition: filter .7s var(--ease); }
.sold-card:hover .sold-media img { filter: none; }
.sold-stamp {
  position: absolute; top: 16px; right: -38px; transform: rotate(35deg);
  padding: 6px 48px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--ff-display); font-stretch: 118%; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.sold-body { padding: 16px 18px 18px; }
.sold-body h3 { margin: 0; font-family: var(--ff-display); font-stretch: 108%; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.sold-body p { margin: 4px 0 14px; font-size: 13.5px; color: var(--muted); }
.sold-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.sold-foot b { color: var(--ok); font-weight: 700; white-space: nowrap; }
.sold-date { color: var(--muted); white-space: nowrap; }
.sold-cta { display: flex; justify-content: center; margin-top: 32px; }

@media (max-width: 720px) {
  .sold-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
  .sold-track::-webkit-scrollbar { display: none; }
  .sold-card { flex: 0 0 78%; scroll-snap-align: center; }
  .steps::before { transform: scaleY(0); transform-origin: 50% 0; }
  .steps.in::before { transform: none; }
  .reveal-right { transform: translateY(24px); }
  .faq-a p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .section-title .line > span, .sold-card, .reveal-right { transform: none !important; opacity: 1 !important; }
  .reveal-clip .about-card { clip-path: none !important; }
  .reveal-clip img, .reveal-clip .about-badge { transform: none !important; opacity: 1 !important; }
  .steps::before { transform: none !important; }
}

/* ==========================================================================
   Socios
   ========================================================================== */
.acct-btn.signed { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.acct-initial { font-family: var(--ff-display); font-weight: 800; font-size: 16px; line-height: 1; }

.socios { overflow: hidden; }
.socios-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.socios-copy .section-lead { margin: 24px 0 28px; max-width: 48ch; }
.socios-copy .check-list { margin-bottom: 32px; }
.member-card-wrap { perspective: 1000px; display: grid; place-items: center; padding: 20px 0; }
.member-card {
  --sx: 30%; --sy: 20%;
  position: relative; width: min(440px, 100%); aspect-ratio: 1.586; border-radius: 22px; overflow: hidden;
  padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,90,31,.55), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(255,90,31,.18), transparent 60%),
    linear-gradient(135deg, #22252b, #0f1013);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4) inset;
  transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .4s;
  animation: floatCard 6s ease-in-out infinite;
}
.member-card:hover { animation-play-state: paused; }
.member-card.active { box-shadow: 0 40px 90px -30px rgba(255,90,31,.45), 0 0 0 1px rgba(255,90,31,.5) inset; }
.mc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mc-chip { width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #f6d08a, #b8893a); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); position: relative; }
.mc-chip::before { content: ""; position: absolute; inset: 8px 10px; border: 1px solid rgba(0,0,0,.28); border-radius: 3px; }
.mc-mid small { display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; margin-bottom: 6px; }
.mc-mid b { font-family: var(--ff-display); font-stretch: 112%; font-size: clamp(20px, 2.6vw, 28px); font-weight: 750; letter-spacing: -.01em; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-bottom { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mc-shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--sx) var(--sy), rgba(255,255,255,.16), transparent 40%); mix-blend-mode: overlay; }
.member-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); transform: translateX(-100%); animation: cardSweep 5s ease-in-out infinite 1.5s; }
@keyframes floatCard { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes cardSweep { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ---------- Diálogo de cuenta ---------- */
.adialog {
  width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.9); overflow: hidden;
}
.adialog[open] { animation: dialogIn .4s var(--ease); }
.adialog::backdrop { background: rgba(5,6,8,.78); backdrop-filter: blur(6px); animation: fadeIn .3s; }
.ad { position: relative; padding: 32px 28px 26px; max-height: calc(100dvh - 26px); overflow-y: auto; overscroll-behavior: contain; }
.ad-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.ad-view { display: flex; flex-direction: column; gap: 16px; animation: fadeUp .35s var(--ease); }
.ad-head h2, .ad-sent h2, .acct-head h2 { margin: 0; font-family: var(--ff-display); font-stretch: 112%; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.ad-head .kicker { margin-bottom: 8px; }
.ad-head p:not(.kicker) { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.g-btn { gap: 10px; font-weight: 600; }
.g-ico { width: 20px; height: 20px; }
.ad-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; }
.ad-or::before, .ad-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.ad-form { display: flex; flex-direction: column; gap: 14px; }
.ad-form .field small { font-weight: 400; color: var(--muted); }
.ad-link { background: none; border: 0; padding: 0; color: var(--accent-2); font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; }
.ad-link:hover { text-decoration: underline; }
.ad-forgot { align-self: flex-end; font-size: 13px; margin-top: -6px; }
.ad-switch { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.ad-msg { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255,77,94,.12); border: 1px solid rgba(255,77,94,.35); color: #ffb3bb; font-size: 14px; }
.ad-msg.ok { background: rgba(61,220,151,.12); border-color: rgba(61,220,151,.35); color: var(--ok); }
.ad-sent { text-align: center; align-items: center; padding-top: 8px; }
.ad-sent p { margin: 0; color: var(--text-2); }
.ad-sent-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ad-sent-ico svg { width: 30px; height: 30px; }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.acct-head { display: flex; align-items: center; gap: 16px; padding-right: 40px; }
.acct-head .kicker { margin: 0 0 4px; }
.acct-avatar { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: var(--ff-display); font-weight: 800; font-size: 24px; }
.acct-email { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; word-break: break-all; }
.acct-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.acct-tabs button { height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.acct-tabs button[aria-selected="true"] { background: var(--surface-3); color: var(--text); }
.acct-tabs span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; }
.acct-favs { display: flex; flex-direction: column; gap: 8px; max-height: 44vh; overflow-y: auto; }
.fav-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, transform .25s var(--ease); animation: fadeUp .4s var(--ease) both; }
.fav-item:hover { border-color: var(--line-2); transform: translateX(3px); }
.fav-thumb { width: 76px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.fav-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fav-info { display: flex; flex-direction: column; min-width: 0; }
.fav-info b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-info small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-info em { font-style: normal; font-weight: 700; font-size: 13.5px; margin-top: 2px; font-family: var(--ff-display); font-stretch: 108%; }
.fav-remove { width: 34px; height: 34px; }
.fav-remove svg { width: 16px; height: 16px; }
.acct-empty { text-align: center; padding: 26px 12px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 14px; }
.acct-empty svg { width: 28px; height: 28px; color: var(--accent); }
.acct-empty p { margin: 8px 0 14px; font-size: 14px; }
.acct-logout { margin-top: 4px; }

.toast { display: flex; align-items: center; gap: 12px; }
.toast button { border: 0; border-radius: 999px; padding: 6px 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.toast.show.has-action { pointer-events: auto; }

@media (max-width: 960px) {
  .socios-inner { grid-template-columns: 1fr; }
  .member-card-wrap { order: -1; }
}
@media (max-width: 720px) {
  .adialog { width: 100%; max-width: 100%; max-height: 100dvh; height: auto; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; border-bottom: 0; }
  .adialog[open] { animation: sheetIn .45s var(--ease); }
  .ad { padding: 28px 18px calc(24px + env(safe-area-inset-bottom)); max-height: 92dvh; }
  .toast { left: 12px; right: 12px; translate: 0 20px; justify-content: space-between; border-radius: 16px; }
  .toast.show { translate: 0 0; }
}
@keyframes sheetIn { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .member-card, .member-card::after { animation: none !important; } }

.fin-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fin-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; }
.fin-facts span { color: var(--muted); }

/* Fotos completas: el auto entero sobre un fondo difuminado de la misma foto */
.vd-slide-unused::before {
  content: ""; position: absolute; inset: -24px; z-index: 0;
  background: var(--img) center / cover no-repeat;
  filter: blur(22px) brightness(.5) saturate(1.1);
  transform: scale(1.08);
}
.car-media .car-tags, .car-media .fav-btn, .car-media .photo-count, .sold-stamp { z-index: 2; }
.price { white-space: nowrap; }

/* ==========================================================================
   Home vs. página de stock completo
   ========================================================================== */
body:not(.page-stock) #stock .toolbar,
body:not(.page-stock) #stock .filters,
body:not(.page-stock) #stock .results-meta { display: none; }
body:not(.page-stock) #stock .stock-layout { grid-template-columns: 1fr; }
body:not(.page-stock) #stock .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-stock .hero, .page-stock .brands, .page-stock #vendidos, .page-stock #servicios, .page-stock #vender,
.page-stock #nosotros, .page-stock #socios, .page-stock #faq, .page-stock .scroll-cue { display: none !important; }
.page-stock #stock { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px)); }
.stock-more { display: flex; justify-content: center; margin-top: 36px; }
.stock-more:empty { display: none; }
.btn-lg { --h: 56px; padding: 0 30px; font-size: 16px; }
.more-n { font-weight: 500; color: var(--muted); margin-left: 4px; }

@media (max-width: 1100px) { body:not(.page-stock) #stock .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   Celular: sin zoom automático, todo centrado y ordenado
   ========================================================================== */
@media (max-width: 960px) {
  /* iOS agranda la pantalla al tocar campos con letra menor a 16px */
  input, select, textarea { font-size: 16px !important; }
}
@media (max-width: 720px) {
  body:not(.page-stock) #stock .grid { grid-template-columns: 1fr; }
  .section-head { text-align: center; justify-items: center; }
  .section-head .section-lead { margin-inline: auto; max-width: 40ch; }
  .sell-copy, .about-copy, .socios-copy, .faq-inner > div:first-child, .contact-copy { text-align: center; }
  .sell-copy .section-lead, .socios-copy .section-lead, .about-copy p { margin-left: auto; margin-right: auto; }
  .check-list, .contact-list { display: inline-grid; text-align: left; justify-content: start; }
  .about-actions, .sell-cta, [data-socio-cta] { justify-content: center; }
  .quote { border-left: 0; border-top: 3px solid var(--accent); padding: 16px 0 0; }
  .why-card { text-align: center; }
  .why-ico { margin-left: auto; margin-right: auto; }
  .results-meta { text-align: center; }
  .footer-inner { text-align: center; justify-items: center; }
  .footer-nav { justify-content: center; gap: 14px 20px; }
  .footer-brand .logo-text { align-items: center; }
  .contact-card { text-align: left; }
  .contact-copy .section-title { margin-inline: auto; }
  .btn-lg { width: 100%; }
  .stock-more .btn { width: 100%; }
  .section { padding: 72px 0; }
  .section-title { font-size: clamp(32px, 9vw, 44px); }
}

/* Portada: botones en lugar del buscador */
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 720px) { .hero-cta { flex-direction: column; width: 100%; max-width: 420px; } .hero-cta .btn { width: 100%; } }

/* ==========================================================================
   Logo: BALDA (blanco, grueso) + GARAGE (naranja, fino)
   ========================================================================== */
.wordmark { display: inline-flex; align-items: baseline; gap: .34em; font-family: var(--ff-display); font-stretch: 125%; font-size: 22px; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.wordmark .wm-a { font-weight: 900; color: var(--text); }
.wordmark .wm-b { font-weight: 400; color: var(--accent); }
.wordmark-lg { font-size: 26px; }
.footer-brand .wordmark { font-size: 20px; }
.mc-top .wordmark { font-size: 15px; }
.wm-tag { margin-left: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); font-family: var(--ff-body); align-self: center; }
.logo { align-items: center; }
@media (max-width: 720px) { .site-header .wordmark { font-size: 17px; } }
@media (max-width: 380px) { .site-header .wordmark { font-size: 15px; } }

/* Menú: que los links no se corten en dos renglones */
.main-nav a { white-space: nowrap; }
@media (max-width: 1180px) { .main-nav { gap: 0; } .main-nav a { padding: 8px 10px; font-size: 14px; } .site-header .wordmark { font-size: 19px; } .header-inner { gap: 16px; } }

/* La barra de marcas se mueve siempre */
@media (prefers-reduced-motion: reduce) { .brands-track { animation-name: marquee !important; animation-iteration-count: infinite !important; animation-duration: 60s !important; } }

/* ==========================================================================
   Página de vendidos (?ver=vendidos)
   ========================================================================== */
.page-sold .hero, .page-sold .brands, .page-sold #stock, .page-sold #servicios, .page-sold #vender,
.page-sold #nosotros, .page-sold #socios, .page-sold #faq, .page-sold .scroll-cue { display: none !important; }
.page-sold #vendidos { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px)); border-top: 0; }
.page-sold .sold-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); overflow: visible; margin: 0; padding: 0; }
.page-sold .sold-card { flex: initial; }
#soldMore { margin-top: 28px; }
.sold-cta { margin-top: 20px; }
@media (max-width: 720px) {
  .page-sold .sold-track { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Portada con la foto del local: el cartel BALDA GARAGE queda a la vista
   y el texto va abajo, sobre el piso.
   ========================================================================== */
.hero { align-items: flex-end; padding-top: 47svh; padding-bottom: 40px; }
.hero .eyebrow { display: none; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img { object-position: 50% 38%; filter: none; }
.hero::before {
  background: linear-gradient(0deg, var(--bg) 0%, rgba(11,12,14,.93) 20%, rgba(11,12,14,.6) 42%, rgba(11,12,14,.12) 62%, rgba(11,12,14,0) 78%, rgba(11,12,14,.5) 100%);
}
.hero-title { font-size: clamp(38px, 4.4vw, 64px); margin-bottom: 18px; }
.hero-sub { margin-bottom: 26px; }
.hero-stats { margin-top: 30px; }
@media (max-width: 720px) {
  .hero { min-height: auto; padding-top: calc(52svh + 24px); padding-bottom: 48px; background: var(--bg); }
  .hero-media { bottom: auto; height: 72svh; }
  .hero-media img { object-position: 50% 32%; }
  .hero::before { background: linear-gradient(180deg, rgba(11,12,14,.55) 0%, rgba(11,12,14,0) 14%, rgba(11,12,14,0) 34%, rgba(11,12,14,.82) 52%, var(--bg) 66%); }
  .hero-title { font-size: clamp(34px, 10vw, 46px); }
}

/* ==========================================================================
   Ficha en celular: barra de WhatsApp pegada abajo, entera y sin franja
   ========================================================================== */
@media (max-width: 960px) {
  .vd-actions [data-close] { display: none; }          /* ya está la X sobre la foto */
}
@media (max-width: 720px) {
  .vd-info { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  /* Ficha como página: se oculta el resto y scrollea el documento (barra de Safari transparente) */
  body.vd-page > :is(.scroll-progress, .site-header, main, .site-footer, .wa-float, .mobile-nav) { display: none !important; }
  body.vd-page .vdialog {
    position: static; display: block; inset: auto; margin: 0;
    width: 100%; max-width: 100%; height: auto; max-height: none;
    overflow: visible; border: 0; border-radius: 0; box-shadow: none;
    background: var(--surface);
  }
  body.vd-page .vd { height: auto; max-height: none; overflow: visible; }
  body.vd-page .vd-close-m { position: fixed; top: calc(12px + env(safe-area-inset-top)); }
  /* El botón va al final de la ficha, no queda flotando */
  .vd-cta { position: static; margin: 6px 0 0; padding: 0; background: none; border: 0; }
  .vd-cta .btn { min-height: 50px; }
}

/* ==========================================================================
   Celular: menos efectos pesados para que scrollee fluido
   (los desenfoques y mezclas se recalculan en cada frame en Safari)
   ========================================================================== */
.car-media .fav-btn, .car-media .photo-count, .photo-count { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11,12,14,.78); }
@media (max-width: 720px) {
  .site-header, .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header.scrolled { background: rgba(11,12,14,.96); }
  .hero-grain { display: none; }
  .hero-media img { animation: none; transform: none; will-change: auto; }
  .hero-inner { will-change: auto; }
  .vd-close-m, .vd-nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11,12,14,.8); }
  .mobile-nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .member-card { animation: none; }
}
