/* ═══════════════════════════════════════════════════════════
   AutoSaaS PY — Design System
   CSS propio, 100% personalizable via CSS variables
   El color primario se sobreescribe desde company_config
═══════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --primary:       #206bc4;
  --primary-dark:  #1a56a0;
  --primary-light: #e8f3ff;
  --secondary:     #1E3A5F;
  --accent:        #E8711A;
  --accent-light:  #fff3e8;
  --text:          #1a1a2e;
  --text-muted:    #6b7280;
  --text-light:    #9ca3af;
  --bg:            #ffffff;
  --bg-soft:       #f8fafc;
  --bg-muted:      #f1f5f9;
  --border:        #e2e8f0;
  --border-dark:   #cbd5e1;
  --success:       #16a34a;
  --success-light: #dcfce7;
  --danger:        #dc2626;
  --danger-light:  #fee2e2;
  --warning:       #d97706;
  --warning-light: #fef3c7;

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
  --transition: .2s ease;

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-size:  16px;
  --line-height: 1.6;

  --container:  1280px;
  --gutter:     1.5rem;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--font-size); scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── Grid ─────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex   { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap     { display: flex; align-items: center; gap: .75rem; }
.flex-wrap    { flex-wrap: wrap; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p  { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-sm      { font-size: .875rem; }
.text-xs      { font-size: .75rem; }
.text-lg      { font-size: 1.125rem; }
.text-center  { text-align: center; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .625rem 1.5rem;
  border-radius: var(--radius); border: 2px solid transparent;
  font-size: .9rem; font-weight: 600; line-height: 1;
  transition: all var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn-lg  { padding: .875rem 2rem; font-size: 1rem; }
.btn-sm  { padding: .4rem 1rem; font-size: .8rem; }
.btn-icon{ padding: .6rem; width: 2.5rem; height: 2.5rem; }

.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.btn-accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-accent:hover { background: #c0591a; border-color: #c0591a; color: #fff; }

.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-ghost {
  background: transparent; color: var(--text-muted); border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); }

.btn-whatsapp {
  background: #25D366; color: #fff; border-color: #25D366;
}
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; color: #fff; }

.btn-block { width: 100%; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body  { padding: 1.25rem; }
.card-footer{ padding: 1rem 1.25rem; border-top: 1px solid var(--border); background: var(--bg-soft); }

/* ── Vehicle Card ─────────────────────────────────────────── */
.vehicle-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.vehicle-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.vehicle-card:hover .vehicle-card__img img { transform: scale(1.04); }

.vehicle-card__img {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10; background: var(--bg-muted);
}
.vehicle-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.vehicle-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--border-dark);
}

.vehicle-card__badges {
  position: absolute; top: .75rem; left: .75rem;
  display: flex; gap: .4rem; flex-wrap: wrap;
}
.vehicle-card__compare {
  position: absolute; top: .75rem; right: .75rem;
}

.vehicle-card__body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }

.vehicle-card__title {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: .25rem;
}
.vehicle-card__sub {
  font-size: .8rem; color: var(--text-muted);
  margin-bottom: .75rem;
}

.vehicle-card__specs {
  display: flex; gap: .75rem; flex-wrap: wrap;
  margin-bottom: .75rem;
}
.vehicle-card__spec {
  display: flex; align-items: center; gap: .3rem;
  font-size: .78rem; color: var(--text-muted);
}
.vehicle-card__spec svg { width: 14px; height: 14px; opacity: .7; }

