/* --- Colores Basados en la Imagen --- */
:root {
  --dark-bg: #151927; /* Fondo principal oscuro (Navy muy oscuro) */
  --card-bg: #212531; /* Fondo de tarjetas y secciones */
  --text-light: #f8f9fa; /* Texto principal claro */
  --text-muted: #adb5bd; /* Texto secundario grisáceo */
  --accent: #5e72e4; /* Color de acento (Azul/Morado) */
  --input-bg: #2d3345; /* Fondo de inputs/selects */
  --btn-custom: #7868e6; /* Botón principal, ligeramente más morado */
}

/* Estilos Generales */
html,
body {
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  background-color: #0d1016 !important; /* Navbar más oscuro que el fondo */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.navbar-brand {
  font-weight: 800;
  color: var(--accent) !important;
  font-size: 1.5rem;
}
.nav-link {
  color: var(--text-muted) !important;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--text-light) !important;
}
.form-control.search-input {
  background-color: var(--card-bg);
  border: 1px solid #3d4458;
  color: var(--text-light);
}
.btn-outline-info {
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline-info:hover {
  background-color: var(--accent);
  color: var(--text-light);
}

/* Estructura del Contenedor */
.main-content {
  padding-top: 30px;
}

/* --- Sidebar (Filtros y Hero de Texto) --- */
.sidebar-container {
  padding: 0;
}

/* Texto Principal en Sidebar */
.hero-sidebar {
  background: transparent;
  padding: 0;
  margin-bottom: 25px;
}
.hero-sidebar h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-light);
}
.hero-sidebar p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-sidebar .bi-geo-alt-fill {
  color: var(--accent);
  font-size: 1.8rem;
  vertical-align: top;
}

/* Filtros */
.filters-box {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
.filters-box h5 {
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 15px;
}
.form-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 3px;
}
.form-select,
.form-control {
  background-color: var(--input-bg);
  border: 1px solid #3d4458;
  color: var(--text-light);
  border-radius: 6px;
}
.form-select option {
  background-color: var(--input-bg);
}
.form-select:focus,
.form-control:focus {
  background-color: var(--input-bg);
  color: var(--text-light);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(94, 114, 228, 0.25);
}
.btn-apply-filters {
  background-color: var(--btn-custom);
  border-color: var(--btn-custom);
  color: var(--text-light);
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.btn-apply-filters:hover {
  background-color: #695ac9;
  border-color: #695ac9;
}

/* --- Hero Banner y Contenido Principal --- */

/* Hero Banner (Imagen de Promoción) */
.hero-banner {
  position: relative;
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
.hero-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
}
.hero-text-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(13, 16, 22, 0.8);
  color: var(--text-light);
  padding: 10px 15px;
  border-radius: 6px;
  text-align: right;
  font-size: 1.2rem;
  font-weight: 700;
}

/* Secciones (Más Vendidos, etc.) */
section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-light);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 5px;
  display: inline-block;
}
/* Icono de Estrella para Más Vendidos */
section h2.highlighted::before {
  content: '\2605'; /* Estrella */
  margin-right: 10px;
  color: var(--accent);
}

/* Cards de Autos */
.card {
  background-color: var(--card-bg);
  border: 1px solid #3d4458;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(94, 114, 228, 0.2);
}
.card-img-top {
  height: 180px;
  object-fit: cover;
  width: 100%;
}
.card-body {
  padding: 15px;
}
.card-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-light);
}
.card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #17a2b8; /* Precio en turquesa para contraste con el acento morado */
}
.btn-details {
  border-color: var(--text-muted);
  color: var(--text-muted);
  border-radius: 6px;
}
.btn-buy {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-light);
  border-radius: 6px;
  font-weight: 600;
}
.btn-buy:hover {
  background-color: #5163c4;
  border-color: #5163c4;
}

/* Secciones de Utilidad (Cotización/Contacto) */
.utility-section {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 1px solid #3d4458;
}
.utility-section h2 {
  border-bottom-color: #17a2b8; /* Turquesa para separar estas secciones */
}
.btn-submit {
  background-color: var(--btn-custom);
  border-color: var(--btn-custom);
  font-weight: 600;
}
.btn-submit:hover {
  background-color: #695ac9;
  border-color: #695ac9;
}
.contact-info li {
  margin-bottom: 10px;
  color: var(--text-light);
}
.contact-info .bi {
  color: var(--accent);
  margin-right: 8px;
}
.map-container {
  border: 1px solid #3d4458;
  border-radius: 6px;
  overflow: hidden;
}
.map-container iframe {
  filter: invert(90%) hue-rotate(180deg); /* Intento de modo oscuro para el mapa */
}

/* Footer */
footer {
  margin-top: 40px;
  padding: 20px 0;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid #3d4458;
  text-align: justify;
}
footer a {
  color: var(--accent);
  text-decoration: none;
  text-align: justify;
}
footer a:hover {
  color: var(--text-light);
  text-align: justify;
}



.auto-card {
    background-color: #0a0f24;
    border: 1px solid #1a2a50;
    border-radius: 15px;
    color: white;
    transition: transform .3s, box-shadow .3s;
}

.auto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(0, 123, 255, .6);
}

.auto-img {
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.auto-title {
    color: #74B9FF;
    font-weight: bold;
}

.auto-km {
    font-size: 14px;
    color: #f1f1f1;
}

.auto-price {
    color: #19FFDC;
    font-weight: bold;
    text-shadow: 0 0 6px #19FFDC;
}

.btn-buy {
    background-color: #0084ff;
    color: white;
    border-radius: 10px;
    transition: 0.3s;
}

.btn-buy:hover {
    background-color: #00aaff;
}


