/* Ficha 2.0 · F1 (05-11-2026) · «B · Delivery» (aprobada). Solo tokens de la guía, claro y oscuro; el acento es el color del rubro (--f2-acc, de G.categorias).
   Solo afecta a las fichas con carta (la raíz es .f2): ninguna regla toca una ficha sin carta. */
.f2, .f2-wrapsheet {
  --f2-acc: #C24A17; --f2-ink: var(--oxide-ink); --f2-soft: color-mix(in srgb, var(--f2-acc) 11%, var(--surface-1)); --f2-deep: color-mix(in srgb, var(--f2-acc) 78%, #000);
  --f2-bub: #DCF8C6; --f2-bub-tx: #0B1A10; --f2-ease: cubic-bezier(.2, .8, .2, 1); --f2-emph: cubic-bezier(.05, .7, .1, 1); --f2-in: cubic-bezier(.3, 0, .8, .15);
  font-family: var(--f-ui); color: var(--tx-1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .f2, :root:not([data-theme="light"]) .f2-wrapsheet { --f2-bub: #005C4B; --f2-bub-tx: #E9EDEF; --f2-soft: color-mix(in srgb, var(--f2-acc) 20%, var(--surface-1)); } }
:root[data-theme="dark"] .f2, :root[data-theme="dark"] .f2-wrapsheet { --f2-bub: #005C4B; --f2-bub-tx: #E9EDEF; --f2-soft: color-mix(in srgb, var(--f2-acc) 20%, var(--surface-1)); }
.f2 *, .f2-wrapsheet * { box-sizing: border-box; }
.f2 [hidden], .f2-wrapsheet [hidden] { display: none !important; }
:where(.f2, .f2-wrapsheet) button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.f2 button:focus-visible, .f2 a:focus-visible, .f2 input:focus-visible, .f2-wrapsheet button:focus-visible, .f2-wrapsheet a:focus-visible, #fichaAct .f2-wa:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.f2 svg.i, .f2-wrapsheet svg.i, #fichaAct .f2-wa svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ----- teléfono: el cuerpo de la ficha ----- */
.ficha-body.f2-m { gap: 20px; padding-bottom: 28px; min-width: 0; }
.f2-m > * { min-width: 0; }
.f2-head { display: grid; gap: 2px; min-width: 0; }
.f2-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--tx-2); }
.f2-ab { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 13.5px; color: var(--ok); }
.f2-ab.bad { color: var(--bad); } .f2-ab.warn { color: var(--warn); } .f2-ab.unk { color: var(--tx-2); }
.f2-ab i, .f2-live { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; animation: f2pulse 2s ease-in-out infinite; }
@keyframes f2pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
.f2-nav { position: sticky; top: 0; z-index: 6; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 10px 18px; background: color-mix(in srgb, var(--surface-1) 94%, transparent); backdrop-filter: blur(10px); border-block: 1px solid var(--line); overscroll-behavior-x: contain; }
.f2-nav::-webkit-scrollbar { display: none; }
.f2-nav button { flex: none; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 800; font-size: 14px; color: var(--tx-1); white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .16s; }
.f2-nav button.on { background: var(--f2-acc); color: #fff; border-color: var(--f2-acc); }
.f2-nav button:active { transform: scale(.96); }

/* cinta «Menú de hoy» */
.f2-cinta { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: linear-gradient(100deg, var(--f2-deep), var(--f2-acc)); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--f2-acc) 35%, transparent); min-width: 0; }
.f2-cin-h { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.f2-cico { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.f2-cico svg.i { width: 24px; height: 24px; }
.f2-ctx { display: grid; gap: 1px; min-width: 0; }
.f2-clab { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .95); }
.f2-cupd { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.f2-cupd .f2-live { color: #8DF0B6; }
.f2-cin-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.f2-cin-l li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 48px; padding: 2px 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.f2-cin-l li:first-child { border-top: 0; }
.f2-cn { font-size: 17px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.f2-cp { font: 900 22px/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; }
.f2-cp.nc { font: 800 14px/1.2 var(--f-ui); letter-spacing: 0; text-align: right; }
/* C2: una línea del menú de hoy agotada: el nombre atenuado y tachado, y el sello «Agotado» bien visible */
.f2-cin-l li.f2-ag .f2-cn { opacity: .6; text-decoration: line-through; text-decoration-thickness: 1px; }
.f2-cin-l li.f2-ag .f2-cp { font: 800 12px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border: 1.5px solid currentColor; border-radius: 6px; opacity: 1; }
.f2-pedir-mini { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px 0 10px; border-radius: 999px; background: #fff; color: var(--f2-deep); font-weight: 800; font-size: 14px; transition: transform .16s var(--f2-ease), filter .2s; }
.f2-pedir-mini svg.i { width: 18px; height: 18px; }
.f2-pedir-mini:hover { filter: brightness(.96); } .f2-pedir-mini:active { transform: scale(.95); }
.f2-pedir-mini.on { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }

/* secciones */
.f2-sec { min-width: 0; }
.f2-sh { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.f2-sh h3 { margin: 0; font: 800 21px/1.2 var(--f-ui); color: var(--tx-1); }
.f2-actu { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--tx-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px 5px 9px; }
.f2-actu svg.i { width: 14px; height: 14px; }
.f2-flash { animation: f2flash 1.1s ease-out; border-radius: 18px; }
@keyframes f2flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--f2-acc) 50%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
.f2-ofsec .f-ofertas { margin: 0; }

/* carta digital */
.f2-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--surface-1); border: 1.5px solid var(--line-strong); transition: box-shadow .18s, border-color .18s; }
.f2-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus-halo); }
.f2-search svg.i { color: var(--tx-2); }
.f2-search input { text-transform: none; letter-spacing: 0; flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--tx-1); font: 600 16px var(--f-ui); }
.f2-search input:focus-visible { outline: 0; }
.f2-search input::placeholder { color: var(--tx-3); }
.f2-search input::-webkit-search-cancel-button { display: none; }
.f2-clr { width: 44px; height: 44px; border-radius: 50%; display: grid !important; place-items: center; color: var(--tx-2); }
.f2-clr:hover { background: var(--surface-2); }
.f2-grp { margin-top: 14px; scroll-margin-top: 70px; }
.f2-grp h4 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; padding-top: 4px; font: 800 19px var(--f-ui); }
.f2-grp h4 small { font: 800 12.5px var(--f-ui); color: var(--tx-3); }
.f2-grp ul { list-style: none; margin: 0; padding: 0 14px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 18px; }
.f2-plato { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); animation: f2ent .26s var(--f2-ease) both; }
.f2-plato:last-child { border-bottom: 0; }
.f2-grp li:nth-child(2) { animation-delay: 30ms; } .f2-grp li:nth-child(3) { animation-delay: 60ms; } .f2-grp li:nth-child(4) { animation-delay: 90ms; } .f2-grp li:nth-child(5) { animation-delay: 120ms; }
@keyframes f2ent { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.f2-plato.star { background: var(--f2-soft); margin: 0 -14px; padding: 12px 14px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--f2-acc) 45%, transparent); border-bottom-color: transparent; }
.f2-plato.star:first-child { border-radius: 17px 17px 0 0; } .f2-plato.star:last-child { border-radius: 0 0 17px 17px; } .f2-plato.star:only-child { border-radius: 17px; }
.f2-pic { width: 48px; height: 48px; border-radius: 14px; background: var(--f2-soft); color: var(--f2-ink); display: grid; place-items: center; }
.f2-pic svg.i { width: 24px; height: 24px; }
.f2-plato.star .f2-pic { background: var(--surface-1); }
.f2-pt { min-width: 0; }
.f2-pt b { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.f2-pt p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--tx-2); overflow-wrap: anywhere; }
.f2-estrella { display: flex; align-items: center; gap: 4px; margin: 2px 0 1px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--f2-ink); }
.f2-estrella svg.i { width: 14px; height: 14px; }
.f2-ppr { display: grid; justify-items: end; gap: 6px; }
.f2-ppr > b { font-weight: 800; font-size: 15.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.f2-plato.ago { opacity: .62; } .f2-plato.ago .f2-pt b { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.f2-plato.ago .f2-ppr > b { font-size: 13px; color: var(--tx-2); text-transform: uppercase; letter-spacing: .05em; }
.f2-add { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid !important; place-items: center; background: var(--surface-1) !important; border: 1.5px solid var(--f2-acc) !important; color: var(--f2-ink); transition: transform .16s var(--f2-ease), background .16s, color .16s; }
.f2-add:hover { background: var(--f2-soft) !important; } .f2-add:active { transform: scale(.9); }
.f2-add.on { background: var(--f2-acc) !important; color: #fff; }
.f2-q { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--tx-1); color: var(--surface-1); font: 800 12px/21px var(--f-ui); font-style: normal; text-align: center; animation: f2pop .28s var(--f2-emph); }
.f2-q:empty { display: none; }
@keyframes f2pop { from { transform: scale(.4); } to { transform: scale(1); } }
/* E2 · etiquetas del plato (sellos chicos bajo el nombre) y «Desde $X»: el color solo va en el punto y el borde, el texto queda en tinta normal (contraste) */
.f2 .f2-pt ul.f2-tags { list-style: none; margin: 5px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; background: none; border: 0; border-radius: 0; }   /* .f2-grp ul (la lista de platos, y la del perfil) no le toca: es una lista dentro del plato */
.f2-tag { --f2-tc: var(--tx-3); display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 1px 9px 1px 7px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--f2-tc) 55%, var(--line));
  background: color-mix(in srgb, var(--f2-tc) 9%, var(--surface-1)); color: var(--tx-1); font: 700 11.5px/1.3 var(--f-ui); letter-spacing: .01em; overflow-wrap: anywhere; }
