* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f4f4f4;
  touch-action: pan-x pan-y; /* Permite gestos táctiles */
  overflow: auto; /* ✅ Permite scroll con el dedo */
}

#map {
  flex: 1;
  height: 60vh;
  width: 100%;
  touch-action: auto; /* ✅ Permite mover el mapa libremente */
}

#info, #extras {
  padding: 1rem;
  background: white;
  border-top: 1px solid #ccc;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

#info {
  font-size: 1rem;
  text-align: center;
  color: #333;
}

#extras {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

label {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

input[type="number"],
input[type="text"] {
  width: 100%;
  max-width: 300px;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#costo {
  font-weight: bold;
  font-size: 1.1rem;
  color: #2d2d2d;
}

#enviarBtn {
  width: fit-content;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#enviarBtn:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

#enviarBtn:hover:not(:disabled) {
  background-color: #0056b3;
}

@media (min-width: 768px) {
  #map {
    height: 70vh;
  }

  #extras {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
  }

  #extras > div, label, input, #costo {
    margin-right: 1rem;
  }
}
