:root {
  --ink: #1a1a1a;
  --azul: #0f172a;
  --azul-light: #1e293b;
  --plateado: #94a3b8;
  --plateado-light: #cbd5e1;
  --acento: #3b82f6;
  --paper: #fafafa;
  --card: #ffffff;
  --line: #e2e8f0;
  --muted: #64748b;
  --bg: #f1f5f9;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Brand colors (defaults, overridden by JS) */
  --brand-primary: #0f172a;
  --brand-secondary: #ffffff;
  --brand-accent: #1e293b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", system-ui, sans-serif;
}
a { color: inherit; }

/* Header */
.top {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-light) 100%);
  color: white;
}
.top-inner, .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  gap: 16px;
}
.logo {
  text-decoration: none;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  font-size: 28px;
}
.logo small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  opacity: 0.8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.top nav { display: flex; gap: 20px; align-items: center; font-size: 14px; }
.top nav a { text-decoration: none; opacity: 0.9; transition: opacity 0.2s; }
.top nav a:hover { opacity: 1; }
.btn {
  display: inline-block;
  background: var(--acento);
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.btn:hover { 
  background: #2563eb; 
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

/* Hero */
.hero-section {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-light) 100%);
  padding: 48px 0 32px;
  color: white;
}
.hero-section h1 { 
  font-size: 42px; 
  margin: 0 0 12px; 
  font-weight: 700;
}
.hero-section p { 
  opacity: 0.9; 
  margin: 0 0 28px; 
  font-size: 18px;
}

/* === BRANDS SECTION === */
.brands-section {
  padding: 24px 0 0;
}
.brands-section h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin: 0 0 16px;
  font-weight: 500;
}
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.brand-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  font-size: 14px;
  font-weight: 500;
}
.brand-chip:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.brand-chip.active {
  background: white;
  color: var(--azul);
  border-color: white;
}
.brand-chip .brand-logo {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-chip .brand-logo svg,
.brand-chip .brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-chip.active .brand-logo svg {
  color: var(--azul);
}

/* Search Box */
.search-box {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  margin-top: 24px;
}
.search-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.search-box select, .search-box input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  background: white;
  color: var(--ink);
}
.search-box select:focus, .search-box input:focus {
  border-color: var(--acento);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.search-btn {
  background: var(--acento);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}
.search-btn:hover { background: #2563eb; }

/* Results Header */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 20px;
  flex-wrap: wrap;
  gap: 16px;
}
.results-count { color: var(--muted); font-size: 15px; }
.results-count strong { color: var(--azul); font-size: 20px; }
.sort-select {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 14px;
  cursor: pointer;
}

/* Active brand filter indicator */
.active-brand-filter {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  color: var(--brand-secondary);
  border-radius: 12px;
  margin-bottom: 20px;
}
.active-brand-filter.show {
  display: flex;
}
.active-brand-filter .brand-logo-large {
  width: 40px;
  height: 40px;
}
.active-brand-filter .brand-logo-large svg,
.active-brand-filter .brand-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.active-brand-filter .brand-info h4 {
  margin: 0;
  font-size: 18px;
}
.active-brand-filter .brand-info span {
  font-size: 13px;
  opacity: 0.9;
}
.active-brand-filter .clear-filter {
  margin-left: auto;
  background: rgba(255,255,255,0.2);
  border: none;
  color: inherit;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}
.active-brand-filter .clear-filter:hover {
  background: rgba(255,255,255,0.3);
}

/* Vehicle Cards */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  padding-bottom: 48px;
}
.vehicle-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
}
.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

/* Brand stripe on card */
.vehicle-card .brand-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-primary);
}

.vehicle-card .image {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, var(--azul-light) 0%, var(--azul) 100%);
  overflow: hidden;
}
.vehicle-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.vehicle-card:hover .image img { transform: scale(1.05); }

/* Brand logo on card */
.vehicle-card .card-brand-logo {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vehicle-card .card-brand-logo svg,
.vehicle-card .card-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  color: var(--brand-primary);
}

