/* Carga Inteligente — estilos táctiles */

/* ── Range slider más grueso y táctil ── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 9999px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f172a;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f172a;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* ── Celdas de precio en tabla ── */
.celda-precio {
  transition: transform .08s ease;
  cursor: default;
  min-width: 28px;
}
.celda-precio:active { transform: scale(1.15); }

/* ── Strip de días (selector) ── */
#diasStrip {
  -webkit-overflow-scrolling: touch;
  overflow-x: scroll !important;
  scroll-behavior: auto;
}
#diasStrip::-webkit-scrollbar { display: none; }

.dia-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #f8fafc;
  cursor: pointer;
  transition: all .15s ease;
  min-width: 60px;
  -webkit-tap-highlight-color: transparent;
}
.dia-btn .dia-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #94a3b8;
}
.dia-btn .dia-fecha {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
}
.dia-btn .dia-badge {
  font-size: 0.65rem;
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 600;
  margin-top: 1px;
}

/* Pasado */
.dia-btn.pasado { opacity: 0.6; }
.dia-btn.pasado .dia-badge { background: #f1f5f9; color: #94a3b8; }

/* Hoy */
.dia-btn.hoy { background: #f0fdf4; border-color: #22c55e; }
.dia-btn.hoy .dia-label { color: #15803d; }
.dia-btn.hoy .dia-badge { background: #22c55e; color: #fff; }

/* Futuro estimado */
.dia-btn.futuro { background: #eff6ff; }
.dia-btn.futuro .dia-badge { background: #93c5fd; color: #1e40af; }

/* Seleccionado */
.dia-btn.seleccionado {
  background: #0f172a;
  border-color: #0f172a;
  opacity: 1;
}
.dia-btn.seleccionado .dia-label,
.dia-btn.seleccionado .dia-fecha { color: #fff; }
.dia-btn.seleccionado .dia-badge { background: #22c55e; color: #fff; }

/* ── Inputs táctiles ── */
input[type="number"],
input[type="time"],
select {
  min-height: 44px;
  font-size: 1rem;
}

/* ── Botones táctiles ── */
button, .btn {
  min-height: 44px;
}

/* ── Links del menú móvil más altos ── */
#mobileMenu a {
  min-height: 48px;
  display: flex;
  align-items: center;
}

/* Botones de día compactos en escritorio */
@media (min-width: 1024px) {
  .dia-btn {
    padding: 5px 8px;
    min-width: unset;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    border-radius: 8px;
    gap: 6px;
  }
  .dia-btn .dia-fecha {
    font-size: 0.8rem;
  }
  .dia-btn .dia-label {
    font-size: 0.7rem;
    width: 28px;
  }
  .dia-btn .dia-badge {
    font-size: 0.6rem;
    padding: 1px 4px;
  }
}

/* Chart.js responsive dentro del contenedor */
#chartWrap canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
}