/* =====================================================================
   Karuhe - Menú del cliente, piel nueva (paso 49). Solo apariencia: no cambia nada del funcionamiento.
   Se carga después de jakaru.css y solo en index.php (body.menu-cli). Usa los 4 colores de cada local
   (--acc principal, --sec secundario, --fondo, --tinta) que pone jk_marca_css().
   Títulos y precios: Bricolage Grotesque. Texto: Plus Jakarta Sans.
   ===================================================================== */
body.menu-cli {
  --disp: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --tarj: #fff;
  --linea: color-mix(in srgb, var(--tinta) 9%, transparent);
  --sombra-1: 0 1px 2px rgba(30, 20, 10, .05), 0 4px 14px rgba(30, 20, 10, .06);
  --sombra-2: 0 2px 4px rgba(30, 20, 10, .06), 0 14px 34px rgba(30, 20, 10, .12);
}
body.menu-cli .menu { max-width: 1080px; padding-left: 16px; padding-right: 16px; }
body.menu-cli .ficha { max-width: 1080px; }
body.menu-cli .aviso-cerrado, body.menu-cli .aviso-mesa { max-width: 1048px; margin-left: auto; margin-right: auto; }

/* ---------- Ficha del local ---------- */
body.menu-cli .ficha h1 { font-family: var(--disp); font-weight: 800; font-size: clamp(1.75rem, 4.5vw, 2.4rem); letter-spacing: -.025em; line-height: 1.05; }
body.menu-cli .ficha-desc { font-size: .97rem; }

/* ---------- Títulos de sección ---------- */
body.menu-cli .sec h2, body.menu-cli .tit-menu {
  font-family: var(--disp); font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; margin: 30px 0 14px; gap: 0;
}
body.menu-cli .sec h2::before, body.menu-cli .tit-menu::before { display: none; }

