/* ======================================================
   TRACKING PAGE
====================================================== */

.register-page {
  padding: 60px 20px;
  background: var(--bg-light);
}

.register-card {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 12px;
  box-sizing: border-box;
}

/* ======================================================
   HEADER
====================================================== */

.tracker-head {
  text-align: center;
  margin-bottom: 32px;
}

.register-title {
  margin: 0 0 10px;
}

.register-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
}

/* ======================================================
   ALERTAS
====================================================== */

.register-alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 8px;
}

.register-alert.success {
  background: rgba(34, 197, 94, .10);
  color: #166534;
}

.register-alert.error {
  background: rgba(239, 68, 68, .10);
  color: #991b1b;
}

/* ======================================================
   MENSAJE PREALERTADO
====================================================== */

.tracking-status-message {
  ma*gin-bottom: 24px;
  padding: 18px *0px;

  background: rgba(59,130,24*,.10);
  border-left: 5px solid #2*63eb;
  border-radius: 10px;

  co*or: #1e3a8a;
}

.tracking-status-m*ssage h3 {
  margin: 0 0 8px;
}

.tracking-status-message p {
  margin: 0;
  line-height: 1.5;
}
/* ======================================================
   FORMULARIO
====================================================== */

.tracking-form {
  max-width: 900px;
  margin: 0 auto 30px;
}

.tracking-label {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.tracking-row {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.tracking-input-wrap {
  flex: 1;
}

.tracking-input-wrap input {
  width: 100%;
  height: 62px;

  padding: 0 20px;

  border: none;

  background: #d9d9d9;

  color: #666;

  font-size: 16px;

  box-sizing: border-box;
}

.tracking-input-wrap input::placeholder {
  color: #666;
}

.tracking-input-wrap input:focus {
  outline: none;
  background: #d2d2d2;
}

.tracking-btn {
  width: 240px;

  height: 62px;

  border: none;

  background: #fc9906;

  color: #ffffff;

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;

  transition: background .2s ease;
}

.tracking-btn:hover {
  background: #ea580c;
}

/* ======================================================
   STATUS CARD
====================================================== */

.status-card {
  background: #eeeeee;
  border: 1px solid #ddd;
  border-radius: 12px;

  padding: 40px 30px;
  margin-top: 30px;
}

/* ======================================================
   TIMELINE DESKTOP
====================================================== */

.status-steps {
  display: flex;
  flex-direction: row;

  justify-content: space-between;
  align-items: flex-start;

  position: relative;

  margin: 0;
  padding: 0;

  list-style: none;
}

.status-steps::before {
  content: "";

  position: absolute;

  top: 36px;
  left: 8%;
  right: 8%;

  border-top: 2px dashed #cfcfcf;

  z-index: 0;
}

.step {
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;

  position: relative;

  z-index: 1;
}

.step .dot {
  width: 72px;
  height: 72px;

  border-radius: 50%;

  background: #f9fafb;

  border: 2px dashed #cfcfcf;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 12px;

  font-size: 22px;
}

.step .label {
  text-align: center;

  max-width: 90px;

  line-height: 1.3;

  font-size: 13px;

  font-weight: 600;

  color: #777;
}

/* ESTADO ACTIVO */

.step.is-active .dot {
  background: var(--accent);
  color: white;
  border: none;

  transform: scale(1.08);
}

.step.is-active .label {
  color: var(--accent);
  font-weight: 700;
}

/* COMPLETADO */

.step.is-done .dot {
  border: 2px solid var(--accent);

  background: white;

  color: var(--accent);
}

.step.is-done .label {
  color: var(--accent);
}

/* ======================================================
   RESULTADOS
====================================================== */

.results {
  margin-top: 30px;
}

.results-title {
  margin-bottom: 15px;
  text-align: center;
}

/* ======================================================
   TABLA
====================================================== */

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  padding: 12px;

  text-align: center;

  border-bottom: 1px solid #ddd;
}

.orders-table th {
  background: #f3f4f6;
  font-weight: 600;
}

.orders-table tr:hover {
  background: #fafafa;
}

/* ======================================================
   BADGES
====================================================== */

.status-badge {
  display: inline-block;

  padding: 5px 10px;
  border-radius: 20px;

  font-size: 12px;
  font-weight: 600;
}

.status-en-origen {
  color: #2563eb;
  background: rgba(37,99,235,.12);
}

.status-en-transito {
  color: #d97706;
  background: rgba(217,119,6,.12);
}

.status-en-aduanas {
  color: #7c3aed;
  background: rgba(124,58,237,.12);
}

.status-liberado {
  color: #0891b2;
  background: rgba(8,145,178,.12);
}

.status-entregado {
  color: #059669;
  background: rgba(5,150,105,.12);
}

/* ======================================================
   TABLET
====================================================== */

@media (max-width: 1024px) {

  .step .dot {
    width: 64px;
    height: 64px;
  }

  .step .label {
    max-width: 75px;
    font-size: 12px;
  }
}/* ======================================================
   MOBILE TRACKING
====================================================== */

@media (max-width: 768px) {

  .register-page {
    padding: 20px 12px;
  }

  .register-card {
    padding: 20px 16px;
    border-radius: 12px;
  }

  /* ==========================================
     FORM
  ========================================== */

  .tracking-form {
    width: 100%;
    margin-bottom: 24px;
  }

  .tracking-label {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .tracking-row {

    display: flex;

    flex-direction: column;

    gap: 12px;

    width: 100%;
  }

  .tracking-input-wrap {

    width: 100%;
  }

  .tracking-input-wrap input {

    width: 100%;

    height: 56px;

    padding: 0 16px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    background: #f3f4f6;

    font-size: 16px;

    box-sizing: border-box;
  }

  .tracking-btn {

    width: 100%;

    height: 56px;

    border-radius: 10px;

    font-size: 16px;
  }

  /* ==========================================
     STATUS CARD
  ========================================== */

  .status-card {

    padding: 20px 16px;

    margin-top: 20px;

    overflow: hidden;
  }

  /* ==========================================
     TIMELINE VERTICAL
  ========================================== */

  .status-steps {

    display: flex;

    flex-direction: column;

    gap: 18px;

    align-items: stretch;
  }

  .status-steps::before {
    display: none;
  }

  .step {

    display: grid;

    grid-template-columns: 56px 1fr;

    align-items: center;

    gap: 14px;

    text-align: left;

    width: 100%;
  }

  .step .dot {

    width: 56px;
    height: 56px;

    margin: 0;

    flex-shrink: 0;

    font-size: 18px;
  }

  .step .label {

    max-width: none;

    font-size: 15px;

    text-align: left;

    line-height: 1.4;
  }

  /* ==========================================
     RESULTS TABLE
  ========================================== */

  .table-scroll {

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
  }

  .orders-table {

    min-width: 420px;
  }

  .orders-table th,
  .orders-table td {

    padding: 8px;

    font-size: 13px;
  }

}
@media (max-width: 480px) {

  .register-card {
    padding: 16px 12px;
  }

  .tracking-input-wrap input,
  .tracking-btn {
    height: 54px;
  }

  .step .dot {
    width: 50px;
    height: 50px;
  }

  .step .label {
    font-size: 14px;
  }

  .orders-table {
    min-width: 360px;
  }

}