/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy-950: #1a1a1a;
  --navy-900: #2b2b2b;
  --navy-800: #3a3a3a;
  --navy-700: #4a4a4a;
  --navy-600: #5c5c5c;
  --navy-500: #707070;

  --ink: #1e1e1e;
  --ink-soft: #333333;
  --muted: #5c5c5c;
  --muted-2: #8a8a8a;

  --paper: #f5f5f5;
  --paper-2: #ffffff;
  --line: rgba(30, 30, 30, 0.10);
  --line-strong: rgba(30, 30, 30, 0.18);

  --accent: #ff3131;
  --accent-dark: #d81f1f;
  --accent-soft: #ffe3e3;

  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --success: #1f9d55;
  --danger: #c0392b;

  --font-display: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(30, 30, 30, 0.06);
  --shadow-md: 0 10px 30px rgba(30, 30, 30, 0.10);
  --shadow-lg: 0 24px 60px rgba(30, 30, 30, 0.16);

  --header-h: 78px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
/* The hidden attribute must always win — several elements (icon vs. photo in
   the modal, badges, counters) rely on it, and it silently loses to the
   broad "img, svg, video { display: block }" rule above without this. */
[hidden] { display: none !important; }
img { height: auto; }
/* Icon glyphs inside buttons/links must never intercept the tap — some mobile
   browsers fail to bubble touch/click from <use> up to the parent control. */
button svg, a svg { pointer-events: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; color: var(--navy-900); }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--navy-950); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--navy-900); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px) { .container { padding-inline: 2rem; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .6rem;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: .6rem; }
.section-sub { color: var(--muted); font-size: 1.02rem; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }

.btn-primary { background: var(--navy-900); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-800); box-shadow: var(--shadow-md); }

.btn-accent { background: var(--accent); color: var(--navy-950); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); }

.btn-dark { background: var(--navy-950); color: #fff; }
.btn-dark:hover { background: var(--navy-800); }

.btn-ghost { background: transparent; color: var(--navy-900); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy-900); background: var(--paper-2); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); box-shadow: var(--shadow-md); }

/* =============================================================
   4. Header
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(245, 245, 245, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--paper); }
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; }

.brand { display: flex; align-items: center; margin-right: auto; }
.brand-logo { height: 56px; width: auto; display: block; }
.footer-logo-chip {
  display: inline-flex;
  background: #fff;
  padding: .5rem .8rem;
  border-radius: 14px;
}
.footer-logo-chip .brand-logo { height: 44px; }

.main-nav ul { display: flex; gap: 1.9rem; }
.main-nav a {
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-soft);
  position: relative;
  padding-block: .4rem;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--accent);
  transition: right .3s var(--ease-out);
}
.main-nav a:hover { color: var(--navy-900); }
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: .9rem; }
.social-link {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.06);
  color: var(--navy-900);
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.social-link:hover { background: var(--navy-900); color: #fff; transform: translateY(-2px); }
.social-link-lg { width: 40px; height: 40px; }
.social-link.whatsapp-tint:hover, .social-link-lg.whatsapp-tint:hover { background: var(--whatsapp); }

.header-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  color: var(--navy-900);
}
.nav-toggle:hover { background: rgba(30, 30, 30, 0.06); }

@media (min-width: 960px) {
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}
@media (max-width: 959px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--paper-2);
    padding: 1.5rem 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
    overflow-y: auto;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: .3rem; }
  .main-nav a { display: block; padding: .9rem .3rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
}

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  position: relative;
  overflow: clip;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 46%, var(--navy-700) 100%);
  color: #fff;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem);
}
html.search-mode .hero { display: none; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(26, 26, 26, .86) 0%, rgba(43, 43, 43, .8) 46%, rgba(74, 74, 74, .7) 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% -40% -10%;
  background:
    radial-gradient(42% 55% at 18% 12%, rgba(255, 49, 49, 0.25), transparent 70%),
    radial-gradient(50% 60% at 88% 20%, rgba(120, 120, 120, 0.35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.hero .eyebrow { color: var(--accent); }
.hero .eyebrow::before { background: var(--accent); }
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  color: #fff;
  max-width: 16ch;
  margin-bottom: 1.1rem;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 2.1rem;
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: .6rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}
.hero-search-field {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #fff;
  border-radius: 999px;
  padding: .7rem 1.1rem;
  color: var(--muted);
}
.hero-search-field input {
  border: 0; outline: 0; flex: 1; background: transparent;
  color: var(--ink); font-size: .95rem;
}
.hero-search select {
  border: 0; outline: 0; border-radius: 999px;
  padding: .7rem 1.1rem; background: #fff; color: var(--ink);
  font-size: .95rem; max-width: 200px;
}
.hero-quicklinks { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-quicklinks a {
  font-size: .82rem; font-weight: 600;
  padding: .45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.hero-quicklinks a:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }

/* =============================================================
   6. Catalog + filters + car cards
   ============================================================= */
