/* === INVERCAR - Dark Premium Theme === */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --bg-input: #1a1a25;
  --border: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.1);
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59,130,246,0.15);
  --accent-glow-strong: rgba(59,130,246,0.3);
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --gradient-1: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-2: linear-gradient(135deg, #0a0a0f 0%, #111128 50%, #0a0a0f 100%);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
  --shadow-accent: 0 4px 20px rgba(59,130,246,0.25);
  --radius: 14px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === NAVBAR === */
.navbar {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 130px;
}
.navbar-brand {
  display: flex;
  align-items: center;
}
.navbar-brand img {
  height: 250px;
  width: auto;
  max-height: 240px;
  object-fit: contain;
}
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--accent); background: var(--accent-glow); }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* === HERO === */
.hero {
  background: var(--gradient-2);
  padding: 170px 20px 100px;
  text-align: center;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  100% { transform: translate(5%, -5%) scale(1.1); opacity: 0.5; }
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.2);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.08;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #fff 0%, #a0a0c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto 40px; }

/* === SEARCH BOX === */
.search-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.search-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.search-filters select, .search-filters input {
  padding: 13px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}
.search-filters select:focus, .search-filters input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-filters select option { background: var(--bg-card); color: var(--text-primary); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.93rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.btn-gradient {
  background: var(--gradient-1);
  color: white;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.35);
}
.btn-dark { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-dark:hover { background: var(--bg-card-hover); border-color: var(--accent); }
.btn-outline { background: transparent; border: 1px solid var(--border-light); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.btn-whatsapp { background: #22c55e; color: white; }
.btn-whatsapp:hover { background: #16a34a; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(34,197,94,0.3); }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: 0.83rem; }
.btn-block { width: 100%; }

/* === SECTIONS === */
.section { padding: 90px 20px; }
.section-alt { background: var(--bg-secondary); }
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.section-subtitle { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 48px; }
.text-center { text-align: center; }

/* === VEHICLE CARDS === */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.vehicle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.vehicle-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.1);
}
.vehicle-card-img {
  height: 210px;
  background: var(--bg-input);
  overflow: hidden;
  position: relative;
}
.vehicle-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.vehicle-card:hover .vehicle-card-img img { transform: scale(1.05); }
.vehicle-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: white;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.vehicle-badge.sold { background: var(--danger); }
.vehicle-badge.new { background: var(--success); }
.vehicle-card-body { padding: 20px; }
.vehicle-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.vehicle-card-price { font-size: 1.35rem; font-weight: 800; color: var(--accent); margin-bottom: 14px; }
.vehicle-card-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.vehicle-spec {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* === BENEFITS === */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.benefit-card {
  text-align: center;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.benefit-card:hover { border-color: rgba(59,130,246,0.2); transform: translateY(-4px); }
.benefit-icon {
  width: 64px; height: 64px;
  background: var(--accent-glow);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 18px;
}
.benefit-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text-primary); }
.benefit-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* === STEPS === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.step-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.step-card:hover { border-color: rgba(59,130,246,0.2); }
.step-number {
  width: 52px; height: 52px;
  background: var(--gradient-1);
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text-primary); }
.step-card p { color: var(--text-secondary); font-size: 0.85rem; }

/* === FORMS === */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.88rem; color: var(--text-secondary); }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.93rem;
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control option { background: var(--bg-card); color: var(--text-primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* === FOOTER === */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 64px 20px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.footer h4 { color: var(--text-primary); margin-bottom: 16px; font-size: 1rem; }
.footer a { color: var(--text-secondary); display: block; padding: 5px 0; font-size: 0.88rem; transition: var(--transition); }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* === INVENTORY LAYOUT === */
.inventory-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.filters-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.filter-group { margin-bottom: 18px; }
.filter-group h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; color: var(--text-secondary); }
.filter-group select, .filter-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.88rem;
}
.filter-group select option { background: var(--bg-card); }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.results-header span { color: var(--text-secondary); font-size: 0.9rem; }

