:root {
  --ink: #111316;
  --muted: #5b626c;
  --paper: #101214;
  --surface: #191c20;
  --line: rgba(255, 255, 255, 0.14);
  --brand: #e30613;
  --brand-dark: #a9050f;
  --silver: #d8dce1;
  --charcoal: #121416;
  --panel: #1b1e22;
  --panel-soft: #23272d;
  --muted-on-dark: rgba(255, 255, 255, 0.7);
  --display-font: Bahnschrift, "Segoe UI Semibold", "Arial Narrow", Arial, sans-serif;
  --body-font: "Segoe UI", Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--body-font);
  background: var(--paper);
  color: #fff;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.12em;
  height: 1.12em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(17, 19, 22, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  color: #fff;
  transform: translateY(calc(-1px * var(--header-hide-offset, 0)));
  will-change: transform;
  transition:
    background 220ms var(--ease),
    box-shadow 220ms var(--ease),
    padding 220ms var(--ease);
}

.site-header.scrolled {
  background: rgba(17, 19, 22, 0.96);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  padding-block: 9px;
}

.site-header.header-hidden {
  pointer-events: none;
}

.brand,
.nav-links,
.hero-actions,
.filter-bar,
.specs,
.contact-panel {
  display: flex;
  align-items: center;
}

.brand {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.brand-logo {
  width: 230px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.64));
}

.nav-links {
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.78rem;
  font-family: var(--display-font);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links button {
  position: relative;
  border: 0;
  padding: 10px 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: color 180ms var(--ease);
}

.nav-links button::after {
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.nav-links button:hover,
.nav-links button.active {
  color: #fff;
}

.nav-links button:hover::after,
.nav-links button.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
}

.mobile-menu-backdrop {
  display: none;
}

.header-action,
.button,
.filter-button,
.card-link {
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--display-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-action {
  position: relative;
  overflow: hidden;
  padding: 11px 16px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(227, 6, 19, 0.26);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.page-view {
  display: none;
}

.page-view:not(.active) {
  display: none;
}

.page-view.active {
  display: block;
}

.service-band.page-view.active,
.finance-section.page-view.active,
.contact-section.page-view.active,
.about-section.page-view.active {
  display: grid;
}

.header-action:hover {
  background: #ff1724;
  box-shadow: 0 16px 34px rgba(227, 6, 19, 0.36);
  transform: translateY(-2px);
}

.header-action:active {
  transform: translateY(0) scale(0.98);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    radial-gradient(circle at 68% 18%, rgba(227, 6, 19, 0.22), rgba(227, 6, 19, 0) 26%),
    linear-gradient(90deg, rgba(6, 8, 10, 0.92) 0%, rgba(6, 8, 10, 0.58) 48%, rgba(6, 8, 10, 0.12) 100%),
    linear-gradient(0deg, rgba(6, 8, 10, 0.88) 0%, rgba(6, 8, 10, 0) 42%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 80px) 92px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-family: var(--display-font);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

h1 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 7.1rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.44);
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  font-family: var(--display-font);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease);
}

.button::before,
.header-action::before,
.card-link::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.34) 48%, transparent 72%);
  content: "";
  transform: translateX(-120%);
  transition: transform 520ms var(--ease);
}

.button:hover::before,
.header-action:hover::before,
.card-link:hover::before {
  transform: translateX(120%);
}

.button:hover {
  transform: translateY(-3px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 18px 34px rgba(227, 6, 19, 0.28);
}

.button.secondary {
  border: 1px solid rgba(216, 220, 225, 0.64);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}

.button.dark {
  background: var(--charcoal);
  color: #fff;
}

.button.dark:hover {
  background: #23282e;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(650px, 100%);
  margin-top: 32px;
  border: 1px solid rgba(216, 220, 225, 0.22);
  background: rgba(216, 220, 225, 0.18);
}

.hero-metrics div {
  padding: 14px 16px;
  background: rgba(10, 12, 14, 0.62);
  backdrop-filter: blur(8px);
}

.hero-metrics strong {
  display: block;
  font-family: var(--display-font);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-metrics span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.about-preview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.94), rgba(12, 13, 15, 0.78) 58%, rgba(8, 9, 11, 0.98)),
    url("assets/frente-jc-autos.jpeg") center / cover;
  color: #fff;
}

.about-preview > div:first-child {
  max-width: 780px;
  border-left: 4px solid var(--brand);
  padding-left: clamp(18px, 3vw, 28px);
}

.about-preview p,
.about-copy p,
.location-card p {
  color: var(--muted-on-dark);
  line-height: 1.75;
}

.location-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(35, 39, 45, 0.96), rgba(19, 21, 24, 0.96));
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.location-card span {
  color: var(--brand);
  font-family: var(--display-font);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.location-card h3 {
  min-height: 0;
  margin-bottom: 10px;
}

.location-card a:not(.button) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 800;
}

.home-featured {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 20, 22, 0.98) 0%, rgba(11, 12, 14, 1) 100%);
  border-top: 1px solid rgba(227, 6, 19, 0.34);
  color: #fff;
}

.home-featured::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(227, 6, 19, 0.18), rgba(227, 6, 19, 0) 34%),
    linear-gradient(90deg, rgba(227, 6, 19, 0.14), rgba(255, 255, 255, 0.04) 38%, rgba(216, 220, 225, 0.08) 100%);
  content: "";
  pointer-events: none;
}

.home-featured > * {
  position: relative;
}

.home-featured .section-heading {
  position: relative;
}

.home-featured .section-heading::before {
  display: block;
  width: 84px;
  height: 4px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, var(--brand), var(--brand), var(--silver));
  content: "";
}

.home-featured .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.home-carousel {
  position: relative;
  margin-bottom: 26px;
}

