* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  padding: 20px;
}

.form-moto-container {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.descripcion {
  margin-bottom: 15px;
  font-size: 16px;
  color: #333;
  text-align: center;
}

form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

select,
input[type="number"],
button {
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  flex: 1 1 180px;
  min-width: 150px;
}

button {
  background-color: #007BFF;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

button:hover {
  background-color: #0056b3;
}

/* Responsividad para pantallas chicas */
@media (max-width: 600px) {
  form {
    flex-direction: column;
  }

  select,
  input[type="number"],
  button {
    flex: none;
    width: 100%;
    padding: 8px;
    font-size: 14px;
    height: auto;
  }

  .price-label {
    font-size: 11px;
  }


}

/* Animación de la rueda giratoria */
.loader {
  border: 4px solid #f3f3f3; /* Fondo */
  border-top: 4px solid #3498db; /* Color de la rueda */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
}

/* Animación de giro */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.price-line-container {
  position: relative;
  height: 30px;
  margin: 20px 0;
  background-color: transparent;
  border-top: 2px solid #ccc;
  width: 100%;
}

.price-marker {
  position: absolute;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 2px solid #333;
}

.price-marker.min {
  left: 0%;
  background-color: rgb(255, 166, 0);
}

.price-marker.avg {
  left: 50%;
  background-color: green;
}

.price-marker.max {
  left: 100%;
  background-color: rgb(77, 77, 235);
}

.price-values {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

.promo-section {
  margin-top: 1rem;
  padding: 0.8rem;
  border-top: 1px solid #ccc;
  text-align: center;
  font-size: 14px;
  color: #333;
}

.promo-text {
  margin-bottom: 0.5rem;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  background-color: #25d366;
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.whatsapp-button:hover {
  background-color: #1ebe5d;
}

.whatsapp-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}