.f2-tag::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--f2-tc); }
.f2-tag[data-tag="vegetariano"], .f2-tag[data-tag="vegano"] { --f2-tc: var(--ok); }
.f2-tag[data-tag="picante"] { --f2-tc: var(--bad); }
.f2-tag[data-tag="sin_gluten"] { --f2-tc: var(--warn); }
.f2-tag[data-tag="para_compartir"] { --f2-tc: var(--brand); }
.f2-ppr .f2-desde { display: block; margin-bottom: 1px; text-align: right; font: 700 11px/1.2 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--tx-2); }
.f2-vacio { margin: 16px 0; padding: 16px; border-radius: 14px; background: var(--surface-2); color: var(--tx-2); font-size: 14.5px; text-align: center; overflow-wrap: anywhere; }

/* fotos de la carta */
.f2-fotos { position: relative; }
.f2-pager { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; overscroll-behavior-x: contain; }
.f2-pager::-webkit-scrollbar { display: none; }
.f2-pager.zq { overflow: hidden; }
.f2-foto { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; margin: 0; aspect-ratio: 3 / 4; max-height: 78vh; border-radius: 18px; overflow: hidden; position: relative; background: #14110e; touch-action: pan-x pan-y; }
.f2-foto.zm { touch-action: none; cursor: grab; }
.f2-fz { position: absolute; inset: 0; transform-origin: center; will-change: transform; user-select: none; }
.f2-fz img { width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; }
.f2-cont { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font: 800 13.5px var(--f-ui); font-variant-numeric: tabular-nums; backdrop-filter: blur(4px); pointer-events: none; }
.f2-fbar { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.f2-dots { display: flex; gap: 6px; align-items: center; padding: 0 4px; }
.f2-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line-strong); transition: width .24s var(--f2-emph), background .2s; }
.f2-dots i.on { width: 20px; background: var(--f2-acc); }
.f2-rb { width: 44px; height: 44px; border-radius: 50%; display: grid !important; place-items: center; background: var(--surface-1) !important; border: 1px solid var(--line-strong) !important; color: var(--tx-1); transition: transform .16s var(--f2-ease), background .16s; flex: none; }
.f2-rb:hover { background: var(--brand-soft) !important; } .f2-rb:active { transform: scale(.92); }
.f2-zoom { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.f2-zoom output { min-width: 46px; text-align: center; font: 800 13px var(--f-ui); font-variant-numeric: tabular-nums; }

/* PDF */
.f2-pdf { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface-1); }
.f2-pbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.f2-pbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.f2-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.f2-pfile { display: flex; gap: 10px; align-items: center; flex: 1 1 160px; min-width: 0; }
.f2-pfile svg.i { width: 26px; height: 26px; color: var(--f2-ink); }
.f2-pfile span { display: grid; min-width: 0; }
.f2-pfile b { font-size: 14px; } .f2-pfile small { font-size: 12px; color: var(--tx-2); font-weight: 600; }
.f2-pview { min-height: 220px; }
.f2-pdf.dentro .f2-pview { height: min(70vh, 640px); }
.f2-frame { width: 100%; height: 100%; border: 0; display: block; background: var(--surface-2); }
.f2-pfall { display: grid; justify-items: center; gap: 12px; padding: 32px 18px; text-align: center; color: var(--tx-2); }
.f2-pfall svg.i { width: 44px; height: 44px; color: var(--f2-ink); }
.f2-pfall p { margin: 0; font-size: 14.5px; max-width: 30ch; }