/* ---------- Botón "Agregar" (combos, más pedidos y productos) ---------- */
body.menu-cli .mas {
  position: static; width: auto; height: 36px; border-radius: 999px; padding: 0 14px 0 10px; gap: 4px;
  display: inline-flex; align-items: center; font-size: .86rem; font-weight: 800; font-family: var(--fuente);
  background: var(--acc); color: var(--acc-txt, #fff); box-shadow: 0 4px 10px color-mix(in srgb, var(--acc) 30%, transparent);
}
body.menu-cli .mas i { font-style: normal; }
body.menu-cli .mas .ico { width: 16px; height: 16px; stroke-width: 2.6; }

/* ---------- Combos: tarjeta con foto a la izquierda ---------- */
body.menu-cli .combos { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
body.menu-cli .combo {
  position: relative; display: grid; grid-template-columns: 96px 1fr; grid-template-rows: 1fr auto; gap: 4px 14px; align-items: start;
  background: var(--tarj); border: 0; border-radius: 18px; padding: 12px; box-shadow: var(--sombra-1);
}
body.menu-cli .combo-img { width: 96px; height: 96px; border-radius: 14px; grid-row: 1 / 3; }
body.menu-cli .combo-tx { padding: 2px 0 0; gap: 3px; }
body.menu-cli .combo-tx b { font-size: 1.02rem; }
body.menu-cli .combo-tx em { font-family: var(--disp); font-size: 1.12rem; font-weight: 700; color: var(--acc-2); margin-top: 2px; }
body.menu-cli .combo .mas { justify-self: end; position: static; }
body.menu-cli .chip-extra { display: inline-flex; align-items: center; gap: 6px; }
body.menu-cli .chip-extra .ico { width: 16px; height: 16px; }

/* ---------- Los más pedidos: tira horizontal de fotos ---------- */
body.menu-cli .dest { gap: 14px; padding: 2px 2px 10px; scroll-snap-type: x mandatory; }
body.menu-cli .dest-it { width: 176px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--sombra-1); scroll-snap-align: start; gap: 0; }
body.menu-cli .dest-img { height: 128px; border-radius: 0; width: 100%; }
body.menu-cli .dest-it b { padding: 10px 12px 0; font-size: .95rem; line-height: 1.25; }
body.menu-cli .dest-it em { padding: 4px 12px 12px; font-family: var(--disp); font-size: 1.08rem; font-weight: 700; }

/* ---------- Categorías (acordeón) ---------- */
body.menu-cli .cat { margin-bottom: 12px; }
body.menu-cli .cat-cab { border: 0; border-radius: 18px; padding: 12px 16px 12px 12px; box-shadow: var(--sombra-1); background: var(--tarj); }
body.menu-cli .cat-emoji { width: 56px; height: 56px; border-radius: 16px; }
body.menu-cli .cat-nom b { font-family: var(--disp); font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; }
body.menu-cli .cat.abierta .cat-cab { background: var(--tarj); border-radius: 18px; box-shadow: 0 0 0 2px var(--acc), var(--sombra-1); }
body.menu-cli .cat-cuerpo { background: transparent; border: 0; border-radius: 0; overflow: visible; padding: 14px 0 6px; }

/* Paso 65: categoría con foto entera (sin oscurecer) y el nombre en una etiqueta blanca */
body.menu-cli .cat.con-foto .cat-cab { position: relative; overflow: hidden; height: 104px; padding: 10px; align-items: flex-end; background: #ece6df; }
body.menu-cli .cat.con-foto .cat-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.06) saturate(1.05); transition: transform .3s; }
body.menu-cli .cat.con-foto .cat-nom { position: relative; flex: none; max-width: calc(100% - 52px); background: rgba(255, 255, 255, .94); color: var(--tinta);
  border-radius: 12px; padding: 6px 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
body.menu-cli .cat.con-foto .cat-nom b { font-size: 1.06rem; line-height: 1.2; }
body.menu-cli .cat.con-foto .cat-nom small { font-size: .76rem; }
body.menu-cli .cat.con-foto .cat-flecha { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--tinta); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
body.menu-cli .cat.con-foto .cat-flecha .ico { width: 20px; height: 20px; }
body.menu-cli .cat.con-foto .cat-cab:hover .cat-foto { transform: scale(1.03); }
/* En la compu: categorías en grilla (la foto no se estira a todo el ancho); la abierta ocupa la fila entera */
@media (min-width: 720px) {
  body.menu-cli .cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
  body.menu-cli .cats .cat { margin: 0; min-width: 0; }
  body.menu-cli .cats .cat.abierta { grid-column: 1 / -1; }
  body.menu-cli .cats .cat:not(.con-foto) .cat-cab { min-height: 104px; }
}
/* Sin ninguna foto: tarjeta blanca con un ícono fino (sin fondos de color) */
body.menu-cli .cat:not(.con-foto) .cat-emoji { background: transparent; color: var(--tinta); border: 1px solid var(--linea); border-radius: 50%; width: 52px; height: 52px; }
body.menu-cli .cat:not(.con-foto) .cat-emoji .sil { width: 62%; height: 62%; stroke-width: 1.25; }

/* Producto: en el celular una fila (texto + foto), en pantallas grandes tarjetas con la foto arriba */
body.menu-cli .cat-cuerpo { display: grid; gap: 12px; }
body.menu-cli .cat-cuerpo .prod {
  position: relative; display: grid; grid-template-columns: 1fr 112px; grid-template-rows: 1fr auto; gap: 8px 14px;
  border: 0; border-radius: 18px; padding: 14px; background: var(--tarj); box-shadow: var(--sombra-1);
}
body.menu-cli .cat-cuerpo .prod:last-child { border: 0; }
body.menu-cli .cat-cuerpo .prod .prod-tx { grid-column: 1; grid-row: 1 / 3; }
body.menu-cli .cat-cuerpo .prod .prod-img { grid-column: 2; grid-row: 1; width: 112px; height: 112px; border-radius: 14px; }
body.menu-cli .cat-cuerpo .prod .mas { position: static; grid-column: 2; grid-row: 2; justify-content: center; align-self: end; }
body.menu-cli .prod-tx b { font-size: 1.04rem; font-weight: 700; line-height: 1.25; }
body.menu-cli .prod-tx span { font-size: .87rem; line-height: 1.4; }
body.menu-cli .prod-tx em { font-family: var(--disp); font-weight: 700; font-size: 1.12rem; color: var(--acc-2); margin-top: 6px; }

@media (min-width: 720px) {
  body.menu-cli .cat-cuerpo { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
  body.menu-cli .cat-cuerpo .prod { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; gap: 0; }
  body.menu-cli .cat-cuerpo .prod .prod-img { grid-column: 1; grid-row: 1; width: 100%; height: 168px; border-radius: 0; }
  body.menu-cli .cat-cuerpo .prod .prod-tx { grid-column: 1; grid-row: 2; padding: 14px 16px 64px; }
  body.menu-cli .cat-cuerpo .prod .mas { position: absolute; left: auto; right: 14px; bottom: 14px; }
  body.menu-cli .cat-cuerpo .prod .prod-tx em { position: absolute; left: 16px; right: 128px; bottom: 16px; margin: 0; min-height: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
  body.menu-cli .cat-cuerpo .prod.agotado .prod-tx em { right: 16px; }
  body.menu-cli .cat-cuerpo .prod.agotado .prod-tx { padding-bottom: 50px; }
  body.menu-cli .cat-cuerpo .prod:hover { box-shadow: var(--sombra-2); }
}
body.menu-cli .prod:active, body.menu-cli .combo:active, body.menu-cli .dest-it:active { transform: scale(.985); }

/* ---------- Barra flotante "Ver y confirmar" ---------- */
body.menu-cli .carrito-barra {
  background: var(--acc); color: var(--acc-txt, #fff); border-radius: 999px; padding: 10px 22px 10px 10px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--acc) 40%, rgba(0,0,0,.2));
}
body.menu-cli .cb-q { background: var(--tarj); color: var(--acc-2); border-radius: 999px; min-width: 36px; height: 36px; box-shadow: none; font-weight: 800; }
body.menu-cli .carrito-barra b { font-family: var(--disp); font-size: 1.15rem; }

/* ---------- Hojas (producto y carrito) ---------- */
body.menu-cli .hoja-fondo { background: rgba(15, 10, 5, .5); backdrop-filter: blur(2px); }
body.menu-cli .hoja { border-radius: 24px 24px 0 0; }
body.menu-cli .hoja-cab h2, body.menu-cli .prod-info h2 { font-family: var(--disp); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
body.menu-cli .prod-cab img, body.menu-cli .ph-grande { height: 240px; }

/* Carrito: en la compu, panel a la derecha de toda la altura (como un cajón) */
@media (min-width: 720px) {
  body.menu-cli #hojaCarrito { justify-content: flex-end; align-items: stretch; padding: 0; }
  body.menu-cli #hojaCarrito .hoja { max-width: 470px; max-height: none; height: 100%; min-height: 0; border-radius: 24px 0 0 24px; animation: jkCajon .22s ease-out; }
}
@keyframes jkCajon { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.menu-cli #hojaCarrito .hoja { animation: none; } }
@media (max-width: 719px) { body.menu-cli #hojaCarrito .hoja { max-height: 94vh; min-height: 82vh; } }

/* Líneas del pedido con miniatura */
body.menu-cli .linea { gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--linea); align-items: flex-start; }
body.menu-cli .lin-img { width: 54px; height: 54px; flex: none; border-radius: 14px; object-fit: cover; }
body.menu-cli .lin-img .sil { width: 62%; height: 62%; }
body.menu-cli .linea-tx b { font-weight: 700; font-size: .98rem; }
body.menu-cli .linea-tx em { font-family: var(--disp); font-weight: 700; font-size: 1.02rem; color: var(--acc-2); margin-top: 2px; }
body.menu-cli .linea .stepper { border: 0; gap: 6px; align-self: center; }
body.menu-cli .stepper.chico button { width: 32px; height: 32px; border-radius: 50%; background: var(--acc-suave); color: var(--acc-2); font-size: 18px; }
body.menu-cli .stepper.chico button:hover { background: color-mix(in srgb, var(--acc) 22%, #fff); }
body.menu-cli .stepper.chico b { min-width: 22px; font-weight: 800; }
body.menu-cli #carritoLineas > .btn-link { display: block; margin: 10px 18px 0; font-weight: 700; color: var(--acc-2); }

/* Resumen: como el ticket de la comanda, con el borde troquelado */
body.menu-cli .resumen {
  position: relative; margin: 18px 18px 6px; padding: 16px 16px 14px; border-radius: 0; gap: 7px;
  background: color-mix(in srgb, var(--sec) 10%, #fffdf8); font-size: .95rem;
  --troquel: radial-gradient(circle at 8px 0, transparent 6px, color-mix(in srgb, var(--sec) 10%, #fffdf8) 6.5px);
}
body.menu-cli .resumen::before, body.menu-cli .resumen::after {
  content: ''; position: absolute; left: 0; right: 0; height: 8px; background: var(--troquel); background-size: 16px 8px;
}
body.menu-cli .resumen::before { top: -7px; transform: rotate(180deg); }
body.menu-cli .resumen::after { bottom: -7px; }
body.menu-cli .resumen:empty { display: none; }
body.menu-cli .resumen > div span { color: var(--tinta-2); }
body.menu-cli .resumen > div b { font-weight: 700; }
body.menu-cli .resumen .desc span, body.menu-cli .resumen .desc b { color: #15803d; }
body.menu-cli .resumen .total { border-top: 1.5px dashed color-mix(in srgb, var(--tinta) 25%, transparent); padding-top: 10px; margin-top: 4px; align-items: baseline; }
body.menu-cli .resumen .total span { color: var(--tinta); font-weight: 700; }
body.menu-cli .resumen .total b { font-family: var(--disp); font-size: 1.5rem; font-weight: 800; color: var(--acc-2); letter-spacing: -.01em; }

/* Pasos con ícono */
body.menu-cli .paso { padding: 8px 18px 4px; }
body.menu-cli .paso h3 { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-weight: 700; font-size: 1.15rem; margin: 18px 0 10px; }
body.menu-cli .paso-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-suave); color: var(--acc-2); flex: none; }
body.menu-cli .paso-ico .ico { width: 18px; height: 18px; }
body.menu-cli .paso input, body.menu-cli .paso select, body.menu-cli .paso textarea { border-radius: 14px; background: #fff; border-color: color-mix(in srgb, var(--tinta) 14%, transparent); padding: 12px 14px; }

/* Delivery / Retiro y formas de pago como tarjetas */
body.menu-cli .segmento { gap: 10px; }
body.menu-cli .segmento button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 8px 12px; border-radius: 16px; font-size: 1rem; }
body.menu-cli .segmento button small { font-weight: 500; font-size: .8rem; color: var(--tinta-2); }
body.menu-cli .segmento button.act, body.menu-cli .pagos button.act { border-color: var(--acc); border-width: 2px; background: var(--acc-suave); color: var(--acc-2); }
body.menu-cli .segmento button.act small { color: var(--acc-2); }
body.menu-cli .pagos { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
body.menu-cli .pagos button { border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* Pie de la hoja: total a la izquierda, botón a la derecha */
body.menu-cli .hoja-pie { display: flex; align-items: center; gap: 14px; padding: 12px 18px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); box-shadow: 0 -8px 20px rgba(30, 20, 10, .06); }
body.menu-cli .pie-total { display: flex; flex-direction: column; line-height: 1.1; flex: none; }
body.menu-cli .pie-total small { color: var(--tinta-3); font-size: .78rem; font-weight: 600; }
body.menu-cli .pie-total b { font-family: var(--disp); font-size: 1.3rem; font-weight: 800; color: var(--tinta); white-space: nowrap; }
body.menu-cli .pie-total b:empty { display: none; }
body.menu-cli .pie-total:has(b:empty) { display: none; }
body.menu-cli .hoja-pie .btn-pri { border-radius: 999px; padding: 15px 20px; font-size: 1.02rem; }
body.menu-cli #hojaProd .hoja-pie .btn-pri { flex: 1; }

/* Foco visible con teclado */
body.menu-cli button:focus-visible, body.menu-cli a:focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 55%, transparent); outline-offset: 2px; }

/* =====================================================================
   Paso 50: barra de arriba, portada grande con foto, promo de hoy, botones de acción y horario
   ===================================================================== */
/* Barra de arriba (fija): logo + nombre + estado; en la compu también "Tu pedido" */
body.menu-cli .topbar {
  position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 max(16px, calc((100% - 1080px) / 2));
  background: color-mix(in srgb, var(--tarj) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linea);
}
body.menu-cli .tb-local { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--tinta); }
body.menu-cli .tb-local b { font-family: var(--disp); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.menu-cli .tb-logo { width: 36px; height: 36px; border-radius: 11px; overflow: hidden; flex: none; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--linea); }
body.menu-cli .tb-logo img { width: 100%; height: 100%; object-fit: cover; }
body.menu-cli .tb-logo.sin-logo { background: var(--acc-suave); color: var(--acc); }
body.menu-cli .tb-logo .sil { width: 72%; height: 72%; }
body.menu-cli .tb-estado { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; flex: none; }
body.menu-cli .tb-estado i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
body.menu-cli .tb-estado.ok { background: var(--ok-suave); color: #15803d; }
body.menu-cli .tb-estado.no { background: var(--no-suave); color: var(--no); }
body.menu-cli .tb-pedido {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: .92rem;
  background: var(--acc); color: var(--acc-txt, #fff);
}
body.menu-cli .tb-pedido .ico { width: 18px; height: 18px; }
body.menu-cli .tb-q { background: var(--tarj); color: var(--acc-2); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; font-size: .78rem; }
@media (max-width: 719px) {
  body.menu-cli .tb-pedido { display: none; }
  body.menu-cli .tb-estado { margin-left: auto; }
}

/* Portada grande con la foto del local: logo, nombre y datos encima de la foto */
body.menu-cli .portada.hero { height: auto; min-height: 440px; display: grid; place-items: center; padding: 34px 16px 30px; background-size: cover; background-position: center; }
@media (min-width: 760px) { body.menu-cli .portada.hero { min-height: 520px; padding: 48px 24px 40px; } }
body.menu-cli .ficha.ficha-hero {
  position: static; width: 100%; max-width: 760px; margin: 0 auto; padding: 0; background: none; box-shadow: none; color: #fff; text-align: center;
}
body.menu-cli .ficha-hero .ficha-logo { position: static; transform: none; margin: 0 auto 14px; width: 112px; height: 112px; border-radius: 50%; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
body.menu-cli .ficha-hero .ficha-logo img { border-radius: 50%; }
body.menu-cli .ficha-hero h1 { color: #fff; font-size: clamp(2.1rem, 6.5vw, 3.6rem); text-shadow: 0 2px 18px rgba(0,0,0,.45); }
body.menu-cli .ficha-hero .ficha-desc { color: rgba(255,255,255,.9); font-size: 1.02rem; }
body.menu-cli .ficha-hero .ficha-datos > span { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); backdrop-filter: blur(6px); }
body.menu-cli .ficha-hero .ficha-datos .ico { color: #fff; }
body.menu-cli .ficha-hero .ficha-datos .estado.ok { background: rgba(22,163,74,.85); color: #fff; box-shadow: none; }
body.menu-cli .ficha-hero .ficha-datos .estado.no { background: rgba(220,38,38,.85); color: #fff; }

/* Promo de hoy (sale sola de las promos activas del día) */
body.menu-cli .cinta-promo {
  display: inline-flex; align-items: center; gap: 8px; margin: 14px auto 0; padding: 9px 16px; border-radius: 999px; max-width: 100%;
  background: var(--sec-suave); color: var(--sec-osc); font-size: .93rem; font-weight: 600; text-align: left;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sec) 45%, transparent);
}
body.menu-cli .cinta-promo .ico { width: 18px; height: 18px; flex: none; }
body.menu-cli .ficha-hero .cinta-promo { background: var(--sec); color: var(--sec-txt, #fff); box-shadow: 0 6px 18px rgba(0,0,0,.25); font-size: 1rem; }

/* Botones de acción: Ver el menú / WhatsApp / Cómo llegar */
body.menu-cli .ficha-acc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
body.menu-cli .facc {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-weight: 800; font-size: .95rem; text-decoration: none;
  background: var(--tarj); color: var(--tinta); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tinta) 15%, transparent);
}
body.menu-cli .facc .ico { width: 18px; height: 18px; }
body.menu-cli .facc-pri { background: var(--acc); color: var(--acc-txt, #fff); box-shadow: 0 6px 16px color-mix(in srgb, var(--acc) 35%, transparent); }
body.menu-cli .ficha-hero .facc:not(.facc-pri) { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); backdrop-filter: blur(6px); }
body.menu-cli .ficha-hero .facc-pri { padding: 13px 24px; font-size: 1.02rem; }

/* Horario de la semana */
body.menu-cli .horario-sem { max-width: 1048px; width: calc(100% - 32px); margin: 16px auto 0; background: var(--tarj); border-radius: 18px; box-shadow: var(--sombra-1); padding: 0 16px; }
body.menu-cli .horario-sem summary { display: flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; list-style: none; }
body.menu-cli .horario-sem summary::-webkit-details-marker { display: none; }
body.menu-cli .horario-sem summary .ico { width: 20px; height: 20px; color: var(--acc); }
body.menu-cli .horario-sem summary b { font-family: var(--disp); font-weight: 700; font-size: 1.05rem; }
body.menu-cli .horario-sem summary span { margin-left: auto; color: var(--tinta-2); font-size: .9rem; font-weight: 600; }
body.menu-cli .horario-sem[open] summary span { display: none; }
body.menu-cli .horario-sem ul { list-style: none; margin: 0; padding: 0 0 12px; display: grid; gap: 2px; }
body.menu-cli .horario-sem li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 10px; font-size: .93rem; color: var(--tinta-2); }
body.menu-cli .horario-sem li b { color: var(--tinta); font-weight: 700; white-space: nowrap; }
body.menu-cli .horario-sem li.hoy { background: var(--acc-suave); color: var(--acc-2); font-weight: 700; }
body.menu-cli .horario-sem li.hoy b { color: var(--acc-2); }
@media (min-width: 760px) { body.menu-cli .horario-sem ul { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 18px; } }
body.menu-cli .horario-sem summary span { white-space: nowrap; }
@media (max-width: 559px) {
  body.menu-cli .portada.hero { min-height: 0; padding: 26px 14px 24px; }
  body.menu-cli .ficha-hero .ficha-logo { width: 92px; height: 92px; margin-bottom: 10px; }
  body.menu-cli .ficha-datos { gap: 6px; }
  body.menu-cli .ficha-datos > span { font-size: .76rem; padding: 5px 9px; }
  body.menu-cli .facc { padding: 10px 15px; font-size: .9rem; }
  body.menu-cli .ficha-hero .facc-pri { padding: 11px 18px; font-size: .95rem; }
  body.menu-cli .cinta-promo, body.menu-cli .ficha-hero .cinta-promo { font-size: .88rem; }
}

/* Paso 51: aviso para el personal logueado, botón Copiar alias y calle/referencia plegadas */
body.menu-cli .aviso-personal { width: calc(100% - 32px); max-width: 1048px; margin: 12px auto 0; padding: 9px 14px; border-radius: 12px;
  background: #eef2ff; color: #3730a3; font-size: .86rem; border: 1px solid #c7d2fe; }
body.menu-cli .aviso-personal a { color: inherit; font-weight: 800; white-space: nowrap; }
body.menu-cli .btn-copiar { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 8px; padding: 7px 12px; border-radius: 999px;
  border: 1.5px solid var(--acc); background: #fff; color: var(--acc-2); font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; }
body.menu-cli .btn-copiar .ico { width: 16px; height: 16px; }
body.menu-cli .btn-copiar.ok { background: var(--acc); color: #fff; border-color: var(--acc); }
body.menu-cli #btnDirCampos { display: block; padding: 4px 0 2px; font-size: .9rem; }
body.menu-cli #btnDirCampos[hidden], body.menu-cli #dirCampos[hidden] { display: none; }

/* Paso 64: carrusel de fotos en la ficha del producto (varias fotos) */
.carru { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: inherit; }
.carru::-webkit-scrollbar { display: none; }
.carru img { flex: 0 0 100%; width: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
body.menu-cli .carru img { height: 240px; }
.carru-pts { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.carru-pts i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.12); transition: width .2s, background .2s; }
.carru-pts i.act { width: 18px; border-radius: 4px; background: #fff; }
.carru-fl { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9);
  color: #111; font-size: 1.5rem; line-height: 1; display: none; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.2); padding: 0 0 3px; }
.carru-fl.izq { left: 10px; } .carru-fl.der { right: 10px; }
@media (hover: hover) and (pointer: fine) { .carru-fl { display: grid; } }

/* Paso 64b: foto completa al tocarla (sin recortar) */
.prod-cab img { cursor: zoom-in; }
.foto-ampliar { position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45);
  color: #fff; display: grid; place-items: center; padding: 0; backdrop-filter: blur(4px); }
.visor { position: fixed; inset: 0; z-index: 200; background: #000; }
.visor-tira { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.visor-tira::-webkit-scrollbar { display: none; }
.visor-f { flex: 0 0 100%; height: 100%; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; padding: 56px 0; }
.visor-f img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.visor-x { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.1rem; }
.visor-n { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; font-size: .9rem; opacity: .85; pointer-events: none; }
.visor-fl { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18);
  color: #fff; font-size: 1.8rem; line-height: 1; padding: 0 0 4px; display: none; place-items: center; }
.visor-fl.izq { left: 14px; } .visor-fl.der { right: 14px; }
@media (hover: hover) and (pointer: fine) { .visor-fl { display: grid; } }

/* =====================================================================
   Paso 66: portada más simple (idea de Papá Oso): una sola cosa importante (Ver el menú),
   "Cerrado" una sola vez, datos en una línea, WhatsApp verde y Cómo llegar azul,
   promo del día y horario plegado debajo de la portada, barra de arriba solo al bajar.
   ===================================================================== */
body.menu-cli .topbar { position: fixed; left: 0; right: 0; top: 0; transition: transform .22s ease, opacity .22s ease; }
body.menu-cli .topbar.tb-oculta { transform: translateY(-100%); opacity: 0; pointer-events: none; }

/* Datos en una línea de texto (antes chips) */
body.menu-cli .ficha-info { margin: 10px auto 0; font-size: .92rem; color: var(--tinta-2); max-width: 560px; line-height: 1.45; }
body.menu-cli .ficha-hero .ficha-info { color: rgba(255,255,255,.9); text-shadow: 0 1px 8px rgba(0,0,0,.35); }
body.menu-cli .ficha-hero .ficha-datos .estado.no { background: rgba(255,255,255,.95); color: #b42318; }
body.menu-cli .ficha-hero .ficha-datos .estado.no i { background: #d92d20; }
body.menu-cli .ficha-hero .ficha-datos .estado.ok { background: rgba(255,255,255,.95); color: #15803d; }
body.menu-cli .ficha-hero .ficha-datos .estado.ok i { background: #16a34a; }

/* Botones: Ver el menú grande; debajo WhatsApp (verde) y Cómo llegar (azul) */
body.menu-cli .ficha-acc { flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; }
body.menu-cli .ficha-acc .facc-pri, body.menu-cli .ficha-hero .ficha-acc .facc-pri { width: 100%; max-width: 340px; justify-content: center; padding: 15px 24px; font-size: 1.08rem; }
body.menu-cli .facc-sec { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
body.menu-cli .ficha-acc a.facc.facc-wa, body.menu-cli .ficha-acc a.facc.facc-mapa { color: #fff; padding: 9px 16px; font-size: .9rem; font-weight: 700; box-shadow: 0 3px 10px rgba(0,0,0,.2); backdrop-filter: none; }
body.menu-cli .ficha-acc a.facc.facc-wa { background: #1a9e50; }
body.menu-cli .ficha-acc a.facc.facc-mapa { background: #2563eb; }
body.menu-cli .ficha-acc a.facc.facc-wa .ico, body.menu-cli .ficha-acc a.facc.facc-mapa .ico { width: 17px; height: 17px; }
@media (min-width: 760px) {
  body.menu-cli .ficha-acc { flex-direction: row; justify-content: center; gap: 16px; }
  body.menu-cli .ficha-acc .facc-pri, body.menu-cli .ficha-hero .ficha-acc .facc-pri { width: auto; padding: 14px 34px; }
}

/* Portada más baja (en la compu se ve el comienzo del menú sin bajar) */
body.menu-cli .portada.hero { min-height: 0; padding: 32px 16px 28px; }
@media (min-width: 760px) {
  body.menu-cli .portada.hero { min-height: 0; padding: 40px 24px 34px; }
  body.menu-cli .ficha-hero .ficha-logo { width: 92px; height: 92px; margin-bottom: 10px; }
  body.menu-cli .ficha-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); }
}

/* Debajo de la portada: promo del día (amarilla, color secundario) y horario plegado; en la compu lado a lado */
body.menu-cli .bajo-portada { width: calc(100% - 32px); max-width: 1048px; margin: 14px auto 0; display: grid; gap: 10px; align-items: start; }
body.menu-cli .bajo-portada .horario-sem { width: auto; max-width: none; margin: 0; }
body.menu-cli .bajo-portada .cinta-promo { display: flex; margin: 0; border-radius: 14px; padding: 13px 16px; background: var(--sec); color: var(--sec-txt, #fff);
  box-shadow: var(--sombra-1); font-size: .98rem; font-weight: 600; }
body.menu-cli .bajo-portada .cinta-promo .ico { width: 20px; height: 20px; }
@media (min-width: 760px) { body.menu-cli .bajo-portada.dos { grid-template-columns: 1fr 1fr; } }
body.menu-cli .horario-sem summary span { margin-left: 0; flex: 1; }
body.menu-cli .horario-sem summary .hs-fl { margin-left: auto; width: 18px; height: 18px; color: var(--tinta-2); transition: transform .2s; }
body.menu-cli .horario-sem[open] summary .hs-fl { transform: rotate(180deg); }
body.menu-cli .horario-sem ul { grid-template-columns: 1fr !important; }
@media (prefers-reduced-motion: reduce) { body.menu-cli .topbar, body.menu-cli .horario-sem summary .hs-fl { transition: none; } }

/* =====================================================================
   Paso 67: menú a la vista por categoría (como PedidosYa/Rappi), logo completo, botones iguales
   ===================================================================== */
/* Logo entero dentro del círculo / cuadradito (antes se recortaba) */
body.menu-cli .ficha-logo:not(.sin-logo), body.menu-cli .ficha-hero .ficha-logo:not(.sin-logo) { background: #fff; padding: 8px; }
body.menu-cli .ficha-logo img, body.menu-cli .ficha-hero .ficha-logo img { object-fit: contain; border-radius: 0; }
body.menu-cli .tb-logo:not(.sin-logo) { padding: 3px; }
body.menu-cli .tb-logo img { object-fit: contain; }

/* Tres botones iguales, chicos y en una fila: Menú (color del local), WhatsApp (verde), Cómo llegar (azul) */
body.menu-cli .ficha-acc { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 8px; width: 100%; max-width: 440px; margin: 16px auto 0; }
body.menu-cli .ficha-acc a.facc, body.menu-cli .ficha-hero .ficha-acc a.facc, body.menu-cli .ficha-hero .ficha-acc .facc-pri {
  flex: 1 1 0; min-width: 0; width: auto; max-width: 150px; justify-content: center; gap: 6px; padding: 9px 8px; font-size: .86rem; font-weight: 700;
  color: #fff; white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.2); backdrop-filter: none; }
body.menu-cli .ficha-acc a.facc .ico { width: 16px; height: 16px; }
body.menu-cli .ficha-acc a.facc.facc-pri { background: var(--acc); color: var(--acc-txt, #fff); }
@media (max-width: 420px) { body.menu-cli .ficha-acc { gap: 6px; } body.menu-cli .ficha-acc a.facc, body.menu-cli .ficha-hero .ficha-acc a.facc { font-size: .8rem; padding: 9px 4px; gap: 4px; } body.menu-cli .ficha-acc a.facc .ico { width: 15px; height: 15px; } }
@media (max-width: 350px) { body.menu-cli .ficha-acc a.facc, body.menu-cli .ficha-hero .ficha-acc a.facc { font-size: .74rem; } body.menu-cli .ficha-acc a.facc .ico { display: none; } }
body.menu-cli #menu { scroll-margin-top: 64px; }

/* Fila de categorías: fija arriba al bajar (debajo de la barra del local). En el celular una sola fila que se desliza; en la compu pueden ser 2 líneas */
body.menu-cli .cat-nav { position: sticky; top: 58px; z-index: 12; margin: 0 -16px 6px; padding: 10px 0; background: var(--fondo); border-bottom: 1px solid var(--linea); }
body.menu-cli .cat-nav-in { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
body.menu-cli .cat-nav-in::-webkit-scrollbar { display: none; }
body.menu-cli .cat-nav a { flex: none; padding: 8px 15px; border-radius: 999px; background: var(--tarj); color: var(--tinta); text-decoration: none; font-weight: 700; font-size: .88rem;
  box-shadow: inset 0 0 0 1px var(--linea); white-space: nowrap; }
body.menu-cli .cat-nav a.act { background: var(--tinta); color: var(--fondo); box-shadow: none; }
@media (min-width: 720px) { body.menu-cli .cat-nav-in { flex-wrap: wrap; overflow: visible; } }

/* Cada categoría: título y sus productos (sin foto de categoría) */
body.menu-cli .cat-sec { padding-top: 6px; }
body.menu-cli .cat-tit { font-family: var(--disp); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; margin: 16px 0 2px; display: flex; align-items: baseline; gap: 8px; }
body.menu-cli .cat-tit small { font-family: var(--f, inherit); font-size: .8rem; font-weight: 600; color: var(--tinta-3); }
body.menu-cli .cat-sec .cat-cuerpo { padding-top: 10px; }
@media (min-width: 720px) {
  body.menu-cli .cat-tit { font-size: 1.5rem; margin-top: 22px; }
  body.menu-cli .cat-sec .cat-cuerpo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.menu-cli .cat-cuerpo .prod .prod-img { height: 150px; }
}
@media (min-width: 720px) and (max-width: 1000px) { body.menu-cli .cat-sec .cat-cuerpo { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Productos sin foto: ícono fino sobre fondo neutro (sin colores pastel) */
body.menu-cli .cat-cuerpo .ph, body.menu-cli .cat-cuerpo .prod:nth-child(even) .ph { background: color-mix(in srgb, var(--tinta) 4%, #fff); color: var(--tinta-2); }
body.menu-cli .cat-cuerpo .ph .sil { width: 46px; height: 46px; padding: 9px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--linea); stroke-width: 1.3; }

/* Paso 75: la caja cargando un pedido (dictado o agregar): dos columnas en la compu */
body.tomar .tom-cols { display: flex; flex-direction: column; }
body.tomar .tom-der { order: -1; }
body.tomar .tom-ya ul { margin: 6px 0; padding-left: 18px; }
body.tomar .tom-ya li { margin: 2px 0; }
body.tomar #dirsGuardadas { display: flex; flex-wrap: wrap; gap: 6px; }
body.tomar #dirsGuardadas .opc, body.tomar #dirsGuardadas #btnDirNueva { flex-basis: 100%; }
body.tomar .dir-ant { flex: 1 1 210px; width: auto; margin: 0; padding: 7px 10px; font-size: .88rem; }
body.tomar .ubic-mapa { height: 170px; }
@media (min-width: 1000px) {
  body.tomar #hojaCarrito .hoja { max-width: min(1080px, 96vw); }
  body.tomar .tom-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 8px; align-items: start; }
  body.tomar .tom-der { order: 0; position: sticky; top: 0; border-left: 1px solid var(--linea); }
  body.tomar .tom-izq { min-height: 100%; }
}

/* Paso 77: botón fijo para volver a la caja mientras se carga un pedido (por encima del carrito abierto) */
.volver-caja { position: fixed; z-index: 40; left: 12px; bottom: 84px; background: #1d1a17; color: #fff; text-decoration: none; font-weight: 800; font-size: .9rem;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.volver-caja:hover { background: #000; }
@media (min-width: 720px) { .volver-caja { bottom: 18px; } }
