main {
  margin: 0 3% 0 3%;
}

/* Sección segunda mano */
.segunda-mano h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  color: #222;
}

/* Grid de coches */
#segundaManoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Tarjeta */
#segundaManoGrid .destacadoCard {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

#segundaManoGrid .destacadoCard:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Imagen del coche */
.destacadoImagen {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.destacadoImagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.destacadoImagen img:hover {
  transform: scale(1.05);
}

/* Contenido de la tarjeta */
.destacadoCard h3 {
  margin: 15px 15px 5px 15px;
  font-size: 18px;
  color: #333;
}

.destacadoCard .infoCoche {
  display: flex;
  justify-content: space-between;
  margin: 0 15px 10px 15px;
  font-size: 14px;
  color: #555;
}

.destacadoCard .precio {
  margin: 0 15px 15px 15px;
  font-weight: 600;
  color: #000;
  font-size: 16px;
}

/* Botón de la tarjeta */
.destacadoCard button {
  margin: 0 15px 15px 15px;
  padding: 8px 12px;
  border: none;
  background-color: #000;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.destacadoCard button:hover {
  background-color: #222;
}

/* Filtros */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 25px;
}

.filtros label {
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

.filtros input {
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-top: 5px;
  width: 120px;
}

.filtros button {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background-color: #000;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.filtros button:hover {
  background-color: #222;
}

/* Responsive */
@media (max-width: 600px) {
  .filtros {
    flex-direction: column;
    align-items: center;
  }
  .filtros input {
    width: 100%;
  }
}