/* botones */
.f2-btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 16px !important; border-radius: 12px; background: var(--surface-1) !important; border: 1.5px solid var(--line-strong) !important; color: var(--tx-1) !important; font-weight: 800; font-size: 14.5px; text-decoration: none; transition: transform .16s var(--f2-ease), background .16s, border-color .16s; white-space: nowrap; }
.f2-btn:hover { background: var(--brand-soft) !important; border-color: var(--brand) !important; } .f2-btn:active { transform: scale(.96); }
.f2-btn.f2-pri { background: var(--f2-acc) !important; border-color: var(--f2-acc) !important; color: #fff !important; }
.f2-btn.f2-block { width: 100%; }
.f2-wa { display: flex !important; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 54px; padding: 0 16px; border-radius: 16px; background: var(--wa) !important; color: #fff !important; font-weight: 800; font-size: 16px; box-shadow: 0 6px 16px color-mix(in srgb, var(--wa) 32%, transparent); transition: transform .16s var(--f2-ease), box-shadow .2s, filter .2s; }
.f2-wa svg.i { width: 22px; height: 22px; }
.f2-wa:hover { filter: brightness(1.07); } .f2-wa:active { transform: scale(.98); }
.f2-cbn { background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; animation: f2pop .3s var(--f2-emph); }
.bump.f2-wa, .f2-wa.bump { animation: f2bump .3s var(--f2-ease); }
@keyframes f2bump { 40% { transform: scale(1.03); } }
/* F3a · esperando los precios antes de armar el mensaje: el botón ocupado, con su texto de siempre y un giro chico */
[data-f2="pedir"][aria-busy="true"] { cursor: progress; }
[data-f2="pedir"][aria-busy="true"]::after { content: ""; flex: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: f2gira .8s linear infinite; }
@keyframes f2gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { [data-f2="pedir"][aria-busy="true"]::after { animation: none; border-right-color: currentColor; opacity: .6; } }
#fichaAct.f2-act { display: flex; padding: 10px 14px; }
#fichaAct.f2-act .f2-wa { box-shadow: none; }

/* tarjetas (horario, contacto, pedido) */
.f2-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--e-1); min-width: 0; }
.f2-card > h3, .f2-card .f-sec > h3 { margin: 0 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.f2-card .estado { margin-bottom: 8px; }
.f2-card .f-sec { margin: 0; }
.f2-card .hours td:last-child { text-align: right; }
.f2-pedido > .f2-wa { margin-top: 12px; } .f2-nota { margin: 10px 0 0; font-size: 12.5px; color: var(--tx-2); line-height: 1.4; }
/* F3b · la línea del reparto bajo el título de «Tu pedido» (tarjeta y hoja): la moto con el acento del rubro */
.f2-rep { display: flex; align-items: center; gap: 8px; margin: -2px 0 12px; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--tx-2); overflow-wrap: anywhere; }
.f2 .f2-rep svg.i, .f2-wrapsheet .f2-rep svg.i { width: 18px; height: 18px; color: var(--f2-ink); }
.f2-sheet .f2-rep { margin: 0 44px 10px 0; }
.f2-pl { list-style: none; margin: 0 0 4px; padding: 0; }
.f2-pl li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14.5px; }
.f2-pn { min-width: 0; overflow-wrap: anywhere; }
/* E2 · una fila con opciones: debajo del nombre sus opciones («Arroz · + Huevo · sin cebolla») y su nota, y «Editar» / «Quitar» en su propia línea */
.f2-pl li.f2-lop { flex-wrap: wrap; }
.f2-lop .f2-pn { flex: 1 1 0; }
.f2-ops { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--tx-2); }
.f2-ops > span + span::before { content: "\00a0\00b7\0020"; color: var(--tx-3); }
.f2-ops .sin { color: var(--warn); font-weight: 800; }
/* F3a · las mitades («½ A Jamón, Queso», cada una en su renglón) y los platos del combo, debajo del nombre, con un filete del color del local */
.f2-mis, .f2-cbs { display: block; margin-top: 4px; padding-left: 10px; border-left: 2px solid color-mix(in srgb, var(--f2-acc) 45%, var(--line)); }
.f2-mi, .f2-cbp { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--tx-2); }
.f2-mi + .f2-mi, .f2-cbp + .f2-cbp { margin-top: 2px; }
.f2-mi b { margin-right: 2px; font-weight: 800; color: var(--f2-ink); }
.f2-cbp b { font-weight: 800; color: var(--tx-1); }
.f2-nt { display: block; margin-top: 3px; font-size: 13.5px; font-style: italic; font-weight: 600; line-height: 1.35; color: var(--tx-2); }
.f2-lacc { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: -6px; }
.f2-lacc button { min-height: 44px; padding: 0 2px; color: var(--brand-ink); font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
/* una línea que ya no vale: tachada, con su motivo en el color de aviso, y «Ármalo de nuevo» destacado */
.f2-pl li.f2-no { align-items: flex-start; }
.f2-no .f2-pn { flex: 1 1 100%; }
.f2-tach { display: block; color: var(--tx-2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.f2-tach small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; }
.f2-mot { display: block; margin-top: 4px; color: var(--warn); font-size: 13.5px; font-weight: 800; line-height: 1.3; }
.f2-lacc button.f2-fuerte { color: var(--bad); }
.f2-nova { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--tx-2); }
.f2-st { display: flex; align-items: center; gap: 6px; flex: none; }
.f2-st button { width: 44px; height: 44px; border-radius: 50%; display: grid !important; place-items: center; background: var(--surface-2) !important; border: 1px solid var(--line-strong) !important; }
.f2-st b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.f2-tot { display: flex; justify-content: space-between; padding: 10px 0 0; font-weight: 800; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.f2-vacio2 { margin: 0; padding: 14px; border-radius: 12px; background: var(--surface-2); color: var(--tx-2); font-size: 14px; text-align: center; }

/* hojas: pedir y local cerrado */
.f2-wrapsheet { position: fixed; inset: 0; z-index: 450; display: grid; align-items: end; justify-items: center; }
.f2-scrim { position: absolute; inset: 0; background: rgba(6, 14, 24, .56); opacity: 0; transition: opacity .24s; }
.f2-wrapsheet.on .f2-scrim { opacity: 1; }
.f2-sheet { position: relative; width: 100%; max-width: 520px; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; background: var(--surface-1); border-radius: 26px 26px 0 0; padding: 12px 18px calc(22px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--e-3); transform: translateY(100%); transition: transform .3s var(--f2-emph); }
.f2-wrapsheet.on .f2-sheet { transform: none; }
.f2-wrapsheet.sale .f2-sheet { transform: translateY(100%); transition: transform .19s var(--f2-in); }
.f2-wrapsheet.sale .f2-scrim { transition: opacity .19s; }
.f2-grab { display: block; width: 42px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 12px; }
.f2-sx { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; display: grid !important; place-items: center; background: var(--surface-2) !important; z-index: 2; }
.f2-sheet h3 { margin: 0 44px 6px 0; font-size: 20px; font-weight: 800; line-height: 1.25; }
.f2-sheet h3.f2-cerr { font-size: 18px; margin-bottom: 16px; }
.f2-sub { margin: 0 0 14px; color: var(--tx-2); font-size: 14.5px; }
.f2-chat { padding: 14px 12px; border-radius: 16px; background: color-mix(in srgb, var(--wa) 9%, var(--surface-2)); margin: 12px 0; }
.f2-bub { margin-left: auto; max-width: 96%; background: var(--f2-bub); color: var(--f2-bub-tx); border-radius: 14px 14px 4px 14px; padding: 10px 12px; font-weight: 600; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }   /* pre-wrap: la nota del plato lleva dos espacios de sangría, como en el mensaje */
.f2-sheet .f2-wa { margin-bottom: 10px; }
.f2-dos { display: grid; gap: 10px; }

/* ======================= escritorio: la ventana de la ficha, en tres columnas ======================= */
#fModal:has(.f2-d) .fm-card { width: min(1280px, 100%); height: min(840px, 100%); max-height: none; }
#fModal:has(.f2-d) .fm-gal { flex-basis: 24%; }
#fModal:has(.f2-d) .fm-scroll { overflow: hidden; display: flex; }
#fModal:has(.f2-d) .fm-scroll .ficha-body.f2-d { padding: 0; flex: 1 1 auto; min-height: 0; }
#fModal:has(.f2-dig) #fmAct .act.wa { display: none; }
.ficha-body.f2-d { display: grid; grid-template-columns: 136px minmax(0, 1fr) 324px; gap: 0; align-items: stretch; height: 100%; min-height: 0; min-width: 0; background: var(--surface-1); }
.f2-d .f2-sc { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; min-height: 0; min-width: 0; scroll-behavior: smooth; }
.f2-d .f2-left { padding: 76px 10px 20px 14px; border-right: 1px solid var(--line); }
.f2-nav.v { position: static; display: grid; gap: 4px; margin: 0; padding: 0; background: none; border: 0; backdrop-filter: none; overflow: visible; }
.f2-nav.v button { height: 44px; text-align: left; border-radius: 12px; background: none; border: 0; padding: 0 12px; box-shadow: inset 3px 0 0 transparent; white-space: normal; line-height: 1.15; display: flex; align-items: center; }
.f2-nav.v button:hover { background: var(--surface-2); }
.f2-nav.v button.on { background: var(--f2-soft); color: var(--f2-ink); box-shadow: inset 3px 0 0 var(--f2-acc); }
.f2-d .f2-main { display: grid; gap: 22px; align-content: start; padding: 26px 24px 32px; }
.f2-d .f2-head .f-name { padding-right: 0; }
.f2-d .f2-side { display: grid; gap: 14px; align-content: start; padding: 68px 16px 24px; border-left: 1px solid var(--line); background: var(--surface-2); }
.f2-d .f2-side > .f2-card { background: var(--surface-1); }
.f2-d .f2-side .f-sec { margin: 0; }
.f2-d .hours td:last-child span { display: block; min-width: 0; overflow-wrap: anywhere; }
.f2-d .hours td { padding: 7px 0; }
.f2-d .hours td:first-child { padding-right: 10px; }
.f2-pedido .f2-cbn { display: none; }
.f2-d .f2-grp { scroll-margin-top: 10px; }
.f2-d .f2-grp ul { display: grid; grid-template-columns: 1fr; }
.f2-d .f2-foto { aspect-ratio: 4 / 5; max-height: 640px; }
.f2-d .f2-cinta { padding: 14px 18px; }
@media (max-width: 1279.98px) {
  .ficha-body.f2-d { grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto minmax(0, 1fr); }
  .f2-d .f2-left { grid-column: 1 / -1; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; padding-right: 64px; }
  .f2-d .f2-nav.v { display: flex; overflow-x: auto; scrollbar-width: none; }
  .f2-d .f2-nav.v button { flex: none; height: 44px; }
  .f2-d .f2-side { padding-top: 20px; }
  .f2-d .f2-main { padding-top: 20px; }
}
@media (min-width: 1024px) { .f2-wrapsheet { align-items: center; }
  .f2-sheet { border-radius: 26px; padding: 24px; max-width: 480px; transform: translateY(18px) scale(.97); opacity: 0; transition: transform .28s var(--f2-emph), opacity .24s; }
  .f2-wrapsheet.on .f2-sheet { opacity: 1; transform: none; }
  .f2-wrapsheet.sale .f2-sheet { opacity: 0; transform: translateY(10px) scale(.98); transition: transform .19s var(--f2-in), opacity .19s; }
  .f2-grab { display: none; } .f2-sx { top: 16px; right: 16px; } }

@media (prefers-reduced-motion: reduce) {
  .f2 *, .f2-wrapsheet *, #fichaAct .f2-wa { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .f2-sheet { transition: none !important; }
}
