/* ASC-PEDIDOS-WEB-V1 · web de pedidos online · Ember Light (superficie de cliente final).
   Tokens Ember v2 cerrados; brasa SOLO para la acción principal. Sin azul, sin gradientes, sombras mínimas. */
:root {
  --carbon: #0D0C0A; --ash: #1A1815; --smoke: #5A554C; --bone: #EFE9E0; --brasa: #F56820;
  --danger: #C2401A; --success: #5E7A3A;
  --fondo: #F7F3EC; --tarjeta: #FFFDF9; --borde: rgba(90, 85, 76, .22); --borde-fuerte: rgba(90, 85, 76, .45);
  --texto: #1F1C18; --texto-2: #5A554C; --brasa-suave: rgba(245, 104, 32, .10);
  --r: 14px; --gap: 16px; --max: 720px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 16px/1.45 'Figtree', system-ui, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brasa); outline-offset: 2px; }
.num, .precio, .total { font-family: 'Outfit', 'Figtree', sans-serif; font-variant-numeric: tabular-nums; }

/* Cabecera del restaurante */
.cab { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: var(--fondo); border-bottom: 1px solid var(--borde); }
.cab-rest { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.cab-rest img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--tarjeta); border: 1px solid var(--borde); }
.cab-rest span { font-weight: 800; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab-atras, .cab-cuenta { min-height: 44px; min-width: 44px; border-radius: 12px; border: 2px solid var(--borde-fuerte);
  background: var(--tarjeta); font-weight: 700; padding: 0 12px; }
.cab-atras { font-size: 1.6rem; line-height: 1; padding: 0; }

main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 16px 16px 120px; }
.cargando, .vacio { text-align: center; color: var(--texto-2); padding: 48px 0; }
h1 { font-size: 1.5rem; line-height: 1.2; margin: 8px 0 4px; font-weight: 800; }
h2 { font-size: 1.15rem; margin: 20px 0 10px; font-weight: 800; }
.sub { color: var(--texto-2); margin: 0 0 16px; }
.paso { font-size: .85rem; font-weight: 700; color: var(--texto-2); text-transform: uppercase; letter-spacing: .04em; }

/* Bloques */
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--r); padding: 16px; }
.opciones { display: grid; gap: 12px; }
.opcion { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; min-height: 76px; padding: 14px 16px;
  background: var(--tarjeta); border: 2px solid var(--borde-fuerte); border-radius: var(--r); }
.opcion b { display: block; font-size: 1.1rem; }
.opcion small { color: var(--texto-2); font-size: .92rem; }
.opcion .ico { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--carbon); color: var(--bone);
  display: grid; place-items: center; font-size: 1.4rem; }
.opcion[aria-pressed="true"] { border-color: var(--brasa); background: var(--brasa-suave); }
.opcion:disabled { opacity: .5; cursor: not-allowed; }

.campo { display: grid; gap: 6px; margin-bottom: 14px; }
.campo label { font-weight: 700; font-size: .95rem; }
.campo input, .campo textarea, .campo select { min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--borde-fuerte);
  background: var(--tarjeta); font-size: 1rem; }
.campo textarea { min-height: 84px; resize: vertical; }
.campo .ayuda { color: var(--texto-2); font-size: .88rem; }
.fila { display: flex; gap: 12px; } .fila > * { flex: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 20px;
  border-radius: 14px; border: 2px solid var(--borde-fuerte); background: var(--tarjeta); font-weight: 800; font-size: 1.02rem; }
