/*! kit-web-local · base.css v1.0.0 · reset mínimo y accesible. SIN estética: colores, fuentes y radios los pone cada web. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: var(--scroll-pad, 0px); }
body { margin: 0; min-height: 100svh; font-size: max(16px, 1rem); line-height: 1.5; overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: manual; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
input, textarea, select { font-size: max(16px, 1em); } /* 16 px: iOS no hace zoom al enfocar */
button, [role="button"], a, label, summary, input, select, textarea { touch-action: manipulation; }
button, [role="button"], summary { cursor: pointer; }
button, [role="button"], input[type="submit"], input[type="button"], .btn, [data-agregar], [data-abrir-pedido], [data-quitar1] { min-height: 44px; min-width: 44px; }
small, .small, figcaption, .nota { font-size: max(14px, .875em); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--foco, currentColor); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--seleccion, Highlight); color: var(--seleccion-t, HighlightText); }
.kp-sr, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- kit pedido: solo estructura y tamaños tocables. Se viste con las variables --kp-* ---------- */
:root { --kp-fondo: Canvas; --kp-texto: CanvasText; --kp-acento: CanvasText; --kp-acento-t: Canvas; --kp-borde: color-mix(in srgb, currentColor 28%, transparent); --kp-radio: 0px; --kp-z: 60; }
html:has(.kp-dlg[open]) { overflow: hidden; }
html.kp-con-barra body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.kp-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--kp-z); display: flex; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.kp-barra > * { pointer-events: auto; }
.kp-abrir { min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--kp-radio); background: var(--kp-acento); color: var(--kp-acento-t); font-size: 16px; }
.kp-dlg { padding: 0; border: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100svh - 24px); overflow: auto; overscroll-behavior: contain; background: var(--kp-fondo); color: var(--kp-texto); border-radius: var(--kp-radio); }
.kp-dlg::backdrop { background: rgb(0 0 0 / .55); }
.kp-in { display: grid; gap: 16px; padding: 20px; }
.kp-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kp-tit { font-size: 1.25rem; line-height: 1.2; }
.kp-tit:focus { outline: none; }
.kp-cerrar, .kp-q, .kp-quitar, .kp-vaciar { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--kp-borde); border-radius: var(--kp-radio); background: transparent; font-size: 16px; }
.kp-cerrar { font-size: 24px; line-height: 1; padding: 0; }
.kp-vaciar { justify-self: start; }
.kp-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kp-li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--kp-borde); }
.kp-li-n { grid-column: 1 / -1; }
.kp-li:has(.kp-li-p) .kp-li-n { grid-column: 1; }
.kp-li-q { display: inline-flex; align-items: center; gap: 6px; }
.kp-li-c { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.kp-quitar { justify-self: end; }
.kp-total { font-weight: 700; }
.kp-campos { display: grid; gap: 14px; }
.kp-campo { display: grid; gap: 6px; }
.kp-lab { font-size: max(14px, .9em); }
.kp-campo input, .kp-campo select, .kp-campo textarea, .kp-m-txt { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--kp-borde); border-radius: var(--kp-radio); background: transparent; color: inherit; }
.kp-campo select option { color: CanvasText; background: Canvas; }
.kp-campo textarea, .kp-m-txt { resize: vertical; }
.kp-vista-t { font-size: 14px; opacity: .8; margin-bottom: 6px; }
.kp-msg { white-space: pre-wrap; font-size: 14px; padding: 12px; border: 1px dashed var(--kp-borde); border-radius: var(--kp-radio); }
.kp-aviso { font-size: 15px; font-weight: 600; }
.kp-canales { display: grid; gap: 10px; }
.kp-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 18px; border: 1px solid var(--kp-acento); border-radius: var(--kp-radio); background: transparent; color: inherit; text-decoration: none; font-size: 16px; text-align: center; }
.kp-btn-p { background: var(--kp-acento); color: var(--kp-acento-t); }
.kp-toast { position: fixed; inset: auto 16px calc(16px + env(safe-area-inset-bottom)) 16px; margin: 0 auto; width: fit-content; max-width: calc(100% - 32px); padding: 12px 18px; border: 0; border-radius: var(--kp-radio); background: var(--kp-texto); color: var(--kp-fondo); font-size: 15px; z-index: calc(var(--kp-z) + 1); }
.kp-toast:not([popover]):not(.kp-toast-on) { display: none; }
