/* =====================================================================
   Pizcalia Escandallos · sistema de diseño de la aplicación
   ===================================================================== */
/* Figtree (la misma letra que la web), fuente variable: un solo archivo para todos los gruesos.
   Plus Jakarta Sans 800 se queda solo para el logotipo («izcalia»). */
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree.202cfb54d4e6.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("../fonts/jakarta-800.7660bd9909fb.woff2") format("woff2"); }

:root {
	/* Neutros */
	--bg: #f6f7f9;
	--surface: #ffffff;
	--surface-2: #f9fafb;
	--border: #e4e7ec;
	--border-strong: #d0d5dd;
	--text-strong: #101828;
	--text: #344054;
	--muted: #667085;
	--subtle: #98a2b3;
	/* Marca */
	--brand: #0f3d47;
	--brand-600: #17606f;
	--brand-500: #1f7a8c;
	--brand-100: #d5ebee;
	--brand-50: #eef6f7;
	--accent: #e2702a;
	--accent-600: #c95d1b;
	--accent-50: #fdf3ec;
	/* Estados (reservados: nunca como color de serie) */
	--ok: #067647; --ok-bg: #ecfdf3; --ok-line: #abefc6;
	--warn: #b54708; --warn-bg: #fffaeb; --warn-line: #fedf89;
	--bad: #b42318; --bad-bg: #fef3f2; --bad-line: #fecdca;
	--none: #475467; --none-bg: #f2f4f7;
	/* Forma */
	--r-sm: 6px; --r: 8px; --r-lg: 12px;
	--sh-xs: 0 1px 2px rgba(16,24,40,.05);
	--sh-sm: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
	--sh-lg: 0 12px 24px -6px rgba(16,24,40,.12), 0 4px 8px -4px rgba(16,24,40,.06);
	--ring: 0 0 0 4px rgba(31,122,140,.16);
	--font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--side: 252px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.25; margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0 0 12px; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
.i { width: 18px; height: 18px; flex: none; }
.i-sm { width: 15px; height: 15px; flex: none; }
.i-lg { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { color: var(--text-strong); font-weight: 600; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.hidden, [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 16px; }

/* ---------------------------------------------------------------- Layout */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
html, body { overflow-x: clip; }
.side { background: var(--surface); border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 16px 12px; overflow-y: auto; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: var(--text-strong); text-decoration: none !important; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: "Plus Jakarta Sans", var(--font); font-weight: 800; font-size: 16px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); flex: none; }
.brand-mark b { color: var(--accent); }
.brand-name { font-weight: 700; font-size: 14.5px; line-height: 1.15; letter-spacing: -.01em; }
.brand-name small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.nav-group { margin-bottom: 14px; }
.nav-title { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); padding: 0 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r); color: var(--text); font-weight: 500; text-decoration: none; position: relative; }
.nav a .i { color: var(--subtle); }
.nav a:hover { background: var(--surface-2); color: var(--text-strong); }
.nav a:hover .i { color: var(--muted); }
.nav a.on { background: var(--brand-50); color: var(--brand); }
.nav a.on .i { color: var(--brand-600); }
.nav .count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav .soon { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--brand-600); background: var(--brand-50); padding: 1px 6px; border-radius: 99px; }
.side-foot { margin-top: auto; padding-top: 12px; display: grid; gap: 10px; }
.trial-box { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; background: var(--surface-2); }
.trial-box .meter { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; margin: 8px 0 10px; }
.trial-box .meter i { display: block; height: 100%; background: var(--brand-500); border-radius: 99px; }
.user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r); }
.avatar { width: 32px; height: 32px; border-radius: 99px; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; text-transform: uppercase; }
.user-txt { min-width: 0; line-height: 1.3; }
.user-txt div { font-weight: 600; color: var(--text-strong); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-txt span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.user form { margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r); border: 0; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text-strong); }

