:root {
  --black: #07090c;
  --ink: #101216;
  --graphite: #16191e;
  --red: #d8202f;
  --red-soft: #ff5160;
  --paper: #f5f3ef;
  --white: #ffffff;
  --steel: #a7adb7;
  --muted: #6d737c;
  --line: rgba(13, 15, 18, .12);
  --radius: 28px;
  --shadow: 0 30px 90px rgba(5, 7, 10, .16);
  --container: min(1240px, calc(100vw - 48px));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 2000; padding: 10px 14px; background: #fff; border-radius: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 128px 0; }

.noise { position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .028; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%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)' opacity='.7'/%3E%3C/svg%3E"); }
.ambient { position: fixed; width: 36vw; aspect-ratio: 1; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: -1; opacity: .12; }
.ambient-one { background: var(--red); right: -18vw; top: 55vh; }
.ambient-two { background: #2b6dff; left: -24vw; top: 110vh; opacity: .07; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.68); font-size: .72rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow i { width: 24px; height: 1px; background: currentColor; }
.eyebrow.dark { color: #676c74; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding: 18px 0; transition: background .45s var(--ease), padding .45s var(--ease), box-shadow .45s var(--ease); }
.site-header.scrolled { padding: 10px 0; background: rgba(7, 9, 12, .88); backdrop-filter: blur(20px); box-shadow: 0 1px 0 rgba(255,255,255,.07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand img { width: 48px; height: 48px; border-radius: 15px; object-fit: cover; box-shadow: 0 8px 30px rgba(0,0,0,.28); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.12; }
.brand-copy strong { font-size: 1rem; letter-spacing: .02em; }
.brand-copy small { color: rgba(255,255,255,.5); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 5px; }
.main-nav { display: flex; align-items: center; gap: 30px; color: rgba(255,255,255,.72); font-size: .88rem; font-weight: 650; }
.main-nav a { transition: color .25s ease; }
.main-nav a:hover { color: #fff; }
.main-nav .nav-cta { padding: 12px 17px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.06); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.18); border-radius: 14px; cursor: pointer; }
.menu-button span:not(.sr-only) { display: block; width: 17px; height: 1px; margin: 5px auto; background: #fff; transition: transform .3s ease, opacity .3s ease; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; color: #fff; background: #07090c; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; transform: scale(1.035); animation: heroZoom 16s ease-out both; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,10,.94) 0%, rgba(5,7,10,.75) 40%, rgba(5,7,10,.28) 72%, rgba(5,7,10,.4) 100%), linear-gradient(0deg, #07090c 0%, transparent 28%); }
.hero-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 90px 90px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(310px, .55fr); align-items: end; gap: 80px; padding-top: 150px; padding-bottom: 120px; }
.hero-copy { max-width: 790px; }
.hero h1 { margin: 26px 0 24px; max-width: 760px; font-size: clamp(3.7rem, 7vw, 7.5rem); line-height: .89; letter-spacing: -.072em; font-weight: 770; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.45); }
.hero-copy > p { max-width: 620px; color: rgba(255,255,255,.66); font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 750; font-size: .9rem; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s ease, color .3s ease, border-color .3s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, #ec2638, #ba1321); box-shadow: 0 16px 42px rgba(216,32,47,.28), inset 0 1px 0 rgba(255,255,255,.22); }
.button-primary:hover { box-shadow: 0 20px 50px rgba(216,32,47,.42), 0 0 28px rgba(216,32,47,.16); }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.055); backdrop-filter: blur(12px); }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.button-dark { color: #fff; background: var(--ink); }
.button-light { color: var(--ink); background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.button-dark-outline { border-color: rgba(15,17,20,.16); background: transparent; }
.trust-row { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 58px; color: rgba(255,255,255,.52); font-size: .78rem; }
.trust-row span { display: flex; align-items: center; gap: 8px; }
.trust-row b { color: var(--red-soft); font-size: .68rem; }
.hero-card { align-self: end; margin-bottom: 20px; padding: 24px; border: 1px solid rgba(255,255,255,.13); border-radius: 28px; background: rgba(10,12,16,.58); box-shadow: 0 30px 80px rgba(0,0,0,.32); backdrop-filter: blur(18px); }
.hero-card-top { display: flex; justify-content: space-between; color: rgba(255,255,255,.46); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.live-dot { position: relative; padding-left: 13px; color: rgba(255,255,255,.74); }
.live-dot::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--red-soft); transform: translateY(-50%); box-shadow: 0 0 0 7px rgba(216,32,47,.1), 0 0 20px rgba(216,32,47,.8); }
.hero-card-title { display: flex; flex-direction: column; margin: 58px 0 30px; }
.hero-card-title small { color: rgba(255,255,255,.52); text-transform: uppercase; letter-spacing: .15em; }
.hero-card-title strong { font-size: 3.6rem; line-height: 1; letter-spacing: -.06em; }
.hero-card-title span { margin-top: 7px; color: rgba(255,255,255,.68); }
.hero-card-action { width: 100%; display: flex; justify-content: space-between; padding: 16px 0 0; color: #fff; border: 0; border-top: 1px solid rgba(255,255,255,.12); background: none; cursor: pointer; font-weight: 700; }
.hero-card-action span { transition: transform .3s var(--ease); }
.hero-card-action:hover span { transform: translateX(5px); }
.hero-proof-number { margin-top: 52px; font-size: clamp(4.6rem, 8vw, 7rem); line-height: .78; letter-spacing: -.08em; font-weight: 800; }
.hero-proof-number span { margin-left: 5px; color: var(--red-soft); font-size: .48em; vertical-align: top; }
.hero-proof > p { margin: 20px 0 32px; max-width: 250px; color: rgba(255,255,255,.62); line-height: 1.55; }
.scroll-cue { position: absolute; z-index: 3; left: max(24px, calc((100vw - min(1240px, calc(100vw - 48px))) / 2)); bottom: 28px; display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.38); font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; }
.scroll-cue span { width: 35px; height: 1px; background: rgba(255,255,255,.3); overflow: hidden; }
.scroll-cue span::after { content: ""; display: block; width: 50%; height: 100%; background: #fff; animation: scrollLine 2s ease-in-out infinite; }

.section-heading { display: flex; justify-content: space-between; gap: 80px; align-items: end; margin-bottom: 44px; }
.section-heading h2, .support-section h2, .finance-card h2, .location-copy h2, .contact-inner h2 { margin: 18px 0 0; max-width: 720px; font-size: clamp(2.4rem, 4.8vw, 5rem); line-height: 1; letter-spacing: -.06em; }
.section-heading > p { max-width: 430px; color: var(--muted); line-height: 1.7; }
.inventory-section { position: relative; }
.filter-shell { position: sticky; top: 82px; z-index: 20; margin-bottom: 38px; padding: 14px; border: 1px solid rgba(10,12,15,.09); border-radius: 24px; background: rgba(255,255,255,.76); box-shadow: 0 18px 60px rgba(8,10,13,.07); backdrop-filter: blur(18px); }
.search-field { position: relative; display: flex; align-items: center; height: 60px; border-bottom: 1px solid var(--line); }
.search-field svg { width: 22px; margin: 0 16px; fill: none; stroke: #7a8089; stroke-width: 1.7; stroke-linecap: round; }
.search-field input { flex: 1; height: 100%; border: 0; outline: 0; background: transparent; font-size: 1rem; }
.search-field input::placeholder { color: #9a9ea5; }
.search-field kbd { margin-right: 15px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; color: #8a8f97; background: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.04); }
.filter-row { display: grid; grid-template-columns: minmax(130px, .9fr) minmax(130px, .9fr) minmax(280px, 1.65fr) minmax(110px, .75fr) auto; gap: 8px; padding-top: 13px; }
.filter-row > label { display: flex; flex-direction: column; gap: 4px; padding: 9px 13px; border-radius: 14px; transition: background .2s ease; }
.filter-row > label:hover { background: rgba(7,9,12,.035); }
.filter-row > label span,
.price-filter-head > span { color: #8b9098; font-size: .62rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.filter-row select { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-weight: 690; cursor: pointer; }
.price-filter { min-width: 0; padding: 8px 13px 7px; border-radius: 14px; transition: background .2s ease, opacity .2s ease; }
.price-filter:hover { background: rgba(7,9,12,.035); }
.price-filter.disabled { opacity: .52; }
.price-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-filter-head output { min-width: 0; overflow: hidden; color: var(--ink); font-size: .79rem; font-weight: 760; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.price-range { position: relative; height: 25px; margin-top: 3px; }
.price-range-track { position: absolute; top: 11px; left: 0; right: 0; height: 4px; border-radius: 999px; background: #d7dade; overflow: hidden; }
.price-range-track span { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: inherit; background: linear-gradient(90deg, #b61322, var(--red)); box-shadow: 0 0 14px rgba(216,32,47,.2); }
.price-range input[type="range"] { position: absolute; inset: 0; width: 100%; height: 25px; margin: 0; appearance: none; -webkit-appearance: none; border: 0; outline: 0; background: transparent; pointer-events: none; }
.price-range input[type="range"]:focus-visible { outline: 2px solid rgba(216,32,47,.55); outline-offset: 5px; border-radius: 999px; }
.price-range input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.price-range input[type="range"]::-moz-range-track { height: 4px; background: transparent; }
.price-range input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -7px; appearance: none; -webkit-appearance: none; border: 3px solid #fff; border-radius: 50%; background: var(--red); box-shadow: 0 2px 8px rgba(7,9,12,.28), 0 0 0 1px rgba(7,9,12,.08); cursor: grab; pointer-events: auto; }
.price-range input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: var(--red); box-shadow: 0 2px 8px rgba(7,9,12,.28), 0 0 0 1px rgba(7,9,12,.08); cursor: grab; pointer-events: auto; }
.price-range input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.08); }
.price-range input[type="range"]:active::-moz-range-thumb { cursor: grabbing; transform: scale(1.08); }
#minPriceRange { z-index: 3; }
#maxPriceRange { z-index: 4; }
.price-range-limits { display: flex; justify-content: space-between; gap: 12px; color: #969ba2; font-size: .61rem; font-weight: 650; }
.price-range-limits span:last-child { text-align: right; }
.reset-button { align-self: center; min-height: 44px; padding: 0 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 700; }
.inventory-meta { display: flex; align-items: center; justify-content: space-between; margin: 0 3px 22px; color: #737880; }
.inventory-meta strong { color: var(--ink); }
.view-toggle { display: flex; gap: 5px; }
.view-toggle button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 11px; background: transparent; cursor: pointer; }
.view-toggle button.active { background: var(--ink); color: #fff; }
.view-toggle svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.view-toggle button:first-child svg { fill: currentColor; stroke: none; }
.vehicle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vehicle-card { min-width: 0; }
.vehicle-card-button { width: 100%; padding: 0; border: 0; border-radius: 28px; overflow: hidden; text-align: left; background: #fff; box-shadow: 0 18px 50px rgba(8,10,13,.07); cursor: pointer; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.vehicle-card-button:hover { transform: translateY(-8px); box-shadow: 0 32px 80px rgba(8,10,13,.15); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #101217; }
.card-media img { width: 100%; height: 100%; padding: 10px; object-fit: contain; object-position: center; transition: transform .8s var(--ease), filter .8s var(--ease); }
.vehicle-card-button:hover .card-media img { transform: scale(1.045); filter: saturate(1.06) contrast(1.03); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.16), transparent 45%, rgba(0,0,0,.44)); }
.card-badges { position: absolute; top: 16px; left: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.card-badges span { padding: 8px 11px; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(8,10,13,.52); backdrop-filter: blur(12px); font-size: .68rem; font-weight: 750; letter-spacing: .04em; }
.card-badges .accent { background: rgba(216,32,47,.88); box-shadow: 0 8px 25px rgba(216,32,47,.22); }
.card-gallery-count { position: absolute; right: 16px; bottom: 14px; color: rgba(255,255,255,.8); font-size: .72rem; font-weight: 700; }
.card-content { padding: 25px 26px 22px; }
.card-heading > div { display: flex; gap: 10px; color: #7a8088; font-size: .69rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.card-heading > div span + span::before { content: "·"; margin-right: 10px; }
.card-heading h3 { margin: 10px 0 2px; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1; letter-spacing: -.05em; }
.card-trim { margin: 7px 0 0; color: #727881; }
.card-price { display: flex; align-items: end; justify-content: space-between; margin: 28px 0 19px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.card-price small { color: #8b9097; }
.card-price strong { font-size: 1.28rem; letter-spacing: -.02em; }
.card-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card-specs span { min-width: 0; padding: 11px; border-radius: 13px; background: #f5f5f3; }
.card-specs small { display: block; color: #8a9097; font-size: .6rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.card-specs b { display: block; margin-top: 4px; overflow: hidden; color: #30343a; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); font-weight: 750; font-size: .84rem; }
.card-footer i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: var(--ink); font-style: normal; transition: transform .3s var(--ease), background .3s ease; }
.vehicle-card-button:hover .card-footer i { transform: rotate(45deg); background: var(--red); box-shadow: 0 0 22px rgba(216,32,47,.28); }
.vehicle-grid.compact { grid-template-columns: 1fr; }
.vehicle-grid.compact .vehicle-card-button { display: grid; grid-template-columns: 42% 58%; }
.vehicle-grid.compact .card-media { aspect-ratio: auto; min-height: 300px; }
.vehicle-grid.compact .card-content { display: grid; grid-template-columns: 1fr .65fr; gap: 10px 30px; align-content: center; }
.vehicle-grid.compact .card-heading, .vehicle-grid.compact .card-specs, .vehicle-grid.compact .card-footer { grid-column: 1; }
.vehicle-grid.compact .card-price { grid-column: 2; grid-row: 1 / 3; align-self: center; flex-direction: column; align-items: flex-start; justify-content: center; border: 0; border-left: 1px solid var(--line); padding: 20px 0 20px 30px; }
.empty-state { padding: 80px 20px; text-align: center; border: 1px dashed rgba(10,12,15,.16); border-radius: 28px; }
.empty-state > span { display: grid; place-items: center; width: 78px; height: 78px; margin: auto; color: #fff; border-radius: 50%; background: var(--ink); font-size: 1.8rem; font-weight: 800; }
.empty-state h3 { margin: 24px 0 6px; font-size: 1.8rem; }
.empty-state p { margin: 0 0 24px; color: var(--muted); }

.support-section { color: #fff; background: #07090c; overflow: hidden; }
.support-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.28fr); gap: 68px; align-items: center; }
.support-copy h2 { margin-top: 22px; color: #f8f7f4; font-size: clamp(3rem, 6vw, 6.2rem); line-height: .92; letter-spacing: -.065em; }
.support-copy h2 em { display: block; color: #e4837d; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.support-copy > p { max-width: 580px; color: rgba(255,255,255,.58); font-size: 1.03rem; line-height: 1.75; }
.support-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.7); font-size: .82rem; font-weight: 800; }
.support-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.support-tags span { padding: 12px 17px; border: 1px solid rgba(216,32,47,.34); border-radius: 999px; color: rgba(255,255,255,.7); background: rgba(216,32,47,.035); font-size: .76rem; font-weight: 700; }
.support-visual { position: relative; margin: 0; min-height: 590px; border: 1px solid rgba(255,255,255,.1); border-radius: 32px; overflow: hidden; background: #11141a; box-shadow: 0 38px 110px rgba(0,0,0,.42); }
.support-visual img { width: 100%; height: 100%; min-height: 590px; object-fit: cover; object-position: center; }
.support-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,6,8,.05) 30%, rgba(4,6,8,.86) 100%); pointer-events: none; }
.support-visual figcaption { position: absolute; z-index: 2; left: 42px; right: 42px; bottom: 38px; }
.support-visual small { display: block; color: #e69a94; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.support-visual strong { display: block; margin-top: 12px; max-width: 650px; color: #fff; font-size: clamp(2.2rem, 4vw, 4.4rem); line-height: .95; letter-spacing: -.055em; }

.finance-section { padding-top: 90px; background: #fff; }
.finance-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: 72px; color: #fff; border-radius: 36px; background: radial-gradient(circle at 80% 10%, rgba(216,32,47,.34), transparent 35%), linear-gradient(135deg, #15181e, #07090c 70%); box-shadow: 0 35px 100px rgba(6,8,11,.22); overflow: hidden; }
.finance-card > div:not(.finance-orbit) { position: relative; z-index: 2; }
.finance-card h2 { max-width: 800px; }
.finance-card p { max-width: 620px; color: rgba(255,255,255,.6); line-height: 1.7; }
.finance-card .button { position: relative; z-index: 2; }
.finance-orbit { position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.finance-orbit span { position: absolute; inset: 14%; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.finance-orbit span:nth-child(2) { inset: 30%; }
.finance-orbit span:nth-child(3) { inset: 47%; background: var(--red); box-shadow: 0 0 50px rgba(216,32,47,.72); }

.location-section { background: #fff; }
.location-grid { display: grid; grid-template-columns: 1.08fr .82fr; gap: 90px; align-items: center; }
.location-image { position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.location-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.location-pin { position: absolute; left: 22px; bottom: 22px; padding: 12px 16px 12px 34px; color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(7,9,12,.66); backdrop-filter: blur(14px); font-size: .76rem; font-weight: 750; }
.location-pin::before { content: ""; position: absolute; left: 16px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--red); transform: translateY(-50%); box-shadow: 0 0 16px var(--red); }
.location-copy > p { color: var(--muted); line-height: 1.75; }
.location-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0; }
.location-facts span { padding: 17px; border: 1px solid var(--line); border-radius: 17px; }
.location-facts small { display: block; color: #8a8f96; font-size: .63rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.location-facts strong { display: block; margin-top: 7px; font-size: .9rem; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-weight: 750; }

.contact-section { padding: 110px 0; color: #fff; background: linear-gradient(135deg, #0e1116, #06080b); }
.contact-inner { display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: end; }
.contact-inner h2 { max-width: 800px; }
.contact-inner p { max-width: 600px; color: rgba(255,255,255,.58); line-height: 1.7; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; max-width: 420px; }
.contact-actions small { flex-basis: 100%; color: rgba(255,255,255,.35); text-align: right; font-size: .69rem; }
.site-footer { padding: 30px 0; color: #fff; border-top: 1px solid rgba(255,255,255,.08); background: #06080b; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 14px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand small { margin-top: 4px; color: rgba(255,255,255,.4); font-size: .65rem; }
.site-footer nav { display: flex; gap: 24px; color: rgba(255,255,255,.58); font-size: .8rem; }
.site-footer > .container > p { justify-self: end; color: rgba(255,255,255,.34); font-size: .7rem; }

.vehicle-modal { width: 100%; max-width: none; height: 100%; max-height: none; padding: 0; border: 0; background: transparent; overflow: hidden; }
.vehicle-modal::backdrop { background: rgba(5,7,10,.76); backdrop-filter: blur(18px); animation: fadeIn .3s ease both; }
.modal-shell { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, .7fr); background: #f6f4f0; animation: modalIn .55s var(--ease) both; }
.modal-close { position: fixed; z-index: 20; top: 20px; right: 20px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; background: rgba(7,9,12,.55); backdrop-filter: blur(12px); font-size: 1.7rem; cursor: pointer; }
.gallery-panel { min-width: 0; display: grid; grid-template-rows: 1fr auto; padding: 18px 0 18px 18px; background: #07090c; }
.gallery-stage { position: relative; min-height: 0; border-radius: 26px; overflow: hidden; cursor: grab; touch-action: pan-y; background: radial-gradient(circle at center, #171a20, #080a0e 72%); }
.gallery-stage:active { cursor: grabbing; }
.gallery-stage img { width: 100%; height: 100%; padding: clamp(8px, 2vw, 24px); object-fit: contain; object-position: center; user-select: none; -webkit-user-drag: none; transition: opacity .25s ease, transform .55s var(--ease); }
.gallery-stage.changing img { opacity: .35; transform: scale(1.02); }
.gallery-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.2), transparent 30%, transparent 65%, rgba(0,0,0,.32)); }
.gallery-counter { position: absolute; left: 24px; top: 22px; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 750; }
.gallery-counter i { display: block; width: 34px; height: 1px; background: rgba(255,255,255,.4); }
.gallery-counter span:last-child { color: rgba(255,255,255,.45); }
.gallery-actions { position: absolute; right: 22px; bottom: 22px; display: flex; gap: 7px; }
.gallery-actions button { display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; background: rgba(7,9,12,.5); backdrop-filter: blur(12px); cursor: pointer; transition: background .25s ease, transform .25s ease; }
.gallery-actions button:hover { transform: translateY(-2px); background: rgba(216,32,47,.9); }
.gallery-actions svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.gallery-thumbs { display: flex; gap: 9px; padding: 12px 0 0; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button { flex: 0 0 92px; height: 67px; padding: 0; border: 1px solid transparent; border-radius: 13px; overflow: hidden; opacity: .52; background: none; cursor: pointer; transition: opacity .25s ease, border-color .25s ease, transform .25s ease; }
.gallery-thumbs button:hover { opacity: .8; }
.gallery-thumbs button.active { opacity: 1; border-color: var(--red-soft); transform: translateY(-2px); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; background: #11141a; }
.vehicle-detail { min-width: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; background: #f6f4f0; }
.detail-scroll { padding: 72px 42px 40px; overflow-y: auto; }
.detail-heading > div { display: flex; gap: 10px; color: #777c84; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.detail-heading > div span + span::before { content: "·"; margin-right: 10px; }
.detail-heading h2 { margin: 13px 0 3px; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: .92; letter-spacing: -.07em; }
.detail-heading p { margin: 0; color: #72777f; font-size: 1.05rem; }
.detail-price { margin: 35px 0 24px; padding: 22px; border-radius: 20px; background: #fff; box-shadow: 0 12px 40px rgba(6,8,11,.06); }
.detail-price span, .detail-description > span, .detail-features > span { display: block; color: #858a91; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-price strong { display: block; margin-top: 8px; font-size: 2rem; letter-spacing: -.04em; }
.detail-price small { display: block; margin-top: 5px; color: #8a8f96; }
.detail-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.detail-specs article { padding: 16px; border: 1px solid var(--line); border-radius: 17px; }
.detail-specs small { display: block; color: #8a8f97; font-size: .61rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.detail-specs strong { display: block; margin-top: 7px; font-size: .9rem; }
.detail-description, .detail-features { margin-top: 30px; }
.detail-description p { color: #5f646c; line-height: 1.7; }
.detail-features ul { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 15px 0 0; padding: 0; list-style: none; }
.detail-features li { position: relative; padding-left: 17px; color: #4e535a; font-size: .86rem; }
.detail-features li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 13px rgba(216,32,47,.45); }
.detail-notice { margin-top: 32px; padding: 17px; border: 1px solid rgba(216,32,47,.14); border-radius: 17px; background: rgba(216,32,47,.045); }
.detail-notice strong { font-size: .82rem; }
.detail-notice p { margin: 5px 0 0; color: #70757d; font-size: .77rem; line-height: 1.5; }
.detail-cta { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 18px 42px 24px; border-top: 1px solid var(--line); background: rgba(246,244,240,.92); backdrop-filter: blur(16px); }

.focus-view { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 60px; visibility: hidden; opacity: 0; background: rgba(3,4,6,.97); transition: opacity .3s ease, visibility .3s ease; }
.focus-view.active { visibility: visible; opacity: 1; }
.focus-view > button { position: absolute; right: 24px; top: 24px; width: 48px; height: 48px; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(255,255,255,.05); font-size: 1.8rem; cursor: pointer; }
.focus-view > img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; }
.focus-controls { position: absolute; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 18px; color: #fff; transform: translateX(-50%); }
.focus-controls button { width: 44px; height: 44px; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(255,255,255,.06); cursor: pointer; }
.focus-controls span { min-width: 70px; text-align: center; color: rgba(255,255,255,.6); font-size: .8rem; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-item { opacity: 0; transform: translateY(26px); animation: itemIn .7s var(--ease) forwards; }

@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1.035); } }
@keyframes scrollLine { 0%,100% { transform: translateX(-100%); } 50% { transform: translateX(200%); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.985) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes itemIn { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1000px) {
  :root { --container: min(100% - 32px, 920px); }
  .section { padding: 96px 0; }
  .hero-content { grid-template-columns: 1fr; gap: 30px; }
  .hero-card { width: min(100%, 420px); }
  .hero h1 { max-width: 900px; }
  .section-heading { align-items: start; flex-direction: column; gap: 18px; }
  .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-filter { grid-column: 1 / -1; }
  .reset-button { grid-column: span 2; }
  .support-layout, .location-grid { grid-template-columns: 1fr; gap: 70px; }
  .support-visual, .support-visual img { min-height: 520px; }
  .finance-card { grid-template-columns: 1fr; padding: 58px 44px; }
  .contact-inner { grid-template-columns: 1fr; gap: 30px; }
  .contact-actions { justify-content: flex-start; }
  .contact-actions small { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .site-footer > .container > p { justify-self: start; }
  .modal-shell { grid-template-columns: 1fr; grid-template-rows: minmax(45vh, 1fr) minmax(0, 1fr); overflow-y: auto; }
  .gallery-panel { min-height: 55vh; padding: 10px 10px 0; }
  .vehicle-detail { height: auto; min-height: 70vh; }
  .detail-scroll { overflow: visible; }
  .modal-close { top: 16px; right: 16px; }
}

@media (max-width: 760px) {
  :root { --container: calc(100vw - 28px); --radius: 23px; }
  .section { padding: 76px 0; }
  .site-header { padding: 12px 0; }
  .brand img { width: 43px; height: 43px; border-radius: 13px; }
  .brand-copy small { display: none; }
  .menu-button { display: block; }
  .main-nav { position: fixed; z-index: 99; top: 68px; left: 14px; right: 14px; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: rgba(7,9,12,.95); box-shadow: 0 30px 70px rgba(0,0,0,.38); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s var(--ease); }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 14px; }
  .main-nav .nav-cta { margin-top: 5px; text-align: center; }
  .hero { min-height: 900px; }
  .hero-media img { object-position: 56% center; }
  .hero-scrim { background: linear-gradient(180deg, rgba(5,7,10,.7), rgba(5,7,10,.86) 60%, #07090c 100%); }
  .hero-grid { background-size: 64px 64px; }
  .hero-content { padding-top: 126px; padding-bottom: 88px; align-items: start; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); line-height: .91; }
  .hero-copy > p { max-width: 94%; }
  .hero-actions .button { flex: 1 1 100%; }
  .trust-row { gap: 13px 20px; margin-top: 34px; }
  .hero-card { margin-bottom: 0; padding: 20px; }
  .hero-card-title { margin: 35px 0 25px; }
  .hero-card-title strong { font-size: 3rem; }
  .scroll-cue { display: none; }
  .section-heading h2, .support-section h2, .finance-card h2, .location-copy h2, .contact-inner h2 { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .filter-shell { top: 67px; padding: 10px; border-radius: 20px; }
  .search-field { height: 54px; }
  .search-field kbd { display: none; }
  .filter-row { grid-template-columns: 1fr 1fr; gap: 3px; }
  .filter-row > label { padding: 8px 9px; }
  .price-filter { grid-column: 1 / -1; padding: 10px 9px 8px; }
  .price-filter-head output { font-size: .72rem; }
  .price-range { height: 31px; }
  .price-range-track { top: 14px; }
  .price-range input[type="range"] { height: 31px; }
  .price-range input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; }
  .price-range input[type="range"]::-moz-range-thumb { width: 17px; height: 17px; }
  .reset-button { grid-column: 1 / -1; }
  .vehicle-grid { grid-template-columns: 1fr; gap: 18px; }
  .card-media { aspect-ratio: 4 / 3; }
  .card-content { padding: 20px; }
  .card-specs { gap: 6px; }
  .card-specs span { padding: 9px 8px; }
  .vehicle-grid.compact .vehicle-card-button { display: block; }
  .vehicle-grid.compact .card-media { min-height: 0; aspect-ratio: 4/3; }
  .vehicle-grid.compact .card-content { display: block; }
  .vehicle-grid.compact .card-price { border-left: 0; border-bottom: 1px solid var(--line); padding: 0 0 19px; flex-direction: row; align-items: end; justify-content: space-between; }
  .support-layout { gap: 44px; }
  .support-visual, .support-visual img { min-height: 430px; }
  .support-visual figcaption { left: 24px; right: 24px; bottom: 24px; }
  .support-tags { margin-top: 36px; }
  .finance-section { padding-top: 50px; }
  .finance-card { padding: 42px 24px; border-radius: 27px; }
  .location-grid { gap: 44px; }
  .location-image { border-radius: 24px; }
  .location-facts { grid-template-columns: 1fr; }
  .contact-section { padding: 78px 0; }
  .contact-actions .button { flex: 1 1 100%; }
  .site-footer nav { flex-wrap: wrap; }
  .modal-shell { grid-template-rows: 48vh auto; }
  .gallery-panel { min-height: 48vh; padding: 8px 8px 0; }
  .gallery-stage { border-radius: 20px; }
  .gallery-thumbs { padding-bottom: 8px; }
  .gallery-thumbs button { flex-basis: 72px; height: 52px; }
  .gallery-actions { right: 14px; bottom: 14px; }
  .gallery-actions button { width: 42px; height: 42px; }
  .gallery-actions button:nth-child(1), .gallery-actions button:nth-child(2) { display: none; }
  .detail-scroll { padding: 44px 20px 28px; }
  .detail-heading h2 { font-size: 3.5rem; }
  .detail-features ul { grid-template-columns: 1fr; }
  .detail-cta { padding: 15px 20px 22px; }
  .focus-view { padding: 65px 10px; }
}

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


/* ===== Correcciones de interacción y encuadre ===== */
.price-filter[hidden] { display: none !important; }
.filter-row.price-unavailable {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(120px, .8fr) auto;
}

.card-media {
  aspect-ratio: 4 / 3;
  isolation: isolate;
  background: #0a0d12;
}
.card-media img { pointer-events: none; }
.card-media-backdrop {
  position: absolute;
  z-index: 0;
  inset: -7%;
  width: 114% !important;
  height: 114% !important;
  padding: 0 !important;
  object-fit: cover !important;
  filter: blur(22px) brightness(.42) saturate(.82);
  transform: scale(1.08) !important;
  opacity: .82;
}
.card-media-main {
  position: relative;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100% !important;
  padding: clamp(10px, 1.4vw, 18px) !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  transform: none !important;
}
.vehicle-card-button:hover .card-media img { filter: none; transform: none; }
.vehicle-card-button:hover .card-media-main { transform: scale(1.008) !important; }
.card-shade { z-index: 2; pointer-events: none; }
.card-badges, .card-gallery-count { z-index: 3; }

.gallery-stage {
  isolation: isolate;
  min-height: 420px;
}
.gallery-stage > img { pointer-events: none; }
.gallery-backdrop {
  position: absolute;
  z-index: 0;
  inset: -5%;
  width: 110% !important;
  height: 110% !important;
  padding: 0 !important;
  object-fit: cover !important;
  filter: blur(30px) brightness(.34) saturate(.78);
  transform: scale(1.08) !important;
  opacity: .8;
}
.gallery-main-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  padding: clamp(10px, 1.5vw, 22px) !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  transform: none !important;
}
.gallery-stage.changing .gallery-main-image { opacity: .35; transform: scale(.995) !important; }
.gallery-vignette { z-index: 2; }
.gallery-counter { z-index: 4; }
.gallery-actions {
  z-index: 6;
  pointer-events: auto;
}
.gallery-actions button {
  position: relative;
  z-index: 7;
  pointer-events: auto;
  touch-action: manipulation;
}
.gallery-thumbs button { touch-action: manipulation; }

.focus-view {
  z-index: 50;
  pointer-events: none;
}
.focus-view.active { pointer-events: auto; }
.focus-view > button,
.focus-controls { z-index: 2; }
.focus-controls button { touch-action: manipulation; }

@media (max-width: 1000px) {
  .filter-row.price-unavailable { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-row.price-unavailable .reset-button { grid-column: 1 / -1; }
  .gallery-stage { min-height: 0; }
}

@media (max-width: 760px) {
  .card-media { aspect-ratio: 1 / 1; }
  .card-media-main { padding: 10px !important; }
  .gallery-actions {
    right: 50%;
    bottom: 12px;
    transform: translateX(50%);
  }
  .gallery-actions button:nth-child(1),
  .gallery-actions button:nth-child(2) { display: grid; }
  .gallery-main-image { padding: 8px 8px 66px !important; }
  .gallery-counter { left: 16px; top: 15px; }
  .focus-view { padding: 70px 8px 82px; }
}

/* ===== Auditoría integral: galería, portadas y estabilidad ===== */
body.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.location-grid--text-only {
  display: block;
}
.location-grid--text-only .location-copy {
  width: min(100%, 900px);
}

.vehicle-card-button:focus-visible,
.gallery-actions button:focus-visible,
.gallery-thumbs button:focus-visible,
.modal-close:focus-visible,
.focus-view button:focus-visible,
.view-toggle button:focus-visible,
.reset-button:focus-visible,
.menu-button:focus-visible,
.button:focus-visible,
.main-nav a:focus-visible {
  outline: 3px solid rgba(216, 32, 47, .72);
  outline-offset: 4px;
}

/* Las portadas llenan el marco; la galería conserva la foto completa. */
.card-media {
  aspect-ratio: 4 / 3;
  background: #0a0d12;
}
.card-media-backdrop {
  display: none !important;
}
.card-media-main {
  position: absolute !important;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center 53%;
  filter: saturate(.99) contrast(1.01) !important;
  transform: scale(1.001) !important;
  transition: transform .7s var(--ease), filter .7s var(--ease), opacity .25s ease !important;
}
.card-media[data-orientation="portrait"] .card-media-main { object-position: center 52%; }
.card-media[data-orientation="square"] .card-media-main { object-position: center 54%; }
.card-media[data-orientation="landscape"] .card-media-main { object-position: center 50%; }
.vehicle-card-button:hover .card-media-main {
  transform: scale(1.026) !important;
  filter: saturate(1.03) contrast(1.025) !important;
}
.card-shade {
  background: linear-gradient(180deg, rgba(0,0,0,.12), transparent 48%, rgba(0,0,0,.38));
}
.card-badges {
  max-width: calc(100% - 32px);
}
.card-badges span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-modal {
  overscroll-behavior: contain;
}
.gallery-stage {
  touch-action: pan-y pinch-zoom;
  overscroll-behavior: contain;
}
.gallery-main-image {
  object-fit: contain !important;
  object-position: center !important;
}
.gallery-thumbs {
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
}
.gallery-thumbs button[aria-current="true"] {
  opacity: 1;
  border-color: var(--red-soft);
}
.detail-scroll {
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
.detail-scroll::-webkit-scrollbar,
.vehicle-modal::-webkit-scrollbar {
  width: 8px;
}
.detail-scroll::-webkit-scrollbar-thumb,
.vehicle-modal::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(18, 21, 26, .26);
  background-clip: padding-box;
}
.focus-view {
  touch-action: pan-y pinch-zoom;
  overscroll-behavior: none;
}
.focus-view > img {
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 1000px) {
  /* Un solo contenedor de desplazamiento evita el bloqueo al intentar volver arriba. */
  .vehicle-modal {
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
  }
  .modal-shell {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100%;
    overflow: visible;
  }
  .gallery-panel {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    height: min(62svh, 680px);
    min-height: 460px;
    padding: 10px 10px 0;
  }
  .vehicle-detail {
    display: block;
    height: auto;
    min-height: 0;
  }
  .detail-scroll {
    overflow: visible;
  }
  .detail-cta {
    position: static;
  }
}

@media (max-width: 760px) {
  .card-media {
    aspect-ratio: 4 / 3;
  }
  .card-media-main {
    padding: 0 !important;
  }
  .gallery-panel {
    height: min(58svh, 560px);
    min-height: 390px;
  }
  .gallery-main-image {
    padding: 8px 8px 68px !important;
  }
  .detail-heading h2 {
    overflow-wrap: anywhere;
  }
  .detail-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (hover: none) {
  .vehicle-card-button:hover {
    transform: none;
    box-shadow: 0 18px 50px rgba(8,10,13,.07);
  }
  .vehicle-card-button:hover .card-media-main {
    transform: scale(1.001) !important;
    filter: saturate(.99) contrast(1.01) !important;
  }
}

@media (max-width: 760px) {
  /* En móvil el panel completo deja de flotar sobre las portadas. */
  .filter-shell {
    position: static;
  }
}

/* ===== Ajuste extra: galería de escritorio mostrando el vehículo completo ===== */
@media (min-width: 1001px) {
  .modal-shell {
    grid-template-columns: minmax(0, 1.72fr) minmax(340px, .68fr);
  }

  .gallery-panel {
    height: 100dvh;
    min-height: 100dvh;
    padding: 14px 0 14px 14px;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .gallery-stage {
    min-height: 0;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 28px;
  }

  .gallery-backdrop {
    inset: -4%;
    width: 108% !important;
    height: 108% !important;
    filter: blur(26px) brightness(.33) saturate(.76);
  }

  .gallery-main-image {
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    padding: clamp(16px, 2vw, 28px) clamp(18px, 2.2vw, 34px) clamp(20px, 2.2vw, 34px) !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .gallery-thumbs {
    padding: 12px 0 0;
  }

  .gallery-thumbs button {
    flex-basis: 104px;
    height: 74px;
  }

  .detail-scroll {
    padding: 64px 36px 34px;
  }
}