.home-featured-grid {
  display: grid;
  grid-auto-columns: minmax(580px, 72%);
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-featured-grid.is-scrubbing {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.home-featured-grid::-webkit-scrollbar {
  display: none;
}

.home-feature-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1fr);
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 36, 40, 0.98), rgba(16, 18, 20, 0.98));
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.home-feature-card::after {
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--brand);
  content: "";
  opacity: 0.92;
  pointer-events: none;
}

.home-feature-card:hover {
  border-color: rgba(227, 6, 19, 0.48);
  box-shadow: 0 30px 84px rgba(0, 0, 0, 0.44);
  transform: translateY(-5px);
}

.home-feature-card:focus-visible {
  outline: 3px solid rgba(227, 6, 19, 0.34);
  outline-offset: 4px;
}

.home-feature-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
  transition: transform 420ms var(--ease), filter 420ms var(--ease);
}

.home-feature-card:hover img {
  filter: saturate(1.12) contrast(1.08);
  transform: scale(1.035);
}

.home-feature-card > div {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(20px, 3vw, 30px);
}

.home-feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.home-feature-card .vehicle-type {
  color: #ff3843;
}

.home-feature-card h3 {
  color: #fff;
}

.home-feature-card .price {
  color: #fff;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.home-feature-card .card-link {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.home-feature-card .card-link:hover {
  border-color: var(--brand);
}

.home-featured > .button.dark {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 18px 34px rgba(227, 6, 19, 0.28);
}

.home-featured > .button.dark:hover {
  background: #ff1724;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(9, 10, 12, 0.82);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
  backdrop-filter: blur(14px);
}

.carousel-arrow:hover {
  border-color: var(--brand);
  background: var(--brand);
}

.carousel-arrow:disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.carousel-arrow.prev {
  left: -12px;
}

.carousel-arrow.next {
  right: -12px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(360px, 100%);
  margin: 10px auto 0;
}

.carousel-progress {
  position: relative;
  flex: 1;
  height: 9px;
  overflow: visible;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: grab;
  touch-action: none;
  transition: height 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}

.carousel-progress:hover,
.carousel-dots.is-scrubbing .carousel-progress {
  height: 11px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 6px rgba(227, 6, 19, 0.08);
}

.carousel-dots.is-scrubbing .carousel-progress {
  cursor: grabbing;
}

.carousel-progress span {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #ff4a55, var(--silver));
  box-shadow: 0 0 18px rgba(227, 6, 19, 0.42);
  transition: width 120ms linear;
}

.carousel-progress span::after {
  position: absolute;
  top: 50%;
  right: -10px;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(227, 6, 19, 0.16), 0 8px 20px rgba(0, 0, 0, 0.34);
  content: "";
  transform: translateY(-50%);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.carousel-progress:hover span::after,
.carousel-dots.is-scrubbing .carousel-progress span::after {
  box-shadow: 0 0 0 7px rgba(227, 6, 19, 0.2), 0 10px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-50%) scale(1.08);
}

.carousel-dots.is-scrubbing .carousel-progress span {
  transition: none;
}

.carousel-count {
  min-width: 46px;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--display-font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: right;
}

.home-service {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(30px, 6vw, 80px);
  background:
    linear-gradient(90deg, rgba(11, 12, 14, 1) 0%, rgba(25, 27, 31, 1) 54%, rgba(50, 12, 16, 0.92) 100%);
  color: #fff;
}

.section-copy {
  max-width: 620px;
  color: var(--muted-on-dark);
  line-height: 1.7;
}

.attention-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  gap: 18px;
  align-items: stretch;
}

.hours-card {
  display: grid;
  align-content: center;
  gap: 16px;
  border: 1px solid rgba(227, 6, 19, 0.32);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(227, 6, 19, 0.24), rgba(32, 35, 40, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hours-card div {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 14px;
}

.hours-card span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
}

.hours-card strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-family: var(--display-font);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.home-service .service-list,
.service-band .service-list {
  align-content: stretch;
  grid-template-columns: 1fr;
  gap: 12px;
}

.home-service .service-list div,
.service-band .service-list div {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--brand);
  border-top: 0;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.home-service .service-list span,
.service-band .service-list span {
  font-size: 1.1rem;
}

.home-service .service-list p,
.service-band .service-list p {
  max-width: 520px;
}

.service-band .attention-panel {
  align-self: start;
}

.home-contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
  background:
    linear-gradient(135deg, rgba(26, 4, 7, 0.96), rgba(15, 17, 19, 1) 46%, rgba(227, 6, 19, 0.28) 100%);
  color: #fff;
}

.home-service::before,
.about-preview::before,
.home-contact::before {
  position: absolute;
  top: 0;
  left: clamp(18px, 4vw, 56px);
  right: clamp(18px, 4vw, 56px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 6, 19, 0.72), rgba(216, 220, 225, 0.42), transparent);
  content: "";
}

.home-service::after,
.about-preview::after {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46px;
  background: linear-gradient(180deg, rgba(227, 6, 19, 0.08), transparent);
  content: "";
  pointer-events: none;
}

.inventory-section,
.detail-section,
.contact-section,
.about-section {
  background:
    radial-gradient(circle at 8% 10%, rgba(227, 6, 19, 0.12), rgba(227, 6, 19, 0) 30%),
    linear-gradient(180deg, rgba(18, 20, 22, 1), rgba(10, 11, 13, 1));
  color: #fff;
}

.inventory-section .section-heading p,
.contact-copy p {
  color: var(--muted-on-dark);
}

