/* Destacados */
.destacados_contenedor {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 26px 0;
}
#ver_todo_destacados{
  text-decoration: underline;
  cursor: pointer;
}
.producto_destacado {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.producto_destacado .body {
  flex-grow: 1; /* Ocupa el espacio restante */
  display: flex;
  flex-direction: column;
}
.producto_destacado:hover {
  /* Mueve el elemento 3 píxeles hacia arriba (eje Y negativo) */
  transform: translateY(-3px);
}
.descripcion_del_producto {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
  min-height: 3em;
  padding: 0.5rem;
  text-align: center;
}
.precio_del_producto {
  display: flex;
  justify-content: center;
  gap: 8px;
}
/* precio actual */
.precio_actual {
  color: #d32f2f;
  font-weight: bold;
  font-size: 1.4rem;
}
/* precio anterior */
.precio_anterior {
  color: #888;
  text-decoration: line-through;
  font-size: 0.9rem;
}
/* Boton */
.contenedor_btn_añadir{
  padding: 10px;
}
.contenedor_btn_añadir button{
  width: 100%;
  background: #ffdede;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center; /* También centra verticalmente */
}
.contenedor_btn_añadir  button:hover {
  background: #f2c4c4;
}
.contenedor_precio{
  margin-top: auto;  /* Empuja el contenido hacia abajo */
}
/* En móviles — mostrar todos (incluido el sexto) */
@media (max-width: 768px) {
  .destacados_contenedor {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  }
  .destacados_contenedor article.producto_destacado:nth-child(6) {
    display: flex; /* o block, dependiendo del layout */
  }
}