.vehicle-card__price-box { margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border); }
.vehicle-card__price-old { font-size: .8rem; color: var(--text-light); text-decoration: line-through; }
.vehicle-card__price     { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.vehicle-card__installment { font-size: .78rem; color: var(--success); font-weight: 600; }

.vehicle-card__actions {
  display: grid; grid-template-columns: 1fr auto;
  gap: .5rem; padding: .75rem 1.1rem;
  border-top: 1px solid var(--border);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .6rem; border-radius: 99px;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; line-height: 1;
}
.badge-primary   { background: var(--primary-light); color: var(--primary); }
.badge-accent    { background: var(--accent-light); color: var(--accent); }
.badge-success   { background: var(--success-light); color: var(--success); }
.badge-warning   { background: var(--warning-light); color: var(--warning); }
.badge-danger    { background: var(--danger-light); color: var(--danger); }
.badge-dark      { background: var(--text); color: #fff; }
.badge-new       { background: #dcfce7; color: #16a34a; }
.badge-used      { background: #fef3c7; color: #d97706; }
.badge-imported  { background: #ede9fe; color: #7c3aed; }
.badge-featured  { background: #fef3c7; color: #d97706; }
.badge-discount  { background: var(--danger); color: #fff; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group  { margin-bottom: 1.25rem; }
.form-label  { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }
.form-control {
  display: block; width: 100%;
  padding: .625rem .875rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .9rem; font-family: inherit; color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(32,107,196,.15); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem; }
.form-error  { font-size: .8rem; color: var(--danger); margin-top: .3rem; display: block; }
.form-help   { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }

.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn           { border-radius: 0 var(--radius) var(--radius) 0; }

/* ── Header / Navbar ──────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar {
  height: 68px; display: flex; align-items: center; gap: 1rem;
  justify-content: space-between;
}
.navbar__logo { display: flex; align-items: center; gap: .75rem; }
.navbar__logo img  { height: 36px; }
.navbar__logo span { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.navbar__logo span em { color: var(--primary); font-style: normal; }

.navbar__nav { display: flex; align-items: center; gap: .25rem; }
.navbar__nav a {
  padding: .5rem .875rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition);
}
.navbar__nav a:hover, .navbar__nav a.active { color: var(--primary); background: var(--primary-light); }

.navbar__actions { display: flex; align-items: center; gap: .5rem; }

.navbar__toggle {
  display: none; background: none; border: none; padding: .4rem;
  color: var(--text);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: #fff; padding: 5rem 0 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 1; }
.hero__title { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; margin-bottom: 1rem; }
.hero__subtitle { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; }

.search-box {
  background: #fff; border-radius: var(--radius-xl);
  padding: .5rem; display: flex; gap: .5rem;
  box-shadow: var(--shadow-lg); max-width: 680px;
}
.search-box input {
  flex: 1; border: none; outline: none; padding: .5rem 1rem;
  font-size: 1rem; background: transparent; color: var(--text);
}
.search-box input::placeholder { color: var(--text-light); }

.hero__stats {
  display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.hero__stat-value { font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero__stat-label { font-size: .82rem; color: rgba(255,255,255,.7); }

/* ── Filter Bar ───────────────────────────────────────────── */
.filter-bar {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 1rem 0; position: sticky; top: 68px; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.filter-bar__inner { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.filter-bar__select {
  padding: .5rem .875rem; border: 1.5px solid var(--border);
  border-radius: 99px; font-size: .85rem; background: var(--bg);
  color: var(--text); cursor: pointer; transition: all var(--transition);
  appearance: none; min-width: 130px;
}
.filter-bar__select:hover, .filter-bar__select:focus {
  border-color: var(--primary); outline: none;
}
.filter-count {
  background: var(--primary); color: #fff;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: .7rem; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.filter-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .875rem; border: 1.5px solid var(--primary);
  border-radius: 99px; font-size: .82rem; font-weight: 600; color: var(--primary);
  background: var(--primary-light); cursor: pointer;
}
.filter-pill button { background: none; border: none; line-height: 1; padding: 0 0 0 2px; color: var(--primary); }

/* ── Section ──────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section--bg { background: var(--bg-soft); }
.section__header { text-align: center; margin-bottom: 2.5rem; }
.section__header h2 { margin-bottom: .5rem; }
.section__header p  { max-width: 580px; margin: 0 auto; }

/* ── Vehicles Grid ────────────────────────────────────────── */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── Catalog Layout ───────────────────────────────────────── */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
.catalog-sidebar { position: sticky; top: 130px; }
.catalog-main {}

.sidebar-filter { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.25rem; }
.sidebar-filter__header {
  padding: .875rem 1.25rem; background: var(--bg-soft); border-bottom: 1px solid var(--border);
  font-size: .875rem; font-weight: 700; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
}
.sidebar-filter__body { padding: 1rem 1.25rem; }

.range-group { display: flex; gap: .5rem; align-items: center; }
.range-group input { flex: 1; }

/* ── Sort & Result bar ────────────────────────────────────── */
.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; flex-wrap: wrap; gap: .5rem;
}
.results-bar__count { font-size: .9rem; color: var(--text-muted); }
.results-bar__count strong { color: var(--text); }

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; gap: .4rem; align-items: center; justify-content: center; margin-top: 2.5rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  border: 1.5px solid var(--border); font-size: .875rem; font-weight: 600;
  color: var(--text-muted); transition: all var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .dots { border: none; color: var(--text-light); }

/* ── Vehicle Detail ───────────────────────────────────────── */
.vehicle-detail { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }
.vehicle-gallery { }
.vehicle-gallery__main {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/10; background: var(--bg-muted); margin-bottom: 1rem;
}
.vehicle-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-gallery__thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.vehicle-gallery__thumb {
  width: 80px; height: 60px; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; border: 2px solid transparent;
  transition: border-color var(--transition); flex-shrink: 0;
}
.vehicle-gallery__thumb.active { border-color: var(--primary); }
.vehicle-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.vehicle-specs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin: 1.5rem 0;
}
.vehicle-spec {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: .875rem 1rem; text-align: center;
}
.vehicle-spec__icon { font-size: 1.4rem; margin-bottom: .3rem; }
.vehicle-spec__label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.vehicle-spec__value { font-size: .95rem; font-weight: 700; color: var(--text); }

.vehicle-sidebar-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  position: sticky; top: 130px;
}
.vehicle-price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.vehicle-price-old { font-size: 1rem; text-decoration: line-through; color: var(--text-light); }
.vehicle-installment { font-size: .95rem; color: var(--success); font-weight: 600; margin-top: .25rem; }

.tabs { border-bottom: 2px solid var(--border); display: flex; gap: 0; margin-bottom: 1.5rem; }
.tab-btn {
  padding: .75rem 1.25rem; border: none; background: none; font-size: .9rem;
  font-weight: 600; color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover  { color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.equip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; }
.equip-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem; background: var(--bg-soft);
  border-radius: var(--radius); font-size: .85rem;
}
.equip-item .check { color: var(--success); flex-shrink: 0; }

/* ── Inquiry Form ─────────────────────────────────────────── */
.inquiry-form { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 1.5rem; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: .875rem 0; }
.breadcrumb a { font-size: .83rem; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { font-size: .83rem; color: var(--text-light); }
.breadcrumb .sep { color: var(--text-light); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--secondary); color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col p  { color: rgba(255,255,255,.6); font-size: .875rem; }
.footer-links  { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a{ color: rgba(255,255,255,.6); font-size: .875rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-contact-item { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .75rem; font-size: .875rem; }
.footer-contact-item svg { flex-shrink: 0; margin-top: .15rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8rem; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem;
  display: flex; gap: .75rem; align-items: flex-start;
}
.alert-success { background: var(--success-light); color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: var(--danger-light);  color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: var(--primary-light);  color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Compare button floating ─────────────────────────────── */
.compare-bar {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; border-radius: var(--radius-xl);
  padding: .75rem 1.5rem; display: none; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-lg); z-index: 9000; font-size: .9rem;
}
.compare-bar.visible { display: flex; }

/* ── WhatsApp float ───────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* ── Simulator section ────────────────────────────────────── */
.simulator-box {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: var(--radius-xl); padding: 2.5rem; color: #fff;
}
.simulator-result {
  background: rgba(255,255,255,.12); border-radius: var(--radius-lg);
  padding: 1.5rem; text-align: center;
}
.simulator-result .amount { font-size: 2.5rem; font-weight: 800; color: #fff; }
.simulator-result .label  { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ── Branches map section ─────────────────────────────────── */
.branch-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.branch-card h3 { margin-bottom: 1rem; }
.branch-info-item { display: flex; gap: .75rem; margin-bottom: .75rem; font-size: .875rem; color: var(--text-muted); }
.branch-info-item svg { flex-shrink: 0; color: var(--primary); }
.map-placeholder { background: var(--bg-muted); border-radius: var(--radius-lg); height: 400px; display: flex; align-items: center; justify-content: center; color: var(--text-light); }

/* ── Loading ──────────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--bg-muted) 25%, var(--border) 50%, var(--bg-muted) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── Mobile menu ──────────────────────────────────────────── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.5);
}
.mobile-menu.open { display: block; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 300px;
  background: var(--bg); padding: 2rem 1.5rem; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-menu__close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; color: var(--text-muted); }
.mobile-menu__nav { display: flex; flex-direction: column; gap: .25rem; margin-top: 2rem; }
.mobile-menu__nav a { padding: .75rem 1rem; border-radius: var(--radius); font-weight: 500; color: var(--text); }
.mobile-menu__nav a:hover { background: var(--bg-soft); color: var(--primary); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; display: none; }
  .catalog-sidebar.open { display: block; }
  .filter-bar { top: 68px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vehicle-detail { grid-template-columns: 1fr; }
  .vehicle-sidebar-card { position: static; }
}

@media (max-width: 768px) {
  :root { --gutter: 1rem; }
  .navbar__nav   { display: none; }
  .navbar__toggle{ display: flex; }
  .hero { padding: 3rem 0 2.5rem; }
  .search-box { flex-direction: column; border-radius: var(--radius-lg); }
  .search-box input { padding: .75rem 1rem; }
  .search-box .btn  { border-radius: var(--radius); }
  .hero__stats { gap: 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .vehicle-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .results-bar { flex-direction: column; align-items: flex-start; }
  .section { padding: 2.5rem 0; }
}

@media (max-width: 480px) {
  .vehicles-grid { grid-template-columns: 1fr; }
  .vehicle-gallery__thumbs { gap: .4rem; }
  .vehicle-gallery__thumb { width: 64px; height: 48px; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .wa-float, .compare-bar { display: none !important; }
  .vehicle-detail { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   EXTENDED DESIGN SYSTEM — Componentes adicionales
═══════════════════════════════════════════════════════════ */

/* ── Fuente display propia ────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
}

/* ── Tipografía mejorada ──────────────────────────────────── */
h1, h2 { font-family: var(--font-display); letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: -.025em; line-height: 1.2;
  margin-bottom: .5rem;
}
.section-subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; max-width: 540px; }
.section-header { margin-bottom: 2.5rem; }
.section-header .section-title { margin-bottom: .5rem; }

/* ── Highlight strip ──────────────────────────────────────── */
.highlight {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar extendida ────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 1rem;
}
.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.4rem; color: var(--secondary); letter-spacing: -.02em;
  flex-shrink: 0;
}
.navbar__logo img { height: 40px; width: auto; }
.navbar__nav { display: flex; gap: .25rem; align-items: center; }
.navbar__nav a {
  padding: .45rem .875rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 500; color: var(--text);
  transition: all .2s;
}
.navbar__nav a:hover { color: var(--primary); background: var(--primary-light); }
.navbar__nav a.active { color: var(--primary); font-weight: 600; }

.navbar__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.navbar__toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: var(--radius); padding: .45rem .6rem; cursor: pointer;
  align-items: center; gap: .25rem; color: var(--text); font-size: .85rem;
}
.navbar__toggle-bar { width: 18px; height: 2px; background: currentColor; display: block; }
.navbar__compare-badge {
  background: var(--accent); color: #fff; width: 18px; height: 18px;
  border-radius: 50%; font-size: .7rem; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  position: absolute; top: -5px; right: -5px;
}

/* ── Hero upgrade ─────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--secondary) 0%, #0f2744 60%, var(--primary) 100%);
  padding: 5rem 0 4rem; color: #fff;
  min-height: 520px; display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero__inner { position: relative; z-index: 1; max-width: 660px; }
.hero__eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
  background: rgba(232,113,26,.12); padding: .3rem .875rem;
  border-radius: 99px; border: 1px solid rgba(232,113,26,.3);
}
.hero__title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1; color: #fff; margin-bottom: 1rem; letter-spacing: -.03em;
}
.hero__title em { font-style: italic; color: rgba(255,255,255,.8); }
.hero__subtitle { color: rgba(255,255,255,.72); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.6; }

.hero__stats {
  display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12);
}
.hero__stat-value {
  font-family: var(--font-display); font-size: 2rem; font-weight: 400;
  color: #fff; line-height: 1; margin-bottom: .2rem;
}
.hero__stat-label { font-size: .78rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }

/* ── Search Box upgrade ───────────────────────────────────── */
.search-box {
  display: flex; background: #fff; border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(0,0,0,.2); overflow: hidden;
  border: 2px solid transparent; transition: border-color .2s;
}
.search-box:focus-within { border-color: var(--primary); }
.search-box input {
  flex: 1; border: none; padding: 1rem 1.375rem; font-size: 1rem;
  font-family: var(--font-sans); background: transparent; outline: none;
  color: var(--text);
}
.search-box input::placeholder { color: var(--text-light); }
.search-box .btn { border-radius: 0; flex-shrink: 0; padding: 1rem 1.75rem; }

/* ── Quick filter pills ───────────────────────────────────── */
.hero-pills { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.hero-pill {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.9);
  padding: .3rem .875rem; border-radius: 99px; font-size: .8rem;
  font-weight: 600; border: 1px solid rgba(255,255,255,.2);
  transition: .2s; cursor: pointer; text-decoration: none;
}
.hero-pill:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ── Vehicle Card upgrade ─────────────────────────────────── */
.vehicle-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.vehicle-card:hover {
  transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.12);
  border-color: transparent;
}
.vehicle-card__img-wrap {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: var(--bg-muted);
}
.vehicle-card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.vehicle-card:hover .vehicle-card__img-wrap img { transform: scale(1.04); }
.vehicle-card__badges {
  position: absolute; top: .75rem; left: .75rem;
  display: flex; gap: .4rem; flex-wrap: wrap;
}
.vehicle-card__compare {
  position: absolute; top: .75rem; right: .75rem;
  background: rgba(255,255,255,.9); border: none; width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: .2s; font-size: .8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.vehicle-card__compare.active { background: var(--primary); color: #fff; }
.vehicle-card__body { padding: 1.125rem; flex: 1; display: flex; flex-direction: column; }
.vehicle-card__brand { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .2rem; }
.vehicle-card__name { font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.25; margin-bottom: .625rem; }
.vehicle-card__specs { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .875rem; }
.vehicle-card__spec { font-size: .775rem; color: var(--text-muted); display: flex; gap: .3rem; align-items: center; }
.vehicle-card__spec svg { width: 13px; height: 13px; opacity: .6; }
.vehicle-card__footer { margin-top: auto; padding-top: .875rem; border-top: 1px solid var(--border); }
.vehicle-card__price { font-size: 1.35rem; font-weight: 800; color: var(--primary); line-height: 1; }
.vehicle-card__price-old { font-size: .8rem; text-decoration: line-through; color: var(--text-light); margin-bottom: .15rem; }
.vehicle-card__installment { font-size: .78rem; color: var(--success); font-weight: 600; margin-top: .2rem; }

/* ── Badges upgrade ───────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.badge-new      { background: #dcfce7; color: #15803d; }
.badge-used     { background: #dbeafe; color: #1d4ed8; }
.badge-featured { background: var(--warning-light); color: #92400e; }
.badge-imported { background: #f3e8ff; color: #7c3aed; }
.badge-reserved { background: #fef3c7; color: #b45309; }
.badge-discount { background: var(--danger-light); color: var(--danger); }

/* ── Catalog sidebar upgrade ──────────────────────────────── */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
.catalog-sidebar {
  position: sticky; top: 86px; max-height: calc(100vh - 100px);
  overflow-y: auto; scrollbar-width: thin;
}
.filter-section { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: none; margin-bottom: 0; }
.filter-section__title {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: .75rem;
  display: flex; justify-content: space-between; cursor: pointer;
}
.filter-section__title svg { transition: transform .2s; }
.filter-section.collapsed .filter-section__title svg { transform: rotate(-90deg); }
.filter-section.collapsed .filter-section__body { display: none; }

.filter-check-list { display: flex; flex-direction: column; gap: .4rem; max-height: 200px; overflow-y: auto; scrollbar-width: thin; }
.filter-check {
  display: flex; align-items: center; gap: .625rem;
  padding: .35rem .25rem; cursor: pointer; border-radius: var(--radius-sm);
  font-size: .875rem; transition: background .15s;
}
.filter-check:hover { background: var(--bg-soft); }
.filter-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; cursor: pointer; }
.filter-check__count { margin-left: auto; font-size: .75rem; color: var(--text-light); background: var(--bg-muted); padding: .1rem .4rem; border-radius: 99px; }

.range-slider { display: flex; flex-direction: column; gap: .75rem; }
.range-slider__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.range-slider input[type="number"] { width: 100%; font-size: .85rem; }
.range-slider__track { position: relative; height: 4px; background: var(--border); border-radius: 2px; margin: .5rem 0; }
.range-slider__fill  { position: absolute; top: 0; bottom: 0; background: var(--primary); border-radius: 2px; }

/* ── Sort bar ─────────────────────────────────────────────── */
.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .875rem 0; margin-bottom: 1.25rem; gap: .75rem;
  border-bottom: 1px solid var(--border);
}
.results-count { font-size: .9rem; color: var(--text-muted); }
.results-count strong { color: var(--text); }
.sort-select { font-size: .85rem; padding: .4rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); cursor: pointer; }
.view-toggle { display: flex; gap: .25rem; }
.view-toggle button {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
  cursor: pointer; color: var(--text-muted); transition: .2s;
}
.view-toggle button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.mobile-filter-btn { display: none; }
@media(max-width:1024px){ .mobile-filter-btn { display: flex; } }

/* Active filters pills */
.active-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.active-filter-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--primary-light); color: var(--primary);
  padding: .3rem .75rem; border-radius: 99px; font-size: .8rem; font-weight: 600;
}
.active-filter-tag button { background: none; border: none; cursor: pointer; color: inherit; font-size: .9rem; line-height: 1; padding: 0; }

/* ── Vehicle list view ────────────────────────────────────── */
.vehicles-list { display: flex; flex-direction: column; gap: 1rem; }
.vehicle-list-item {
  display: grid; grid-template-columns: 220px 1fr auto;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg); transition: .25s;
}
.vehicle-list-item:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: transparent; }
.vehicle-list-item__img { aspect-ratio: 4/3; overflow: hidden; }
.vehicle-list-item__img img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-list-item__body { padding: 1.125rem; }
.vehicle-list-item__price { padding: 1.125rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; min-width: 160px; border-left: 1px solid var(--border); }

/* ── Vehicle detail page ──────────────────────────────────── */
.vehicle-gallery__main {
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: zoom-in; position: relative;
}
.vehicle-gallery__fullscreen {
  position: absolute; bottom: .75rem; right: .75rem;
  background: rgba(0,0,0,.5); color: #fff; border: none;
  border-radius: var(--radius); padding: .35rem .625rem;
  font-size: .75rem; cursor: pointer; display: flex; align-items: center; gap: .35rem;
  backdrop-filter: blur(4px);
}
.vehicle-gallery__count {
  position: absolute; bottom: .75rem; left: .75rem;
  background: rgba(0,0,0,.5); color: #fff; border-radius: 99px;
  font-size: .75rem; padding: .2rem .625rem; font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Specs grid upgrade */
.vehicle-specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1.5rem 0; }
.vehicle-spec {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: .875rem .75rem; text-align: center;
  border: 1px solid var(--border); transition: border-color .2s;
}
.vehicle-spec:hover { border-color: var(--primary); }
.vehicle-spec__icon { font-size: 1.25rem; margin-bottom: .35rem; }
.vehicle-spec__label { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: .2rem; }
.vehicle-spec__value { font-size: .9rem; font-weight: 700; color: var(--text); }

/* Tabs upgrade */
.tabs { border-bottom: 2px solid var(--border); display: flex; gap: 0; margin-bottom: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: .75rem 1.125rem; border: none; background: none;
  font-size: .875rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; white-space: nowrap;
  transition: all .2s; font-family: var(--font-sans);
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover:not(.active) { color: var(--text); background: var(--bg-soft); }

/* ── Price card sidebar ───────────────────────────────────── */
.vehicle-sidebar-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.625rem;
  position: sticky; top: 86px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.vehicle-price-original { font-size: .85rem; text-decoration: line-through; color: var(--text-light); }
.vehicle-price {
  font-family: var(--font-display); font-size: 2.25rem;
  color: var(--primary); line-height: 1; letter-spacing: -.03em;
}
.vehicle-discount-badge {
  background: var(--danger-light); color: var(--danger);
  font-size: .78rem; font-weight: 700; padding: .3rem .625rem;
  border-radius: 99px; display: inline-block; margin-left: .5rem;
}
.vehicle-installment-box {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0; border-radius: var(--radius-lg);
  padding: .875rem 1rem; margin: 1rem 0;
}
.vehicle-installment-box .amount { font-size: 1.4rem; font-weight: 800; color: #166534; }
.vehicle-installment-box .label { font-size: .78rem; color: #166534; opacity: .8; }
.vehicle-installment-box .detail { font-size: .75rem; color: #166534; opacity: .65; }

/* Btn group */
.btn-group { display: flex; gap: .625rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── WhatsApp button ──────────────────────────────────────── */
.btn-whatsapp {
  background: #25D366; color: #fff; border: none;
  display: inline-flex; align-items: center; gap: .625rem;
  padding: .75rem 1.375rem; border-radius: var(--radius-lg);
  font-weight: 700; font-size: .95rem; cursor: pointer; transition: .2s;
  text-decoration: none;
}
.btn-whatsapp:hover { background: #20b858; color: #fff; transform: translateY(-1px); }
.btn-whatsapp svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Contact / Lead form ──────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
@media(max-width:900px){ .contact-grid { grid-template-columns: 1fr; } }

.contact-form-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.contact-info-card {
  background: linear-gradient(160deg, var(--secondary), #0f2744);
  border-radius: var(--radius-xl); padding: 2.25rem; color: #fff;
}
.contact-info-card h3 { color: #fff; margin-bottom: 1.5rem; font-family: var(--font-display); }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-info-item__icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: rgba(255,255,255,.12); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.contact-info-item__text { font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.8); }
.contact-info-item__label { font-size: .75rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem; }

/* ── Branches page ────────────────────────────────────────── */
.branches-layout { display: grid; grid-template-columns: 380px 1fr; gap: 2rem; min-height: 560px; }
.branches-list { display: flex; flex-direction: column; gap: 1rem; max-height: 580px; overflow-y: auto; scrollbar-width: thin; padding-right: .5rem; }
.branch-card {
  background: var(--bg); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem; cursor: pointer; transition: .2s;
}
.branch-card:hover, .branch-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.branch-card__header { display: flex; align-items: center; gap: .75rem; margin-bottom: .875rem; }
.branch-card__icon {
  width: 40px; height: 40px; background: var(--primary-light); color: var(--primary);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.branch-card__main { background: var(--bg-muted); border-radius: var(--radius-lg); overflow: hidden; }
.map-iframe { width: 100%; height: 480px; border: 0; border-radius: var(--radius-lg); }
.no-map { display: flex; align-items: center; justify-content: center; height: 480px; color: var(--text-muted); flex-direction: column; gap: 1rem; font-size: 1.1rem; }

/* ── Simulator page ───────────────────────────────────────── */
.simulator-layout { display: grid; grid-template-columns: 440px 1fr; gap: 2.5rem; align-items: start; }
@media(max-width:900px){ .simulator-layout { grid-template-columns: 1fr; } }

.simulator-form-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.simulator-form-card h2 { font-family: var(--font-display); margin-bottom: 1.5rem; }

.simulator-result-card {
  background: linear-gradient(160deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: var(--radius-xl); padding: 2.5rem; color: #fff; text-align: center;
}
.simulator-main-amount {
  font-family: var(--font-display); font-size: 3.5rem; line-height: 1;
  color: #fff; margin: 1rem 0; letter-spacing: -.04em;
}
.simulator-main-label { font-size: .85rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .1em; }
.simulator-breakdown {
  background: rgba(255,255,255,.1); border-radius: var(--radius-lg);
  padding: 1.25rem; margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.simulator-breakdown__item { text-align: left; }
.simulator-breakdown__label { font-size: .72rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }
.simulator-breakdown__value { font-size: 1.05rem; font-weight: 700; color: #fff; }

.amortization-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .85rem; }
.amortization-table th { background: var(--bg-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding: .625rem .875rem; text-align: right; color: var(--text-muted); font-weight: 600; }
.amortization-table th:first-child { text-align: center; }
.amortization-table td { padding: .5rem .875rem; text-align: right; border-bottom: 1px solid var(--border); }
.amortization-table td:first-child { text-align: center; color: var(--text-muted); }
.amortization-table tr:hover td { background: var(--bg-soft); }

/* ── CMS Page ─────────────────────────────────────────────── */
.cms-content {
  max-width: 760px; margin: 0 auto; padding: 2.5rem 0;
  font-size: 1.0125rem; line-height: 1.75; color: var(--text);
}
.cms-content h2 { font-family: var(--font-display); margin: 2rem 0 .875rem; }
.cms-content h3 { margin: 1.5rem 0 .625rem; }
.cms-content p { margin-bottom: 1rem; }
.cms-content ul, .cms-content ol { margin: 0 0 1rem 1.5rem; }
.cms-content li { margin-bottom: .375rem; }
.cms-content a { color: var(--primary); text-decoration: underline; }
.cms-content blockquote {
  border-left: 4px solid var(--primary); margin: 1.5rem 0;
  padding: .875rem 1.25rem; background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0; font-style: italic;
}

/* ── Page Hero (páginas interiores) ──────────────────────────*/
.page-hero {
  background: linear-gradient(135deg, var(--secondary), #0f2744);
  padding: 3rem 0 2.5rem; color: #fff; margin-bottom: 3rem;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.75rem); margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.65); font-size: 1rem; }

/* ── Featured / Promoted section ─────────────────────────── */
.featured-strip {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: var(--radius-xl); padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 2rem;
}
.featured-strip p { color: rgba(255,255,255,.85); font-size: .9rem; margin: 0; }
.featured-strip strong { color: #fff; }

/* ── Section brand logos ──────────────────────────────────── */
.brands-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.brand-pill {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 99px; padding: .5rem 1.125rem; font-size: .85rem;
  font-weight: 600; color: var(--text); transition: .2s; text-decoration: none;
}
.brand-pill:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

/* ── CTA section ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: var(--radius-xl); padding: 3.5rem 2rem;
  text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='white' fill-opacity='.07'/%3E%3C/svg%3E");
}
.cta-section h2 { font-family: var(--font-display); color: #fff; font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: .75rem; position: relative; }
.cta-section p  { color: rgba(255,255,255,.75); max-width: 480px; margin: 0 auto 1.75rem; position: relative; }
.cta-section .btn { position: relative; }

/* ── Image lightbox ───────────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: 1.25rem; right: 1.25rem; width: 44px; height: 44px;
  background: rgba(255,255,255,.15); border: none; border-radius: 50%; color: #fff;
  font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox__prev, .lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; background: rgba(255,255,255,.15);
  border: none; border-radius: 50%; color: #fff; font-size: 1.5rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.3); }
.lightbox__prev { left: 1.25rem; }
.lightbox__next { right: 1.25rem; }

/* ── Error pages ──────────────────────────────────────────── */
.error-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 70vh; flex-direction: column; text-align: center; gap: 1rem; padding: 3rem;
}
.error-page__code {
  font-family: var(--font-display); font-size: 7rem; line-height: 1;
  color: var(--border); letter-spacing: -.05em;
}
.error-page h1 { font-size: 1.75rem; }
.error-page p { color: var(--text-muted); max-width: 400px; }

/* ── Utility ──────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-sm { gap: .5rem; }
.gap-md { gap: 1rem; }
.d-none { display: none; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: .85rem; }
.fw-700 { font-weight: 700; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }

/* ── Responsive extendido ─────────────────────────────────── */
@media (max-width: 1100px) {
  .vehicle-specs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .branches-layout { grid-template-columns: 1fr; }
  .branches-list { max-height: 300px; }
}
@media (max-width: 768px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .vehicle-list-item { grid-template-columns: 140px 1fr; }
  .vehicle-list-item__price { display: none; }
  .hero { min-height: 380px; }
  .hero__inner { max-width: 100%; }
  .navbar__nav { display: none; }
  .navbar__toggle { display: flex; }
  .vehicles-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .vehicle-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cta-section { padding: 2.5rem 1.25rem; }
}
@media (max-width: 480px) {
  .vehicles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .vehicle-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .simulator-breakdown { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.5rem; flex-direction: column; }
}