.inventory-section,
.detail-section,
.service-band,
.finance-section,
.contact-section,
.about-section,
.about-preview,
.home-featured,
.home-service,
.home-contact {
  min-height: calc(100vh - 72px);
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.inventory-section,
.detail-section,
.service-band,
.finance-section,
.contact-section,
.about-section {
  padding-top: clamp(104px, 12vw, 132px);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.75fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.about-copy {
  max-width: 800px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.about-stats div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.about-stats strong {
  display: block;
  color: #fff;
  font-family: var(--display-font);
  font-size: 1rem;
  text-transform: uppercase;
}

.about-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted-on-dark);
  font-size: 0.82rem;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.about-media {
  display: grid;
  gap: 18px;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 58px rgba(18, 20, 22, 0.14);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading p,
.contact-copy p,
.service-list p {
  color: var(--muted);
  line-height: 1.7;
}

.inventory-section .section-heading p,
.detail-section .section-heading p,
.about-section .section-heading p,
.contact-section .section-heading p,
.home-featured .section-heading p,
.home-contact .section-heading p,
.contact-copy p,
.about-copy p {
  color: var(--muted-on-dark);
}

.filter-bar {
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.mobile-inventory-toolbar {
  position: relative;
}

.mobile-inventory-toolbar-shell {
  position: relative;
}

.mobile-category-field {
  display: none;
}

.mobile-filters-backdrop {
  display: none;
}

.filter-button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}

.filter-button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.filter-button:hover {
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.filter-button:active {
  transform: translateY(0) scale(0.98);
}

.inventory-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: -12px 0 24px;
}

.mobile-filters-toggle {
  display: none;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  gap: 10px;
  margin: 0 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 8px 14px 8px 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 180ms var(--ease),
    background 180ms var(--ease);
}

.mobile-filters-toggle[aria-expanded="true"] {
  margin-bottom: 0;
  border-color: rgba(227, 6, 19, 0.62);
  background: rgba(227, 6, 19, 0.1);
}

.mobile-filters-toggle:focus-visible {
  outline: 3px solid rgba(227, 6, 19, 0.3);
  outline-offset: 3px;
}

.mobile-filters-toggle > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.mobile-filters-toggle strong {
  font-family: var(--display-font);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-filters-toggle small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
}

.mobile-filters-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background:
    linear-gradient(#fff, #fff) 9px 10px / 16px 2px no-repeat,
    linear-gradient(#fff, #fff) 9px 16px / 16px 2px no-repeat,
    linear-gradient(#fff, #fff) 9px 22px / 16px 2px no-repeat,
    rgba(255, 255, 255, 0.07);
}

.mobile-filters-icon::after {
  position: absolute;
  top: 8px;
  left: 13px;
  width: 4px;
  height: 4px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1a1d21;
  box-shadow:
    6px 6px 0 -2px #1a1d21,
    6px 6px 0 0 #fff,
    -2px 12px 0 -2px #1a1d21,
    -2px 12px 0 0 #fff;
  content: "";
}

.mobile-filters-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(255, 255, 255, 0.72);
  border-bottom: 2px solid rgba(255, 255, 255, 0.72);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms var(--ease);
}

.mobile-filters-toggle[aria-expanded="true"] .mobile-filters-chevron {
  transform: translateY(2px) rotate(225deg);
}

.inventory-filters label {
  display: grid;
  gap: 7px;
}

.inventory-filters span,
.price-filter-field .filter-title {
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--display-font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background: #1a1d21;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.inventory-filters select:focus {
  border-color: rgba(227, 6, 19, 0.72);
  outline: 3px solid rgba(227, 6, 19, 0.18);
}

.price-filter-field {
  display: grid;
  gap: 7px;
}

.price-filter {
  position: relative;
}

.price-filter summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 34px 0 12px;
  background: #1a1d21;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.price-filter summary::-webkit-details-marker {
  display: none;
}

.price-filter summary::after {
  position: absolute;
  top: 21px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(255, 255, 255, 0.72);
  border-bottom: 2px solid rgba(255, 255, 255, 0.72);
  content: "";
  transform: translateY(-50%) rotate(45deg);
  transition: transform 160ms var(--ease);
}

.price-filter[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.price-filter summary strong {
  color: #fff;
  display: block;
  overflow: hidden;
  max-width: 100%;
  font-size: 0.82rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 5;
  display: grid;
  width: min(360px, 90vw);
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(17, 19, 22, 0.98);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
}

.currency-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.currency-toggle label {
  position: relative;
  display: grid;
}

.currency-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.currency-toggle span {
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--display-font);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.currency-toggle input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.price-filter input[type="range"] {
  --range-progress: 100%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
  background: transparent;
  cursor: grab;
}

.price-filter input[type="range"]:active {
  cursor: grabbing;
}

.price-filter input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--brand) 0 var(--range-progress), rgba(255, 255, 255, 0.16) var(--range-progress) 100%);
}

.price-filter input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(227, 6, 19, 0.16), 0 8px 18px rgba(0, 0, 0, 0.34);
  appearance: none;
}

.price-filter input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.price-filter input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
}

.price-filter input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(227, 6, 19, 0.16), 0 8px 18px rgba(0, 0, 0, 0.34);
}

.price-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.price-inputs label {
  gap: 5px;
}

.price-inputs small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
}

.price-inputs input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 0 10px;
  background: rgba(9, 10, 12, 0.68);
  color: #fff;
  font: inherit;
}

.price-inputs input:focus {
  border-color: rgba(227, 6, 19, 0.72);
  outline: 3px solid rgba(227, 6, 19, 0.18);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.vehicle-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(35, 39, 45, 0.98), rgba(18, 20, 23, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.vehicle-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #ff5d66, var(--silver));
  content: "";
  opacity: 0;
  transition: opacity 220ms var(--ease);
  z-index: 1;
}

.vehicle-card:hover {
  border-color: rgba(227, 6, 19, 0.28);
  box-shadow: 0 24px 58px rgba(18, 20, 22, 0.14);
  transform: translateY(-6px);
}

.vehicle-card:focus-visible {
  outline: 3px solid rgba(227, 6, 19, 0.34);
  outline-offset: 4px;
}

.vehicle-card:hover::before {
  opacity: 1;
}

.vehicle-card[hidden] {
  display: none;
}

.empty-inventory {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-on-dark);
}

