/* ═══════════════════════════════════════════════════════════
   oxperta-tracking — Estilos del widget
   Paleta extraída de express.oxperta.com
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --ox-primary:   #3573FC;   /* azul primario / texto destacado */
  --ox-blue-bar:  #335EEA;   /* barra progreso completada       */
  --ox-orange:    #F4B13E;   /* barra progreso activa           */
  --ox-text-dark: #253364;   /* texto oscuro / step items       */
  --ox-disabled:  #E3E3E3;   /* pasos futuros / línea timeline  */
  --ox-icon-bg:   rgba(81, 89, 108, 0.1); /* fondo icono suave  */
}

/* ── Custom spacing (Bootstrap va hasta *-5) ────────────────── */
.mb-6  { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 4rem !important; }
.pt-10 { padding-top:   4rem !important; }

/* ── Color primario Oxperta ─────────────────────────────────── */
.text-ox-primary { color: var(--ox-primary) !important; }
.ox-text-dark    { color: var(--ox-text-dark) !important; }

/* ── Contenedor principal con max-width ─────────────────────── */
.ox-container {
  max-width: 1200px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── col-fill (flex: 1 dentro de d-flex) ───────────────────── */
.col-fill {
  flex: 1;
  min-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   BARRA DE PROGRESO (4 pasos fijos)
   ═══════════════════════════════════════════════════════════ */

.progress-paso {
  height: 8px;
  border-radius: 2px;
  background-color: var(--ox-disabled);
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}

.progress-paso .progress-bar {
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Labels de pasos: inactivos en gris suave, activo en oscuro */
.pasos.disable .small {
  color: #adb5bd !important;
}

.pasos:not(.disable) .small {
  color: var(--ox-text-dark);
}

/* ═══════════════════════════════════════════════════════════
   STEP ICON (círculo de estado)
   ═══════════════════════════════════════════════════════════ */

.step-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}

/* Círculo gris/suave — eventos pasados y pasos no activos */
.step-icon-soft-secondary {
  background-color: var(--ox-icon-bg);
  color: var(--ox-text-dark);
}

/* Círculo azul relleno — paso activo y último evento / fase ENTREGADO
   El color se aplica via style inline desde el helper */
.step-icon-filled {
  background-color: var(--ox-primary);
  color: white;
}

/* Círculo rojo — tipo INCIDENCIA */
.step-icon-danger {
  background-color: #DC3545;
  color: white;
}

/* Círculo naranja — tipo ALERTA */
.step-icon-warning {
  background-color: var(--ox-orange);
  color: white;
}

/* ═══════════════════════════════════════════════════════════
   TIMELINE (histórico de eventos)
   ═══════════════════════════════════════════════════════════ */

.step {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-item {
  position: relative;
}

.step-item:not(:last-child) {
  padding-bottom: 1.75rem;
}

/* Línea vertical que conecta los círculos */
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0.9375rem;          /* centro del icono 2rem = 16px / 2 = 0.9375rem */
  top: 2.25rem;
  bottom: 0;
  width: 2px;
  background-color: var(--ox-disabled);
  transform: translateX(-50%);
}

.step-content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-content {
  flex: 1;
  min-width: 0;
  padding-top: 0.2rem;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ox-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.step-text {
  font-size: 0.8125rem;
  color: #6c757d;
  margin-bottom: 0;
  margin-top: 0.125rem;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — barra de progreso vertical
   En mobile (d-flex) el paso tiene [col-1 barra | col-fill label+icono]
   La barra se convierte en una tira vertical de color
   ═══════════════════════════════════════════════════════════ */

/* ── Info row: fila de datos del envío ──────────────────────── */
.ox-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ox-info-item {
  display: flex;
  flex-direction: column;
  background: #f8f9fc;
  border: 1px solid #eaedf5;
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  min-width: 160px;
  flex: 1;
}

.ox-info-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a93b0;
  margin-bottom: 0.25rem;
}

.ox-info-label i {
  color: var(--ox-primary);
  margin-right: 0.3rem;
}

.ox-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ox-text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
  .ox-info-item {
    min-width: calc(50% - 0.375rem);
    flex: none;
  }
}

/* ── Search card ─────────────────────────────────────────────── */
.ox-search-card {
  background: var(--ox-text-dark);   /* navy #253364 */
  border-radius: 16px;
  padding: 2rem 2.5rem;
}

.ox-search-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.625rem !important;
}

.ox-search-form {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.ox-search-input {
  flex: 1;
  min-width: 200px;
  height: 3rem;
  border-radius: 8px !important;
  border: none;
  font-size: 1rem;
  padding: 0 1rem;
}

.ox-search-btn {
  height: 3rem;
  padding: 0 2rem;
  background: var(--ox-orange);
  color: var(--ox-text-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 50px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}

.ox-search-btn:hover {
  background: #e0a030;
}

@media (max-width: 575.98px) {
  .ox-search-card { padding: 1.5rem 1.25rem; }
  .ox-search-input { min-width: 0; width: 100%; }
  .ox-search-btn   { width: 100%; }
}

/* ── Timeline empty state ────────────────────────────────────── */
.ox-timeline-empty {
  color: #adb5bd;
  font-size: 0.95rem;
}

/* ── Espacio reservado para MKT ──────────────────────────────── */
.ox-mkt-space {
  min-height: 3rem;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

/* ── Responsive general ─────────────────────────────────────── */
@media (max-width: 767.98px) {
  .pasos .progress-paso {
    width: 8px;
    height: 100%;
    min-height: 48px;
    margin-bottom: 0 !important;
    margin-right: 0.75rem;
  }

  .pasos .progress-paso .progress-bar {
    width: 8px !important;
    height: 100% !important;
  }

  .pasos .col-fill {
    padding-top: 0.125rem;
  }
}