.catalog { padding-block: clamp(3.5rem, 7vw, 5.5rem); }

.catalog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 960px) {
  .catalog-layout { grid-template-columns: 300px 1fr; align-items: start; }
}

.filters {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 960px) {
  .filters { position: sticky; top: calc(var(--header-h) + 1.25rem); max-height: calc(100vh - var(--header-h) - 2.5rem); overflow-y: auto; }
}
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.filters-head h3 { font-size: 1.05rem; }
.link-reset {
  font-size: .82rem; font-weight: 600; color: var(--navy-600);
  text-decoration: underline; text-underline-offset: 3px;
}
.link-reset:hover { color: var(--accent-dark); }

.filter-group { margin-bottom: 1.3rem; }
.filter-group label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .45rem; }
.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select {
  width: 100%;
  padding: .65rem .8rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  font-size: .9rem;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.filter-group input:focus, .filter-group select:focus {
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(255, 49, 49, 0.15);
  outline: none;
}
.range-row { display: flex; align-items: center; gap: .5rem; }
.range-row input { min-width: 0; }
.range-sep { color: var(--muted-2); font-size: .85rem; }

.check-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.check-item {
  position: relative;
  display: flex;
  cursor: pointer;
}
.check-item input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.check-item span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper-2);
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out), transform .15s var(--ease-out);
}
.check-item span::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper-2);
  flex-shrink: 0;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), transform .3s var(--ease-bounce);
}
.check-item:hover span { border-color: var(--navy-600); }
.check-item:active span { transform: scale(.95); }
.check-item input:checked + span {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.check-item input:checked + span::before {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15) rotate(-6deg);
}
.check-item input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.filter-actions { margin-top: 1.5rem; }

.listing-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.results-count { font-size: .92rem; color: var(--muted); }
.results-count strong { color: var(--navy-900); }
.sort-field { display: flex; align-items: center; gap: .55rem; }
.sort-field label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.sort-field select {
  padding: .5rem .8rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: .86rem;
  background: var(--paper-2);
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem;
}

.car-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.car-card.is-hidden-filter { display: none; }
.car-card.is-hidden-page { display: none; }
.car-card.card-enter { animation: cardEnter .5s var(--ease-out) both; }
@keyframes cardEnter {
  from { opacity: 0; transform: scale(.94) translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .car-card.card-enter { animation: none; }
}

.results-count strong.count-pulse { animation: countPulse .35s var(--ease-bounce); }
@keyframes countPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); color: var(--accent); }
  100% { transform: scale(1); }
}
.results-count strong { display: inline-block; }

