/* ===== Contenedor de categoría ===== */
.categoria {
  margin: 2rem auto;
  padding: 1rem;
  max-width: 1100px;
  width: 100%;
}

/* Título de categoría */
.categoria h2 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
  color: #007b5e;
  border-left: 6px solid #007b5e;
  padding-left: 10px;
}

/* ===== Contenedor de productos en grid ===== */
.productos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center; /* Centra cuando hay pocos productos */
  gap: 1.5rem;
}

/* ===== Tarjeta de producto ===== */
.producto {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px; /* Todas las tarjetas tendrán un mínimo de alto */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* Imagen */
.producto img {
  width: 100%;
  max-height: 200px;
  object-fit: contain; /* Mantiene la proporción sin recortar */
  border-radius: 12px;
  margin-bottom: 0.8rem;
  background: #f9f9f9; /* Fondo neutro para imágenes pequeñas */
  padding: 5px;
}

/* Texto */
.producto p {
  margin: 0.4rem 0;
  font-size: 1rem;
  color: #333;
}

.producto p:first-of-type {
  font-weight: 600;
  font-size: 1.05rem;
}

.producto p:last-of-type {
  color: #007b5e;
  font-weight: bold;
}

/* Botón de detalles */
.producto form button {
  margin-top: auto; /* Mantiene el botón al final */
  background: #007b5e;
  border: none;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.producto form button:hover {
  background: #005f47;
}
