/* ====== SECCIÓN AUTOS ====== */

.autos-header {
  text-align: center;
  margin-bottom: 2rem;
}

.autos-header h1 {
  font-size: 2.5rem;
  color: #2563eb; /* azul oscuro */
}

.autos-header p {
  color: #9bb0c6;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

#buscador {
  width: 60%;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: background 0.3s;
}

#buscador:focus {
  background: rgba(255, 255, 255, 0.15);
}

/* ==== TARJETAS DE AUTOS ==== */
.cars-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.auto-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.45);
  padding: 20px;
  width: calc(33.33% - 26px); /* 3 por fila */
  min-width: 260px;
  text-align: center;
  transition: all .3s ease;
}

.auto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  filter: brightness(1.2);
}

.auto-img {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  margin-bottom: 10px;
  background-color: #0b1220;
  transition: all 0.4s ease;
}

/* Efecto al pasar el mouse */
.auto-img:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  filter: brightness(1.2);
}

.auto-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 10px 0;
}

.auto-card p {
  font-size: 0.9rem;
  color: #9bb0c6;
  margin-bottom: 8px;
}

.precio {
  font-weight: bold;
  color: #2563eb; /* azul oscuro */
  display: block;
  margin: 10px 0;
}

.btn {
  background: linear-gradient(90deg, #0ea5a4, #2563eb);
  border: none;
  border-radius: 8px;
  color: white;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  opacity: 0.9;
}

/* === Responsividad === */
@media (max-width: 1000px) {
  .auto-card { width: calc(50% - 26px); } /* 2 por fila */
}

@media (max-width: 650px) {
  .auto-card { width: 100%; } /* 1 por fila */
}