.car-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem 0.5rem;
}
.car-thumb[data-theme="1"] { background: linear-gradient(135deg, #262626 0%, #3d3d3d 100%); }
.car-thumb[data-theme="2"] { background: linear-gradient(135deg, #1f1f1f 0%, #3a2c2c 100%); }
.car-thumb[data-theme="3"] { background: linear-gradient(135deg, #1c1c1c 0%, #333333 100%); }
.car-thumb[data-theme="4"] { background: linear-gradient(135deg, #2b2b2b 0%, #454040 100%); }
.car-icon { width: 78%; height: auto; color: #edf2fb; filter: drop-shadow(0 10px 16px rgba(0,0,0,.25)); }
.car-card:hover .car-icon { transform: translateY(-3px); }
.car-icon { transition: transform .4s var(--ease-out); }

.car-thumb-photo { padding: 0; background: var(--navy-950); }
.car-thumb-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.car-card:hover .car-thumb-photo img { transform: scale(1.06); }

.photo-count {
  position: absolute;
  bottom: .7rem;
  right: .7rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(20, 20, 20, .65);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .3rem .65rem;
  border-radius: 999px;
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.badge-featured {
  position: absolute; top: .85rem; left: .85rem;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .03em;
  text-transform: uppercase;
  padding: .35rem .65rem;
  border-radius: 999px;
  z-index: 2;
}

.car-card { cursor: pointer; }

.car-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.car-title { font-size: 1.05rem; margin-bottom: .6rem; }
.car-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-bottom: .8rem; }
.car-meta li { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); font-weight: 500; }
.car-meta svg { color: var(--navy-600); flex-shrink: 0; }
.car-price { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--navy-900); margin-bottom: .35rem; }
.car-location { display: none; }
.car-location svg { color: var(--accent-dark); flex-shrink: 0; }
.car-body .btn { margin-top: auto; }

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: 1rem;
}
.load-more-wrap { display: flex; justify-content: center; margin-top: 2rem; }

/* =============================================================
   7. Services
   ============================================================= */
.services { padding-block: clamp(3rem, 7vw, 5rem); background: var(--paper-2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}
.service-card {
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: #fff; }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--navy-900); color: var(--accent);
  margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.service-card p { color: var(--muted); font-size: .92rem; }

/* =============================================================
   7.5 Cómo comprar (3 pasos)
   ============================================================= */
.steps {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--navy-950);
  color: #fff;
}
.steps .section-head h2 { color: #fff; }
.steps .section-sub { color: rgba(255, 255, 255, .68); }
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 720px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
.step-card {
  position: relative;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  transition: transform .3s var(--ease-out), background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.step-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 49, 49, .45);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.step-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: .5rem; }
.step-card p { color: rgba(255, 255, 255, .72); font-size: .92rem; }

/* =============================================================
   8. About
   ============================================================= */
.about { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 960px) { .about-layout { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.about-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; }
.about-text p:last-child { margin-bottom: 0; }

.about-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo-large {
  height: 200px;
  width: auto;
  display: block;
}

/* =============================================================
   8.5 Testimonials carousel
   ============================================================= */
.testimonials { background: var(--navy-950); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); overflow: clip; }
.testimonials-head-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: .6rem;
}
.testimonials-head h2 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin: 0; }
.carousel-arrows { display: flex; gap: .6rem; margin-left: auto; }
.carousel-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.carousel-arrow:hover { background: var(--accent); transform: translateY(-2px); }
.testimonials-rating { color: rgba(255, 255, 255, .7); font-size: .95rem; margin-bottom: 2rem; }
.testimonials-rating strong { color: var(--accent); font-weight: 800; }

.testimonials-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  margin-inline: -1.25rem;
  padding-inline: 1.25rem;
}
.testimonials-viewport::-webkit-scrollbar { display: none; }
.testimonials-viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.testimonials-track { display: flex; gap: 1.2rem; }
.testimonial-card {
  flex: 0 0 calc(25% - .9rem);
  min-width: 230px;
  scroll-snap-align: start;
  background: var(--paper-2);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
@media (max-width: 1023px) { .testimonial-card { flex-basis: calc(50% - .6rem); } }
@media (max-width: 639px) { .testimonial-card { flex-basis: 82%; min-width: 0; } }
.testimonial-card .stars { color: var(--accent); letter-spacing: .12em; margin-bottom: .9rem; font-size: .95rem; }
.testimonial-text {
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.testimonial-name { font-weight: 700; font-size: .86rem; color: var(--navy-900); }

/* =============================================================
   9. Contact + map
   ============================================================= */
.contact { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--paper-2); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1.2fr .8fr; } }

.contact-form { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.form-row label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .4rem; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: .92rem;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(255, 49, 49, 0.15);
  outline: none;
}
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 539px) { .form-row-split { grid-template-columns: 1fr; } }
.form-success {
  background: rgba(31, 157, 85, 0.1);
  color: var(--success);
  border: 1px solid rgba(31, 157, 85, 0.3);
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
}

.contact-info {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  align-self: start;
}
.contact-info h3 { color: #fff; font-size: 1.15rem; margin-bottom: 1.3rem; }
.info-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.6rem; }
.info-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .92rem; color: rgba(255,255,255,.85); }
.info-list svg { color: var(--accent); flex-shrink: 0; margin-top: .1rem; }
.info-list a:hover { color: var(--accent); }
.info-social { display: flex; gap: .7rem; }
.info-social .social-link { background: rgba(255,255,255,.12); color: #fff; }
.info-social .social-link:hover { background: var(--accent); color: var(--navy-950); }

.branch-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.branch-map-wrap { position: relative; height: 280px; }
.map-frame { width: 100%; height: 100%; border: 0; }
.branch-map-btn {
  position: absolute;
  top: .9rem;
  left: .9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  color: var(--navy-800);
  font-weight: 700;
  font-size: .82rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: transform .2s var(--ease-out), color .2s var(--ease-out);
}
.branch-map-btn:hover { transform: translateY(-2px); color: var(--accent-dark); }
.branch-info { padding: 1.3rem 1.6rem 1.6rem; }
.branch-info h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.branch-info p {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .5rem;
}
.branch-info p:last-child { margin-bottom: 0; }
.branch-info svg { color: var(--accent-dark); flex-shrink: 0; }

/* =============================================================
   10. Footer
   ============================================================= */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.72); padding-top: 3.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr .8fr .8fr .8fr; } }