.vehicle-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 420ms var(--ease), filter 420ms var(--ease);
}

.vehicle-card:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.035);
}

.vehicle-info {
  padding: 18px;
}

.vehicle-type,
.price {
  margin: 0;
  font-weight: 800;
}

.vehicle-type {
  color: #ff3843;
  font-size: 0.78rem;
  text-transform: uppercase;
}

h3 {
  min-height: 54px;
  margin: 7px 0 16px;
  font-family: var(--display-font);
  font-weight: 800;
  font-size: 1.16rem;
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: uppercase;
}

.price {
  font-size: 1.35rem;
}

.description {
  min-height: 96px;
  color: var(--muted-on-dark);
  line-height: 1.55;
}

.specs {
  gap: 8px;
  margin: 16px 0;
}

.specs div {
  flex: 1;
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 10px;
}

.specs dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
}

.specs dd {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.card-link {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.32);
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.back-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  margin-bottom: 22px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-family: var(--display-font);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.back-button:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateX(-3px);
}

.detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(400px, 0.8fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}

.gallery {
  position: relative;
  display: block;
  min-height: 0;
  min-width: 0;
  padding-left: 100px;
}

.gallery-media {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(31, 34, 39, 0.98), rgba(7, 8, 10, 0.98));
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.3);
  cursor: zoom-in;
}

.gallery-media::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(8, 9, 11, 0.78);
  color: #fff;
  content: "Ver fotos";
  font-family: var(--display-font);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms var(--ease);
}

.gallery-media:hover::after {
  opacity: 1;
}

.gallery-main {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  object-position: center;
}

.gallery-swipe-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.gallery-mobile-counter {
  display: none;
}

.gallery-zoom-lens {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  width: 42%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  background:
    linear-gradient(rgba(227, 6, 19, 0.12), rgba(227, 6, 19, 0.12)),
    rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 1px rgba(227, 6, 19, 0.6),
    0 10px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.gallery-media.zoom-active .gallery-zoom-lens {
  display: block;
}

.gallery-zoom-preview {
  position: fixed;
  z-index: 20;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background-color: #101214;
  background-repeat: no-repeat;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  pointer-events: none;
}

.gallery-zoom-preview.active {
  display: block;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overscroll-behavior: none;
  touch-action: none;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 6, 0.92);
  backdrop-filter: blur(5px);
}

.photo-lightbox-content {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(92vw, 1320px);
  height: min(92vh, 900px);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.photo-lightbox-content img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

.photo-lightbox-content > [data-lightbox-image],
.lightbox-swipe-preview {
  position: absolute;
  inset: 0;
}

.lightbox-swipe-preview {
  z-index: 1;
  pointer-events: none;
}

.photo-lightbox-dots {
  display: none;
}

.photo-lightbox-counter {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(10, 11, 13, 0.72);
  color: #fff;
  font-family: var(--display-font);
  font-size: 0.78rem;
  font-weight: 800;
}

.photo-lightbox-close,
.photo-lightbox-arrow {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 11, 13, 0.72);
  color: #fff;
  cursor: pointer;
  transition:
    background 160ms var(--ease),
    border-color 160ms var(--ease),
    transform 160ms var(--ease);
}

.photo-lightbox-close:hover,
.photo-lightbox-arrow:hover {
  border-color: var(--brand);
  background: rgba(227, 6, 19, 0.82);
}

.photo-lightbox-close {
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.photo-lightbox-close::before,
.photo-lightbox-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.photo-lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.photo-lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.photo-lightbox-arrow {
  top: 50%;
  width: 54px;
  height: 72px;
  border-radius: 7px;
  transform: translateY(-50%);
}

.photo-lightbox-arrow.prev {
  left: 16px;
}

.photo-lightbox-arrow.next {
  right: 16px;
}

.photo-lightbox-arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  content: "";
}

.photo-lightbox-arrow.prev::before {
  transform: translate(-35%, -50%) rotate(-45deg);
}

.photo-lightbox-arrow.next::before {
  transform: translate(-65%, -50%) rotate(135deg);
}

html.lightbox-open,
body.lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.lightbox-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.gallery-thumbs-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr) 34px;
  gap: 6px;
  width: 86px;
  min-height: 0;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  padding: 2px 5px 2px 2px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(227, 6, 19, 0.75) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.gallery-thumbs-arrow {
  position: relative;
  width: 72px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 0;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
  transition:
    border-color 160ms var(--ease),
    background 160ms var(--ease),
    opacity 160ms var(--ease);
}

.gallery-thumbs-arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
}

.gallery-thumbs-arrow.prev::before {
  transform: translate(-50%, -35%) rotate(45deg);
}

.gallery-thumbs-arrow.next::before {
  transform: translate(-50%, -65%) rotate(225deg);
}

.gallery-thumbs-arrow:hover:not(:disabled) {
  border-color: var(--brand);
  background: rgba(227, 6, 19, 0.16);
}

.gallery-thumbs-arrow:disabled {
  cursor: default;
  opacity: 0.24;
}

.gallery-thumbs::-webkit-scrollbar {
  width: 5px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(227, 6, 19, 0.78);
}

.gallery-thumbs button {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  border: 2px solid transparent;
  border-radius: 7px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.68;
  transition:
    border-color 160ms var(--ease),
    opacity 160ms var(--ease),
    transform 160ms var(--ease);
}

.gallery-thumbs button:hover,
.gallery-thumbs button.active {
  border-color: var(--brand);
  opacity: 1;
  transform: translateX(2px);
}

.gallery-thumbs button.active {
  box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.18);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-panel {
  position: sticky;
  top: 96px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(35, 39, 45, 0.98), rgba(18, 20, 23, 0.98));
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.detail-panel h2 {
  margin-top: 8px;
}

