/* =========================================================
   Maneja: landing minimal
   Manrope (display) + Inter (cuerpo)
   Fondos solo blanco o negro. Letras grandes.
   Botones translúcidos (estilo Porsche). Azul de marca puntual.
   ========================================================= */

:root {
  --white:     #ffffff;
  --black:     #0a0a0b;     /* secciones oscuras */
  --card:      #0f0f11;     /* superficie de tarjeta */
  --ink:       #101012;     /* texto sobre blanco */
  --ink-soft:  #5a5a5e;     /* texto secundario sobre blanco */
  --on-dark:        #ffffff;
  --on-dark-soft:   #aeaeb4;
  --line:           rgba(16, 16, 18, 0.12);
  --line-dark:      rgba(255, 255, 255, 0.16);
  --brand:     #2d6cd6;     /* azul: acción principal */
  --brand-ink: #2559b4;
  --accent-green: #1a8a4f;  /* verde: íconos de confianza en la ficha */

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  --container: 1240px;
  --pad-x:     clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 11vw, 140px);
  --radius-card: 22px;
  --radius-btn:  9px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--section-y); }
.section-dark { background: var(--black); color: var(--on-dark); }
.section-dark .overline { color: var(--on-dark-soft); }

/* Sección con foto de fondo + tinte fuerte */
.section-photo {
  position: relative;
  background-color: var(--black);
  background-image:
    linear-gradient(rgba(7, 7, 9, 0.84), rgba(7, 7, 9, 0.88)),
    url("assets/autogar-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ----- Tipografía (grande) ----- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: inherit;
}
.overline {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
}
.section-dark .lead { color: var(--on-dark-soft); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.section-head .lead { margin-top: 20px; }

/* ===========================================================
   Botones
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease,
              color 0.22s ease, transform 0.22s ease;
}
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* Acción principal: azul de marca */
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); transform: translateY(-2px); }

/* Translúcido estilo Porsche, sobre blanco */
.btn-glass {
  background: rgba(16, 16, 18, 0.07);
  border-color: rgba(16, 16, 18, 0.16);
  color: var(--ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(16, 16, 18, 0.12); transform: translateY(-2px); }

/* Sólido negro: acción prominente secundaria sobre blanco */
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

/* Translúcido estilo Porsche, sobre negro (frosted) */
.btn-glass-dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.20);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-glass-dark:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.97rem; color: var(--ink-soft); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }

/* ===========================================================
   Hero
   =========================================================== */
.hero { overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(48px, 8vw, 110px);
}
.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
}
.hero h1 .accent { font-weight: 800; }
.hero-copy .lead { max-width: 460px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-media img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.12));
}

/* ----- Trust strip ----- */
.trust-strip { border-top: 1px solid var(--line); }
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 22px;
}
.trust-strip .autogar-mark { height: 42px; width: auto; flex: none; }
.trust-strip p { font-size: 0.98rem; color: var(--ink-soft); max-width: 620px; }
.trust-strip strong { color: var(--ink); font-weight: 600; }

/* ===========================================================
   Certificado Sherlock (negro)
   =========================================================== */
.sherlock-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(36px, 5vw, 84px);
}
.sherlock-text { max-width: 480px; }
.sherlock-text h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 22px; }
.sherlock-points { list-style: none; padding: 0; margin-top: 34px; }
.sherlock-points li {
  padding: 18px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 1.05rem;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.sherlock-points li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-2px);
}
.sherlock-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  background: #000;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

/* ===========================================================
   Inventario (blanco, tarjetas oscuras estilo Porsche)
   =========================================================== */
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 26px);
}
.car-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--card) center / cover no-repeat;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.car-card::after {            /* scrim para legibilidad + ocultar sombra baja del auto */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(8, 8, 10, 0.96) 0%,
    rgba(8, 8, 10, 0.72) 20%,
    rgba(8, 8, 10, 0.10) 44%,
    transparent 60%);
}
.car-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px rgba(0, 0, 0, 0.18); }

.car-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
  color: #fff;
}
.car-card__title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.car-card__meta { margin-top: 6px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); }
.car-card__arrow {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.car-card:hover .car-card__arrow { background: #fff; color: #111; border-color: #fff; }

/* Etiqueta de estado (p. ej. Reservado) sobre la foto */
.car-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.inventory-cta { margin-top: clamp(40px, 5vw, 60px); text-align: center; }

/* ===========================================================
   Página de inventario (encabezado + barra de filtros)
   =========================================================== */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(30px, 4vw, 46px); }
.page-hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  letter-spacing: -0.04em;
  margin-top: 6px;
}
.page-hero .lead { margin-top: 22px; max-width: 620px; }