.footer-brand p { margin-block: 1rem 1.2rem; font-size: .9rem; max-width: 34ch; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tagline { color: rgba(255,255,255,.6); }
.footer-col h4 { color: #fff; font-size: .92rem; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; font-size: .88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  padding-block: 1.4rem;
  font-size: .8rem;
}
.footer-note { color: rgba(255,255,255,.45); }
.footer-note a { text-decoration: underline; text-underline-offset: 2px; }
.footer-note a:hover { color: #fff; }

/* =============================================================
   11. WhatsApp floating button
   ============================================================= */
.whatsapp-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  z-index: 200;
  transition: transform .25s var(--ease-out), background-color .25s var(--ease-out);
}
.whatsapp-float:hover { background: var(--whatsapp-dark); transform: scale(1.07); }
.whatsapp-float-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: whatsappPulse 2.4s ease-out infinite;
}
@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: .65; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float-ring { animation: none; display: none; }
}

/* =============================================================
   12. Responsive breakpoints (mobile-first already applied above)
   ============================================================= */
@media (min-width: 540px) {
  .hero-search { flex-wrap: nowrap; }
}

/* =============================================================
   13. Mobile filter drawer + floating action button
   ============================================================= */
.filter-fab { display: none; }
.filter-close-mobile { display: none; }

@media (max-width: 959px) {
  .filter-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 1.1rem;
    bottom: 1.4rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--navy-900);
    color: #fff;
    box-shadow: var(--shadow-lg);
    z-index: 150;
    transition: transform .25s var(--ease-out), background-color .25s var(--ease-out);
  }
  .filter-fab:hover { background: var(--navy-800); transform: translateY(-2px); }

  .filter-fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding-inline: .3rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--navy-950);
    font-size: .68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--paper);
  }

  .filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, .55);
    z-index: 195;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease-out);
  }
  .filter-backdrop.is-open { opacity: 1; pointer-events: auto; }

  .filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: 82vh;
    width: auto;
    display: flex;
    flex-direction: column;
    border-radius: 22px 22px 0 0;
    transform: translateY(110%);
    transition: transform .35s var(--ease-out);
    z-index: 200;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }
  .filters.is-open { transform: translateY(0); }

  .filters form { display: flex; flex-direction: column; min-height: 0; flex: 1; }

  .filter-close-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(30, 30, 30, .06);
    color: var(--navy-900);
    margin-left: auto;
  }
  .filters-head {
    flex-shrink: 0;
    padding-block: .2rem .8rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--line);
  }
  .filters-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-top: 1rem;
    -webkit-overflow-scrolling: touch;
  }
}
@media (min-width: 960px) {
  .filters-body { display: contents; }
}

@media (min-width: 960px) {
  .filter-backdrop { display: none; }
}

/* =============================================================
   14. Car detail modal
   ============================================================= */
.car-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  border: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  width: min(1080px, 95vw);
  height: fit-content;
  max-height: 92vh;
  box-shadow: var(--shadow-lg);
  background: var(--paper-2);
}
.car-modal::backdrop {
  background: rgba(20, 20, 20, .6);
  backdrop-filter: blur(3px);
}
.car-modal:not([open]) { display: none; }

.car-modal-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  max-height: 92vh;
  overflow-y: auto;
}
@media (min-width: 720px) {
  .car-modal-inner { grid-template-columns: 1.15fr 1fr; max-height: 88vh; align-items: start; }
}

.modal-related {
  grid-column: 1 / -1;
  padding: 1.4rem 1.8rem 1.8rem;
  border-top: 1px solid var(--line);
}
.modal-related h4 { font-size: 1rem; margin-bottom: 1rem; }
.modal-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .9rem;
}
.related-card {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-2);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb .car-icon { width: 70%; margin-inline: auto; }
.related-body { padding: .7rem .8rem .8rem; }
.related-title { font-size: .82rem; font-weight: 700; color: var(--navy-900); margin-bottom: .3rem; line-height: 1.25; }
.related-meta { display: flex; align-items: center; gap: .3rem; font-size: .72rem; color: var(--muted); margin-bottom: .3rem; }
.related-price { font-family: var(--font-display); font-size: .88rem; font-weight: 800; color: var(--navy-900); }

