* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-color: #ffffff;
  padding: 20px;
  color: #222;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: bold;
}

/* El contenedor del mapa DEBE tener una altura explícita para Leaflet */
#map {
  width: 100%;
  height: 380px;
  border: 1px solid #999;
  border-radius: 4px;
  margin-bottom: 12px;
}

.controls {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

button {
  padding: 5px 12px;
  font-size: 12px;
  background-color: #f0f0f0;
  border: 1px solid #aaa;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

button:hover:not(:disabled) {
  background-color: #e0e0e0;
  border-color: #888;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.history-section h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: bold;
}

#lista-posiciones {
  list-style-type: disc;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
}