/* Barra de filtros pegajosa, justo debajo del header (72px) */
.inventory-toolbar {
  position: sticky;
  top: 71px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  padding-block: 15px;
}
.filters { display: flex; gap: 10px; flex-wrap: wrap; }

/* Filtro: geométrico translúcido (lenguaje Porsche), activo en negro sólido */
.filter {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 11px 20px;
  border: 1px solid rgba(16, 16, 18, 0.16);
  border-radius: var(--radius-btn);
  background: rgba(16, 16, 18, 0.05);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter:hover { background: rgba(16, 16, 18, 0.1); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.result-count { font-size: 0.95rem; color: var(--ink-soft); }
.result-count strong { color: var(--ink); font-weight: 600; }

.inventory-list { padding-block: clamp(34px, 5vw, 54px) var(--section-y); }
.car-card[hidden] { display: none; }
.no-results {
  text-align: center;
  padding: clamp(48px, 8vw, 80px) 0;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ===========================================================
   Página de detalle del auto
   Columna única centrada, sensación de ficha de producto.
   =========================================================== */
.detail {
  padding-block: clamp(20px, 3vw, 34px) calc(96px + env(safe-area-inset-bottom));
}
.detail-col { max-width: 860px; margin-inline: auto; }

/* Escritorio: 2 columnas (galería + info); relacionados a todo el ancho.
   En móvil queda en una sola columna, idéntica al orden original. */
.detail-layout { display: grid; }
@media (min-width: 900px) {
  .detail-col { max-width: 1180px; }
  .detail-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: clamp(32px, 4vw, 60px);
    align-items: start;
  }
  .detail-media { position: sticky; top: 88px; align-self: start; }
  .detail-info .detail-head { margin-top: 0; }
}

/* Beneficios + ficha técnica, lado a lado en escritorio (a todo el ancho).
   En móvil se apilan, en el mismo orden de siempre. */
.detail-specs { display: grid; }
@media (min-width: 900px) {
  .detail-specs {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(32px, 4vw, 60px);
    align-items: start;
    margin-top: clamp(30px, 4vw, 42px);
  }
  .detail-specs > .detail-block { margin-top: 0; }
}

/* Migaja de navegación */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
  transition: color 0.2s ease;
}
.detail-back:hover { color: var(--ink); }

/* ----- Carrusel: imagen principal + fila de miniaturas ----- */
.gallery { display: grid; gap: 12px; }
.gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--card);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.gallery-nav:hover { background: #fff; }
.gallery-nav:active { transform: translateY(-50%) scale(0.94); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-count {
  position: absolute;
  right: 14px; bottom: 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex: 0 0 auto;
  width: 96px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  border: 2px solid transparent;
  background: var(--card);
  scroll-snap-align: start;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb.is-active { border-color: var(--ink); opacity: 1; }

/* ----- Nombre + kilometraje ----- */
.detail-head { margin-top: clamp(24px, 3vw, 32px); }
.detail-head h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.detail-km { margin-top: 10px; font-size: 1.05rem; color: var(--ink-soft); }

/* ----- Tarjeta de precio + simulador ----- */
.price-card {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: clamp(20px, 3vw, 26px) clamp(22px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
}
.price-card__price { display: flex; flex-direction: column; gap: 2px; }
.price-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.price-card__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-card__sim {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand);
  transition: gap 0.2s ease;
}
.price-card__sim:hover { gap: 14px; }
.price-card__sim .arrow {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
}

/* ----- Bloques de la ficha ----- */
.detail-block { margin-top: clamp(30px, 4vw, 42px); }
.detail-block__title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* Specs destacados (etiqueta arriba, valor abajo, divididos) */
.spec-highlights { list-style: none; padding: 0; margin: 0; }
.spec-highlights li { padding: 18px 2px; border-top: 1px solid var(--line); }
.spec-highlights li:first-child { border-top: none; }
.spec-highlights dt { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 4px; }
.spec-highlights dd {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Beneficios / confianza (ícono verde + título + detalle) */
.benefits { list-style: none; padding: 0; margin: 0; }
.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 2px;
  border-top: 1px solid var(--line);
}
.benefits li:first-child { border-top: none; }
.benefits svg {
  flex: none;
  width: 24px; height: 24px;
  margin-top: 1px;
  stroke: var(--accent-green);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefits__text { display: flex; flex-direction: column; gap: 3px; }
.benefits__t { font-weight: 600; font-size: 1.04rem; }
.benefits__d { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.45; }

/* Ficha técnica completa (dos columnas) */
.spec-table { list-style: none; padding: 0; margin: 0; }
.spec-table li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 2px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.spec-table li:first-child { border-top: none; }
.spec-table dt { color: var(--ink-soft); flex: none; }
.spec-table dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* ----- Barra inferior fija: agendar visita ----- */
.detail-cta-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-top: 1px solid var(--line);
  padding: 12px var(--pad-x) calc(12px + env(safe-area-inset-bottom));
}
.detail-cta-inner {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.detail-cta-inner .cta-price {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.detail-cta-inner .cta-price b {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.detail-cta-inner .cta-price span { font-size: 0.82rem; color: var(--ink-soft); }
.detail-cta-bar .btn { flex: 0 1 auto; }

@media (max-width: 560px) {
  .price-card { align-items: flex-start; }
  .detail-cta-inner .cta-price { display: none; }
  .detail-cta-bar .btn { flex: 1 1 auto; }
}

/* ----- Tarjeta de financiamiento ----- */
.finance-card {
  position: relative;
  margin-top: clamp(36px, 5vw, 52px);
  border-radius: var(--radius-card);
  background: #2459bd;            /* azul de marca: fondo de la tarjeta */
  color: #fff;
  overflow: hidden;
  text-align: center;
}
/* Patrón geométrico: líneas curvas en blanco, cian y un toque verde que
   recorren toda la tarjeta, para dar textura sin restar legibilidad. */
.finance-card__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.finance-card__body {
  position: relative;
  z-index: 1;
  padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 56px);
}
.finance-card__body h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
}
.finance-card__body p {
  margin: 14px auto 0;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}
.finance-card__body .btn { margin-top: clamp(24px, 3vw, 32px); }

/* ----- Autos similares ----- */
.detail-related__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.detail-related__head .detail-block__title { margin-bottom: 0; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand);
  white-space: nowrap;
  transition: gap 0.2s ease, color 0.2s ease;
}
.link-arrow:hover { gap: 11px; color: var(--brand-ink); }
/* Tarjetas más compactas dentro de la ficha */
.detail-related .car-card__title { font-size: 1.15rem; }
.detail-related .car-card__arrow { width: 42px; height: 42px; font-size: 1.05rem; }

/* ===========================================================
   Nosotros / Grupo Autogar (negro)
   =========================================================== */
.respaldo-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.respaldo-text { max-width: 600px; }
.respaldo-text h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 22px; }
.respaldo-text p { color: var(--on-dark-soft); font-size: 1.08rem; }
.respaldo-text p + p { margin-top: 18px; }

.dealer-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  padding: 32px 34px;
  background: rgba(10, 10, 12, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dealer-logo { height: 54px; width: auto; display: block; margin: 0 auto 24px; }
.dealer-card .overline { margin-bottom: 26px; color: var(--on-dark-soft); text-align: center; }
.brand-logos {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 20px;
}
.brand-logos li { display: flex; align-items: center; justify-content: center; min-height: 34px; }
.brand-logos img {
  height: 30px; width: auto; max-width: 100%;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.dealer-card__foot { margin-top: 20px; font-size: 0.95rem; color: var(--on-dark-soft); }

/* ===========================================================
   CTA final (blanco)
   =========================================================== */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -0.04em; }
.cta-final p { margin: 22px auto 0; max-width: 500px; color: var(--ink-soft); font-size: 1.15rem; }
.cta-final .btn { margin-top: 36px; }

/* ===========================================================
   Footer (negro)
   =========================================================== */
.site-footer {
  background: var(--black);
  color: var(--on-dark-soft);
  padding-block: clamp(56px, 7vw, 80px) 30px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 14px;
}
.footer-logo { height: 32px; width: auto; }
.footer-autogar { height: 40px; width: auto; margin-top: 22px; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col p, .footer-col a { display: block; line-height: 1.95; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.88rem;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { max-width: 520px; margin-inline: auto; }
  .sherlock-grid { grid-template-columns: 1fr; }
  .respaldo-grid { grid-template-columns: 1fr; }
  .car-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 840px) {
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .car-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions .btn { flex: 1 1 auto; }

  /* Filtros en una sola fila con scroll horizontal, sangrando a los bordes */
  .toolbar-inner { gap: 12px; }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--pad-x));
    padding-inline: var(--pad-x);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .result-count { display: none; }
}

/* ===========================================================
   Reduced motion
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