.btn-pri { width: 100%; background: var(--brasa); border-color: var(--brasa); color: #fff; }
.btn-pri:active { filter: brightness(.94); }
.btn-pri:disabled, .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sec { width: 100%; }
.btn-txt { border: 0; background: transparent; text-decoration: underline; min-height: 44px; font-weight: 700; }
.google { width: 100%; }
.separa { display: flex; align-items: center; gap: 12px; color: var(--texto-2); margin: 16px 0; font-size: .9rem; }
.separa::before, .separa::after { content: ""; flex: 1; height: 1px; background: var(--borde); }
.pestanas { display: flex; gap: 8px; margin-bottom: 16px; }
.pestana { flex: 1; min-height: 48px; border-radius: 12px; border: 2px solid var(--borde-fuerte); background: var(--tarjeta); font-weight: 800; }
.pestana[aria-selected="true"] { background: var(--carbon); color: var(--bone); border-color: var(--carbon); }

/* Franjas */
.dias { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.franjas { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.chip { min-height: 52px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--borde-fuerte); background: var(--tarjeta);
  font-weight: 700; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--carbon); color: var(--bone); border-color: var(--carbon); }

/* Carta */
.cats { position: sticky; top: 65px; z-index: 10; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; background: var(--fondo); }
.cat { flex: none; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 2px solid var(--borde-fuerte); background: var(--tarjeta); font-weight: 700; }
.cat[aria-selected="true"] { background: var(--carbon); color: var(--bone); border-color: var(--carbon); }
.prods { display: grid; gap: 12px; }
.prod { display: flex; gap: 14px; width: 100%; text-align: left; padding: 12px; background: var(--tarjeta);
  border: 1px solid var(--borde); border-radius: var(--r); min-height: 96px; }
.prod img { width: 92px; height: 92px; flex: none; border-radius: 10px; object-fit: cover; background: var(--bone); }
.prod .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.prod .nom { font-weight: 700; font-size: 1.08rem; }
.prod .des { color: var(--texto-2); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod .precio { margin-top: auto; font-weight: 700; font-size: 1.05rem; }
.prod .en-pedido { font-family: 'Outfit', sans-serif; font-weight: 800; color: var(--brasa); }
.aler { display: flex; flex-wrap: wrap; gap: 6px; }
.aler span { font-size: .8rem; padding: 2px 8px; border-radius: 8px; background: var(--bone); color: var(--smoke); font-weight: 600; }

/* Barra fija del pedido */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--fondo); border-top: 1px solid var(--borde); }
.barra .btn-pri { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; }

/* Hoja (producto, mínimos) */
.hoja { position: fixed; inset: 0; z-index: 50; background: rgba(13, 12, 10, .5); display: flex; align-items: flex-end; justify-content: center; }
.hoja-cuerpo { width: 100%; max-width: var(--max); max-height: 92vh; overflow-y: auto; background: var(--tarjeta);
  border-radius: 20px 20px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
.hoja-cuerpo img.foto { width: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; margin-bottom: 12px; }
.cant { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 16px 0; }
.cant button { width: 56px; height: 56px; border-radius: 14px; border: 2px solid var(--borde-fuerte); background: var(--tarjeta); font-size: 1.6rem; font-weight: 800; }
.cant .num { font-size: 1.6rem; font-weight: 800; min-width: 40px; text-align: center; }
.radio { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 14px; margin-bottom: 8px;
  border: 2px solid var(--borde-fuerte); border-radius: 12px; }
.radio:has(input:checked) { border-color: var(--brasa); background: var(--brasa-suave); }
.radio input { width: 22px; height: 22px; accent-color: var(--brasa); }

/* Carrito y resumen */
.linea { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--borde); }
.linea .info { flex: 1; min-width: 0; }
.linea .info small { display: block; color: var(--texto-2); }
.linea .mini { display: flex; align-items: center; gap: 8px; }
.linea .mini button { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--borde-fuerte); background: var(--tarjeta); font-weight: 800; font-size: 1.2rem; }
.resumen { margin-top: 12px; display: grid; gap: 6px; }
.resumen div { display: flex; justify-content: space-between; }
.resumen .total { font-size: 1.3rem; font-weight: 800; padding-top: 8px; border-top: 2px solid var(--borde); }
.nota { padding: 12px 14px; border-radius: 12px; background: var(--bone); color: var(--texto); font-weight: 600; margin: 12px 0; }
.nota.error { background: rgba(194, 64, 26, .1); color: var(--danger); }
.nota.ok { background: rgba(94, 122, 58, .12); color: var(--success); }

