/* ==========================================================================
   "Seguí tu pedido" (seguimiento.html). Usa style.css y, de checkout.css y legal.css, la barra de arriba y el pie.
   ========================================================================== */
.tk { width: min(820px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(28px, 6vw, 64px) 0 72px; }
.tk__head h1 { margin: 0; font: 800 clamp(34px, 7vw, 56px)/1.02 var(--font-head); letter-spacing: -0.03em; }
.tk__head h1 em { font-style: normal; }
.tk__lead { margin: 14px 0 0; max-width: 56ch; font-size: 16px; line-height: 1.6; color: var(--muted); }
.tk__lead b { color: var(--ink); font-weight: 600; }

/* el número de pedido */
.tk__form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 26px; }
.tk__field { position: relative; display: block; min-width: 0; }
.tk__field svg { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.tk__field input { width: 100%; height: 56px; padding: 0 16px 0 50px; border-radius: 16px; border: 1px solid var(--line-2); background: #111117; color: var(--ink);
  font: 700 18px/1 var(--font-head); letter-spacing: 0.05em; text-transform: uppercase; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.tk__field input::placeholder { color: #949087; font-weight: 600; }
.tk__field input:focus { border-color: rgba(230, 182, 85, 0.7); box-shadow: 0 0 0 3px rgba(230, 182, 85, 0.13); }
.tk__form .btn { height: 56px; justify-content: center; }
.tk__err { grid-column: 1 / -1; margin: 0; color: #fca5a5; font-size: 14px; line-height: 1.45; }
.tk__err:empty { display: none; }

/* el estado */
.tk__result { margin-top: 30px; outline: none; scroll-margin-top: 84px; }
.tk-state { --tk-bg: #12110f; padding: clamp(20px, 4vw, 30px); border-radius: 22px; border: 1px solid rgba(230, 182, 85, 0.32); background: var(--tk-bg); }
.tk-state.is-ok { --tk-bg: #0e1310; border-color: rgba(74, 222, 128, 0.4); }
.tk-state.is-bad { --tk-bg: #151010; border-color: rgba(248, 113, 113, 0.4); }
.tk-state__id { margin: 0; color: var(--muted); font-size: 13.5px; }
.tk-state__id b { color: var(--gold-2); font-family: var(--font-head); letter-spacing: 0.03em; }
.tk-state h2 { margin: 10px 0 0; font: 800 clamp(24px, 4.6vw, 34px)/1.12 var(--font-head); letter-spacing: -0.02em; }
.tk-state > p:not(.tk-state__id) { margin: 10px 0 0; max-width: 60ch; font-size: 15.5px; line-height: 1.6; color: #d6d1c6; }

/* los pasos: en fila en la computadora, en columna en el celular */
.tk-steps { --dot: 30px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 26px 0 0; padding: 0; list-style: none; }
.tk-steps li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 0 4px; }
.tk-steps li + li::before { content: ""; position: absolute; top: calc(var(--dot) / 2 - 1px); right: 50%; width: 100%; height: 2px; background: var(--line-2); }
.tk-steps li.is-done + li::before { background: var(--gold); }
.tk-steps__dot { position: relative; z-index: 1; display: grid; place-items: center; width: var(--dot); height: var(--dot); border-radius: 50%; border: 2px solid var(--line-2); background: var(--tk-bg); }
.tk-steps__dot svg { width: 16px; height: 16px; fill: none; stroke: #1a1405; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tk-steps .is-done .tk-steps__dot { border-color: var(--gold); background: var(--gold); }
.tk-steps .is-now .tk-steps__dot { border-color: var(--gold); }
.tk-steps .is-now .tk-steps__dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.tk-state.is-ok .is-done .tk-steps__dot { border-color: var(--ok); background: var(--ok); }
.tk-state.is-ok .tk-steps li.is-done + li::before { background: var(--ok); }
.tk-state.is-bad .is-now .tk-steps__dot { border-color: #f87171; }
.tk-state.is-bad .is-now .tk-steps__dot::after { background: #f87171; }
.tk-steps__txt { display: grid; gap: 3px; }
.tk-steps__txt b { font: 700 13px/1.25 var(--font-head); color: var(--muted); }
.tk-steps .is-done .tk-steps__txt b, .tk-steps .is-now .tk-steps__txt b { color: var(--ink); }
.tk-steps__txt small { color: var(--muted); font-size: 12px; }

/* tarjetas: movimientos y detalle */
.tk-card { margin-top: 16px; padding: clamp(18px, 3.6vw, 24px); border: 1px solid var(--line); border-radius: 18px; background: #0c0c10; }
.tk-card h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; font: 800 16px var(--font-head); }
.tk-card h2 small { color: var(--muted); font: 500 12.5px var(--font-body); }
.tk-events { margin: 0; padding: 0; list-style: none; }
.tk-events li { position: relative; display: grid; grid-template-columns: 118px 1fr; gap: 0 18px; padding: 0 0 16px 22px; }
.tk-events li:last-child { padding-bottom: 0; }
.tk-events li::before { content: ""; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); background: #0c0c10; }
.tk-events li::after { content: ""; position: absolute; left: 4px; top: 17px; bottom: -3px; width: 2px; background: var(--line); }
.tk-events li:last-child::after { display: none; }
.tk-events li.is-last::before { border-color: var(--gold); background: var(--gold); }
.tk-events time { color: var(--muted); font-size: 13px; line-height: 1.5; white-space: nowrap; }
.tk-events p { margin: 0; display: grid; gap: 2px; }
.tk-events b { font-weight: 600; font-size: 14.5px; line-height: 1.45; color: #d6d1c6; }
.tk-events li.is-last b { color: var(--ink); }
.tk-events span { color: var(--muted); font-size: 12.5px; }

.tk-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tk-items li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; }
.tk-items img, .tk-items i { width: 52px; height: 52px; border-radius: 12px; background: #15151c; object-fit: contain; }
.tk-items span { display: grid; gap: 2px; min-width: 0; }
.tk-items b { font: 700 14.5px/1.3 var(--font-head); }
.tk-items small { color: var(--muted); font-size: 12.5px; }
.tk-items em { font-style: normal; color: var(--muted); font-size: 14px; white-space: nowrap; }
.tk-data { display: grid; gap: 12px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.tk-data div { display: grid; grid-template-columns: 150px 1fr; gap: 4px 14px; }
.tk-data dt { color: var(--muted); font-size: 13px; }
.tk-data dd { margin: 0; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.tk-data dd small { display: block; color: var(--muted); font-size: 12.5px; }
.tk-data code { font: 700 14px/1.4 ui-monospace, Consolas, monospace; letter-spacing: 0.03em; }
.tk-link { display: inline-flex; align-items: center; min-height: 24px; margin-left: 8px; padding: 0; border: 0; background: none; color: var(--gold); font: 600 13px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tk-note { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.tk-note b { color: var(--ink); font-weight: 600; }
.tk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ayuda, mientras no hay un pedido a la vista */
.tk__help { margin-top: 34px; padding: clamp(18px, 4vw, 26px); border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.02); }
.tk__help h2 { margin: 0; font: 700 17px/1.3 var(--font-head); }
.tk__help p { margin: 8px 0 16px; max-width: 60ch; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

@media (max-width: 640px) {
  .tk__form { grid-template-columns: 1fr; }
  .tk__form .btn { width: 100%; }
  .tk-steps { grid-auto-flow: row; gap: 0; }
  .tk-steps li { grid-template-columns: var(--dot) 1fr; justify-items: start; align-items: start; gap: 14px; text-align: left; padding: 0 0 18px; }
  .tk-steps li:last-child { padding-bottom: 0; }
  .tk-steps li + li::before { display: none; }
  .tk-steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--dot) / 2 - 1px); top: var(--dot); bottom: 0; width: 2px; background: var(--line-2); }
  .tk-steps li.is-done:not(:last-child)::after { background: var(--gold); }
  .tk-state.is-ok .tk-steps li.is-done:not(:last-child)::after { background: var(--ok); }
  .tk-steps__txt { padding-top: 6px; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; }
  .tk-steps__txt b { font-size: 14.5px; }
  .tk-events li { grid-template-columns: 1fr; }
  .tk-data div { grid-template-columns: 1fr; }
  .tk-actions .btn { width: 100%; justify-content: center; }
}
