body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f6f4f8;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #6b4c9a;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

input[type="text"],
input[type="number"],
select {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

button {
  background-color: #6b4c9a;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #543a7b;
}

.lista-productos {
  margin-top: 20px;
}

.producto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ede7f6;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.producto span {
  font-size: 15px;
  color: #444;
}

.producto-buttons {
  display: flex;
  gap: 8px;
}

.producto-buttons button {
  background-color: #b39ddb;
  color: #fff;
  padding: 6px 10px;
}

.producto-buttons button:hover {
  background-color: #9575cd;
}

.vaciar-btn {
  background-color: #e57373;
}

.vaciar-btn:hover {
  background-color: #d32f2f;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-contenido {
  background-color: #fff;
  margin: 100px auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-contenido h2 {
  color: #6b4c9a;
  margin-bottom: 20px;
}

.modal-contenido .form-group {
  flex-direction: column;
}

.modal-contenido input,
.modal-contenido select {
  margin-bottom: 10px;
}

.modal-contenido .modal-buttons {
  text-align: right;
}

.modal-contenido .modal-buttons button {
  margin-left: 10px;
}