/* Seguimiento */
.linea-tiempo { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 4px; }
.linea-tiempo li { display: flex; align-items: center; gap: 12px; min-height: 52px; color: var(--texto-2); font-weight: 600; }
.linea-tiempo li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--borde-fuerte); flex: none; }
.linea-tiempo li.hecho { color: var(--texto); }
.linea-tiempo li.hecho::before { background: var(--success); border-color: var(--success); }
.linea-tiempo li.actual { color: var(--texto); font-weight: 800; }
.linea-tiempo li.actual::before { background: var(--brasa); border-color: var(--brasa); }
.grande { font-family: 'Outfit', sans-serif; font-size: 2.4rem; font-weight: 800; margin: 4px 0; }

.aviso { position: fixed; left: 16px; right: 16px; bottom: 96px; z-index: 60; max-width: 560px; margin: 0 auto; padding: 14px 16px;
  border-radius: 14px; background: var(--carbon); color: var(--bone); font-weight: 600; }
.pie { text-align: center; color: var(--texto-2); font-size: .82rem; padding: 0 0 96px; }
/* V2 · carta primero: Ari, alergias, recomendados (portado de css/carta-ari-mesa.css a Ember Light) */
.banner { width: 100%; max-height: 180px; object-fit: cover; border-radius: var(--r); margin-bottom: 8px; }
.entrega-txt { font-weight: 600; }
.ari-card { display: flex; gap: 14px; align-items: center; padding: 14px; margin: 8px 0 10px; background: var(--tarjeta);
  border: 1px solid var(--borde); border-radius: var(--r); }
.ari-fig { flex: none; object-fit: contain; }
.ari-txt { display: grid; gap: 4px; min-width: 0; }
.ari-txt b { font-size: 1.1rem; }
.ari-txt span { color: var(--texto-2); font-size: .94rem; }
.ari-cta { min-height: 48px; width: auto; justify-self: start; margin-top: 4px; }
.chips-ari { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; }
.chip-s { flex: none; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 2px solid var(--borde-fuerte); background: var(--tarjeta); font-weight: 700; white-space: nowrap; }
.alergias { margin: 6px 0 4px; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--r); padding: 0 14px; }
.alergias summary { min-height: 52px; display: flex; align-items: center; font-weight: 700; cursor: pointer; list-style: none; }
.alergias summary::-webkit-details-marker { display: none; }
.alergias summary::after { content: "▾"; margin-left: auto; color: var(--texto-2); }
.alergias[open] summary::after { content: "▴"; }
.chips-alg { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
.chip-a { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--borde-fuerte); background: var(--tarjeta); font-weight: 600; }
.chip-a[aria-pressed="true"] { background: var(--carbon); color: var(--bone); border-color: var(--carbon); }
.nota-alg { color: var(--texto-2); font-size: .85rem; margin: 0 0 10px; }
.ocultos { font-weight: 700; color: var(--danger); font-size: .9rem; margin: 0 0 12px; }
.carr { display: flex; gap: 12px; overflow-x: auto; padding: 2px 0 10px; scroll-snap-type: x mandatory; }
.big { flex: none; width: 168px; scroll-snap-align: start; display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden;
  background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--r); }
