/* Tueste · café de barrio — app conceptual de Alphyx (v7). Identidad propia, aislada con el prefijo tu-:
 * no comparte estilos con Alphyx ni con Estudio Espacios.
 * Tokens (ver README): superficie #f1f2ed (gris claro con matiz de grano verde), tinta espresso #1e1a17,
 * tinta secundaria #58524c, acento «azul de sello» #2941a3 y una escala de tueste (verde → oscuro) como
 * única señal de color. Sin serif: sans del sistema (display 800 con tracking negativo) y monoespaciada para
 * precios, números de pedido y la comanda.
 * Sin JS (html sin .tu-js): las pantallas se leen una tras otra y los controles que solo sirven con JS se ocultan.
 * Movimiento en tueste.js; aquí solo transiciones cortas de estado y los estados previos a revelarse. */

:root {
  --tu-bg: #f1f2ed; --tu-card: #fff; --tu-ink: #1e1a17; --tu-ink-2: #58524c; --tu-line: #d6d7ce;
  --tu-blue: #2941a3; --tu-blue-dk: #1f3486; --tu-blue-soft: #e3e7f5; --tu-page: #e6e7df; --tu-danger: #a3261e;
  --r1: #a8ad7e; --r2: #c9a15a; --r3: #a86a34; --r4: #6b3f24; --r5: #2e1d14;
  --tu-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tu-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --tu-ease: cubic-bezier(.22,1,.36,1);
  --tu-bar-h: 52px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.tu-page { margin: 0; background: var(--tu-page); color: var(--tu-ink); font: 16px/1.45 var(--tu-sans); }
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--tu-blue); }
:focus-visible { outline: 3px solid var(--tu-blue); outline-offset: 2px; }
.tu-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
html:not(.tu-js) .tu-js-only { display: none !important; }
.tu-js .tu-nojs-only { display: none !important; }

