* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #1a1a2e;
  line-height: 1.5;
}

:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-soft: #fee2e2;
  --red-glow: rgba(220,38,38,0.25);
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* Banner con brillo */
.promo-banner {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  text-align: center;
  padding: 0.9rem;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1001;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shine 2.5s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 120%; }
  100% { left: 120%; }
}

.promo-banner i { margin: 0 0.5rem; }
.promo-banner strong {
  background: rgba(255,255,255,0.25);
  padding: 0.2rem 0.8rem;
  border-radius: 2rem;
  margin: 0 0.3rem;
  font-size: 1rem;
}

/* Botón flotante WhatsApp mejorado */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(37,211,102,0.5);
}

.whatsapp-float i {
  font-size: 1.5rem;
}

/* Navegación */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #1a1a2e, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo i { color: var(--red); font-size: 1.3rem; background: none; -webkit-background-clip: unset; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--gray-600); font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  text-align: center;
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.hero h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(135deg, #1a1a2e, #3f3f46); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 span { background: linear-gradient(135deg, #dc2626, #ef4444); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--gray-600); margin-top: 0.5rem; }

/* Grid principal */
.main-grid {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) { .main-grid { grid-template-columns: 1fr; } }

/* Formulario */
.form-panel {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.form-panel:hover { box-shadow: var(--shadow-xl); }

/* Wizard */
.wizard {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-100);
}

.wizard-step { text-align: center; flex: 1; }
.step-number {
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.wizard-step.active .step-number { background: var(--red); color: white; box-shadow: 0 0 0 4px var(--red-glow); }
.step-label { font-size: 0.7rem; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.5px; }
.wizard-step.active .step-label { color: var(--red); }

/* Campos */
.field-group { margin-bottom: 1.2rem; position: relative; }
label { font-size: 0.75rem; font-weight: 600; color: var(--gray-700); display: block; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.3px; }
input, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  font-size: 0.9rem;
  transition: all 0.2s;
  background: white;
}

input:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-glow); outline: none; }

.button-group { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.btn-outline {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 40px;
  padding: 0.4rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-outline:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

/* Selector de vehículo */
.vehicle-selector {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.vehicle-card {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 0.8rem 0.3rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.vehicle-card:hover { transform: translateY(-2px); border-color: var(--red); }
.vehicle-card.selected { border-color: var(--red); background: var(--red-soft); box-shadow: 0 4px 12px var(--red-glow); }
.vehicle-card i { font-size: 1.5rem; color: var(--gray-600); display: block; margin-bottom: 0.3rem; }
.vehicle-card span { font-size: 0.7rem; font-weight: 600; color: var(--gray-600); }
.vehicle-card.selected i, .vehicle-card.selected span { color: var(--red); }

.discount-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Botón principal */
.btn-primary {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  border: none;
  border-radius: 40px;
  padding: 0.9rem;
  font-weight: 700;
  font-size: 0.9rem;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px var(--red-glow);
}

.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px var(--red-glow); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Mapa */
.map-panel {
  background: var(--gray-50);
  border-radius: 24px;
  border: 1px solid var(--gray-100);
  overflow: hidden;
  position: sticky;
  top: 5rem;
  height: fit-content;
  box-shadow: var(--shadow-lg);
}

.map-header { padding: 1rem; background: white; border-bottom: 1px solid var(--gray-100); }
.map-header h3 { font-size: 0.9rem; font-weight: 700; }
.map-header p { font-size: 0.7rem; color: var(--gray-600); }
#map { height: 450px; width: 100%; z-index: 1; border-radius: 0 0 24px 24px; }

/* Resultados */
.result-card {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #fafafa, #ffffff);
  border-radius: 20px;
  padding: 1.2rem;
  border: 1px solid var(--gray-100);
  display: none;
  box-shadow: var(--shadow-md);
}

.result-card.visible { display: block; animation: fadeInUp 0.4s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.result-row { display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.85rem; padding: 0.3rem 0; border-bottom: 1px dashed var(--gray-200); }
.result-label { font-weight: 500; color: var(--gray-600); }
.result-value { font-weight: 700; color: var(--gray-800); }
.total-row { border-top: 2px solid var(--gray-200); margin-top: 0.5rem; padding-top: 0.75rem; border-bottom: none; }
.total-row .result-value { color: var(--red); font-size: 1.2rem; font-weight: 800; }
.discount-row { background: var(--red-soft); border-radius: 12px; padding: 0.5rem 0.75rem; margin: 0.5rem 0; }
.discount-row .result-label, .discount-row .result-value { color: var(--red-dark); font-weight: 700; }
.negotiable-row { justify-content: center; margin-top: 0.8rem; text-align: center; border-bottom: none; }
.negotiable-text {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--red-soft);
  padding: 8px 12px;
  border-radius: 30px;
  display: inline-block;
  width: auto;
  color: var(--red-dark);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border: none;
  border-radius: 40px;
  padding: 0.7rem;
  font-weight: 800;
  width: 100%;
  margin-top: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,211,102,0.4); }

/* Footer */
.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
  font-size: 0.7rem;
  color: var(--gray-600);
}

/* Llantas */
.tires-selector { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }
.tire-option {
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; width: 44px; height: 44px;
  border: 2px solid var(--gray-200); border-radius: 40px;
  font-size: 0.9rem; font-weight: 700; transition: all 0.2s;
}

.tire-option:hover { border-color: var(--red); }
.tire-option.selected { border-color: var(--red); background: var(--red-soft); color: var(--red); }

/* Autocompletado */
.autocomplete-suggestions {
  position: absolute;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.autocomplete-suggestion { padding: 10px 14px; cursor: pointer; font-size: 0.8rem; border-bottom: 1px solid var(--gray-100); transition: background 0.1s; }
.autocomplete-suggestion:hover { background: var(--gray-50); }

.date-input { cursor: pointer; }

/* Marcadores personalizados mapa */
.custom-marker {
  background: transparent;
  border: none;
}

/* Responsive */
@media (max-width: 768px) {
  .vehicle-selector { grid-template-columns: repeat(3,1fr); }
  .nav-container { flex-direction: column; gap: 0.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .promo-banner { font-size: 0.7rem; padding: 0.5rem; }
  .whatsapp-float { padding: 8px 16px; font-size: 0.75rem; bottom: 1rem; right: 1rem; }
}