.detail-price {
  margin: 18px 0 0;
  color: var(--brand);
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
}

.detail-summary {
  color: var(--muted-on-dark);
  line-height: 1.7;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.detail-specs div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
}

.detail-specs dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.detail-specs dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-actions {
  display: grid;
  gap: 10px;
}

.detail-actions .button.secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.detail-actions .button.secondary:hover {
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand);
}

.detail-description {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  gap: clamp(24px, 4vw, 48px);
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

@media (min-width: 761px) {
  .detail-panel {
    height: 100%;
    box-sizing: border-box;
  }

  .detail-panel {
    padding: 22px;
  }

  .detail-panel h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 1;
  }

  .detail-price {
    margin-top: 14px;
    font-size: clamp(1.8rem, 2.5vw, 2.25rem);
  }

  .detail-summary {
    margin: 12px 0 0;
    line-height: 1.55;
  }

  .detail-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0;
  }

  .detail-specs div {
    min-width: 0;
    padding: 10px;
  }

  .detail-specs dd {
    overflow-wrap: anywhere;
  }

  .detail-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .detail-actions .button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.72rem;
  }

  .detail-actions .button.primary {
    grid-column: 1 / -1;
  }
}

@media (min-width: 761px) and (max-width: 1200px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-media {
    cursor: default;
  }

  .gallery-zoom-lens,
  .gallery-zoom-preview {
    display: none !important;
  }

  .detail-panel {
    position: static;
    height: auto;
  }
}

.detail-description h3 {
  min-height: 0;
}

.detail-description p {
  color: var(--muted-on-dark);
  line-height: 1.75;
}

.detail-description ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-description li {
  border-left: 3px solid var(--brand);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  color: var(--muted-on-dark);
}

.card-link:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.card-link:active {
  transform: translateY(0) scale(0.99);
}

.service-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 80px);
  background: var(--charcoal);
  color: #fff;
}

.finance-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.86fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
  background: var(--charcoal);
  color: #fff;
}

.finance-copy {
  max-width: 720px;
}

.finance-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.bna-link {
  margin-top: 18px;
}

.finance-section .button.secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
}

.service-list span {
  font-family: var(--display-font);
  color: var(--brand);
  font-weight: 800;
}

.service-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.finance-calculator {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: clamp(18px, 3vw, 26px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.finance-heading h3 {
  margin-bottom: 8px;
  color: #fff;
}

.finance-heading p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.finance-calculator label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 700;
}

.finance-calculator input,
.finance-calculator select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
}

.finance-calculator input:focus,
.finance-calculator select:focus {
  outline: 3px solid rgba(227, 6, 19, 0.32);
  border-color: var(--brand);
}

.finance-grid,
.finance-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.finance-result {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 14px;
}

.finance-result span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.finance-result strong {
  display: block;
  color: #fff;
  font-family: var(--display-font);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.finance-costs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.finance-costs div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.finance-costs span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
}

.finance-costs strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-family: var(--display-font);
}

.finance-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.55;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.contact-panel {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(35, 39, 45, 0.98), rgba(18, 20, 23, 0.98));
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.contact-panel a,
.contact-panel p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0 0 12px;
  font-weight: 700;
}

.contact-panel .icon,
.location-card .icon {
  color: var(--brand);
}

.contact-panel .button .icon,
.location-card .button .icon {
  color: inherit;
}

.contact-panel a {
  transition: color 160ms var(--ease), transform 160ms var(--ease);
}