.big img, .big-sin { width: 100%; height: 120px; object-fit: cover; background: var(--bone); display: block; }
.big-nom { padding: 10px 12px 2px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.big-pie { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 12px; margin-top: auto; }
.big-mas { width: 36px; height: 36px; border-radius: 10px; background: var(--brasa); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; }
.pie-prod { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.prod .pie-prod .precio { margin-top: 0; }
.algs { display: inline-flex; gap: 4px; align-items: center; }
.alg { width: 26px; height: 26px; border-radius: 50%; background: var(--bone); display: grid; place-items: center; font-size: .85rem; }
.alg-mas { font-size: .8rem; font-weight: 700; color: var(--texto-2); }
.alg-lista { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.alg-item { padding: 6px 10px; border-radius: 10px; background: var(--bone); font-weight: 600; font-size: .92rem; }
.alg-item.alerta { background: rgba(194, 64, 26, .12); color: var(--danger); }
.ficha-ari { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bone); }
.ficha-ari span { flex: 1; font-weight: 600; }
.ari-cab { display: flex; gap: 12px; align-items: center; }
.ari-cab h1 { margin: 0; }
.ari-cab .sub { margin: 2px 0 0; }
.conv { display: grid; gap: 8px; margin: 14px 0; }
.burbuja { margin: 0; padding: 10px 14px; border-radius: 14px; max-width: 85%; font-weight: 500; }
.burbuja.yo { justify-self: end; background: var(--carbon); color: var(--bone); }
.burbuja.ari { justify-self: start; background: var(--bone); }
.ari-f { display: flex; gap: 8px; margin: 8px 0; }
.ari-f input { flex: 1; min-width: 0; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--borde-fuerte); background: var(--tarjeta); }
.ari-f .btn-pri { width: auto; flex: none; padding: 0 16px; }
.google { min-height: 60px; border-color: var(--carbon); font-size: 1.08rem; }
.google svg { width: 22px; height: 22px; flex: none; }
.cats { top: 64px; }
/* Checkout en una pantalla (estilo Amazon) */
.paso-sec { margin: 18px 0 0; padding: 14px; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--r); scroll-margin-top: 80px; }
.paso-sec h2 { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.paso-sec .n { width: 30px; height: 30px; border-radius: 50%; background: var(--carbon); color: var(--bone); display: grid; place-items: center;
  font: 800 .95rem 'Outfit', sans-serif; flex: none; }
.paso-sec.hecho .n { background: var(--success); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg-b { min-height: 56px; border-radius: 12px; border: 2px solid var(--borde-fuerte); background: var(--tarjeta); font-weight: 700; padding: 0 8px; }
.seg-b[aria-pressed="true"] { border-color: var(--brasa); background: var(--brasa-suave); }
.seg-b:disabled { opacity: .5; }
.fila-cp { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.fila-cp .campo { flex: 1; margin-bottom: 0; }
.fila-cp .btn { min-height: 52px; }
.campo select { min-height: 52px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--borde-fuerte); background: var(--tarjeta); font-size: 1.05rem; }
#pedir.falta, #anadir.falta { background: var(--carbon); border-color: var(--carbon); }
#mas.btn-txt { padding: 0; }
/* Fila: foto (ampliar) · texto (ficha) · «+» (al carrito) */
.prod { align-items: stretch; padding: 10px; }
.prod-foto { flex: none; padding: 0; border: 0; background: none; border-radius: 10px; overflow: hidden; }
.prod-foto img { width: 92px; height: 92px; object-fit: cover; display: block; background: var(--bone); }
.prod .txt { border: 0; background: none; text-align: left; padding: 2px 0; }
.prod-mas, .big-mas { flex: none; align-self: flex-end; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--brasa); color: #fff;
  font: 800 1.5rem/1 'Outfit', sans-serif; display: grid; place-items: center; }
.prod-mas:active, .big-mas:active { filter: brightness(.9); transform: scale(.96); }
.big { position: relative; }
.big-foto { padding: 0; border: 0; background: none; display: block; }
.big-foto img { width: 100%; height: 120px; object-fit: cover; display: block; background: var(--bone); }
.big-nom { border: 0; background: none; text-align: left; font: inherit; font-weight: 700; }
.zoom { position: fixed; inset: 0; z-index: 70; background: rgba(13, 12, 10, .92); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 20px; }
.zoom img { max-width: 100%; max-height: 72vh; border-radius: 14px; object-fit: contain; }
.zoom p { color: var(--bone); font-weight: 700; font-size: 1.15rem; margin: 0; }
.zoom .btn { width: auto; min-width: 160px; }
.oblig { color: var(--brasa); font-weight: 700; font-size: .85rem; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { .hoja-cuerpo { animation: sube .18s ease-out; } @keyframes sube { from { transform: translateY(24px); opacity: .6; } } }