.vehicle-card .badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge.tipo-0km { background: var(--success); color: white; }
.badge.tipo-usado { background: var(--plateado); color: var(--azul); }
.badge.destacado { background: var(--warning); color: white; }
.badge.financiacion { background: var(--acento); color: white; }
.badge.permuta { background: #8b5cf6; color: white; }
.badge.reservado { background: var(--warning); color: white; }
.badge.segmento { background: rgba(0,0,0,0.6); color: white; }

.vehicle-card .favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.vehicle-card .favorite:hover { transform: scale(1.1); }

.vehicle-card .gallery-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.vehicle-card .body { padding: 20px; }
.vehicle-card .type-year {
  font-size: 12px;
  color: var(--brand-text, var(--brand-primary));
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vehicle-card .segmento-tag {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--muted);
}
.vehicle-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--azul);
  line-height: 1.3;
}
.vehicle-card .version {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}
.vehicle-card .price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.vehicle-card .price {
  font-size: 26px;
  font-weight: 700;
  color: var(--azul);
}
.vehicle-card .price-ars {
  font-size: 14px;
  color: var(--muted);
}
.vehicle-card .km {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}
.vehicle-card .specs {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.vehicle-card .specs span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.vehicle-card .stats {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  overflow-y: auto;
  padding: 24px;
}
.modal-overlay.open { display: flex; justify-content: center; align-items: flex-start; }
.modal {
  background: white;
  border-radius: 20px;
  max-width: 950px;
  width: 100%;
  margin: 24px auto;
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.modal-gallery {
  position: relative;
  height: 420px;
  background: var(--azul);
}
.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-gallery .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.modal-gallery .nav-btn:hover { transform: translateY(-50%) scale(1.1); }
.modal-gallery .nav-btn.prev { left: 16px; }
.modal-gallery .nav-btn.next { right: 16px; }
.modal-gallery .counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
}

/* Modal brand header */
.modal-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  color: var(--brand-secondary);
}
.modal-brand-header .brand-logo-modal {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-brand-header .brand-logo-modal svg,
.modal-brand-header .brand-logo-modal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.modal-brand-header h3 {
  margin: 0;
  font-size: 20px;
}
.modal-brand-header span {
  font-size: 13px;
  opacity: 0.9;
}

.modal-content { padding: 28px; }
.modal-content .badges { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.modal-content h2 { margin: 0 0 6px; font-size: 28px; color: var(--azul); }
.modal-content .version-full { font-size: 16px; color: var(--muted); margin-bottom: 20px; }

.modal-price-box {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-light) 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.modal-price-box .price { font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.modal-price-box .price-ars { font-size: 16px; opacity: 0.9; }

.modal-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.modal-specs .spec {
  text-align: center;
  padding: 18px 12px;
  background: var(--bg);
  border-radius: 12px;
}
.modal-specs .spec .icon { font-size: 26px; margin-bottom: 6px; }
.modal-specs .spec .value { font-size: 18px; font-weight: 700; color: var(--azul); }
.modal-specs .spec .label { font-size: 12px; color: var(--muted); margin-top: 2px; }

.modal-description { margin-bottom: 24px; }
.modal-description h4 { margin: 0 0 10px; color: var(--azul); font-size: 16px; }
.modal-description p { line-height: 1.7; color: #444; margin: 0; }

.modal-ficha { margin-bottom: 24px; }
.modal-ficha h4 { margin: 0 0 12px; color: var(--azul); font-size: 16px; }
.ficha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ficha-item {
  background: var(--bg);
  padding: 12px 16px;
  border-radius: 8px;
}
.ficha-item .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.ficha-item .value { font-size: 15px; font-weight: 600; color: var(--azul); margin-top: 2px; }

.modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.modal-stats .stat {
  text-align: center;
  padding: 14px;
  background: #fef3c7;
  border-radius: 10px;
}
.modal-stats .stat .value { font-size: 22px; font-weight: 700; color: var(--warning); }
.modal-stats .stat .label { font-size: 12px; color: var(--muted); }

.modal-contact {
  background: linear-gradient(135deg, var(--acento) 0%, #2563eb 100%);
  color: white;
  padding: 24px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.modal-contact h4 { margin: 0; font-size: 18px; }
.modal-contact p { margin: 4px 0 0; opacity: 0.9; font-size: 14px; }
.modal-contact .btns { display: flex; gap: 12px; }
.modal-contact .btn-whatsapp {
  background: #25d366;
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.modal-contact .btn-whatsapp:hover { background: #1da851; }
.modal-contact .btn-call {
  background: white;
  color: var(--acento);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.modal-contact .btn-call:hover { background: #f1f5f9; }

/* No results */
.no-results {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}
.no-results h3 { color: var(--azul); margin-bottom: 8px; font-size: 20px; }

/* Admin section */
.admin-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 56px 24px;
  text-align: center;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.admin-section h3 { margin: 0 0 10px; color: var(--azul); font-size: 22px; }
.admin-section p { color: var(--muted); margin: 0 0 20px; }

/* === PANEL STYLES === */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding: 24px 24px 12px;
  background: var(--paper);
}
.toolbar h1 { font-size: 28px; margin: 4px 0; color: var(--azul); }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.stats {
  display: flex;
  gap: 10px;
  padding: 0 24px 16px;
  flex-wrap: wrap;
  background: var(--paper);
}
.stats button, .stats div {
  background: white;
  border: 1px solid var(--line);
  padding: 10px 14px;
  min-width: 110px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.stats button:hover { border-color: var(--acento); }
.stats strong { display: block; font-size: 22px; color: var(--azul); }
.stats .on { border-color: var(--acento); background: #eff6ff; }

.workspace {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  min-height: 0;
  background: var(--paper);
}
.list, .detail { padding: 0 24px 32px; }
.list { overflow-y: auto; }

/* Table */
table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: #f8fafc;
}
td, th { padding: 14px 12px; border-bottom: 1px solid var(--line); }
tbody tr { transition: background 0.2s ease; cursor: pointer; }
tbody tr:hover { background: #f8fafc; }
.row.on { background: #eff6ff; }

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.tag.disponible { background: #dcfce7; color: #166534; }
.tag.reservado { background: #fef3c7; color: #92400e; }
.tag.vendido { background: #e0e7ff; color: #3730a3; }
.tag.pendiente { background: #fef3c7; color: #92400e; }
.tag.contactado { background: #dbeafe; color: #1e40af; }
.tag.visita { background: #ede9fe; color: #5b21b6; }
.tag.cerrada { background: #e5e7eb; color: #374151; }

.detail {
  background: white;
  border-left: 1px solid var(--line);
  padding: 20px 24px 32px;
  overflow-y: auto;
  border-radius: 0;
}
.detail h2 { font-size: 22px; margin: 0 0 4px; color: var(--azul); }
.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
  font-size: 14px;
}
.meta span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }

label { display: block; font-size: 13px; color: var(--muted); margin-top: 12px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--acento);
  outline: none;
}
.actions { display: flex; gap: 10px; margin-top: 18px; }
.ghost {
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}
.ghost:hover { border-color: var(--danger); color: var(--danger); }
.btn-panel {
  background: var(--acento);
  color: white;
  border: 0;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-panel:hover { background: #2563eb; }

.timeline { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 12px; }
.timeline h3 { font-size: 15px; margin: 0 0 10px; color: var(--azul); }
.timeline p { margin: 8px 0; font-size: 13px; }
.timeline time { display: block; color: var(--acento); font-size: 11px; font-weight: 600; }

.create {
  display: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 0 24px 16px;
}
.create.open { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.create button { align-self: end; }

.tabs { display: flex; gap: 0; padding: 0 24px; background: var(--paper, #f8fafc); border-bottom: 1px solid var(--line); }
.tabs button { background: transparent; border: none; padding: 12px 20px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--acento, #3b82f6); border-bottom-color: var(--acento, #3b82f6); }
.workspace[hidden], .create[hidden] { display: none !important; }
.stats input[type="text"] { margin-left: auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; width: 200px; cursor: text; }

.amount { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ARCA Section */
.arca-section {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
}
.arca-section h4 { margin: 0 0 10px; font-size: 14px; color: var(--azul); display: flex; align-items: center; gap: 8px; }
.factura-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  font-size: 13px;
}
.factura-box h4 { margin: 0 0 10px; font-size: 14px; color: #166534; }
.factura-box .cae { font-family: monospace; color: #166534; font-weight: 600; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--azul);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
  .vehicles-grid { grid-template-columns: 1fr; }
  .modal-specs, .modal-stats, .ficha-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-gallery { height: 280px; }
  .workspace, .create.open { grid-template-columns: 1fr; }
  .top-inner, .toolbar { flex-direction: column; align-items: start; }
  h1 { font-size: 32px; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .brands-grid { gap: 8px; }
  .brand-chip { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 640px) {
  .search-row { grid-template-columns: 1fr; }
  .modal-specs, .ficha-grid { grid-template-columns: 1fr 1fr; }
  .brand-chip .brand-name { display: none; }
  .brand-chip { padding: 10px; }
}