.car-modal-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20, 20, 20, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s var(--ease-out);
}
.car-modal-close:hover { background: var(--navy-950); }

.car-modal-gallery { display: flex; flex-direction: column; background: var(--navy-950); }
.car-modal-main {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #262626 0%, #3d3d3d 100%);
  flex: 1;
}

.car-modal-slide { position: absolute; inset: 0; }
.car-modal-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease-out), object-position .35s var(--ease-out);
}
.modal-slide-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  text-align: center;
  padding: 1.5rem;
}
.modal-slide-placeholder[data-theme="1"] { background: linear-gradient(135deg, #262626 0%, #3d3d3d 100%); }
.modal-slide-placeholder[data-theme="2"] { background: linear-gradient(135deg, #1f1f1f 0%, #3a2c2c 100%); }
.modal-slide-placeholder[data-theme="3"] { background: linear-gradient(135deg, #1c1c1c 0%, #333333 100%); }
.modal-slide-placeholder[data-theme="4"] { background: linear-gradient(135deg, #2b2b2b 0%, #454040 100%); }
.modal-slide-placeholder .car-icon {
  width: 40%;
  height: auto;
  color: rgba(237, 242, 251, .35);
}
.placeholder-label { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: #fff; }
.placeholder-hint { font-size: .78rem; color: rgba(255, 255, 255, .5); max-width: 30ch; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background-color .2s var(--ease-out);
}
.gallery-arrow:hover { background: rgba(255, 255, 255, .3); }
.gallery-arrow-prev { left: .8rem; }
.gallery-arrow-next { right: .8rem; }
.gallery-featured-badge { position: absolute; top: .9rem; left: .9rem; z-index: 3; }
.gallery-counter {
  position: absolute;
  bottom: .9rem;
  right: .9rem;
  z-index: 3;
  background: rgba(20, 20, 20, .6);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 999px;
}

.car-modal-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .8rem;
  background: var(--navy-950);
  max-height: 168px;
  overflow-y: auto;
}
.car-modal-thumb {
  flex: 0 0 calc(16.666% - .5rem);
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: .55;
  transition: opacity .2s var(--ease-out), border-color .2s var(--ease-out), transform .15s var(--ease-out);
}
.car-modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.car-modal-thumb:hover { opacity: .85; }
.car-modal-thumb.is-active { opacity: 1; border-color: var(--accent); }
.car-modal-thumb:active { transform: scale(.94); }

@media (max-width: 719px) {
  .car-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .car-modal-inner { max-height: 100dvh; }
  .car-modal-thumbs { max-height: none; overflow-y: visible; }
}

.car-modal-info { padding: 1.8rem; }
.car-modal-info h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.car-modal-info .car-meta { margin-bottom: .9rem; }
.car-modal-info .car-price { font-size: 1.4rem; margin-bottom: .4rem; }
.car-modal-info .car-location { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.car-modal-info .car-location svg { color: var(--accent-dark); }


.modal-blurbs { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.2rem; }
.modal-blurbs p { font-size: .86rem; color: var(--muted); }
.modal-blurbs strong { color: var(--ink-soft); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem 1rem;
  margin-bottom: 1.3rem;
  padding: 1rem;
  background: var(--paper);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.spec-grid dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); font-weight: 700; margin-bottom: .15rem; }
.spec-grid dd { font-size: .9rem; font-weight: 600; color: var(--navy-900); }

.modal-warranty { font-size: .84rem; color: var(--muted); margin-bottom: 1.3rem; }
.modal-warranty strong { color: var(--success); }

.modal-cta-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.modal-cta-row .btn-whatsapp { flex: 1 1 200px; }
.modal-share { white-space: nowrap; flex: 0 0 auto; }
.modal-share.is-copied { border-color: var(--success); color: var(--success); }

.scroll-top {
  position: fixed;
  right: 1.55rem;
  bottom: 6.6rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 190;
  transition: transform .2s var(--ease-out), background-color .2s var(--ease-out);
}
.scroll-top:hover { background: var(--accent); transform: translateY(-3px); }

/* =============================================================
   15. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition-duration: .01ms; }
  .filters, .filter-backdrop { transition-duration: .01ms; }
}