/* === VEHICLE DETAIL === */
.vehicle-detail { padding-top: 90px; }
.vehicle-gallery { border-radius: var(--radius); overflow: hidden; }
.gallery-main {
  height: 420px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.gallery-thumb {
  width: 80px; height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.4;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-info { display: grid; grid-template-columns: 1fr 380px; gap: 32px; margin-top: 28px; }
.vehicle-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.spec-label { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
.spec-value { font-weight: 700; font-size: 0.95rem; }
.contact-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.price-tag { font-size: 2.2rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }

/* === SIMULATOR === */
.simulator-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.simulator-result {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-top: 20px;
}
.simulator-result .cuota {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === COMPARATOR BAR === */
.comparator-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  padding: 16px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}
.comparator-bar.active { display: flex; }
.comparator-items { display: flex; gap: 10px; }
.comparator-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
}
.comparator-item .remove { cursor: pointer; opacity: 0.5; transition: var(--transition); }
.comparator-item .remove:hover { opacity: 1; color: var(--danger); }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.compare-table th { background: var(--bg-card); color: var(--text-primary); font-size: 0.88rem; }
.compare-table td { color: var(--text-secondary); font-size: 0.9rem; }

/* === PAGE HEADER === */
.page-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 160px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.page-header h1 { font-size: 2.4rem; font-weight: 800; position: relative; letter-spacing: -0.5px; }
.page-header p { color: var(--text-secondary); margin-top: 10px; position: relative; }

/* === TESTIMONIALS === */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.testimonial-card:hover { border-color: rgba(59,130,246,0.2); }
.testimonial-card .stars { color: var(--warning); margin-bottom: 14px; font-size: 1.1rem; }
.testimonial-card p { color: var(--text-secondary); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.testimonial-card .author { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }

/* === CTA SECTION === */
.cta-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* === TOAST === */
.toast {
  position: fixed;
  top: 84px; right: 20px;
  background: var(--success);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transform: translateX(120%);
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.toast.show { transform: translateX(0); }
.toast.error { background: var(--danger); }

/* === WHATSAPP FLOAT === */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  background: #22c55e;
  color: white;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(34,197,94,0.4);
  z-index: 998;
  transition: var(--transition);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(34,197,94,0.5); }

/* === STATS ROW === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 40px 0;
}
.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-item .number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item .label { color: var(--text-secondary); font-size: 0.85rem; margin-top: 4px; }

/* === DIVIDER === */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 100px; left: 0; right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .navbar .container { height: 100px; }
  .navbar-brand img { max-height: 160px; }
  .hero { padding: 130px 20px 60px; min-height: auto; }
  .hero h1 { font-size: 2.2rem; }
  .page-header { padding: 130px 20px 40px; }
  .search-filters { grid-template-columns: 1fr 1fr; }  .inventory-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .vehicle-info { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-main { height: 260px; }
  .comparator-bar { flex-direction: column; gap: 12px; }
  .section { padding: 60px 20px; }
  .section-title { font-size: 1.7rem; }
  .financing-grid { grid-template-columns: 1fr !important; }
  .cta-section { padding: 40px 24px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .navbar .container { height: 80px; }
  .navbar-brand img { max-height: 120px; }
  .nav-links { top: 80px; }
  .hero { padding: 110px 20px 50px; }
  .hero h1 { font-size: 1.8rem; }
  .page-header { padding: 110px 20px 30px; }
  .search-filters { grid-template-columns: 1fr; }
  .vehicles-grid { grid-template-columns: 1fr; }
  .vehicle-card-img { height: 200px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* === LUCIDE ICONS === */
.btn i[data-lucide], .benefit-icon i[data-lucide], .step-number i[data-lucide],
.spec-label i[data-lucide], .stat-item i[data-lucide], .hero-badge i[data-lucide],
.footer a i[data-lucide], .stars i[data-lucide], .comparator-item i[data-lucide] {
  display: inline-block;
  vertical-align: middle;
}
.stars { display: flex; gap: 4px; margin-bottom: 14px; color: var(--warning); }
.benefit-icon { color: var(--accent); }
.step-number i[data-lucide] { color: white; }
.spec-label { display: flex; align-items: center; gap: 6px; }
.stat-item .label { display: flex; align-items: center; justify-content: center; gap: 6px; }
.footer a { display: flex; align-items: center; gap: 8px; }