.main { min-width: 0; }
.topbar { display: none; }
.content { padding: 28px 36px 64px; max-width: 1320px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.crumbs a:hover { color: var(--text-strong); text-decoration: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.backdrop { display: none; }

@media (max-width: 980px) {
	.app { grid-template-columns: minmax(0, 1fr); }
	.side { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--sh-lg); }
	.side.open { transform: none; }
	.backdrop.open { display: block; position: fixed; inset: 0; background: rgba(16,24,40,.35); z-index: 20; }
	.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
	.topbar .brand { padding: 0; }
	.content { padding: 20px 16px 48px; }
	h1 { font-size: 20px; }
}

/* ---------------------------------------------------------------- Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--brand); background: var(--brand); color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none !important; box-shadow: var(--sh-xs); transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { background: #0b2f37; border-color: #0b2f37; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn .i { width: 17px; height: 17px; }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--accent-600); border-color: var(--accent-600); }
.btn.sec { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn.sec:hover { background: var(--surface-2); color: var(--text-strong); }
.btn.ghost { background: none; border-color: transparent; color: var(--text); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); color: var(--text-strong); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: var(--bad-line); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; gap: 6px; }
.btn.lg { height: 44px; padding: 0 18px; font-size: 15px; }
.btn.block { width: 100%; }
.inline { display: inline; margin: 0; }

/* ---------------------------------------------------------------- Avisos */
.flash { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--brand-100); background: var(--brand-50); color: var(--brand); font-size: 14px; }
.alert .i { margin-top: 1px; }
.alert.success { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.alert.error { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.alert.warning { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.alert a { color: inherit; text-decoration: underline; font-weight: 600; }

/* ---------------------------------------------------------------- Tarjetas */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }
.card + .card { margin-top: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 15px; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.mt { margin-top: 20px; }
@media (max-width: 1100px) { .grid-3-1, .grid-1-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.grid { align-items: start; }
.grid > * { min-width: 0; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-xs); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi-ico { width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); }
.kpi-val { font-size: 28px; font-weight: 600; color: var(--text-strong); letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-sub { font-size: 13px; color: var(--muted); margin-top: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kpi-split { display: flex; gap: 6px; margin-top: 10px; }

/* Distintivos de estado: siempre icono o punto + texto */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12.5px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.badge.none { background: var(--none-bg); color: var(--none); border-color: var(--border); }
.badge.plain::before { display: none; }
.badge.brand { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 12px; font-weight: 500; margin: 2px 4px 2px 0; white-space: nowrap; }
.chip.al { background: var(--accent-50); border-color: #f9dcc7; color: #93400e; }
.fc-ok { color: var(--ok); } .fc-warn { color: var(--warn); } .fc-bad { color: var(--bad); font-weight: 600; }
.delta-up { color: var(--bad); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.delta-down { color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }

/* ---------------------------------------------------------------- Tablas */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.search { position: relative; flex: 1 1 240px; max-width: 340px; }
.search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--subtle); width: 16px; height: 16px; }
.search input { padding-left: 34px !important; height: 36px; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.seg button, .seg a { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--text); padding: 0 12px; height: 34px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; border-right: 1px solid var(--border); }
.seg > :last-child { border-right: 0; }
.seg .on, .seg button[aria-pressed=true] { background: var(--surface-2); color: var(--text-strong); box-shadow: inset 0 -2px 0 var(--brand-500); }
.seg .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table { border-collapse: separate; border-spacing: 0; width: 100%; }
th, td { padding: 11px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
thead th { background: var(--surface-2); font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]:hover { color: var(--text-strong); }
th[data-sort]::after { content: "↕"; opacity: .35; margin-left: 4px; font-size: 11px; }
th[aria-sort=ascending]::after { content: "↑"; opacity: 1; }
th[aria-sort=descending]::after { content: "↓"; opacity: 1; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfd; }
tbody tr.link { cursor: pointer; }
td .title { font-weight: 600; color: var(--text-strong); text-decoration: none; }
td .title:hover { color: var(--brand-600); text-decoration: underline; }
td .sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
tfoot td { font-weight: 600; color: var(--text-strong); background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 0; }
.card > .table-wrap:last-child table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--r-lg); }
.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty .i-lg { color: var(--subtle); width: 40px; height: 40px; margin-bottom: 10px; }
.empty h3 { margin-bottom: 6px; }
.empty p { max-width: 420px; margin: 0 auto 16px; }

/* Mini barra de proporción en tablas */
.meter-row { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.meter { flex: 1; height: 6px; border-radius: 99px; background: var(--none-bg); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--brand-500); }

/* ---------------------------------------------------------------- Gráfico de barras (food cost) */
.hbars { display: grid; gap: 4px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding: 5px 8px; border-radius: var(--r-sm); text-decoration: none !important; color: var(--text); position: relative; }
.hbar:hover { background: var(--surface-2); }
.hbar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.hbar-track { position: relative; height: 14px; }
.hbar-fill { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: 0 4px 4px 0; background: var(--brand-500); min-width: 2px; }
.hbar-fill.warn { background: #f79009; } .hbar-fill.bad { background: #d92d20; }
.hbar-target { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed var(--text-strong); opacity: .55; }
.hbar-val { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-strong); font-weight: 500; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--brand-500); display: inline-block; }
.legend i.warn { background: #f79009; } .legend i.bad { background: #d92d20; }
.legend i.target { width: 0; height: 12px; border-left: 2px dashed var(--text-strong); border-radius: 0; background: none; opacity: .55; }
.tip { position: fixed; pointer-events: none; z-index: 50; background: var(--text-strong); color: #fff; font-size: 12.5px; padding: 8px 10px; border-radius: var(--r); box-shadow: var(--sh-lg); max-width: 260px; line-height: 1.45; }
.tip b { font-weight: 600; display: block; margin-bottom: 2px; }

/* Lista de alertas */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.list > li:last-child { border-bottom: 0; }
.list-row { display: flex; align-items: center; gap: 12px; }
.list-ico { width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; flex: none; }
.list-ico.bad { background: var(--bad-bg); color: var(--bad); }
.list-ico.ok { background: var(--ok-bg); color: var(--ok); }
.list-ico.brand { background: var(--brand-50); color: var(--brand-600); }
.list-main { min-width: 0; flex: 1; }
.list-main .t { font-weight: 600; color: var(--text-strong); }
.list-main .d { color: var(--muted); font-size: 13px; }
.impacts { margin: 8px 0 0 46px; display: grid; gap: 4px; font-size: 13px; }
.impacts div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Checklist de puesta en marcha */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: 0; }
.step-dot { width: 24px; height: 24px; border-radius: 99px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 600; color: var(--muted); counter-increment: s; }
.step-dot::before { content: counter(s); }
.steps li.done .step-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.done .step-dot::before { content: "✓"; }
.steps li.done .t { color: var(--muted); text-decoration: line-through; }
.steps .t { font-weight: 600; color: var(--text-strong); }
.steps .d { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- Formularios */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; } }
.field label.lbl { display: block; font-weight: 500; color: var(--text); font-size: 13.5px; margin-bottom: 6px; }
.field .opt { color: var(--subtle); font-weight: 400; }
.field .help { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field .err { color: var(--bad); font-size: 13px; margin-top: 6px; }
.nonfield { margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=file], select, textarea {
	width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--r); font: inherit; font-size: 14px; color: var(--text-strong); background: var(--surface); box-shadow: var(--sh-xs); transition: border-color .12s, box-shadow .12s; }
textarea { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
input[type=file] { padding: 7px 10px; height: auto; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; }
input::placeholder, textarea::placeholder { color: var(--subtle); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--ring); }
.has-err input, .has-err select, .has-err textarea { border-color: #fda29b; }
.has-err input:focus { box-shadow: 0 0 0 4px rgba(217,45,32,.14); }
.affix { position: relative; }
.affix input { padding-right: 38px; }
.affix::after { content: attr(data-suffix); position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.checks > div, .checks ul { display: contents; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); font-size: 13.5px; }
.checks label:has(input:checked) { border-color: #f5b98e; background: var(--accent-50); color: #93400e; }
.checks ul { list-style: none; }
.radios > div, .radios ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.radios label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--r); cursor: pointer; font-weight: 500; background: var(--surface); }
.radios label:has(input:checked) { border-color: var(--brand-500); box-shadow: var(--ring); background: var(--brand-50); color: var(--brand); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand-600); width: 16px; height: 16px; margin: 0; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin-top: 2px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 12px; }
.divider { height: 1px; background: var(--border); margin: 20px 0; border: 0; }

/* Líneas de receta */
.lineas th, .lineas td { padding: 8px 10px; }
.lineas td:first-child { padding-left: 16px; }
.lineas .q { display: flex; align-items: center; gap: 8px; }
.lineas .q input { width: 120px; text-align: right; }
.lineas .q .u { color: var(--muted); font-size: 13px; width: 26px; }
.lineas td.c { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; width: 110px; }
.lineas .del { width: 52px; text-align: center; }
.lineas .del label { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r); color: var(--subtle); cursor: pointer; }
.lineas .del label:hover { background: var(--bad-bg); color: var(--bad); }
.lineas .del input { position: absolute; opacity: 0; pointer-events: none; }
.lineas tr.borrada td { opacity: .4; text-decoration: line-through; }
.lineas tr.borrada .del label { opacity: 1; background: var(--bad-bg); color: var(--bad); }
.sticky-bar { position: sticky; bottom: 0; background: rgba(246,247,249,.92); backdrop-filter: blur(6px); border-top: 1px solid var(--border); margin: 24px -36px -64px; padding: 14px 36px; display: flex; gap: 8px; align-items: center; z-index: 5; }
@media (max-width: 980px) { .sticky-bar { margin: 24px -16px -48px; padding: 12px 16px; } }
.live { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.live b { color: var(--text-strong); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Ficha técnica */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { padding: 16px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; }
.stat span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat b { display: block; font-size: 20px; font-weight: 600; color: var(--text-strong); margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat .badge { margin-top: 6px; }
.notas { white-space: pre-wrap; margin: 0; }
.composition { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--surface); }
.composition i { display: block; height: 100%; }
.sim { display: grid; gap: 14px; }
.sim-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.sim-out div { padding: 10px 12px; border-right: 1px solid var(--border); }
.sim-out div:last-child { border-right: 0; }
.sim-out span { display: block; font-size: 12px; color: var(--muted); }
.sim-out b { font-size: 16px; color: var(--text-strong); font-variant-numeric: tabular-nums; font-weight: 600; }
input[type=range] { width: 100%; accent-color: var(--brand-600); }
.print-only { display: none; }

/* ---------------------------------------------------------------- Matriz de ingeniería de menú */
.matrix-wrap { position: relative; }
.matrix svg { width: 100%; height: auto; display: block; overflow: visible; }
.matrix .q-lbl { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; fill: var(--subtle); }
.matrix .axis { stroke: var(--border-strong); }
.matrix .grid-l { stroke: var(--text-strong); stroke-dasharray: 4 4; opacity: .35; }
.matrix .tick { font-size: 11px; fill: var(--muted); }
.matrix .dot { stroke: #fff; stroke-width: 2; cursor: pointer; }
.matrix .dot:hover { stroke: var(--text-strong); }
.matrix .dot-lbl { font-size: 11.5px; fill: var(--text); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.cls-estrella { --c: #1f7a8c; } .cls-caballo { --c: #7a5af8; } .cls-puzzle { --c: #e2702a; } .cls-perro { --c: #98a2b3; }
.cls-dot { width: 10px; height: 10px; border-radius: 99px; background: var(--c); display: inline-block; flex: none; }
.quad-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .quad-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .quad-cards { grid-template-columns: 1fr; } }
.quad { border-top: 3px solid var(--c); }
.quad .card-body { padding: 16px; }
.quad h3 { display: flex; align-items: center; gap: 8px; }
.quad .n { margin-left: auto; font-weight: 600; color: var(--muted); }
.ventas-input { width: 96px !important; text-align: right; height: 34px !important; }

/* Carta de alérgenos (matriz) */
.al-grid th.al { writing-mode: vertical-rl; transform: rotate(180deg); height: 120px; padding: 10px 6px; text-align: left; font-size: 12px; }
.al-grid td:first-child { min-width: 170px; }
.al-grid td.al { text-align: center; padding: 8px 4px; width: 38px; }
.al-yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.al-no { color: var(--border-strong); }
.qr-box { display: grid; place-items: center; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); }
.qr-box svg { width: 180px; height: 180px; }
.url-box { display: flex; gap: 8px; }
.url-box input { font-size: 13px; color: var(--muted); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; }
.switch .tr { width: 40px; height: 22px; border-radius: 99px; background: var(--border-strong); position: relative; transition: background .15s; flex: none; }
.switch .tr::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 99px; background: #fff; box-shadow: var(--sh-sm); transition: transform .15s; }
.switch input:checked + .tr { background: var(--brand-600); }
.switch input:checked + .tr::after { transform: translateX(18px); }

/* ---------------------------------------------------------------- Público: entrar / registro */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--surface); }
.auth-main { display: flex; flex-direction: column; padding: 32px 40px; }
.auth-main .brand { padding: 0; }
.auth-box { width: 100%; max-width: 380px; margin: auto; padding: 40px 0; }
.auth-box h1 { font-size: 26px; margin-bottom: 8px; }
.auth-box > p { color: var(--muted); margin-bottom: 28px; }
.auth-box .field { margin-bottom: 16px; }
.auth-foot { font-size: 13px; color: var(--muted); }
.auth-side { background: var(--brand); color: #c9dfe3; padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.08), rgba(255,255,255,0) 70%); }
.auth-side h2 { color: #fff; font-size: 30px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; max-width: 460px; margin-bottom: 14px; }
.auth-side > p { font-size: 15.5px; max-width: 440px; margin-bottom: 28px; }
.auth-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.auth-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.auth-list .i { color: var(--accent); margin-top: 1px; }
.auth-preview { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 16px 18px; max-width: 440px; }
.auth-preview .r { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid rgba(255,255,255,.08); }
.auth-preview .r:last-child { border: 0; }
.auth-preview b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.auth-preview .pill { font-size: 11.5px; padding: 1px 8px; border-radius: 99px; font-weight: 600; }
.pill.ok { background: rgba(18,183,106,.18); color: #75e0a7; } .pill.bad { background: rgba(240,68,56,.2); color: #fda29b; }
@media (max-width: 980px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-main { padding: 20px; } }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 820px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; padding: 24px; }
.plan.featured { border: 2px solid var(--brand-500); box-shadow: var(--sh-lg); }
.plan .tag-top { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.plan .price { font-size: 38px; font-weight: 700; color: var(--text-strong); letter-spacing: -.03em; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .i { color: var(--ok); width: 17px; height: 17px; margin-top: 2px; }

/* ---------------------------------------------------------------- Impresión */
@media print {
	@page { size: A4; margin: 14mm; }
	body { background: #fff; font-size: 11.5px; }
	.side, .topbar, .no-print, .flash, .backdrop, .sticky-bar { display: none !important; }
	.app { display: block; }
	.content { padding: 0; max-width: none; }
	.card { box-shadow: none; break-inside: avoid; }
	.print-only { display: block; }
	a { color: inherit; text-decoration: none; }
	thead th { position: static; }
}

/* Utilidades de visibilidad y estados de navegación */
.hidden-desk { display: none; }
@media (max-width: 980px) { .hidden-desk { display: inline-grid; } }
.nav a[aria-disabled=true] { cursor: default; }
.nav a[aria-disabled=true]:hover { background: none; color: var(--text); }
@media (max-width: 600px) {
	.hbar { grid-template-columns: minmax(0, 1fr) 56px; row-gap: 2px; }
	.hbar-name { grid-column: 1 / -1; }
}

/* Planes */
.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; }
@media (max-width: 1100px) { .plans-3 { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
.plan { display: flex; flex-direction: column; }
.plan ul { flex: 1; }
.plan form { margin: 0; }
.btn[disabled] { opacity: .6; cursor: default; }
.compare td.c, .compare th.c { text-align: center; width: 18%; }
.compare .yes { color: var(--ok); }
.nav .tier { margin-left: auto; font-size: 10.5px; font-weight: 600; color: #93400e; background: var(--accent-50); border: 1px solid #f9dcc7; padding: 0 6px; border-radius: 99px; line-height: 17px; }
.locked { position: relative; }
.upsell { display: flex; gap: 12px; align-items: flex-start; }
.upsell .kpi-ico { flex: none; }

.plans > .card + .card, .grid > .card + .card, .quad-cards > .card + .card { margin-top: 0; }
.nav a { white-space: nowrap; }
.nav .tier { font-size: 10px; padding: 0 5px; }

/* =====================================================================
   Móvil y PWA
   ===================================================================== */
/* Barra inferior de accesos rápidos */
.tabbar { display: none; }
@media (max-width: 980px) {
	.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--border); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
	.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; color: var(--muted); font: inherit; font-size: 11px; font-weight: 500; text-decoration: none !important; background: none; border: 0; border-radius: var(--r); cursor: pointer; -webkit-tap-highlight-color: transparent; }
	.tabbar .i { width: 22px; height: 22px; }
	.tabbar .on { color: var(--brand); }
	.tabbar .on .i { color: var(--brand-600); }
	.tabbar .tab-main { color: var(--text-strong); }
	.tab-fab { width: 46px; height: 46px; margin-top: -18px; border-radius: 99px; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 6px 14px -4px rgba(226,112,42,.55); border: 3px solid #fff; }
	.tab-fab .i { color: #fff !important; }
	.content { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
	body.has-sticky .tabbar { display: none; }
	body.has-sticky .content { padding-bottom: 48px; }
	.topbar { padding-top: calc(10px + env(safe-area-inset-top)); }
	/* Evita el zoom automático de iOS al enfocar campos */
	input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea { font-size: 16px; }
	.btn { height: 42px; }
	.btn.sm { height: 36px; }
	.page-head { margin-bottom: 18px; }
	.page-head .actions { width: 100%; }
	.page-head .actions .btn { flex: 1; }
	.sticky-bar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
	.sticky-bar .btn { flex: 1; }
	.sticky-bar .btn.ghost { flex: 0 0 auto; }
	.card-head { padding: 14px 16px; }
	.card-body { padding: 16px; }
	.toolbar { padding: 12px; }
	.search { max-width: none; flex-basis: 100%; }
	.seg { width: 100%; overflow-x: auto; }
	.seg button, .seg a { flex: 1 0 auto; justify-content: center; }
}

/* Tablas como tarjetas en pantallas estrechas */
@media (max-width: 680px) {
	table.cards-on thead { display: none; }
	table.cards-on, table.cards-on tbody, table.cards-on tr, table.cards-on td { display: block; width: 100%; }
	table.cards-on tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
	table.cards-on tbody tr:last-child { border-bottom: 0; }
	table.cards-on td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 3px 0; border: 0; text-align: right; min-height: 26px; }
	table.cards-on td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 400; text-align: left; flex: none; white-space: nowrap; }
	table.cards-on td:first-child { display: block; text-align: left; padding-bottom: 6px; }
	table.cards-on td:first-child::before, table.cards-on td[colspan]::before, table.cards-on td[data-label=""]::before { display: none; }
	table.cards-on td[data-label=""]:not([colspan]) { display: none; }
	table.cards-on td[colspan] { display: block; text-align: center; }
	table.cards-on td .sub { text-align: inherit; }
	table.cards-on td .meter-row { min-width: 0; flex: 0 1 60%; }
	table.cards-on tbody tr:hover td { background: none; }
	table.cards-on td > div:not(.meter-row):not(.empty):not(.row) { text-align: right; }
}

/* Aviso de instalación */
.install { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--brand-100); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.install img { border-radius: 10px; flex: none; }
.install-txt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--muted); display: grid; gap: 2px; }
.install-txt b { color: var(--text-strong); font-weight: 600; }
.install-txt .i-sm { vertical-align: -3px; }

/* Actualizar precios */
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list > li { border-bottom: 1px solid var(--border); }
.price-list > li:last-child { border-bottom: 0; }
.price-row { display: flex; align-items: center; gap: 16px; padding: 12px 20px; transition: background .3s; }
.price-info { flex: 1; min-width: 0; }
.price-info .sub { font-size: 12.5px; color: var(--muted); }
.price-edit { display: flex; gap: 8px; align-items: center; flex: none; }
.price-edit .affix { width: 130px; }
.price-edit input { text-align: right; }
.price-row.dirty .btn { background: var(--brand); color: #fff; border-color: var(--brand); }
.price-row.saved { background: var(--ok-bg); }
.price-row.error { background: var(--bad-bg); }
.price-row.error [data-estado] { color: var(--bad); }
@media (max-width: 680px) {
	.price-row { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
	.price-edit { width: 100%; }
	.price-edit .affix { flex: 1; width: auto; }
}

/* Modo app instalada: sin márgenes de navegador */
@media (display-mode: standalone) {
	body { overscroll-behavior-y: none; }
}
@media (max-width: 680px) {
	/* La etiqueta flota a la izquierda y el contenido de la celda se mantiene junto, alineado a la derecha */
	table.cards-on td { display: block; text-align: right; }
	table.cards-on td::before { float: left; margin-right: 12px; line-height: 20px; }
	table.cards-on td:first-child, table.cards-on td:first-child > div { text-align: left; }
	table.cards-on td .meter-row { display: inline-flex; width: 60%; vertical-align: middle; }
	table.cards-on td .badge, table.cards-on td .chip { vertical-align: middle; }
}
.price-info .title { font-weight: 600; color: var(--text-strong); text-decoration: none; }
.price-info .title:hover { color: var(--brand-600); }
@media (max-width: 680px) {
	table.cards-on td:first-child > div.sub { text-align: left !important; }
	/* Receta: cada línea en dos filas (ingrediente / cantidad · coste · quitar) */
	.lineas thead { display: none; }
	.lineas, .lineas tbody { display: block; }
	.lineas tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
	.lineas td, .lineas td:first-child { padding: 0; border: 0; }
	.lineas td:first-child { grid-column: 1 / -1; }
	.lineas .q input { width: 110px; }
	.lineas td.c { width: auto; }
	.lineas .del { width: auto; }
	.card-foot .live { width: 100%; gap: 6px 16px; }
	.sticky-bar { flex-wrap: wrap; }
	.sticky-bar .btn.ghost { display: none; }
	.sticky-bar .btn { white-space: normal; line-height: 1.2; font-size: 13.5px; }
}

/* Sin conexión y cambios pendientes */
.offline-bar { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; margin-bottom: 16px; border-radius: var(--r); background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); font-size: 13.5px; }
.offline-bar .i-sm { margin-top: 2px; }
.offline-bar:not(.is-offline) { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; max-width: min(92vw, 460px); background: var(--text-strong); color: #fff; padding: 12px 16px; border-radius: var(--r-lg); box-shadow: var(--sh-lg); font-size: 14px; line-height: 1.4; transition: opacity .3s, transform .3s; }
.toast.warn { background: #7a2e0e; }
.toast.out { opacity: 0; transform: translate(-50%, 8px); }
@media (max-width: 980px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } body.has-sticky .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.tab-fab { position: relative; }
.tab-badge { position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.price-row.pending { background: var(--warn-bg); }

/* =====================================================================
   Marca Pizcalia (marca/manual.html)
   Logotipo: la «p» del símbolo (static/icons/p.svg) como primera letra + «izcalia» en Plus Jakarta Sans 800.
   Romero #0f3d47 · Azafrán #e2702a · Pimienta #101828 · Sal #f6f7f9
   ===================================================================== */
.brand { gap: 0; }
.brand-name { font-family: "Plus Jakarta Sans", var(--font); font-weight: 800; font-size: 25px; letter-spacing: -.035em; color: var(--text-strong); line-height: 1; white-space: nowrap; }
.wm-p { height: 1em; width: auto; vertical-align: -0.2125em; margin-right: .025em; display: inline; }
.brand-name small { display: block; font-family: "Plus Jakarta Sans", var(--font); font-weight: 800; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-top: 8px; padding-left: 1px; }
.side .brand { padding: 8px 10px 20px; }
.topbar .brand-name { font-size: 22px; }
.auth-box .brand-name, .auth-main > .brand .brand-name { font-size: 27px; }

/* Área de cliente: Mis productos */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.prod-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; text-decoration: none !important; color: var(--text); margin: 0 !important; }
.prod-card:not(.is-on) { background: var(--surface-2); border-style: dashed; box-shadow: none; }
a.prod-card.is-on:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.prod-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prod-name { font-family: var(--font); font-weight: 600; font-size: 21px; letter-spacing: -.035em; color: var(--text-strong); margin: 0; line-height: 1.2; }
.prod-name span { color: var(--accent); }
.prod-name.plain { letter-spacing: -.02em; }
.prod-card:not(.is-on) .prod-name { color: var(--muted); }
.prod-card:not(.is-on) .prod-name span { color: #c99a77; }
.prod-card:not(.is-on) .wm-p { filter: grayscale(1); opacity: .55; }
.prod-text { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.prod-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-600); }
.muted-ico { filter: grayscale(1); opacity: .7; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plain-list li { display: flex; gap: 10px; align-items: flex-start; }
.plain-list .i-sm { color: var(--ok); margin-top: 3px; }

/* Menú del programa: volver al área de cliente */
.nav-back { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 7px 10px; border-radius: var(--r); font-size: 13px; font-weight: 600; color: var(--muted) !important; background: var(--surface-2); border: 1px solid var(--border); }
.nav-back:hover { color: var(--text-strong) !important; text-decoration: none; border-color: var(--border-strong); }
.nav a .soon, .nav a .tier { flex: none; }
a.user-txt { text-decoration: none !important; color: inherit; }
a.user-txt:hover div { color: var(--brand-600); }
@media (max-width: 980px) { body.seccion-cuenta .content { padding-bottom: 48px; } }

/* El menú lateral nunca se desplaza en horizontal: el nombre y el email largos se recortan con «…» */
.side { overflow-x: hidden; }
.user { min-width: 0; }
.user-txt { flex: 1 1 auto; min-width: 0; overflow: hidden; display: block; }
.user-txt div, .user-txt span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user form { flex: none; }

/* Mis productos: tarjeta «Pizcalia en tu móvil» */
.movil-card { display: flex; gap: 24px; align-items: center; padding: 20px; max-width: 760px; margin: 0 !important; }
.movil-qr { flex: none; padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); line-height: 0; }
.movil-qr svg { width: 132px; height: 132px; }
.movil-txt h3 { font-size: 16px; margin-bottom: 6px; }
.movil-txt p { margin: 0 0 12px; }
.solo-movil { display: none; }
@media (max-width: 980px) {
	.movil-qr, .solo-escritorio { display: none; }
	.solo-movil { display: inline; }
}
