 /* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: #f9fafb;
  margin: 0;
  padding: 0;
  color: #333;
}

/* Header */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.logo img {
  max-width: 160px;
  height: auto;
}

.search-bar {
  flex: 1 1 400px;
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.search-bar form {
  display: flex;
  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  gap: 10px;
  width: 100%;
  max-width: 600px;
}

.search-bar input,
.search-bar select {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  flex: 1;
  background-color: #fff;
}

.search-bar button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-bar button:hover {
  background-color: #0056b3;
}

/* Contenedor de resultados */
.categoria-container {
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px;
}

.sidebar {
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.sidebar h3 {
  margin-bottom: 16px;
  font-size: 18px;
  color: #1b5e20;
}

.sidebar select,
.sidebar button {
  margin: 6px 8px 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  min-width: 160px;
}

.sidebar button {
  background-color: #1b5e20;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.sidebar button:hover {
  background-color: #146a1e;
}


.grid-autos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.car-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 24px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.car-card img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.car-card:hover img {
  transform: scale(1.05);
}

.car-card h4 {
  font-size: 16px;
  color: #1a1a1a;
  font-weight: 600;
  margin: 4px 0;
}

.car-card h5 {
  font-size: 15px;
  font-weight: 400;
  color: #555;
  margin: 0 0 10px;
}

.car-card p {
  font-size: 16px;
  color: #007bff;
  font-weight: bold;
  margin-bottom: 18px;
}

.car-card button {
  background-color: #1b5e20;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.car-card button:hover {
  background-color: #146a1e;
}


/* Footer */
footer {
  background-color: #fff;
  color: #555;
  padding: 40px 20px 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.02);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
  justify-content: space-between;
}

.footer-section h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #000;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 6px;
}

.footer-section ul li a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #007bff;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  color: #999;
  font-size: 13px;
  border-top: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 768px) {
  .search-bar {
    justify-content: center;
    margin-top: 20px;
  }

  .search-bar form {
    flex-direction: column;
  }

  .search-bar input,
  .search-bar select,
  .search-bar button {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
.recomendado-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 30px;
  border-left: 8px solid #007bff;
}

.recomendado-badge {
  background-color: #007bff;
  color: #fff;
  padding: 6px 16px;
  font-weight: bold;
  display: inline-block;
  font-size: 14px;
  margin: 20px;
  border-radius: 20px;
}

.recomendado-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px;
  gap: 20px;
}

.recomendado-info {
  flex: 1;
  min-width: 250px;
}

.recomendado-info h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #222;
}

.recomendado-info p {
  color: #555;
  margin-bottom: 10px;
}

.recomendado-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.recomendado-list li {
  margin-bottom: 6px;
  color: #333;
}

.precio-recomendado {
  font-weight: bold;
  font-size: 18px;
  color: #007bff;
}

.recomendado-img {
  flex: 0 0 260px;
  text-align: center;
}

.recomendado-img img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}
/* Modelo Destacado */
.destacado-mejor-modelo {
  display: flex;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #004aad 0%, #0075e1 100%);
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 30px;
  margin-bottom: 40px;
}

.destacado-izquierda {
  flex: 1;
  min-width: 280px;
  padding-right: 20px;
}

.destacado-etiqueta {
  background: #ffffff;
  color: #004aad;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.destacado-mejor-modelo {
  display: flex;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #004aad 0%, #0075e1 100%);
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 30px;
  margin-bottom: 40px;
}

.destacado-derecha img {
  max-height: 320px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .destacado-mejor-modelo {
    flex-direction: column;
    text-align: center;
  }

  .destacado-izquierda {
    padding: 20px;
  }

  .destacado-derecha img {
    max-width: 100%;
    max-height: 200px;
    margin: 20px auto;
  }
}


.destacado-etiqueta {
  background: #ffffff;
  color: #004aad;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.modelo-nombre {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 700;
  text-decoration: underline;
}

.seccion h4 {
  font-size: 16px;
  margin-bottom: 6px;
  text-decoration: underline;
}

.pros, .contras {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}

.pros li::before {
  content: "✔️";
  color: #00ffcc;
  margin-right: 8px;
}

.contras {
  display: none !important; /* los contras se ocultan siempre */
}

.destacado-precio {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
}

.btn-destacado {
  margin-top: 20px;
  background-color: #ffffff;
  color: #004aad;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.btn-destacado:hover {
  background-color: #f2f2f2;
}

.destacado-derecha {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.destacado-derecha img {
  max-height: 300px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.destacado-derecha img:hover {
  transform: scale(1.05);
}
.destacado-derecha img {
  max-height: 320px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .destacado-mejor-modelo {
    flex-direction: column;
    text-align: center;
  }

  .destacado-izquierda {
    padding: 20px;
  }

  .destacado-derecha img {
    max-width: 100%;
    max-height: 200px;
    margin: 20px auto;
  }
}
 

  .pros, .contras {
    text-align: left;
    padding-left: 20px;
  }
 