body {
  font-family: "Segoe UI", sans-serif;
  background: black;
  color: #222;
  margin: 0;
  padding: 0;
}

.contenedor {
  max-width: 800px;
  margin: 2rem auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 2rem;
}

h1, h2 {
  text-align: center;
  color: #1a237e;
}

.bloque-seleccion {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.bloque-seleccion label {
  flex: 1 0 200px;
}

select, input[type="number"] {
  flex: 2;
  padding: 0.4rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.btn {
  background-color: #1e88e5;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background-color: #1565c0;
}

.btn.rojo {
  background-color: #e53935;
}

.btn.rojo:hover {
  background-color: #c62828;
}

.btn.grande {
  font-size: 1.1rem;
  padding: 0.8rem 1.4rem;
  display: block;
  margin: 1.5rem auto;
}

.bloque-lista {
  margin-top: 1.5rem;
}

#listaSeleccionados {
  list-style: none;
  padding: 0;
}

#listaSeleccionados li {
  background: #f1f3f4;
  padding: 0.5rem 1rem;
  margin-bottom: 0.4rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-eliminar {
  background: #ef5350;
  border: none;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}

.btn-eliminar:hover {
  background: #d32f2f;
}

.flecha-volver {
  display: inline-flex;
  justify-content: center;
  width: 48px;
  height: 48px;
  text-decoration: none;
  color: #333;
  position: absolute;
  top: 25px;
  left: 25px;
  background-color: #f0f0f0;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  overflow: hidden;
}

.flecha-volver span {
  font-size: 42px; /* solo la flecha se escala */
  line-height: 1;
  display: inline-block;
  margin-top:-2px;
}

.flecha-volver:hover {
  background-color: #ddd;
}