.contact-panel a:hover {
  color: var(--brand);
  transform: translateX(4px);
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 12;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 18px 34px rgba(227, 6, 19, 0.36);
  font-family: var(--display-font);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.floating-whatsapp .icon {
  width: 1.05em;
  height: 1.05em;
  stroke-width: 1.8;
}

.floating-whatsapp::before {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(227, 6, 19, 0.34);
  border-radius: 50%;
  content: "";
  animation: pulseRing 2.4s var(--ease) infinite;
}

.floating-whatsapp:hover {
  background: #ff1724;
  box-shadow: 0 24px 44px rgba(227, 6, 19, 0.44);
  transform: translateY(-4px) scale(1.03);
}

.floating-whatsapp:active {
  transform: translateY(0) scale(0.96);
}

@keyframes pulseRing {
  0% {
    opacity: 0.72;
    transform: scale(0.86);
  }

  70% {
    opacity: 0;
    transform: scale(1.18);
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

.contact-panel p {
  border-bottom: 0;
  padding-bottom: 0;
  color: var(--muted-on-dark);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 56px);
  background: #101214;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer p {
  margin: 0;
}

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

  .header-action {
    display: none;
  }

  .home-service,
  .service-band {
    grid-template-columns: 1fr;
  }

  .attention-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    position: fixed;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
  }

  .brand {
    justify-self: start;
  }

  .brand-logo {
    width: 148px;
    height: 58px;
  }

  .header-action {
    display: none;
  }

  .menu-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    padding: 8px 12px 8px 43px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    font-family: var(--display-font);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
  }

  .menu-toggle span {
    position: absolute;
    left: 12px;
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms var(--ease), opacity 180ms var(--ease);
  }

  .menu-toggle span:nth-child(1) {
    top: calc(50% - 7px);
  }

  .menu-toggle span:nth-child(2) {
    top: calc(50% - 1px);
  }

  .menu-toggle span:nth-child(3) {
    top: calc(50% + 5px);
  }

  .menu-toggle[aria-expanded="true"] {
    border-color: rgba(227, 6, 19, 0.7);
    background: rgba(227, 6, 19, 0.12);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(86vw, 350px);
    height: calc(100dvh - 100%);
    gap: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 22px 22px max(28px, env(safe-area-inset-bottom));
    overflow-y: auto;
    background: rgba(15, 17, 19, 0.985);
    box-shadow: 24px 30px 65px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(16px);
    font-size: 0.82rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-102%);
    visibility: hidden;
    transition:
      opacity 220ms var(--ease),
      transform 280ms var(--ease),
      visibility 280ms var(--ease);
  }

  .site-header.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 0;
    min-width: 0;
    min-height: 60px;
    padding: 12px 36px 12px 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.05;
    text-align: left;
    white-space: nowrap;
  }

  .nav-links button::after {
    top: 50%;
    right: 10px;
    left: auto;
    bottom: auto;
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    background: transparent;
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.68;
  }

  .nav-links button.active {
    border-bottom-color: rgba(227, 6, 19, 0.5);
    background: linear-gradient(90deg, rgba(227, 6, 19, 0.2), transparent 75%);
    color: #fff;
  }

  .nav-links button.active::before {
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 0;
    width: 3px;
    background: var(--brand);
    content: "";
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 220ms var(--ease), visibility 220ms var(--ease);
  }

  body:has(.site-header.menu-open) .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .site-header.menu-open {
    transform: translateY(0) !important;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    width: min(100% - 24px, 680px);
    margin: 0 12px 36px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4.25rem);
    line-height: 0.95;
  }

  h2 {
    font-size: clamp(1.65rem, 7.6vw, 2.35rem);
    line-height: 1.05;
  }

  h3 {
    min-height: 0;
    font-size: 1.02rem;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .hero-copy {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .inventory-section,
  .detail-section,
  .service-band,
  .finance-section,
  .contact-section,
  .about-section {
    padding-top: 112px;
    padding-bottom: 92px;
  }

  .inventory-section,
  .detail-section,
  .service-band,
  .finance-section,
  .contact-section,
  .about-section,
  .about-preview,
  .home-featured,
  .home-service,
  .home-contact {
    min-height: 0;
    padding-inline: 16px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .vehicle-grid,
  .about-preview,
  .about-section,
  .home-feature-card,
  .home-service,
  .home-contact,
  .detail-layout,
  .detail-description,
  .service-band,
  .finance-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }

  .home-feature-card img {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .home-featured-grid {
    grid-auto-columns: minmax(250px, 45vw);
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .home-feature-card {
    grid-template-columns: 1fr;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.75rem;
  }

  .carousel-arrow.prev {
    left: 4px;
  }

  .carousel-arrow.next {
    right: 4px;
  }

  .vehicle-card img {
    aspect-ratio: 4 / 3;
  }

  .description {
    min-height: 0;
  }

  .specs,
  .detail-specs {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .specs {
    align-items: stretch;
    flex-direction: column;
  }

  .price {
    font-size: 1.18rem;
  }

  .detail-price {
    font-size: clamp(1.55rem, 9vw, 2rem);
  }

  .service-list div {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .home-service .service-list {
    grid-template-columns: 1fr;
  }

  .attention-panel {
    grid-template-columns: 1fr;
  }

  .home-service .service-list div {
    min-height: 0;
  }

  .finance-grid,
  .finance-result,
  .finance-costs {
    grid-template-columns: 1fr;
  }

  .finance-calculator {
    grid-column: auto;
  }

  .button,
  .card-link,
  .back-button {
    min-height: 46px;
    width: auto;
    text-align: center;
    white-space: normal;
  }

  .about-actions .button,
  .location-card .button,
  .contact-panel .button,
  .detail-actions .button {
    width: 100%;
  }

  .filter-bar {
    gap: 8px;
  }

  .mobile-inventory-toolbar > .filter-bar {
    display: none;
  }

  .mobile-inventory-toolbar {
    position: relative;
    margin: 0 -16px 16px;
    padding: 10px 16px 2px;
    background:
      linear-gradient(180deg, rgba(16, 18, 20, 0.98) 0%, rgba(16, 18, 20, 0.94) 82%, rgba(16, 18, 20, 0) 100%);
    backdrop-filter: blur(14px);
    transform: translateY(0);
    transition:
      top 100ms linear,
      transform 80ms linear;
    will-change: transform;
  }

  body.mobile-filters-open .mobile-inventory-toolbar {
    z-index: 14;
  }

  .mobile-inventory-toolbar-shell.toolbar-revealed .mobile-inventory-toolbar {
    position: fixed;
    top: var(--mobile-filter-top, 0px);
    right: 0;
    left: 0;
    z-index: 14;
    margin: 0;
    transform: translateY(calc(-1px * var(--mobile-toolbar-hide-offset, 0)));
  }

  .mobile-inventory-toolbar:has(.inventory-filters.mobile-open) {
    max-height: calc(100dvh - var(--mobile-filter-top, 0px) - 8px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  html.mobile-filters-open,
  body.mobile-filters-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.mobile-filters-open {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
  }

  .mobile-filters-backdrop {
    position: fixed;
    inset: 0;
    z-index: 13;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.34);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity 180ms var(--ease),
      visibility 180ms var(--ease);
    touch-action: none;
  }

  body.mobile-filters-open .mobile-filters-backdrop {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .filter-button {
    flex: 1 1 auto;
    min-width: min(100%, 96px);
  }

  .mobile-filters-toggle {
    display: grid;
  }

  .inventory-filters {
    display: none;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    margin: 8px 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    padding: 14px;
    overflow: visible;
    background: linear-gradient(145deg, rgba(31, 34, 39, 0.98), rgba(17, 19, 22, 0.98));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  }

  .mobile-category-field {
    display: grid;
    order: 0;
    gap: 7px;
  }

  .mobile-category-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .mobile-category-filter .filter-button {
    min-width: 0;
    min-height: 38px;
    padding: 0 7px;
    font-size: 0.7rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .inventory-filters.mobile-open {
    display: grid;
  }

  .inventory-filters > label:first-child {
    order: 1;
  }

  .inventory-filters > label:last-child {
    order: 2;
  }

  .price-filter-field {
    order: 3;
  }

  .price-filter-panel {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 8px;
  }

  .gallery-media {
    grid-column: 1;
    grid-row: 1;
    cursor: default;
    touch-action: pan-y;
  }

  .gallery-main {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .gallery-mobile-counter {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(8, 9, 11, 0.76);
    color: #fff;
    font-family: var(--display-font);
    font-size: 0.7rem;
    font-weight: 800;
    pointer-events: none;
  }

  .gallery-zoom-lens,
  .gallery-zoom-preview {
    display: none !important;
  }

  .gallery {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 10px;
    height: auto;
    min-height: 0;
    padding-left: 0;
  }

  .gallery-thumbs-rail {
    position: static;
    grid-column: 1;
    grid-row: 2;
    display: block;
    width: auto;
    height: auto;
  }

  .gallery-thumbs-arrow {
    display: none;
  }

  .gallery-thumbs {
    flex-direction: row;
    gap: 8px;
    padding: 2px 2px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .gallery-thumbs::-webkit-scrollbar {
    display: none;
  }

  .gallery-thumbs button {
    flex: 0 0 76px;
    width: 76px;
    height: 64px;
    scroll-snap-align: start;
  }

  .gallery-thumbs button:hover,
  .gallery-thumbs button.active {
    transform: translateY(-2px);
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  .floating-whatsapp .icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.15;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 7px 10px;
  }

  .brand-logo {
    width: 136px;
    height: 54px;
  }

  .nav-links {
    gap: 0;
    font-size: 0.78rem;
  }

  .nav-links button {
    min-height: 58px;
    padding: 12px 34px 12px 10px;
  }

  .menu-toggle {
    min-height: 42px;
    padding: 7px 10px 7px 38px;
    font-size: 0.64rem;
  }

  .menu-toggle span {
    left: 10px;
    width: 20px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero .eyebrow {
    margin-bottom: 8px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-content {
    width: calc(100% - 20px);
    margin: 0 10px 24px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.45rem, 6.9vw, 1.9rem);
    line-height: 1.12;
  }

  .service-band h2,
  .finance-section h2,
  .about-section h2,
  .contact-section h2 {
    font-size: clamp(1.42rem, 6.7vw, 1.82rem);
  }

  .hero-copy {
    margin-top: 16px;
    font-size: 0.93rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .hero-metrics {
    display: none;
  }

  .inventory-section,
  .detail-section,
  .service-band,
  .finance-section,
  .contact-section,
  .about-section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .inventory-section,
  .detail-section,
  .service-band,
  .finance-section,
  .contact-section,
  .about-section,
  .about-preview,
  .home-featured,
  .home-service,
  .home-contact {
    padding-inline: 12px;
  }

  .home-feature-card > div,
  .vehicle-info,
  .contact-panel,
  .location-card,
  .detail-panel,
  .finance-calculator {
    padding: 16px;
  }

  .home-feature-card img {
    min-height: 190px;
  }

  .home-carousel {
    margin-inline: -2px;
  }

  .home-featured-grid {
    grid-auto-columns: minmax(152px, calc((100vw - 46px) / 2));
    gap: 12px;
    padding-bottom: 12px;
  }

  .home-feature-card > div {
    align-content: start;
    gap: 6px;
    padding: 12px;
  }

  .home-feature-card img {
    height: 124px;
    min-height: 0;
    aspect-ratio: auto;
  }

  .home-feature-card h3 {
    display: -webkit-box;
    min-height: 42px;
    margin: 0;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-feature-card .price {
    font-size: 1rem;
  }

  .home-feature-card > div > p:not(.vehicle-type):not(.price) {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .home-feature-card .card-link {
    display: inline-flex;
    width: 100%;
    min-height: 34px;
    font-size: 0.72rem;
  }

  .carousel-arrow {
    display: none;
  }

  .carousel-dots {
    width: calc(100% - 6px);
    margin-top: 8px;
  }

  .carousel-progress {
    height: 12px;
  }

  .carousel-count {
    min-width: 42px;
    font-size: 0.66rem;
  }

  .carousel-progress:hover,
  .carousel-dots.is-scrubbing .carousel-progress {
    height: 12px;
  }

  .carousel-progress span::after {
    right: -11px;
    width: 22px;
    height: 22px;
  }

  .gallery-main {
    aspect-ratio: 1 / 1;
  }

  .gallery-thumbs button {
    flex-basis: 68px;
    width: 68px;
    height: 58px;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .inventory-section .section-heading {
    margin-bottom: 16px;
  }

  .inventory-section .section-heading h2 {
    font-size: clamp(1.65rem, 9vw, 2.2rem);
  }

  .filter-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0 0 14px;
    padding: 0;
    overflow: visible;
  }

  .mobile-inventory-toolbar > .filter-bar {
    display: none;
  }

  .mobile-inventory-toolbar {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .filter-button {
    flex: initial;
    min-width: auto;
    min-height: 34px;
    padding: 0 6px;
    font-size: 0.68rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .inventory-filters {
    display: none;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    margin: 8px 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    padding: 14px;
    overflow: visible;
    background: linear-gradient(145deg, rgba(31, 34, 39, 0.98), rgba(17, 19, 22, 0.98));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  }

  .inventory-filters.mobile-open {
    display: grid;
  }

  .mobile-filters-toggle {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    align-items: center;
    width: 100%;
    min-height: 54px;
    gap: 10px;
    margin: 0 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 8px 14px 8px 10px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition:
      border-color 180ms var(--ease),
      background 180ms var(--ease);
  }

  .mobile-filters-toggle[aria-expanded="true"] {
    margin-bottom: 0;
    border-color: rgba(227, 6, 19, 0.62);
    background: rgba(227, 6, 19, 0.1);
  }

  .mobile-filters-toggle > span:nth-child(2) {
    display: grid;
    gap: 2px;
  }

  .mobile-filters-toggle strong {
    font-family: var(--display-font);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .mobile-filters-toggle small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.7rem;
  }

  .mobile-filters-icon {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background:
      linear-gradient(#fff, #fff) 9px 10px / 16px 2px no-repeat,
      linear-gradient(#fff, #fff) 9px 16px / 16px 2px no-repeat,
      linear-gradient(#fff, #fff) 9px 22px / 16px 2px no-repeat,
      rgba(255, 255, 255, 0.07);
  }

  .mobile-filters-icon::after {
    position: absolute;
    top: 8px;
    left: 13px;
    width: 4px;
    height: 4px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #1a1d21;
    box-shadow:
      6px 6px 0 -2px #1a1d21,
      6px 6px 0 0 #fff,
      -2px 12px 0 -2px #1a1d21,
      -2px 12px 0 0 #fff;
    content: "";
  }

  .mobile-filters-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid rgba(255, 255, 255, 0.72);
    border-bottom: 2px solid rgba(255, 255, 255, 0.72);
    transform: translateY(-2px) rotate(45deg);
    transition: transform 180ms var(--ease);
  }

  .mobile-filters-toggle[aria-expanded="true"] .mobile-filters-chevron {
    transform: translateY(2px) rotate(225deg);
  }

  .inventory-filters label {
    min-width: 0;
    gap: 7px;
    align-self: start;
  }

  .inventory-filters > label:first-child {
    order: 1;
  }

  .inventory-filters > label:last-child {
    order: 2;
  }

  .inventory-filters span,
  .price-filter-field .filter-title {
    font-size: 0.62rem;
  }

  .inventory-filters select {
    height: 42px;
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.78rem;
    text-overflow: ellipsis;
  }

  .price-filter-field {
    order: 3;
    min-width: 0;
    align-self: start;
  }

  .price-filter summary {
    height: 38px;
    min-height: 38px;
    padding: 0 28px 0 9px;
  }

  .price-filter summary::after {
    top: 19px;
    right: 10px;
  }

  .price-filter summary strong {
    font-size: 0.72rem;
  }

  .price-filter-panel {
    position: static;
    width: 100%;
    max-width: none;
    gap: 10px;
    margin-top: 8px;
    padding: 12px;
  }

  .price-filter input[type="range"] {
    height: 16px;
  }

  .currency-toggle span {
    min-height: 34px;
    font-size: 0.7rem;
  }

  .price-inputs {
    gap: 6px;
  }

  .price-inputs small {
    font-size: 0.6rem;
  }

  .price-inputs input {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  .vehicle-card {
    display: grid;
    grid-template-columns: clamp(124px, 48%, 180px) minmax(0, 1fr);
    min-height: 174px;
    border-radius: 10px;
    background:
      linear-gradient(135deg, rgba(31, 35, 40, 0.98), rgba(16, 18, 21, 0.98));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  }

  .vehicle-card::before {
    right: auto;
    bottom: 0;
    width: 4px;
    height: auto;
    opacity: 1;
  }

  .vehicle-card:hover {
    transform: none;
  }

  .vehicle-card img {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    align-self: stretch;
  }

  .vehicle-card:hover img {
    transform: none;
  }

  .vehicle-info {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    padding: 9px;
  }

  .vehicle-type {
    display: inline-flex;
    width: fit-content;
    border: 1px solid rgba(227, 6, 19, 0.44);
    border-radius: 999px;
    padding: 3px 7px;
    background: rgba(227, 6, 19, 0.1);
    font-size: 0.58rem;
    line-height: 1;
  }

  .vehicle-card h3 {
    display: -webkit-box;
    min-height: 0;
    margin: 4px 0 0;
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.14;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .vehicle-card .price {
    font-size: 1.05rem;
    line-height: 1.05;
  }

  .vehicle-card .description {
    display: none;
  }

  .vehicle-card .specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 2px 0 0;
  }

  .vehicle-card .specs div {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    padding: 5px 3px;
    background: rgba(255, 255, 255, 0.045);
  }

  .vehicle-card .specs dt {
    font-size: 0.5rem;
    line-height: 1;
  }

  .vehicle-card .specs dd {
    margin-top: 3px;
    font-size: 0.62rem;
    line-height: 1.05;
    white-space: nowrap;
  }

  .vehicle-card .card-link {
    display: inline-flex;
    min-height: 29px;
    margin-top: 1px;
    border-color: rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.62rem;
  }

  .specs {
    align-items: stretch;
    flex-direction: column;
  }

  .vehicle-card .specs {
    align-items: flex-start;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
    opacity: 0.92;
  }

  .floating-whatsapp .icon {
    width: 27px;
    height: 27px;
  }

  body[data-active-view="financiacion"] .floating-whatsapp,
  body[data-active-view="detalle"] .floating-whatsapp {
    display: none;
  }

  .gallery-media::after {
    display: none;
  }

  .photo-lightbox-content {
    width: 100vw;
    height: 100dvh;
  }

  .photo-lightbox-counter {
    top: max(14px, env(safe-area-inset-top));
    left: 14px;
  }

  .photo-lightbox-close {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    width: 42px;
    height: 42px;
  }

  .photo-lightbox-arrow {
    display: none;
  }

  .photo-lightbox-dots {
    position: absolute;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 7px;
    transform: translateX(-50%);
  }

  .photo-lightbox-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    transition: width 180ms var(--ease), background 180ms var(--ease);
  }

  .photo-lightbox-dots span.active {
    width: 10px;
    height: 10px;
    background: #fff;
  }

  .hero {
    min-height: 100lvh;
  }
}

@media (max-width: 340px) {
  .vehicle-card .specs {
    gap: 2px;
  }

  .vehicle-card .specs div {
    padding-right: 2px;
    padding-left: 2px;
  }

  .vehicle-card .specs dd {
    font-size: 0.55rem;
  }
}
