/* Consulta pública de seguimiento: solo estados, sin datos personales. */
.tracking-page {
  padding: clamp(42px, 6vw, 88px) 20px 100px;
  background: radial-gradient(circle at 50% -130px, #fff 0, #f5f5f7 44%, #eceef1 100%);
  color: #1b1b1f;
}
.tracking-shell { width: min(100%, 930px); margin-inline: auto; }
.tracking-intro { margin: 0 auto 36px; text-align: center; }
.tracking-intro .eyebrow, .tracking-result .eyebrow { color: #c60000; }
.tracking-intro h1 { margin: 12px 0; font-size: clamp(34px, 5vw, 60px); line-height: 1.1; letter-spacing: -0.04em; }
.tracking-intro p { max-width: 630px; margin: 0 auto; color: #61636c; font-size: clamp(16px, 2vw, 19px); line-height: 1.6; }
.tracking-card, .tracking-result { border: 1px solid #dedfe4; border-radius: 20px; padding: clamp(22px, 4vw, 40px); background: #fff; box-shadow: 0 18px 52px rgb(20 20 30 / 6%); }
.tracking-card-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 32px; }
.tracking-card-icon { display: grid; flex: 0 0 56px; height: 56px; place-items: center; border-radius: 14px; background: #ffe8e8; color: #d30000; }
.tracking-card-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.tracking-card-heading h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.025em; }
.tracking-card-heading p { margin: 0; color: #666973; line-height: 1.5; }
#tracking-form label { display: block; margin-bottom: 10px; font-weight: 750; }
.tracking-form-row { display: flex; gap: 12px; min-width: 0; }
.tracking-form-row input { flex: 1; min-width: 0; min-height: 58px; border: 1px solid #c9cbd3; border-radius: 10px; padding: 0 18px; background: #fff; color: #1b1b1f; font: inherit; font-size: 18px; font-weight: 650; letter-spacing: 0.03em; }
.tracking-form-row input::placeholder { color: #92949b; font-weight: 500; }
.tracking-form-row input:focus { border-color: #d50000; outline: 3px solid rgb(237 0 0 / 15%); }
.tracking-form-row input[aria-invalid="true"] { border-color: #bd0000; }
.tracking-form-row button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; border: 0; border-radius: 10px; padding: 0 27px; background: #ed0000; color: #fff; font: inherit; font-weight: 800; white-space: nowrap; cursor: pointer; }
.tracking-form-row button:hover { background: #c90000; }
.tracking-form-row button:focus-visible { outline: 3px solid #1b1b1f; outline-offset: 3px; }
.tracking-form-row button:disabled { opacity: 0.66; cursor: wait; }
.tracking-help { margin: 12px 0 0; color: #666973; font-size: 14px; line-height: 1.5; }
.tracking-help strong { color: #34353a; white-space: nowrap; }
.tracking-message { margin: 14px 0 0; min-height: 21px; color: #555964; font-size: 14px; line-height: 1.5; }
.tracking-message:empty { display: none; }
.tracking-message[data-kind="error"] { color: #a60000; font-weight: 650; }
.tracking-result { margin-top: 22px; }
.tracking-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tracking-result-heading h2 { margin: 8px 0 0; font-size: clamp(22px, 3vw, 29px); overflow-wrap: anywhere; }
.tracking-status-badge { display: inline-flex; align-items: center; min-height: 34px; border-radius: 999px; padding: 5px 14px; background: #e7f4eb; color: #17733d; font-size: 13px; font-weight: 800; white-space: nowrap; }
.tracking-status-badge.is-cancelled { background: #ffebeb; color: #a60000; }
.tracking-status-badge.is-pending { background: #eef0f3; color: #464b55; }
.tracking-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 34px 0 0; padding: 0; list-style: none; }
.tracking-steps[hidden] { display: none; }
.tracking-steps li { position: relative; min-width: 0; padding: 45px 12px 0 0; color: #858791; }
.tracking-steps li:not(:last-child)::after { position: absolute; top: 14px; right: 0; left: 24px; height: 3px; background: #e3e4e8; content: ""; }
.tracking-step-dot { position: absolute; z-index: 1; top: 3px; left: 0; display: grid; width: 26px; height: 26px; place-items: center; border: 3px solid #d9dce2; border-radius: 50%; background: #fff; }
.tracking-steps li.is-complete .tracking-step-dot, .tracking-steps li.is-current .tracking-step-dot { border-color: #e00000; background: #e00000; }
.tracking-steps li.is-complete .tracking-step-dot::after { width: 8px; height: 4px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); content: ""; }
.tracking-steps li.is-current .tracking-step-dot::after { width: 7px; height: 7px; border-radius: 50%; background: #fff; content: ""; }
.tracking-steps li.is-complete:not(:last-child)::after { background: #e00000; }
.tracking-steps li.is-complete, .tracking-steps li.is-current { color: #292b31; }
.tracking-steps strong { display: block; font-size: 16px; }
.tracking-steps p { margin: 5px 0 0; color: #757882; font-size: 13px; line-height: 1.45; }
.tracking-cancelled { margin: 25px 0 0; border-radius: 10px; padding: 17px 18px; background: #fff0f0; color: #8d1212; font-weight: 650; line-height: 1.5; }
@media (max-width: 760px) {
  .tracking-page { padding: 30px 14px 82px; }
  .tracking-intro { margin-bottom: 25px; }
  .tracking-card, .tracking-result { border-radius: 16px; padding: 22px 18px; }
  .tracking-card-heading { gap: 12px; margin-bottom: 25px; }
  .tracking-card-icon { flex-basis: 48px; height: 48px; }
  .tracking-card-heading h2 { font-size: 20px; }
  .tracking-card-heading p { font-size: 14px; }
  .tracking-form-row { flex-direction: column; }
  .tracking-form-row button { width: 100%; }
  .tracking-result-heading { align-items: flex-start; flex-direction: column; }
  .tracking-steps { grid-template-columns: 1fr; margin-top: 20px; }
  .tracking-steps li { padding: 0 0 27px 42px; }
  .tracking-steps li:last-child { padding-bottom: 0; }
  .tracking-step-dot { top: 0; }
  .tracking-steps li:not(:last-child)::after { top: 25px; bottom: 0; left: 12px; width: 3px; height: auto; }
}