/* ——— Marca y firma ——— */
.tu-mark { position: relative; display: inline-block; font-weight: 800; letter-spacing: -.045em; text-transform: lowercase; padding-bottom: .16em; }
.tu-mark::after { content: ""; position: absolute; left: .04em; right: .08em; bottom: 0; height: .12em; min-height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--r1) 0 20%, var(--r2) 20% 40%, var(--r3) 40% 60%, var(--r4) 60% 80%, var(--r5) 80%); }
.tu-roast { display: inline-flex; gap: 3px; vertical-align: middle; }
.tu-roast i { display: block; width: 14px; height: 6px; border-radius: 2px; background: #dcddd4; }
.tu-roast i.on:nth-child(1) { background: var(--r1); } .tu-roast i.on:nth-child(2) { background: var(--r2); } .tu-roast i.on:nth-child(3) { background: var(--r3); }
.tu-roast i.on:nth-child(4) { background: var(--r4); } .tu-roast i.on:nth-child(5) { background: var(--r5); }

/* ——— Barra de la demo y escenario ——— */
.tu-skip { position: absolute; left: 12px; top: -80px; z-index: 50; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--tu-ink); color: #fff; border-radius: 10px; text-decoration: none; }
.tu-skip:focus { top: 8px; }
.tu-demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; min-height: var(--tu-bar-h); padding: 4px 20px; border-bottom: 1px solid #d3d4cb; background: var(--tu-page); }
.tu-demo-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; padding-right: 6px; font-weight: 600; text-decoration: none; }
.tu-demo-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.tu-demo-back .tu-ico { width: 20px; height: 20px; }
.tu-demo-label { font: 500 13px/1.3 var(--tu-mono); color: var(--tu-ink-2); }
.tu-stage { padding: 28px 24px 0; }
.tu-stage-grid { display: grid; grid-template-columns: minmax(220px, 300px) auto minmax(220px, 300px); grid-template-areas: "intro device tour" "notes device tour"; grid-template-rows: auto 1fr; gap: 28px 48px; justify-content: center; max-width: 1280px; margin: 0 auto; }
.tu-stage-intro { grid-area: intro; padding-top: 24px; }
.tu-notes { grid-area: notes; }
.tu-device { grid-area: device; }
.tu-tour { grid-area: tour; padding-top: 24px; }
.tu-stage-intro h1 { display: grid; gap: 4px; font-weight: 800; }
.tu-mark--big { font-size: 64px; line-height: .95; }
.tu-h1-sub { font-size: 22px; font-weight: 600; color: var(--tu-ink-2); letter-spacing: -.01em; }
.tu-intro { margin: 18px 0 16px; font-size: 17px; color: var(--tu-ink-2); max-width: 30ch; }
.tu-side-kicker { font-size: 14px; font-weight: 600; color: var(--tu-ink-2); letter-spacing: 0; }
.tu-note { margin-top: 10px; padding: 18px 0 0; border-top: 2px solid var(--tu-ink); }
.tu-note-screen { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.tu-note-text { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--tu-ink-2); max-width: 34ch; }
.tu-note-all { display: grid; gap: 14px; margin-top: 12px; }
.tu-note-all dt { font-weight: 700; }
.tu-note-all dd { color: var(--tu-ink-2); }
.tu-tour-list { list-style: none; display: grid; gap: 2px; margin-top: 10px; padding-top: 14px; border-top: 2px solid var(--tu-ink); }
.tu-tour-list li { display: flex; align-items: center; gap: 12px; min-height: 36px; font-size: 15px; color: var(--tu-ink-2); }
.tu-tour-mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #b9bab0; color: #fff; transition: background-color .25s var(--tu-ease), border-color .25s var(--tu-ease); }
.tu-tour-mark .tu-ico { width: 15px; height: 15px; stroke-width: 2.4; stroke-dasharray: 24; stroke-dashoffset: 24; }
.tu-tour-list li[data-done] { color: var(--tu-ink); }
.tu-tour-list li[data-done] .tu-tour-mark { background: var(--tu-blue); border-color: var(--tu-blue); }
.tu-tour-list li[data-done] .tu-tour-mark .tu-ico { stroke-dashoffset: 0; }
.tu-reset { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; padding: 0 16px; border: 1.5px solid var(--tu-ink); border-radius: 999px; background: transparent; font-weight: 600; cursor: pointer; }
.tu-reset:hover { background: #dcddd4; }
.tu-side-note { margin-top: 14px; font-size: 13px; color: var(--tu-ink-2); max-width: 30ch; }
.tu-noscript { max-width: 640px; margin: 24px auto 0; padding: 14px 16px; border-radius: 12px; background: var(--tu-blue-soft); }

/* ——— Teléfono dibujado (≥ 601 px) ——— */
.tu-device-frame { position: relative; width: 414px; height: clamp(640px, calc(100svh - var(--tu-bar-h) - 56px), 860px); padding: 12px; border-radius: 54px; background: #1e1a17; box-shadow: 0 0 0 1.5px #3b342e inset, 0 40px 80px -20px #2b221a66, 0 12px 24px -12px #2b221a55; }
.tu-device-frame::before { content: ""; position: absolute; top: 20px; left: 50%; width: 64px; height: 6px; margin-left: -32px; border-radius: 6px; background: #3b342e; z-index: 5; }

/* ——— App ——— */
.tu-app { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; height: 100%; overflow: hidden; border-radius: 42px; background: var(--tu-bg); color: var(--tu-ink); }
.tu-app:focus { outline: none; }
.tu-status { grid-row: 1; display: flex; justify-content: space-between; align-items: center; height: 36px; padding: 6px 30px 0; font-weight: 700; font-size: 14px; }
.tu-bat { display: block; width: 24px; height: 11px; border: 1.5px solid var(--tu-ink); border-radius: 3px; position: relative; }
.tu-bat::after { content: ""; position: absolute; inset: 1.5px 6px 1.5px 1.5px; background: var(--tu-ink); border-radius: 1px; }
.tu-viewport { grid-row: 2; position: relative; min-height: 0; overflow: hidden; }
.tu-screen { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--tu-bg); }
.tu-js .tu-screen:not(.is-active):not(.is-leaving) { display: none; }
.tu-js .tu-app:not(.is-ready) .tu-screen[data-screen="inicio"] { display: grid; }
.tu-screen.is-leaving { pointer-events: none; }
.tu-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 28px; scroll-padding-block: 16px; }
.tu-body > * + *, [data-cart-list] > * + *, [data-confirm-summary] > * + *, [data-track] > * + *, [data-orders] > * + * { margin-top: 16px; }
[data-track] > .tu-ticket-wrap { margin-top: -7px; }

/* Barras de pantalla: nada se superpone al área con scroll, así ninguna barra tapa el foco. */
.tu-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 12px 8px 16px; }
.tu-bar h2 { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.tu-bar h2:focus { outline: none; }
.tu-bar h2:focus-visible { outline: 3px solid var(--tu-blue); outline-offset: 2px; border-radius: 4px; }
.tu-bar-sub { font-size: 15px; }
.tu-bar-sub .tu-mark { font-size: 19px; }
.tu-bar--sub { display: grid; grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr); align-items: center; padding-left: 4px; }
.tu-bar--sub h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; text-align: center; }
.tu-bar--sub .tu-cartbtn, .tu-bar-gap { justify-self: end; }
.tu-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; min-width: 44px; padding-right: 8px; font-weight: 600; text-decoration: none; justify-self: start; }
.tu-back .tu-ico { width: 24px; height: 24px; }
.tu-bar-gap { width: 44px; }
.tu-ico { width: 24px; height: 24px; flex: none; }
.tu-cartbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--tu-ink); background: #e2e3da; flex: none; }
.tu-cartbtn:hover { background: #d7d8ce; }
.tu-badge { position: absolute; top: -3px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--tu-blue); color: #fff; font: 700 12px/21px var(--tu-mono); text-align: center; box-shadow: 0 0 0 2px var(--tu-bg); }

/* Controles comunes */
.tu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer; transition: background-color .16s ease, transform .16s var(--tu-ease); }
.tu-btn:active, .tu-card:active, .tu-row:active, .tu-feat-card:active, .tu-step-btn:active { transform: scale(.97); }
.tu-btn--primary { background: var(--tu-blue); color: #fff; }
.tu-btn--primary:hover { background: var(--tu-blue-dk); }
.tu-btn--primary:disabled { background: #b8bbc9; color: #2b2e38; cursor: not-allowed; transform: none; }
.tu-btn--quiet { background: var(--tu-blue-soft); color: var(--tu-blue); }
.tu-btn--quiet:hover { background: #d6dcf1; }
.tu-btn--chosen { background: transparent; color: var(--tu-blue); border-color: var(--tu-blue); }
.tu-btn--chosen .tu-ico { width: 18px; height: 18px; stroke-width: 2.4; }
.tu-btn--wide { width: 100%; min-height: 52px; font-size: 16px; }
.tu-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.tu-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tu-link--btn { padding: 0; border: 0; background: none; color: var(--tu-blue); cursor: pointer; }
.tu-muted { color: var(--tu-ink-2); }
.tu-kicker { font-size: 13px; font-weight: 600; color: var(--tu-ink-2); }
.tu-lead { color: var(--tu-ink-2); font-size: 15px; }
.tu-price { font-family: var(--tu-mono); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tu-demo-price { display: inline-block; padding: 3px 8px; border: 1px dashed #8d877f; border-radius: 6px; font: 500 12px/1.4 var(--tu-mono); color: var(--tu-ink-2); }
.tu-body > .tu-demo-price { margin-top: 0; }

/* Fotos y marcadores */
.tu-media { position: relative; overflow: hidden; background: #d9dad1; }
.tu-fill, .tu-fill img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tu-fill img { object-fit: cover; }
.tu-ph { background: radial-gradient(120% 90% at 28% 18%, #ffffff8c, transparent 58%), linear-gradient(160deg, #e3e3dc, #cfcfc6); }
.tu-ph-note { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 5px; background: #f1f2edeb; font: 500 11px/1.4 var(--tu-mono); color: #4d4843; }

/* Inicio */
.tu-branch-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 16px; background: var(--tu-card); font-size: 14px; line-height: 1.35; }
.tu-branch-card b { display: block; font-size: 15px; }
.tu-branch-card .tu-muted { display: block; }
.tu-branch-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tu-bg); }
.tu-branch-card .tu-link { padding: 0 8px; }
.tu-hero .tu-media { aspect-ratio: 16 / 10; border-radius: 20px; }
.tu-siempre { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: var(--tu-card); }
.tu-siempre h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.tu-siempre p { margin-top: 2px; color: var(--tu-ink-2); font-size: 15px; }
.tu-siempre-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tu-siempre-actions .tu-btn--primary { flex: 1 1 auto; }
.tu-feat h3, .tu-group h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.tu-feat-list { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; margin: 10px -16px 0; padding: 2px 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
.tu-feat-list li { scroll-snap-align: start; }
.tu-feat-list li:last-child { scroll-snap-align: end; }
.tu-feat-card, .tu-card { display: grid; gap: 4px; width: 100%; padding: 6px 6px 12px; border: 0; border-radius: 18px; background: var(--tu-card); text-align: left; cursor: pointer; transition: transform .16s var(--tu-ease); position: relative; }
.tu-feat-photo, .tu-card-photo { aspect-ratio: 1; border-radius: 13px; margin-bottom: 4px; }
.tu-card-name { font-weight: 650; font-size: 15px; line-height: 1.25; padding: 0 4px; }
.tu-card .tu-price, .tu-feat-card .tu-price { padding: 0 4px; color: var(--tu-ink-2); }
.tu-add-dot { position: absolute; right: 12px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tu-blue); color: #fff; }
.tu-add-dot .tu-ico { width: 18px; height: 18px; stroke-width: 2.2; }
.tu-grain { display: grid; grid-template-columns: 40% 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 20px; background: var(--tu-card); }
.tu-grain-photo { aspect-ratio: 1; border-radius: 14px; }
.tu-grain h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.tu-grain p:not(.tu-kicker) { font-size: 14px; color: var(--tu-ink-2); margin: 2px 0 6px; }

/* Menú */
.tu-search { position: relative; }
.tu-search input { width: 100%; min-height: 46px; padding: 0 46px 0 42px; border: 1px solid #b7b8ae; border-radius: 14px; background: var(--tu-card); font-size: 16px; }
.tu-search input::placeholder { color: #6b655e; }
.tu-search input::-webkit-search-cancel-button { display: none; }
.tu-search-ico { position: absolute; left: 12px; top: 50%; margin-top: -11px; width: 22px; height: 22px; color: var(--tu-ink-2); pointer-events: none; }
.tu-search-clear { position: absolute; right: 1px; top: 1px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 12px; cursor: pointer; color: var(--tu-ink-2); }
.tu-search-clear .tu-ico { width: 18px; height: 18px; }
.tu-cats { position: relative; display: flex; gap: 6px; margin-inline: -16px; padding: 2px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.tu-cats::-webkit-scrollbar { display: none; }
.tu-cats button { position: relative; z-index: 1; flex: none; min-height: 44px; padding: 0 16px; border: 1px solid #c5c6bc; border-radius: 999px; background: transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: color .25s var(--tu-ease), border-color .25s var(--tu-ease); }
.tu-cats button[aria-pressed="true"] { color: #fff; background: var(--tu-ink); border-color: var(--tu-ink); }
.tu-cats.has-ind button[aria-pressed="true"] { background: transparent; }
.tu-cats-ind { position: absolute; left: 0; top: 2px; height: 44px; width: 0; border-radius: 999px; background: var(--tu-ink); pointer-events: none; z-index: 0; opacity: 0; transition: transform .25s var(--tu-ease), width .25s var(--tu-ease); }
.tu-cats.has-ind .tu-cats-ind { opacity: 1; }
.tu-group[hidden], .tu-item[hidden] { display: none; }
.tu-group h3 { margin-bottom: 10px; }
.tu-group-head { margin-bottom: 12px; }
.tu-group-photo { aspect-ratio: 16 / 9; border-radius: 16px; }
.tu-group-head p { margin-top: 8px; font-size: 14px; color: var(--tu-ink-2); }
.tu-cards { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tu-rows { list-style: none; margin-top: 6px; border-top: 1px solid var(--tu-line); }
.tu-cards + .tu-rows { margin-top: 14px; }
.tu-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; width: 100%; min-height: 64px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--tu-line); background: none; text-align: left; cursor: pointer; transition: transform .16s var(--tu-ease); }
.tu-row-text { display: grid; gap: 2px; }
.tu-row-name { font-weight: 650; font-size: 16px; }
.tu-row-origin { font: 500 12px/1.4 var(--tu-mono); color: var(--tu-ink-2); }
.tu-row-desc { font-size: 14px; color: var(--tu-ink-2); }
.tu-row-side { display: grid; justify-items: end; gap: 6px; padding-top: 2px; }
.tu-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 12px; text-align: center; color: var(--tu-ink-2); }
.tu-empty[hidden] { display: none; }
.tu-empty-t { font-size: 18px; font-weight: 800; color: var(--tu-ink); letter-spacing: -.02em; }
.tu-empty .tu-btn { margin-top: 10px; }
.tu-empty-ico .tu-ico { width: 40px; height: 40px; stroke-width: 1.4; }

/* Carrito */
.tu-lines { list-style: none; display: grid; gap: 10px; }
.tu-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px; border-radius: 18px; background: var(--tu-card); }
.tu-line-name { font-weight: 700; font-size: 16px; }
.tu-line-opts { grid-column: 1; font-size: 13px; color: var(--tu-ink-2); }
.tu-line-note { grid-column: 1 / -1; font-size: 13px; color: var(--tu-ink-2); font-style: italic; }
.tu-line .tu-price { grid-row: 1; grid-column: 2; font-size: 15px; }
.tu-line-ctrl { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.tu-stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--tu-bg); }
.tu-step-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--tu-ink); transition: transform .16s var(--tu-ease); }
.tu-step-btn .tu-ico { width: 20px; height: 20px; stroke-width: 2.2; }
.tu-step-btn:disabled { color: #9a958e; cursor: not-allowed; }
.tu-qty { min-width: 24px; text-align: center; font: 700 16px var(--tu-mono); }
.tu-remove { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 12px; background: none; color: var(--tu-danger); font-weight: 600; font-size: 14px; cursor: pointer; }
.tu-remove .tu-ico { width: 18px; height: 18px; }
.tu-fieldset { border: 0; padding: 0; min-width: 0; }
.tu-fieldset legend { padding: 0; margin-bottom: 8px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.tu-pick { display: grid; gap: 8px; }
.tu-radio { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border: 1.5px solid #c9cac0; border-radius: 16px; background: var(--tu-card); cursor: pointer; }
.tu-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tu-radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #8d877f; display: grid; place-items: center; }
.tu-radio-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tu-blue); transform: scale(0); transition: transform .2s var(--tu-ease); }
.tu-radio:has(input:checked) { border-color: var(--tu-blue); }
.tu-radio:has(input:checked) .tu-radio-dot { border-color: var(--tu-blue); }
.tu-radio:has(input:checked) .tu-radio-dot::after { transform: scale(1); }
.tu-radio:has(input:focus-visible) { outline: 3px solid var(--tu-blue); outline-offset: 2px; }
.tu-radio small { display: block; color: var(--tu-ink-2); font-size: 13px; }
.tu-times-wrap { overflow: hidden; }
.tu-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 8px; }
.tu-times[hidden] { display: none; }
.tu-chip { position: relative; display: grid; place-items: center; min-height: 44px; padding: 4px 10px; border: 1.5px solid #c9cac0; border-radius: 12px; background: var(--tu-card); font: 600 15px var(--tu-mono); cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.tu-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tu-chip:has(input:checked) { background: var(--tu-blue-soft); border-color: var(--tu-blue); color: var(--tu-blue); }
.tu-chip:has(input:focus-visible) { outline: 3px solid var(--tu-blue); outline-offset: 2px; }
.tu-sumbox { padding: 14px; border-radius: 18px; background: var(--tu-card); }
.tu-sumbox dl { display: grid; gap: 6px; }
.tu-sumbox dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.tu-sumbox dt { color: var(--tu-ink-2); }
.tu-sumbox .tu-total { padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--tu-line); font-size: 18px; font-weight: 800; }
.tu-sumbox .tu-total dt { color: var(--tu-ink); }
.tu-sumbox .tu-total .tu-price { font-size: 20px; font-weight: 800; }
.tu-sumbox .tu-demo-price { margin-top: 10px; }
.tu-where { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--tu-card); font-size: 14px; }
.tu-where b { display: block; font-size: 15px; }

/* Confirmación */
.tu-notice { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 14px; border-radius: 16px; background: var(--tu-blue-soft); color: #1b2a66; font-size: 14px; line-height: 1.5; }
.tu-notice .tu-ico { color: var(--tu-blue); }
.tu-sum-lines { list-style: none; display: grid; gap: 8px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--tu-line); }
.tu-sum-lines li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; font-size: 15px; }
.tu-sum-lines .tu-q { font-family: var(--tu-mono); font-weight: 700; }
.tu-sum-lines small { display: block; color: var(--tu-ink-2); font-size: 13px; }

/* Seguimiento: la comanda y la barra de tueste */
.tu-printer { position: relative; margin: 6px 6px 0; height: 14px; border-radius: 8px; background: var(--tu-ink); }
.tu-ticket-wrap { position: relative; margin: -7px 16px 0; overflow: hidden; padding-bottom: 12px; }
.tu-ticket { position: relative; padding: 20px 18px 26px; background: #fffefb; font-family: var(--tu-mono); font-size: 13px; line-height: 1.5; box-shadow: 0 10px 18px -12px #2b221a66; -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x; mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x; }
.tu-ticket-head { display: flex; justify-content: space-between; color: var(--tu-ink-2); font-size: 12px; }
.tu-ticket-no { display: block; margin: 6px 0 10px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--tu-ink); }
.tu-ticket ul { list-style: none; display: grid; gap: 4px; padding: 10px 0; border-block: 1px dashed #b7b1a8; }
.tu-ticket li { display: flex; justify-content: space-between; gap: 10px; }
.tu-ticket-foot { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 700; }
.tu-stamp { position: absolute; right: 14px; top: 48px; padding: 2px 10px; border: 3px solid var(--tu-blue); border-radius: 8px; color: var(--tu-blue); font: 800 24px/1.1 var(--tu-mono); letter-spacing: .06em; transform: rotate(-9deg); opacity: 0; }
.tu-ticket[data-status="listo"] .tu-stamp, .tu-ticket[data-status="recogido"] .tu-stamp { opacity: .92; }
.tu-progress { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: var(--tu-card); }
.tu-progress-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tu-progress-bar i { display: block; height: 10px; border-radius: 3px; background: #e3e4db; overflow: hidden; position: relative; }
.tu-progress-bar i::after { content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--tu-ease); }
.tu-progress-bar i:nth-child(1)::after { background: var(--r1); } .tu-progress-bar i:nth-child(2)::after { background: var(--r2); } .tu-progress-bar i:nth-child(3)::after { background: var(--r3); }
.tu-progress-bar i:nth-child(4)::after { background: var(--r4); } .tu-progress-bar i:nth-child(5)::after { background: var(--r5); }
.tu-progress-bar i.on::after { transform: scaleX(1); }
.tu-progress-bar i:nth-child(2)::after { transition-delay: .08s; } .tu-progress-bar i:nth-child(3)::after { transition-delay: .16s; } .tu-progress-bar i:nth-child(4)::after { transition-delay: .24s; } .tu-progress-bar i:nth-child(5)::after { transition-delay: .32s; }
.tu-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 13px; color: var(--tu-ink-2); }
.tu-steps li:nth-child(2) { text-align: center; } .tu-steps li:nth-child(3) { text-align: right; }
.tu-steps li[data-reached] { color: var(--tu-ink); font-weight: 700; }
.tu-state { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.tu-state-desc { font-size: 15px; color: var(--tu-ink-2); margin-top: -4px; }
.tu-eta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--tu-ink-2); }
.tu-eta .tu-ico { width: 18px; height: 18px; }
.tu-fast { font-size: 12px; color: var(--tu-ink-2); }
.tu-track-static ol { margin-top: 10px; padding-left: 20px; display: grid; gap: 6px; }

/* Mis pedidos */
.tu-orders-h { font-size: 13px; font-weight: 700; color: var(--tu-ink-2); }
.tu-orders { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.tu-order { display: grid; gap: 6px; padding: 14px; border-radius: 18px; background: var(--tu-card); }
.tu-order-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tu-order-no { font: 800 17px var(--tu-mono); }
.tu-chipstate { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: #e6e2d8; color: #4d3a26; }
.tu-chipstate[data-s="listo"] { background: var(--tu-blue-soft); color: var(--tu-blue); }
.tu-order-items { font-size: 14px; color: var(--tu-ink-2); }
.tu-order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Sucursales */
.tu-branches { list-style: none; display: grid; gap: 14px; }
.tu-branch { overflow: hidden; border-radius: 20px; background: var(--tu-card); }
.tu-branch-photo { aspect-ratio: 16 / 9; }
.tu-branch-text { display: grid; gap: 6px; padding: 14px; }
.tu-branch-text h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.tu-branch-dir { font-size: 14px; color: var(--tu-ink-2); }
.tu-hours { display: grid; gap: 2px; font-size: 14px; }
.tu-hours div { display: flex; justify-content: space-between; gap: 10px; }
.tu-hours dt { color: var(--tu-ink-2); }
.tu-hours dd { font-family: var(--tu-mono); font-size: 13px; }
.tu-branch-meta { font-size: 13px; color: var(--tu-ink-2); }
.tu-open { color: #2d5a2a; font-weight: 700; }
.tu-branch-text .tu-btn { justify-self: start; margin-top: 4px; }

/* Barra «Ver carrito» y pestañas */
.tu-cartbar { grid-row: 3; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 52px; margin: 0 12px 8px; padding: 0 16px; border-radius: 16px; background: var(--tu-ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.tu-cartbar[hidden] { display: none; }
.tu-cartbar-count { font: 600 13px var(--tu-mono); color: #d9d4cc; }
.tu-cartbar-total { font-family: var(--tu-mono); font-weight: 700; }
.tu-cartbar:focus-visible { outline-offset: 3px; }
.tu-tabs { grid-row: 4; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 6px 10px; border-top: 1px solid #dadbd2; background: var(--tu-bg); }
.tu-tabs a { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 56px; color: #5f5952; font-size: 12px; font-weight: 600; text-decoration: none; border-radius: 14px; }
.tu-tabs a[aria-current="page"] { color: var(--tu-ink); }
.tu-tabs a[aria-current="page"] .tu-ico { stroke-width: 2.2; }
.tu-tabs-ind { position: absolute; top: 8px; left: 0; width: 60px; height: 30px; border-radius: 15px; background: #dfe0d6; opacity: 0; transition: transform .25s var(--tu-ease), opacity .2s ease; pointer-events: none; }
.tu-tabs.has-ind .tu-tabs-ind { opacity: 1; }

/* Panel inferior */
.tu-sheet-layer { position: absolute; inset: 0; z-index: 30; }
.tu-sheet-layer[hidden] { display: none; }
.tu-scrim { position: absolute; inset: 0; background: #1a140f6b; }
.tu-sheet { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: 92%; border-radius: 26px 26px 0 0; background: var(--tu-bg); box-shadow: 0 -12px 40px -10px #1a140f59; }
.tu-sheet:focus { outline: none; }
.tu-sheet-top { position: relative; height: 26px; }
.tu-grab { position: absolute; left: 50%; top: 8px; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: #b3b4aa; }
.tu-sheet-close { position: absolute; right: 10px; top: 8px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #e2e3da; cursor: pointer; }
.tu-sheet-close .tu-ico { width: 20px; height: 20px; }
.tu-sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; scroll-padding-block: 16px; }
.tu-sheet-body > * + * { margin-top: 14px; }
.tu-sheet-photo { aspect-ratio: 16 / 10; border-radius: 18px; margin-right: 44px; }
.tu-sheet-title { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.tu-sheet-title:focus { outline: none; }
.tu-sheet-desc { color: var(--tu-ink-2); font-size: 15px; }
.tu-sheet-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tu-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.tu-opt { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border: 1.5px solid #c9cac0; border-radius: 14px; background: var(--tu-card); font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.tu-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tu-opt small { font: 500 12px var(--tu-mono); color: var(--tu-ink-2); }
.tu-opt:has(input:checked) { background: var(--tu-blue-soft); border-color: var(--tu-blue); color: var(--tu-blue); }
.tu-opt:has(input:checked) small { color: var(--tu-blue); }
.tu-opt:has(input:focus-visible) { outline: 3px solid var(--tu-blue); outline-offset: 2px; }
.tu-note-field label { display: block; margin-bottom: 6px; font-weight: 800; font-size: 17px; }
.tu-note-field textarea { width: 100%; min-height: 76px; padding: 10px 12px; border: 1px solid #b7b8ae; border-radius: 14px; background: var(--tu-card); resize: vertical; font-size: 16px; }
.tu-note-count { display: block; margin-top: 4px; font: 500 12px var(--tu-mono); color: var(--tu-ink-2); text-align: right; }
.tu-sheet-foot { display: flex; align-items: center; gap: 10px; padding: 10px 16px 14px; border-top: 1px solid #dadbd2; background: var(--tu-bg); }
.tu-sheet-foot .tu-btn--primary { flex: 1; min-height: 52px; font-size: 16px; }
.tu-sheet-foot .tu-stepper { background: #e2e3da; }
.tu-opt-list { display: grid; gap: 8px; margin-top: 10px; }
.tu-opt-list dt { font-weight: 700; }
.tu-opt-list dd { color: var(--tu-ink-2); font-size: 15px; }
.tu-nojs-sheet h2 { font-size: 22px; font-weight: 800; }

/* Rueda de cifras (adaptación de Rare UI animated-counter; ver THIRD_PARTY_NOTICES) */
.tu-roll { display: inline-flex; overflow: hidden; height: 1.3em; line-height: 1.3em; vertical-align: bottom; -webkit-mask: linear-gradient(to bottom, #0000 0%, #000 22%, #000 78%, #0000 100%); mask: linear-gradient(to bottom, #0000 0%, #000 22%, #000 78%, #0000 100%); }
.tu-roll-col { display: flex; flex-direction: column; }
.tu-roll-col span { display: block; height: 1.3em; text-align: center; }

/* Vuelo del producto a la bolsa */
.tu-fly { position: absolute; z-index: 40; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; pointer-events: none; box-shadow: 0 6px 16px -4px #1a140f66; background: var(--r3); }
.tu-fly .tu-media { width: 100%; height: 100%; }

/* ——— Sección «Cómo está diseñada» y pie ——— */
.tu-about { margin-top: 72px; padding: 88px 24px; background: #fff; }
.tu-about-in { max-width: 1120px; margin: 0 auto; }
.tu-about h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.tu-about-lead { margin-top: 16px; font-size: 19px; color: var(--tu-ink-2); max-width: 46ch; }
.tu-about-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.tu-about-card { display: grid; align-content: start; gap: 10px; padding: 24px 22px; border-radius: 22px; background: var(--tu-bg); }
.tu-about-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.tu-about-card p { font-size: 15px; color: var(--tu-ink-2); }
.tu-swatches { display: flex; gap: 4px; margin-top: 6px; }
.tu-swatches i { flex: 1; height: 34px; border-radius: 6px; background: var(--c); }
.tu-stamp-demo { justify-self: start; margin-top: 8px; padding: 2px 12px; border: 3px solid var(--tu-blue); border-radius: 8px; color: var(--tu-blue); font: 800 22px/1.2 var(--tu-mono); letter-spacing: .06em; transform: rotate(-6deg); }
.tu-icons-demo { display: flex; gap: 14px; margin-top: 6px; }
.tu-icons-demo .tu-ico { width: 30px; height: 30px; }
.tu-footer { padding: 44px 24px 56px; background: var(--tu-ink); color: #e6e3dd; font-size: 14px; }
.tu-footer-in { max-width: 1120px; margin: 0 auto; display: grid; gap: 14px; }
.tu-footer-mark { font-size: 22px; font-weight: 700; color: #fff; }
.tu-footer-mark .tu-mark { font-size: 26px; }
.tu-footer p { max-width: 80ch; }
.tu-footer a { color: #b9c6ff; }
.tu-footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.tu-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.tu-footer :focus-visible { outline-color: #b9c6ff; }
.tu-credits-title { font-weight: 600; color: #fff; }
.tu-credits-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0 18px; }
.tu-credits-list li { display: inline-flex; gap: 6px; align-items: center; }
.tu-credits-list a { display: inline-flex; align-items: center; min-height: 44px; }

/* Estados previos a revelarse: solo con JS, IntersectionObserver y movimiento permitido. */
.tu-motion .tu-reveal-pending { opacity: 0; transform: translateY(26px); }

/* ——— Sin JS: pantallas en secuencia ——— */
html:not(.tu-js) .tu-stage-grid { grid-template-columns: minmax(0, 720px); grid-template-areas: "intro" "device" "notes" "tour"; grid-template-rows: auto; }
html:not(.tu-js) .tu-device-frame { width: auto; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; }
html:not(.tu-js) .tu-device-frame::before, html:not(.tu-js) .tu-status { display: none; }
html:not(.tu-js) .tu-app { display: block; height: auto; border-radius: 0; background: none; overflow: visible; }
html:not(.tu-js) .tu-viewport { overflow: visible; display: grid; gap: 16px; }
html:not(.tu-js) .tu-screen, html:not(.tu-js) .tu-nojs-sheet { position: static; display: block; border-radius: 24px; padding-bottom: 8px; background: var(--tu-bg); }
html:not(.tu-js) .tu-nojs-sheet { padding: 20px 16px; }
html:not(.tu-js) .tu-body { overflow: visible; }

/* ——— Anchos ——— */
@media (max-width: 1099px) {
  .tu-stage-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "intro intro" "device device" "notes tour"; max-width: 760px; gap: 28px 36px; }
  .tu-device { justify-self: center; }
  .tu-stage-intro { padding-top: 8px; text-align: center; }
  .tu-stage-intro h1 { justify-items: center; }
  .tu-intro { margin-inline: auto; }
  .tu-tour { padding-top: 0; }
}
@media (max-width: 600px) {
  :root { --tu-bar-h: 60px; }
  .tu-demo-bar { padding: 4px 12px; }
  .tu-demo-back-long { display: none; }
  .tu-demo-label { font: 500 12px/1.3 var(--tu-sans); }
  .tu-stage { padding: 0; }
  .tu-js .tu-stage-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "device" "notes" "tour"; gap: 0; max-width: none; }
  .tu-js .tu-device { justify-self: stretch; }
  .tu-js .tu-stage-intro { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .tu-js .tu-device-frame { width: 100%; height: calc(100svh - var(--tu-bar-h)); min-height: 520px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .tu-device-frame::before, .tu-status { display: none; }
  .tu-js .tu-app { border-radius: 0; }
  .tu-js .tu-notes, .tu-js .tu-tour { padding: 28px 20px 0; }
  .tu-bar h2 { font-size: 28px; }
  .tu-about { margin-top: 40px; padding: 56px 20px; }
  .tu-about-grid { grid-template-columns: 1fr; }
  html:not(.tu-js) .tu-stage { padding: 20px 12px 0; }
}
@media (min-width: 601px) and (max-width: 1099px) { .tu-about-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .tu-cards { gap: 8px; } .tu-card-name { font-size: 14px; } .tu-mark--big { font-size: 52px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .tu-btn:active, .tu-card:active, .tu-row:active, .tu-feat-card:active, .tu-step-btn:active { transform: none; }
}
@media print { .tu-demo-bar, .tu-tabs, .tu-cartbar { display: none; } }
