/* Kiosco 24 — tienda online pública */
:root {
  --bg: #f9fafb; --ink: #111827; --muted: #6b7280; --line: #e5e7eb; --acc: #e11d48; --acc-ink: #fff; --noche: #4338ca;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
.t-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.t-head { background: #111827; color: #fff; position: sticky; top: 0; z-index: 5; }
.t-head-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.t-head h1 { margin: 0; font-size: 1.35rem; }
.t-head h1 a { color: #fff; text-decoration: none; }
.t-sub { margin: 2px 0 0; color: #d1d5db; font-size: .85rem; }
.t-cart-btn { background: var(--acc); color: var(--acc-ink); border: 0; border-radius: 99px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.t-aviso { background: #fff; border-left: 4px solid var(--acc); padding: 10px 14px; border-radius: 8px; margin: 14px 0 8px; }
.t-aviso-off { border-color: #9ca3af; }
.t-tarifa { font-size: .88rem; color: var(--muted); margin: 6px 0; }
.t-tarifa.is-noche { color: var(--noche); font-weight: 600; }
.t-buscar input { width: 100%; padding: 13px 16px; font: inherit; font-size: 1.05rem; border: 1px solid #d1d5db; border-radius: 12px; margin: 8px 0; }
.t-cats { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.t-cats button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; font: inherit; white-space: nowrap; cursor: pointer; }
.t-cats button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; padding-bottom: 20px; }
.t-card { background: #fff; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.t-img { aspect-ratio: 1; display: grid; place-items: center; background: #f3f4f6; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.t-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.t-img span { font-size: 2rem; opacity: .35; }
.t-card h3 { font-size: .92rem; font-weight: 500; margin: 0 0 2px; line-height: 1.25; flex: 1; }
.t-marca { font-size: .78rem; color: var(--muted); margin: 0 0 6px; }
.t-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 6px; }
.t-card-foot b { font-size: 1.1rem; }
.t-add { background: var(--acc); color: #fff; border: 0; border-radius: 8px; padding: 7px 10px; font: inherit; font-weight: 600; cursor: pointer; }
.t-qty { display: inline-flex; align-items: center; gap: 6px; }
.t-qty button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 1.05rem; cursor: pointer; }
.t-center { text-align: center; } .t-vacio { color: var(--muted); padding: 30px 0; text-align: center; grid-column: 1 / -1; }
.t-btn { display: inline-block; width: 100%; background: var(--acc); color: #fff; border: 0; border-radius: 12px; padding: 14px; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; text-align: center; text-decoration: none; }
.t-btn:disabled { opacity: .6; }
.t-btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); width: auto; padding: 10px 20px; }
.t-drawer { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 10; display: flex; justify-content: flex-end; }
.t-drawer[hidden] { display: none; }
.t-drawer-in { background: #fff; width: min(440px, 100%); height: 100%; overflow-y: auto; padding: 16px; }
.t-drawer-head { display: flex; justify-content: space-between; align-items: center; }
.t-drawer-head h2 { margin: 0; }
.t-x { border: 0; background: none; font-size: 1.4rem; cursor: pointer; }
.t-line { display: grid; grid-template-columns: 1fr auto 80px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.t-line small { color: var(--muted); } .t-line b { text-align: right; }
.t-cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; padding: 14px 0; }
.t-form label { display: block; margin-bottom: 10px; font-size: .9rem; font-weight: 500; }
.t-form input, .t-form select { display: block; width: 100%; margin-top: 4px; padding: 11px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; }
.t-hp { position: absolute !important; left: -9999px; }
.t-err { color: #b91c1c; min-height: 1em; }
.t-small { font-size: .8rem; color: var(--muted); }
.t-foot { padding: 30px 16px; text-align: center; color: var(--muted); font-size: .85rem; }
.t-foot a { color: inherit; }
/* seguimiento */
.t-seg { max-width: 520px; text-align: center; padding-top: 24px; padding-bottom: 40px; }
.t-codigo { font-family: ui-monospace, Consolas, monospace; font-size: 3rem; font-weight: 800; letter-spacing: .15em; margin: 0 0 16px; }
.t-pasos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: .8rem; }
.t-pasos li { padding: 10px 4px; background: #e5e7eb; border-radius: 6px; color: var(--muted); }
.t-pasos li.ok { background: #d1fae5; color: #065f46; }
.t-pasos li.actual { background: #059669; color: #fff; font-weight: 700; }
.t-estado { font-size: 1.3rem; font-weight: 700; }
.t-lista { list-style: none; padding: 0; text-align: left; }
.t-lista li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 480px) {
  .t-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .t-cart-btn span { display: none; }
}
