/* Reservus IA · Panel del restaurante
 * Aplicación de sala: barra lateral oscura, lienzo claro, tarjetas con volumen,
 * Plus Jakarta Sans y color con significado (estado, canal, zona).
 */

body.panel-body {
  --sans: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Jakarta', system-ui, sans-serif;
  --canvas: #f4f1ea;
  --surface: #ffffff;
  --fg: #231f20;
  --fg-2: #4a4436;
  --muted: #6b778c;
  --faint: #a4aec0;
  --line: #efece4;
  --line-2: #f5f3ee;
  --fill: #f3efe4;
  --fill-2: #f1eee6;
  --brand: #8e793e;
  --brand-hover: #b59b53;
  --brand-ink: #826e38;
  --brand-50: #f6f1e2;
  --brand-100: #f5f1e6;
  --brand-200: #eae3ce;
  --green: #11884a;
  --green-2: #19a55c;
  --green-bg: #e3f6eb;
  --amber: #a15f00;
  --amber-bg: #fff3dc;
  --amber-dot: #f5a524;
  --red: #d92f45;
  --red-bg: #fdebee;
  --violet: #bca564;
  --r-sm: 10px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(35, 31, 20, .06);
  --shadow: 0 1px 2px rgba(35, 31, 20, .04), 0 10px 28px -16px rgba(35, 31, 20, .22);
  --shadow-card: 0 1px 1px rgba(35, 31, 20, .03), 0 2px 6px -2px rgba(35, 31, 20, .05), 0 14px 34px -22px rgba(35, 31, 20, .28);
  --shadow-lg: 0 0 0 1px rgba(35, 31, 20, .06), 0 20px 50px -18px rgba(35, 31, 20, .35);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  background: var(--canvas);
  color: var(--fg);
  font-feature-settings: 'tnum' 0;
  letter-spacing: 0;
}
.panel-body h1, .panel-body h2, .panel-body h3 { letter-spacing: -.015em; }
.panel-body .ic { width: 18px; height: 18px; flex: none; display: inline-block; }
.panel-body :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

/* ═════════ Estructura ═════════ */
.shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.stage { min-width: 0; }
.p-main { padding: 28px 32px 72px; max-width: 1600px; margin: 0 auto; }
.p-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 120px 0; color: var(--muted); font-weight: 500; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--brand-100); border-top-color: var(--brand); animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* Barra lateral */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px 16px; overflow-y: auto; color: #cfc6ae;
  background: radial-gradient(120% 60% at 0% 0%, rgba(142, 121, 62, .22), transparent 60%), linear-gradient(180deg, #1b1916 0%, #221f1a 100%); }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.side-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.12rem; letter-spacing: -.03em; }
.side-logo-img { display: block; height: 32px; width: auto; }
.side-logo svg { width: 32px; height: 32px; display: block; filter: drop-shadow(0 6px 14px rgba(142, 121, 62, .45)); }
.side-brand em, .login-brand em { font-style: normal; font-size: .64rem; font-weight: 700; letter-spacing: .04em; color: #e7ca69; background: rgba(231, 202, 105, .12); border: 1px solid rgba(231, 202, 105, .25); border-radius: 6px; padding: 1px 5px; margin-left: 6px; vertical-align: 3px; }
.side-close { display: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.side-close svg { width: 18px; height: 18px; margin: auto; }
.venue { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); }
.venue-av { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .82rem; color: #fff; background: linear-gradient(135deg, #0f766e, #0e5a74); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.venue-av.warn { background: linear-gradient(135deg, #f5a524, #e07b00); }
.venue-t { min-width: 0; display: grid; }
.venue-t strong { color: #fff; font-weight: 650; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venue-t small { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: #a39a82; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #f5a524; box-shadow: 0 0 0 3px rgba(245, 165, 36, .18); }
.live-dot.on { background: #34d17d; box-shadow: 0 0 0 3px rgba(52, 209, 125, .2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(52, 209, 125, 0); } }
.side-nav { display: grid; gap: 2px; }
.side-label { margin: 12px 10px 6px; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5f6d88; }
.side-label:first-child { margin-top: 0; }
.side-nav button, .side-nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: #cfc6ae; font: 550 .9rem var(--sans); text-decoration: none; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.side-nav .ic { width: 19px; height: 19px; color: #9a917a; transition: color .15s; }
.side-nav .ic.ext { width: 14px; height: 14px; margin-left: auto; opacity: .6; }
.side-nav button:hover, .side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav button:hover .ic, .side-nav a:hover .ic { color: #e7dcbd; }
.side-nav [aria-current='page'] { background: linear-gradient(90deg, rgba(142, 121, 62, .28), rgba(142, 121, 62, .1)); color: #fff; box-shadow: inset 0 0 0 1px rgba(212, 196, 154, .25); }
.side-nav [aria-current='page'] .ic { color: #ddd1b1; }
.side-nav [aria-current='page']::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #c9ad58; }
.nbadge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #f5a524; color: #1f1300; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.kbd-card { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); font-size: .76rem; }
.kbd-card p { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #e6dfcc; font-weight: 650; }
.kbd-card p .ic { width: 16px; height: 16px; color: #9a917a; }
.kbd-card dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 10px; margin: 0; align-items: center; }
.kbd-card dt { display: flex; gap: 3px; }
.kbd-card dd { margin: 0; color: #a39a82; }
.kbd-card kbd, .search kbd { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; font: 650 .68rem var(--sans); display: inline-grid; place-items: center; background: rgba(255, 255, 255, .08); color: #e6dfcc; border: 1px solid rgba(255, 255, 255, .1); border-bottom-width: 2px; }
.side-credit { margin: 0; padding: 0 8px; font-size: .7rem; color: #7d8aa3; display: flex; flex-direction: column; gap: 6px; }
.mbar, .side-scrim { display: none; }

/* ═════════ Cabecera de página ═════════ */
.page-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.page-h h1 { font-size: clamp(1.6rem, 2.4vw, 2.05rem); font-weight: 750; letter-spacing: -.022em; line-height: 1.1; margin: 0; }
.panel-body .eyebrow { display: block; margin: 0 0 6px; padding: 0; border: 0; background: none; font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: 0; text-transform: none; }
.page-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.search { position: relative; display: flex; align-items: center; gap: 10px; height: 42px; width: 300px; padding: 0 10px 0 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); color: var(--muted); transition: box-shadow .15s; }
.search:focus-within { box-shadow: 0 0 0 4px rgba(142, 121, 62, .14), inset 0 0 0 1px var(--brand); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 .88rem var(--sans); color: var(--fg); }
.search input::placeholder { color: var(--faint); }
.search kbd { background: var(--fill); color: var(--muted); border-color: var(--line); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.datenav { display: flex; align-items: center; height: 42px; padding: 3px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.datenav button { height: 36px; min-width: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; font: 650 .84rem var(--sans); color: var(--fg-2); cursor: pointer; display: grid; place-items: center; }
.datenav button:hover { background: var(--fill); color: var(--fg); }
.datenav button.on { background: var(--brand-50); color: var(--brand-ink); }
.datepick { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--fg-2); cursor: pointer; }
.datepick:hover { background: var(--fill); }
.datepick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.datepick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ═════════ Botones (panel) ═════════ */
.panel-body .btn { height: 42px; padding: 0 18px; border-radius: 12px; font: 650 .88rem/1 var(--sans); letter-spacing: -.01em; gap: 8px; }
.panel-body .btn .ic { width: 17px; height: 17px; }
.panel-body .btn-sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: .8rem; }
.panel-body .btn-sm .ic { width: 15px; height: 15px; }
.panel-body .btn-lg { height: 50px; font-size: .96rem; border-radius: 14px; }
.panel-body .btn-primary { background: linear-gradient(180deg, #ad974f, #8e793e); color: #fff; box-shadow: 0 1px 2px rgba(171, 145, 74, .35), 0 8px 20px -8px rgba(142, 121, 62, .7), inset 0 1px 0 rgba(255, 255, 255, .2); }
.panel-body .btn-primary:hover { background: linear-gradient(180deg, #8e793e, #b49a51); }
.panel-body .btn-secondary { background: var(--surface); color: var(--fg); border: 0; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.panel-body .btn-secondary:hover { background: var(--fill); }
.panel-body .btn-danger { background: linear-gradient(180deg, #e8475c, #cf2a40); box-shadow: 0 8px 20px -10px rgba(217, 47, 69, .8); }
.panel-body .btn-ghost.danger-t { color: var(--red); }
.btn-soft { background: var(--brand-50); color: var(--brand-ink); border: 0; }
.btn-soft:hover { background: var(--brand-100); }
.btn-soft.green { background: var(--green-bg); color: var(--green); }
.btn-soft.green:hover { background: #cdeedb; }
.btn-soft.amber { background: var(--amber-bg); color: var(--amber); }
.btn-soft.amber:hover { background: #ffe9bf; }
.panel-body .icon-btn { width: 34px; height: 34px; border-radius: 10px; color: var(--muted); }
.panel-body .icon-btn:hover { background: var(--fill); color: var(--fg); }
.panel-body .icon-btn .ic { width: 18px; height: 18px; }

/* ═════════ KPI ═════════ */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { position: relative; padding: 18px 20px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); display: grid; gap: 8px; align-content: start; overflow: hidden; }
.kpi header { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 650; color: var(--fg-2); }
.kpi-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.kpi-ic .ic { width: 17px; height: 17px; }
.kpi-ic.blue { background: var(--brand-50); color: var(--brand); }
.kpi-ic.amber { background: #fff1db; color: #d27a00; }
.kpi-ic.green { background: var(--green-bg); color: var(--green-2); }
.kpi-v { font-size: 2.3rem; font-weight: 750; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-v small { font-size: 1.1rem; font-weight: 650; color: var(--muted); margin-left: 2px; }
.kpi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 56px; }
.kpi-s { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .8rem; color: var(--muted); font-weight: 500; }
.kpi-s .sep { color: var(--faint); }
.kpi-s .dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.green { background: var(--green-2); box-shadow: 0 0 0 3px var(--green-bg); }
.amber-t { color: var(--amber); font-weight: 650; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 44px; width: min(132px, 55%); }
.spark i { flex: 1; border-radius: 3px 3px 2px 2px; background: linear-gradient(180deg, #ffb74a, #f59e0b); opacity: .9; }
.spark i.z { background: var(--fill-2); opacity: 1; }
.ring { width: 58px; height: 58px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 7; stroke: var(--fill-2); }
.ring .val { stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.ring.green .val { stroke: var(--green-2); }
.kpi.ai { color: #fff; background: radial-gradient(90% 120% at 100% 0%, rgba(203, 184, 132, .55), transparent 55%), linear-gradient(150deg, #2b2619, #4f4322); box-shadow: 0 18px 40px -20px rgba(60, 50, 22, .9); }
.kpi.ai::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 14px 14px; mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.kpi.ai header { color: #ece5d2; }
.kpi.ai .kpi-ic { background: rgba(255, 255, 255, .12); color: #e7ca69; }
.ai-pct { display: grid; text-align: right; line-height: 1.1; }
.ai-pct b { font-size: 1.25rem; font-weight: 750; color: #e7ca69; }
.ai-pct span { font-size: .72rem; color: #d5cbae; }
.kpi.ai .kpi-s { position: relative; z-index: 1; }
.ai-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #efe7cf; font-size: .74rem; font-weight: 600; }
.ai-chip .ic { width: 13px; height: 13px; }

/* ═════════ Rejilla y tarjetas ═════════ */
.p-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.col-main, .col-side { display: grid; gap: 20px; min-width: 0; }
.col-side { position: sticky; top: 20px; }
.panel-body .card { position: relative; background: var(--surface); border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.panel-body .card + .card { margin-top: 0; }
.panel-body .card.pad { padding: 20px; }
.panel-body .card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); min-height: 60px; }
.panel-body .card-h h2 { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.panel-body .card-h h2 > .ic { width: 19px; height: 19px; color: var(--brand); }
.card-h .muted { color: var(--muted); font-weight: 500; }
.panel-body .count { font-family: var(--sans); font-size: .72rem; font-weight: 700; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--fill); color: var(--fg-2); display: inline-grid; place-items: center; }
.count.hot { background: var(--red); color: #fff; }

/* Control segmentado */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--fill); flex-wrap: wrap; }
.seg button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font: 650 .8rem var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.seg button .ic { width: 15px; height: 15px; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(35, 31, 20, .1), 0 2px 6px -2px rgba(35, 31, 20, .12); }
.seg button[aria-pressed='true'] .ic { color: var(--brand); }

/* ═════════ Selector de hora ═════════ */
.plan-wrap { padding: 18px 20px 20px; }
.scrub { display: flex; gap: 18px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 4px; scrollbar-width: thin; }
.scrub-g { display: grid; gap: 8px; flex: none; }
.scrub-l { font-size: .68rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.scrub-row { display: flex; gap: 6px; }
.scrub button { position: relative; flex: none; width: 60px; height: 50px; padding: 8px 8px 7px; border: 0; border-radius: 12px; background: var(--fill); cursor: pointer; display: grid; align-content: space-between; justify-items: center; transition: background .15s, transform .15s; }
.scrub button span { font: 700 .82rem var(--sans); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.scrub button i { width: 100%; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--brand) calc(var(--o) * 100%), var(--fill-2) 0); }
.scrub button:hover { background: var(--fill-2); }
.scrub button[aria-pressed='true'] { background: linear-gradient(180deg, #ad974f, #8e793e); box-shadow: 0 8px 18px -8px rgba(142, 121, 62, .8); }
.scrub button[aria-pressed='true'] span { color: #fff; }
.scrub button[aria-pressed='true'] i { background: linear-gradient(90deg, #fff calc(var(--o) * 100%), rgba(255, 255, 255, .3) 0); }
.scrub button.now::after { content: 'AHORA'; position: absolute; top: -7px; right: -4px; padding: 1px 5px; border-radius: 5px; background: var(--red); color: #fff; font-size: .55rem; font-weight: 800; letter-spacing: .06em; }

/* ═════════ Plano de sala ═════════ */
.plan { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 100 / 64; min-height: 380px; border-radius: 16px; background-color: #f8f5ec;
  background-image: linear-gradient(rgba(35, 31, 20, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 31, 20, .035) 1px, transparent 1px);
  background-size: 24px 24px; box-shadow: inset 0 0 0 1px var(--line-2); }
.zone { position: absolute; border-radius: 18px; }
.zone span { position: absolute; top: 10px; left: 12px; display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(4px); font-size: .7rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); box-shadow: 0 1px 2px rgba(35, 31, 20, .08); }
.zone span b { font-weight: 700; color: var(--muted); letter-spacing: 0; }
.z-warm { background: #f5ede1 repeating-linear-gradient(90deg, rgba(150, 105, 50, .06) 0 1px, transparent 1px 42px); box-shadow: inset 0 0 0 1px rgba(150, 105, 50, .12); }
.z-green { background: #e6f3ea; background-image: linear-gradient(rgba(20, 110, 60, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 110, 60, .06) 1px, transparent 1px); background-size: 30px 30px; box-shadow: inset 0 0 0 1px rgba(20, 110, 60, .12); }
.z-violet { background: #f7f4ec; box-shadow: inset 0 0 0 1px rgba(188, 165, 100, .14); }
.z-sky { background: #f7f4eb; box-shadow: inset 0 0 0 1px rgba(133, 113, 57, .12); }

.tbl { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; font: inherit; color: var(--fg); transition: transform .18s ease; }
.tbl:hover { transform: translateY(-2px); z-index: 3; }
.tbl:focus-visible { outline: none; }
.tbl:focus-visible .top { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand); }
.chairs { position: absolute; inset: clamp(3px, .65cqw, 5px); pointer-events: none; }
.chair { position: absolute; width: clamp(8px, 2.2cqw, 18px); height: clamp(4px, 1cqw, 8px); border-radius: 5px 5px 3px 3px; background: #d3d9e4; transform: translate(-50%, -50%) rotate(var(--rot)); transition: background .2s; box-shadow: inset 0 -1px 0 rgba(35, 31, 20, .08); }
.top { position: absolute; inset: clamp(6px, 1.4cqw, 11px); container-type: size; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px #e0d9c6, 0 1px 2px rgba(35, 31, 20, .06), 0 8px 18px -10px rgba(35, 31, 20, .35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; text-align: center; overflow: hidden; transition: box-shadow .18s, background .18s; }
.tbl.round .top { border-radius: 50%; }
.tbl:hover .top { box-shadow: inset 0 0 0 1.5px var(--brand-200), 0 14px 26px -12px rgba(35, 31, 20, .45); }
.top .tid { position: absolute; top: 5px; left: 7px; font-size: .62rem; font-weight: 800; color: var(--faint); letter-spacing: .02em; }
.tbl.round .top .tid { position: static; }
.top .tname { max-width: 100%; font-size: .76rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
.top .tmeta { font-size: .64rem; font-weight: 600; opacity: .75; white-space: nowrap; }
.top .tfree { font-size: .72rem; font-weight: 650; color: var(--faint); white-space: nowrap; }
.top .tnext { display: inline-flex; align-items: center; gap: 3px; height: 17px; padding: 0 6px; border-radius: 999px; background: var(--fill); color: var(--fg-2); font-size: .6rem; font-weight: 700; }
.top .tnext .ic { width: 10px; height: 10px; }
.top .av.xs { margin-bottom: 1px; }
@container (max-height: 74px) { .top .av { display: none; } }
@container (max-height: 46px) { .top .tmeta, .top .tnext { display: none; } }
@container (max-width: 64px) { .top .tid { display: none; } .top .tname { font-size: .68rem; } }
@container (max-width: 40px) { .top .tfree { font-size: .6rem; } }
.tbl.st-reservada .top { background: #f6f1e2; box-shadow: inset 0 0 0 1.5px #d8c88f, 0 8px 18px -10px rgba(142, 121, 62, .5); color: var(--brand-ink); }
.tbl.st-reservada .chair.on { background: #c4ad62; }
.tbl.st-llegada .top { background: linear-gradient(160deg, #1fb866, #10894a); color: #fff; box-shadow: 0 0 0 4px rgba(25, 165, 92, .14), 0 10px 22px -10px rgba(16, 137, 74, .8); }
.tbl.st-llegada .top .tid { color: rgba(255, 255, 255, .7); }
.tbl.st-llegada .chair.on { background: #3cc47e; }
.tbl.st-pendiente_pago .top { background: #fff5e2; box-shadow: inset 0 0 0 1.5px #f6c567, 0 8px 18px -10px rgba(245, 165, 36, .6); color: #7a4700; }
.tbl.st-pendiente_pago .chair.on { background: #f5b545; }
.tbl.flagged::after { content: '!'; position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; z-index: 2; }
.plan.edit .tbl { cursor: grab; touch-action: none; }
.plan.edit .tbl.dragging { cursor: grabbing; z-index: 5; transform: scale(1.04); }
.plan.edit .tbl.dragging .top { box-shadow: inset 0 0 0 2px var(--brand), 0 18px 30px -12px rgba(142, 121, 62, .6); }
.plan.edit .tbl:focus-visible .top { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--brand); }
.plan.edit { min-height: 300px; }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; font-size: .78rem; font-weight: 550; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 16px; height: 12px; border-radius: 4px; display: inline-grid; place-items: center; font-style: normal; }
.legend i.l { background: #fff; box-shadow: inset 0 0 0 1.5px #e0d9c6; }
.legend i.r { background: #f6f1e2; box-shadow: inset 0 0 0 1.5px #d8c88f; }
.legend i.a { background: linear-gradient(160deg, #1fb866, #10894a); }
.legend i.p { background: #fff5e2; box-shadow: inset 0 0 0 1.5px #f6c567; }
.legend i.f { width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: #fff; font-size: .62rem; font-weight: 800; }
.legend .hint { margin-left: auto; color: var(--faint); }
.legend .hint .ic { width: 14px; height: 14px; }
@media (max-width: 760px) { .plan-scroll { overflow-x: auto; margin: 0 -20px; padding: 6px 20px; } .plan { min-width: 680px; } .legend .hint { margin-left: 0; } }

/* ═════════ Por horas ═════════ */
.tl { overflow-x: auto; padding: 6px 0 10px; }
.tl-grid { position: relative; min-width: 940px; }
.tl-row { display: grid; grid-template-columns: 112px 1fr; height: 54px; }
.tl-label { display: grid; align-content: center; padding: 0 20px; border-right: 1px solid var(--line-2); }
.tl-label b { font-size: .86rem; font-weight: 750; }
.tl-label small { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-lane { position: relative; border-bottom: 1px solid var(--line-2); background-image: linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: calc(100% / var(--hours)) 100%; }
.tl-row:nth-child(even) .tl-lane { background-color: #fbf9f3; }
.tl-head { height: 38px; }
.tl-head .tl-lane { background: none; display: flex; border-bottom: 1px solid var(--line); }
.tl-head .tl-lane span { flex: 1; font-size: .68rem; font-weight: 700; color: var(--muted); padding: 12px 0 0 8px; border-left: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.bar { position: absolute; top: 8px; bottom: 8px; border: 0; border-radius: 11px; padding: 0 10px 0 5px; display: flex; align-items: center; gap: 7px; font: 600 .74rem var(--sans); cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; background: #f6f1e2; color: var(--brand-ink); box-shadow: inset 0 0 0 1px #e3d6a8; transition: transform .15s, box-shadow .15s; }
.bar:hover, .bar:focus-visible { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--brand), 0 8px 16px -8px rgba(142, 121, 62, .6); z-index: 2; outline: none; }
.bar b { font-weight: 750; }
.bar span:not(.chan) { opacity: .75; font-weight: 600; }
.bar .chan { display: grid; place-items: center; flex: none; margin-left: 4px; }
.bar .chan .ic { width: 13px; height: 13px; }
.bar.st-llegada { background: linear-gradient(160deg, #1fb866, #10894a); color: #fff; box-shadow: none; }
.bar.st-llegada .chan .ic { color: #fff; }
.bar.st-pendiente_pago { background: #fff5e2; color: #7a4700; box-shadow: inset 0 0 0 1px #f6c567; }
.bar.st-completada, .bar.st-no_show { background: var(--fill); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.bar.st-no_show { text-decoration: line-through; }
.tl-now { position: absolute; top: 30px; bottom: 0; width: 2px; background: var(--red); z-index: 3; pointer-events: none; border-radius: 2px; }
.tl-now span { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 2px 6px; border-radius: 6px; background: var(--red); color: #fff; font-size: .62rem; font-weight: 800; }

/* ═════════ Lista de reservas ═════════ */
.tbl-scroll { overflow-x: auto; position: relative; }
.list-card { container-type: inline-size; }
@container (max-width: 1000px) {
  .list-card .rt td, .list-card .rt thead th { padding-left: 10px; padding-right: 10px; }
  .list-card .rt td.c-chan .chan > span { display: none; }
  .list-card .who { min-width: 0; gap: 10px; }
  .list-card .rt thead th { letter-spacing: .04em; }
  .list-card .row-acts .btn-soft { padding: 0 10px; }
}
@container (max-width: 740px) {
  .list-card .row-acts .btn-soft .lbl { display: none; }
  .list-card .row-acts .btn-soft { width: 34px; padding: 0; }
.list-card .rt .c-who .who .av { display: none; }
}
.rt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.rt thead th { text-align: left; font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--surface); }
.rt thead th:first-child, .rt td:first-child { padding-left: 20px; }
.rt thead th:last-child, .rt td:last-child { padding-right: 20px; }
.rt tr.grp th { text-align: left; padding: 10px 20px; background: linear-gradient(180deg, #faf8f1, #f5f1e7); border-bottom: 1px solid var(--line-2); border-top: 1px solid var(--line-2); font-size: .84rem; font-weight: 750; color: var(--fg); }
.grp-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 8px; background: #fff; color: #d27a00; box-shadow: 0 1px 2px rgba(35, 31, 20, .1); vertical-align: middle; }
.grp-ic .ic { width: 14px; height: 14px; }
tbody:nth-of-type(3) .grp-ic, .rt tbody + tbody .grp-ic { color: var(--violet); }
.grp-meta { margin-left: 12px; font-size: .76rem; font-weight: 550; color: var(--muted); }
.rt td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; transition: background .12s; }
.rt tbody tr:not(.grp):hover td { background: #fcfaf3; }
.rt tbody:last-child tr:last-child td { border-bottom: 0; }
.c-time b { font-size: .92rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.who { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.who .name { font-weight: 700; font-size: .9rem; color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
.who .name:hover { color: var(--brand); }
.who .sub { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.who .code { font-size: .72rem; font-weight: 600; color: var(--faint); letter-spacing: .02em; }
.ntag { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px 0 6px; border-radius: 999px; background: var(--fill); color: var(--fg-2); font-size: .7rem; font-weight: 650; white-space: nowrap; }
.ntag .ic { width: 12px; height: 12px; color: var(--muted); }
.pt { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.party { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; font-variant-numeric: tabular-nums; }
.party .ic { width: 15px; height: 15px; color: var(--faint); }
.tchip { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 8px; background: var(--fill); font-size: .76rem; font-weight: 750; color: var(--fg-2); white-space: nowrap; }
.chan { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600; color: var(--fg-2); white-space: nowrap; }
.chan .ic { width: 16px; height: 16px; }
.ch-telefono_ia .ic, .ch-telefono_ia > .ic { color: var(--brand); }
.ch-whatsapp .ic { color: #1ba34f; }
.ch-web .ic { color: #6b6558; }
.ch-panel .ic { color: var(--violet); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; background: var(--fill); color: var(--fg-2); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.st-confirmada { background: var(--brand-50); color: var(--brand-ink); }
.pill.st-confirmada::before { background: var(--brand); }
.pill.st-llegada { background: var(--green-bg); color: var(--green); }
.pill.st-llegada::before { background: var(--green-2); box-shadow: 0 0 0 3px rgba(25, 165, 92, .2); }
.pill.st-pendiente_pago { background: var(--amber-bg); color: var(--amber); }
.pill.st-pendiente_pago::before { background: var(--amber-dot); }
.pill.st-completada { color: var(--muted); }
.pill.st-completada::before { background: var(--faint); }
.pill.st-no_show { background: var(--red-bg); color: var(--red); }
.pill.st-cancelada { color: var(--faint); text-decoration: line-through; }
.att { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: .72rem; font-weight: 600; color: var(--muted); }
.att .ic { width: 13px; height: 13px; }
.att.ok { color: var(--green); }
.att.bad { color: var(--red); }
.rt tr.dim td { opacity: .55; }
.rt tr.dim:hover td { opacity: .85; }
.rt tr.flag-row td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.row-acts { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }

/* Avatares */
.av { width: 36px; height: 36px; border-radius: 12px; flex: none; display: inline-grid; place-items: center; background: var(--av-bg, var(--fill)); color: var(--av-fg, var(--fg-2)); font-size: .74rem; font-weight: 750; letter-spacing: .01em; }
.av.xs { width: 22px; height: 22px; border-radius: 7px; font-size: .56rem; }
.av.lg { width: 48px; height: 48px; border-radius: 15px; font-size: .95rem; }

/* Menú contextual */
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 230px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: none; }
.menu.open .menu-list { display: block; animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu-list button { width: 100%; text-align: left; height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font: 550 .85rem var(--sans); color: var(--fg); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.menu-list button:hover, .menu-list button:focus-visible { background: var(--fill); outline: none; }
.menu-list button.danger { color: var(--red); }
.menu-list button.danger:hover { background: var(--red-bg); }
.menu-list hr { border: 0; border-top: 1px solid var(--line-2); margin: 5px 4px; }

/* ═════════ Columna derecha ═════════ */
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox li { padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.inbox li:last-child { border-bottom: 0; }
.inbox-card.has::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #f5a524, #f06a3c); }
.ib-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: .74rem; color: var(--muted); font-weight: 550; }
.ib-top .chan { font-size: .74rem; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; background: var(--fill); }
.ib-top .chan .ic { width: 14px; height: 14px; }
.inbox strong { display: block; font-weight: 750; font-size: .95rem; margin-bottom: 4px; letter-spacing: -.015em; }
.inbox p { margin: 0 0 12px; font-size: .84rem; color: var(--fg-2); line-height: 1.5; }
.inbox .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.up { list-style: none; margin: 0; padding: 6px 8px 8px; }
.up button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; text-align: left; font: inherit; color: var(--fg); transition: background .12s; }
.up button:hover { background: var(--fill); }
.up-t { flex: 1; min-width: 0; display: grid; }
.up-t strong { font-weight: 700; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-t small { font-size: .76rem; color: var(--muted); font-weight: 550; }
.up-w { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; color: var(--brand-ink); white-space: nowrap; }
.up-w .late { color: var(--red); }
.up-w .okc { display: inline-grid; color: var(--green-2); }
.up-w .okc .ic { width: 15px; height: 15px; }
.mix { list-style: none; margin: 0; padding: 14px 20px 18px; display: grid; gap: 12px; }
.mix li { display: grid; grid-template-columns: 128px 1fr 26px; align-items: center; gap: 10px; }
.mix-bar { height: 8px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.mix-bar i { display: block; height: 100%; border-radius: 99px; }
.mix li.ch-telefono_ia i { background: linear-gradient(90deg, #c9ad58, var(--brand)); }
.mix li.ch-whatsapp i { background: linear-gradient(90deg, #53d18a, #1ba34f); }
.mix li.ch-web i { background: linear-gradient(90deg, #9aa8bf, #6b6558); }
.mix li.ch-panel i { background: linear-gradient(90deg, #dbceaa, var(--violet)); }
.mix b { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.panel-body .empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 20px; text-align: center; color: var(--muted); font-size: .84rem; }
.panel-body .empty .ic { width: 26px; height: 26px; color: var(--faint); }
.panel-body .empty.big { padding: 56px 20px; }
.panel-body .empty.big strong { color: var(--fg); font-size: 1rem; font-weight: 700; }
@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .p-grid { grid-template-columns: 1fr; } .col-side { position: static; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; } }

/* ═════════ Diálogos ═════════ */
.panel-body dialog { border: 0; border-radius: 22px; padding: 0; width: min(580px, calc(100% - 24px)); box-shadow: 0 30px 80px -20px rgba(35, 31, 20, .5); color: var(--fg); background: var(--surface); }
.panel-body dialog[open] { animation: dlg .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes dlg { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.panel-body dialog::backdrop { background: rgba(27, 25, 22, .45); backdrop-filter: blur(4px); }
.dlg-h { display: flex; align-items: center; gap: 14px; padding: 22px 24px 16px; }
.dlg-h > div { flex: 1; min-width: 0; }
.dlg-h h2 { font-size: 1.2rem; font-weight: 750; margin: 0; letter-spacing: -.025em; }
.dlg-h .sub { display: block; margin-top: 2px; font-size: .8rem; font-weight: 550; color: var(--muted); }
.dlg-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.dlg-ic.red { background: var(--red-bg); color: var(--red); }
.dlg-ic .ic { width: 21px; height: 21px; }
.dlg-b { padding: 6px 24px 20px; display: grid; gap: 16px; }
.dlg-f { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--line-2); background: #fcfbf8; }
.dlg-f .left { margin-right: auto; }
.lead-p { margin: 0; color: var(--fg-2); font-size: .92rem; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.facts > div { display: grid; gap: 6px; align-content: start; padding: 10px 12px; border-radius: 12px; background: var(--fill); }
.facts span:first-child { font-size: .66rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts b { font-size: 1.05rem; font-weight: 750; }
.facts .pill { justify-self: start; height: 22px; font-size: .68rem; }
@media (max-width: 520px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; margin: 0; font-size: .86rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kv .att { margin: 0; }
.nfull { width: 100%; color: var(--fg-2); }
.acc { border-radius: 14px; background: var(--fill); padding: 0 14px; }
.acc summary { display: flex; align-items: center; gap: 8px; height: 44px; font-weight: 700; font-size: .84rem; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ic { width: 16px; height: 16px; color: var(--muted); }
.acc summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform .15s; }
.acc[open] summary::after { transform: rotate(-135deg); }
.acc .acts { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 0 14px; }
.hist { font-size: .78rem; color: var(--fg-2); margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 6px; }
.hist .ok { color: var(--green); font-weight: 800; margin-right: 6px; }
.hist .bad { color: var(--red); font-weight: 800; margin-right: 6px; }
.note-box { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--fill); color: var(--fg-2); font-size: .8rem; }
.note-box .ic { width: 16px; height: 16px; color: var(--brand); margin-top: 1px; }
.row3 { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 12px; }
@media (max-width: 480px) { .row3 { grid-template-columns: 1fr 1fr; } }
.hist-old { font-size: .78rem; color: var(--muted); }
.panel-body .alert { border-radius: 12px; border: 0; padding: 12px 14px; font-weight: 550; }
.panel-body .alert .ic { width: 17px; height: 17px; }
.panel-body .alert.info { background: var(--brand-50); color: var(--brand-ink); }

/* Campos */
.panel-body .field label, .panel-body .flabel { font-size: .8rem; font-weight: 700; color: var(--fg-2); margin-bottom: 7px; }
.panel-body .field input, .panel-body .field textarea, .panel-body .field select { height: 44px; border: 0; border-radius: 12px; padding: 0 14px; font: 550 .92rem var(--sans); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.panel-body .field textarea { height: auto; padding: 12px 14px; }
.panel-body .field input:hover, .panel-body .field select:hover, .panel-body .field textarea:hover { box-shadow: inset 0 0 0 1px #d3cbb5, var(--shadow-sm); }
.panel-body .field input:focus, .panel-body .field select:focus, .panel-body .field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 4px rgba(142, 121, 62, .14); }
.panel-body .field input[aria-invalid='true'] { box-shadow: inset 0 0 0 1.5px var(--red), 0 0 0 4px rgba(217, 47, 69, .12); }
.panel-body .note { font-size: .82rem; color: var(--muted); }

/* Avisos emergentes */
.panel-body .toasts { left: 50%; right: auto; bottom: 22px; transform: translateX(-50%); width: min(440px, calc(100% - 24px)); }
.panel-body .toast { gap: 12px; padding: 12px 12px 12px 16px; border-radius: 14px; background: #231f1a; font-weight: 550; box-shadow: 0 20px 44px -16px rgba(27, 25, 22, .7); animation: tin .22s cubic-bezier(.2, .8, .2, 1); }
.panel-body .toast > .ic { color: #5fe09a; width: 18px; height: 18px; }
.panel-body .toast button { border-radius: 9px; border-color: rgba(255, 255, 255, .2); font-weight: 650; }
body:has(.savebar.show) .toasts { bottom: 92px; }
.panel-body .toast.out { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* ═════════ Ajustes ═════════ */
.settings { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 90px; }
.set-nav { position: sticky; top: 20px; display: grid; gap: 2px; padding: 8px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.set-nav button { display: flex; align-items: center; gap: 10px; text-align: left; height: 42px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; font: 600 .86rem var(--sans); color: var(--fg-2); cursor: pointer; }
.set-nav button .ic { width: 17px; height: 17px; color: var(--faint); }
.set-nav button:hover { background: var(--fill); color: var(--fg); }
.set-nav button[aria-current='page'] { background: var(--brand-50); color: var(--brand-ink); }
.set-nav button[aria-current='page'] .ic { color: var(--brand); }
.set-sec { background: var(--surface); border: 0; border-radius: var(--r-lg); padding: 28px 30px; display: grid; gap: 16px; box-shadow: var(--shadow-card); }
.set-sec h2 { font-size: 1.3rem; font-weight: 750; margin: 0; letter-spacing: -.03em; }
.set-sec h3 { font-size: .98rem; font-weight: 750; margin: 8px 0 0; }
.set-sec > .note { margin: -10px 0 6px; }
@media (max-width: 900px) { .settings { grid-template-columns: 1fr; } .set-nav { position: static; display: flex; overflow-x: auto; } .set-nav button { white-space: nowrap; flex: none; } }
.savebar { position: fixed; left: calc(50% + 134px); bottom: 22px; transform: translate(-50%, 160%); z-index: 50; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; background: #231f1a; color: #fff; border-radius: 16px; box-shadow: 0 20px 44px -16px rgba(27, 25, 22, .7); transition: transform .25s cubic-bezier(.2, .8, .2, 1); font-size: .86rem; font-weight: 600; }
.savebar.show { transform: translate(-50%, 0); }
.savebar .btn-secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.savebar .btn-secondary:hover { background: rgba(255, 255, 255, .08); }
.mesas-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; align-items: start; }
@media (max-width: 1200px) { .mesas-grid { grid-template-columns: 1fr; } }
.rt.ed { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.rt.ed td { padding: 6px 8px; }
.rt.ed th { padding: 10px 8px; }
.rt.ed td:first-child, .rt.ed th:first-child { padding-left: 12px; }
.mini { width: 100%; height: 36px; border: 0; border-radius: 10px; padding: 0 10px; font: 600 .86rem var(--sans); color: var(--fg); background: var(--fill); }
.mini:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 3px rgba(142, 121, 62, .14); }
.mini-step { display: inline-grid; grid-template-columns: 30px 34px 30px; align-items: center; height: 36px; border-radius: 10px; overflow: hidden; background: var(--fill); }
.mini-step button { height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 1.05rem; font-weight: 600; color: var(--fg-2); }
.mini-step button:hover { background: var(--brand-100); color: var(--brand-ink); }
.mini-step span { text-align: center; font-weight: 750; font-size: .88rem; font-variant-numeric: tabular-nums; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px 0 12px; background: var(--brand-50); color: var(--brand-ink); border: 0; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.chip-x small { color: var(--muted); font-weight: 550; }
.chip-x button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--brand-ink); font-size: 1rem; line-height: 1; }
.chip-x button:hover { background: var(--brand-100); }
.combo-builder { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pick { height: 34px; min-width: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--fill); font: 700 .8rem var(--sans); color: var(--fg-2); cursor: pointer; transition: background .12s; }
.pick:hover { background: var(--fill-2); }
.pick.on { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(142, 121, 62, .8); }
.svc-row { display: grid; grid-template-columns: 1.1fr .9fr .9fr auto auto; gap: 12px; align-items: end; padding: 16px; border-radius: 14px; background: var(--fill); }
.svc-row .field input { background: #fff; }
.days { display: flex; gap: 4px; }
.days .pick { min-width: 34px; padding: 0; background: #fff; }
.days .pick.on { background: var(--brand); }
@media (max-width: 900px) { .svc-row { grid-template-columns: 1fr 1fr; } }
.inline-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-add input { height: 42px; border: 0; border-radius: 12px; padding: 0 14px; font: 550 .9rem var(--sans); color: var(--fg); flex: 1; min-width: 180px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.inline-add input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 4px rgba(142, 121, 62, .14); }
.radio-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.radio-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .radio-cards, .radio-cards.three { grid-template-columns: 1fr; } }
.rc { position: relative; display: grid; gap: 4px; padding: 16px 16px 16px 44px; border: 0; border-radius: 14px; cursor: pointer; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, background .15s; }
.rc input { position: absolute; left: 16px; top: 18px; accent-color: var(--brand); margin: 0; width: 16px; height: 16px; }
.rc strong { font-size: .92rem; font-weight: 750; }
.rc span { font-size: .8rem; color: var(--muted); }
.rc:hover { box-shadow: inset 0 0 0 1px var(--brand-200); }
.rc.on { background: var(--brand-50); box-shadow: inset 0 0 0 2px var(--brand); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 650; font-size: .9rem; padding: 14px 16px; border-radius: 14px; background: var(--fill); }
.switch input { width: 42px; height: 24px; appearance: none; background: #d8d0bb; border-radius: 999px; position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s cubic-bezier(.2, .8, .2, 1); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }

/* ═════════ Pruebas ═════════ */
.t-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.t-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 1100px) { .t-grid { grid-template-columns: 1fr; } }
.conn { list-style: none; margin: 0; padding: 6px 8px; }
.conn li { display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; }
.conn li:hover { background: var(--fill); }
.conn strong { display: block; font-size: .88rem; font-weight: 700; }
.conn span { font-size: .76rem; color: var(--muted); font-family: var(--sans); }
.conn .dot { width: 10px; height: 10px; border-radius: 50%; background: #d8d0bb; }
.conn .dot.ok { background: var(--green-2); box-shadow: 0 0 0 4px var(--green-bg); }
.tag-st { font-family: var(--sans) !important; font-size: .72rem !important; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--fill); color: var(--muted) !important; }
.tag-st.ok { background: var(--green-bg); color: var(--green) !important; }
.copy { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; }
.copy span { grid-column: 1 / -1; font-size: .8rem; font-weight: 650; color: var(--fg-2); }
.copy code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .78rem; background: var(--fill); border-radius: 10px; padding: 9px 12px; overflow-x: auto; white-space: nowrap; }
.chat { height: 320px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, #faf8f1, #f3efe4); }
.chat .msg { max-width: 85%; }
.chat-in { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-2); }
.chat-in input { height: 42px; border: 0; border-radius: 12px; padding: 0 14px; font: 550 .9rem var(--sans); flex: 1; min-width: 0; background: var(--fill); }
.chat-in input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand); }
.prev-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; padding: 20px; align-items: start; }
@media (max-width: 900px) { .prev-grid { grid-template-columns: 1fr; } }
.wa-phone { border-radius: 22px; overflow: hidden; background: #efeae2; box-shadow: 0 0 0 8px #231f1a, 0 24px 50px -20px rgba(27, 25, 22, .6); margin: 8px; }
.wa-top { background: #075e54; color: #fff; padding: 14px 16px; font-weight: 700; font-size: .9rem; }
.wa-top small { display: block; font-weight: 500; opacity: .75; font-size: .72rem; }
.wa-body { padding: 16px 12px; min-height: 280px; background-image: radial-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px); background-size: 12px 12px; }
.wa-bubble { position: relative; background: #fff; border-radius: 10px 10px 10px 3px; padding: 8px 10px 18px; font-size: .84rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); max-width: 95%; word-wrap: break-word; }
.wa-time { position: absolute; right: 8px; bottom: 3px; font-size: .64rem; color: #8a8a8a; }
.mail-prev { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mail-subj { padding: 12px 16px; border-bottom: 1px solid var(--line-2); display: grid; gap: 2px; font-size: .86rem; }
.mail-prev iframe { width: 100%; height: 520px; border: 0; display: block; }
.settings > *, .mesas-grid > * { min-width: 0; }
.mesas-grid > div { overflow-x: auto; }
.panel-body .card > .dlg-b, .tests .card .dlg-b { padding: 18px 20px; }

/* ═════════ Acceso ═════════ */
body.is-login .shell { grid-template-columns: 1fr; }
body.is-login .side, body.is-login .mbar { display: none; }
body.is-login .p-main { max-width: none; padding: 0; }
.login-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.login-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 56px 56px; color: #fff; background: linear-gradient(165deg, rgba(27, 25, 22, .35), rgba(27, 25, 22, .92) 70%), radial-gradient(80% 60% at 0% 0%, rgba(142, 121, 62, .5), transparent 60%), url('../restaurante/img/sala.webp') center / cover; }
.login-brand { display: inline-flex; align-items: center; }
.login-brand img { display: block; height: 40px; width: auto; }
.login-art-in { max-width: 480px; }
.login-art .eyebrow { color: #e7ca69; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 750; }
.login-art h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.05; margin: 0 0 28px; }
.login-art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.login-art li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); font-size: .92rem; font-weight: 550; color: #efe7cf; }
.login-art li .ic { width: 20px; height: 20px; color: #e7ca69; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 48px 28px; background: var(--surface); }
.login-form form, .login-form .setup { width: min(420px, 100%); display: grid; gap: 20px; }
.login-form h1 { font-size: 2rem; font-weight: 750; letter-spacing: -.04em; margin: 0; }
.login-venue { display: flex; align-items: center; gap: 12px; }
.login-venue strong { display: block; font-weight: 750; }
.login-venue small { color: var(--muted); font-size: .82rem; }
.login-form .field input { height: 50px; font-size: 1rem; }
.login-form .err { color: var(--red); font-size: .82rem; font-weight: 600; margin-top: 7px; }
.setup ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; color: var(--fg-2); font-size: .92rem; }
.setup li { counter-increment: s; position: relative; padding: 12px 14px 12px 50px; border-radius: 14px; background: var(--fill); }
.setup li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 8px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 800; display: grid; place-items: center; }
.setup b { color: var(--fg); }
.setup code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; background: var(--brand-50); color: var(--brand-ink); padding: 2px 7px; border-radius: 6px; font-weight: 600; }
@media (max-width: 900px) { .login-split { grid-template-columns: 1fr; } .login-art { min-height: 240px; padding: 28px 24px; } .login-art ul { display: none; } .login-art h2 { font-size: 1.7rem; margin: 0; } }

/* ═════════ Móvil ═════════ */
@media (max-width: 1020px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 284px; z-index: 80; transform: translateX(-102%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); box-shadow: 20px 0 50px -20px rgba(0, 0, 0, .5); }
  body.side-open .side { transform: none; }
  .side-close { display: grid; }
  .side-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(27, 25, 22, .45); backdrop-filter: blur(2px); }
  body.side-open .side-scrim { display: block; }
  .mbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 14px; background: #1b1916; color: #fff; }
  .mbar-menu { width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; }
  .mbar-menu svg { width: 20px; height: 20px; }
  .mbar-title { font-weight: 700; letter-spacing: -.02em; }
  .p-main { padding: 20px 16px 72px; }
  .savebar { left: 50%; }
}
@media (max-width: 640px) {
  .page-tools { width: 100%; }
  .search { width: 100%; order: 3; }
  .search kbd { display: none; }
  .page-tools .btn-primary { margin-left: auto; }
  .kpis { gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-v { font-size: 1.8rem; }
  .spark { width: 45%; height: 34px; }
  .ring { width: 46px; height: 46px; }
  .kpi.ai .kpi-s .ai-chip { font-size: .68rem; }
  .panel-body .card-h { padding: 14px 16px; }
  .plan-wrap { padding: 14px 16px 16px; }
  .plan-scroll { margin: 0 -16px; padding: 6px 16px; }
  .rt:not(.ed) thead { display: none; }
  .rt:not(.ed), .rt:not(.ed) tbody { display: block; }
  .rt:not(.ed) tr { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; grid-template-areas: 'time who act' 'time party st'; gap: 8px 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
  .rt:not(.ed) tr.grp { display: block; padding: 0; }
  .rt:not(.ed) tr.grp th { display: block; padding: 10px 16px; }
  .grp-meta { display: block; margin: 2px 0 0 34px; }
  .rt:not(.ed) td { padding: 0 !important; border: 0; }
  .rt:not(.ed) .c-time { grid-area: time; padding-top: 2px !important; align-self: start; }
  .rt:not(.ed) .c-who { grid-area: who; }
  .who { min-width: 0; }
  .rt:not(.ed) .who .av { display: none; }
  .rt:not(.ed) .c-act { grid-area: act; }
  .rt:not(.ed) td.c-party { grid-area: party; }
  .rt:not(.ed) td.c-chan { display: none; }
  .rt:not(.ed) td.c-st { grid-area: st; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  .rt:not(.ed) td.c-st .att { margin: 0; }
  .rt tr.flag-row td:first-child { box-shadow: none; }
  .row-acts .btn-soft { padding: 0 10px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-sec { padding: 20px 16px; }
}

/* ═════════ La carta ═════════ */
.m-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-bottom: 28px; }
@media (max-width: 1100px) { .m-top { grid-template-columns: 1fr; } }
.ok-note { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--green); }
.ok-note .ic { width: 16px; height: 16px; }
.m-lang-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px 6px; }
.lang-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border: 0; border-radius: 12px; background: var(--fill); font: 600 .84rem var(--sans); color: var(--fg-2); cursor: pointer; transition: background .15s, box-shadow .15s; }
.lang-chip b { display: grid; place-items: center; min-width: 28px; height: 26px; border-radius: 8px; background: #fff; font-size: .7rem; font-weight: 800; color: var(--muted); box-shadow: 0 1px 2px rgba(35, 31, 20, .08); }
.lang-chip:hover { background: var(--fill-2); }
.lang-chip.on { background: var(--brand-50); color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px var(--brand-200); }
.lang-chip.on b { background: var(--brand); color: #fff; }
.lang-chip:disabled { cursor: default; opacity: 1; }
.m-hint { display: flex; align-items: flex-start; gap: 8px; margin: 8px 20px 16px; font-size: .8rem; color: var(--muted); }
.m-hint .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--brand); }
.m-hint.warn { margin-top: -6px; padding: 10px 12px; border-radius: 12px; background: var(--amber-bg); color: var(--amber); }
.m-hint.warn .ic { color: var(--amber-dot); }
.m-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-2); }
.m-stats > div { background: #fff; padding: 18px 20px; display: grid; gap: 4px; align-content: center; }
.m-stats span { font-size: .78rem; font-weight: 650; color: var(--muted); }
.m-stats b { font-size: 1.9rem; font-weight: 750; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.m-stats .warn b { color: #d27a00; }
.m-stats .bad b { color: var(--red); }

.m-sec { margin-bottom: 30px; }
.m-sec-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.m-sec-t { display: flex; align-items: center; gap: 10px; min-width: 0; }
.m-sec-t h2 { margin: 0; font-size: 1.35rem; font-weight: 750; letter-spacing: -.025em; }
.m-sec-a { display: flex; align-items: center; gap: 4px; }
.m-sec-a .icon-btn:disabled { opacity: .3; cursor: default; }
.sec-rename { display: flex; gap: 8px; align-items: center; }
.sec-rename input { height: 40px; border: 0; border-radius: 10px; padding: 0 12px; font: 700 1rem var(--sans); box-shadow: inset 0 0 0 1.5px var(--brand); min-width: 240px; }
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.m-card { display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-card); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.m-card:hover { transform: translateY(-2px); box-shadow: 0 2px 6px -2px rgba(35, 31, 20, .06), 0 20px 40px -22px rgba(35, 31, 20, .4); }
.m-card.off { opacity: .72; }
.m-card.off .m-photo img { filter: grayscale(.8); }
.m-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--fill); cursor: pointer; overflow: hidden; }
.m-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.m-card:hover .m-photo img { transform: scale(1.04); }
.m-nophoto { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--faint); background: repeating-linear-gradient(45deg, #f5f2e9 0 12px, #efeadd 12px 24px); }
.m-nophoto .ic { width: 34px; height: 34px; }
.m-nophoto small { font-size: .74rem; font-weight: 700; }
.m-cat { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); font-size: .72rem; font-weight: 750; color: var(--fg); box-shadow: 0 2px 8px -2px rgba(35, 31, 20, .25); }
.m-cat .ic { width: 14px; height: 14px; color: var(--brand); }
.m-off { position: absolute; right: 10px; top: 10px; height: 26px; padding: 0 10px; border-radius: 999px; background: #231f1a; color: #fff; font-size: .72rem; font-weight: 750; display: grid; place-items: center; }
.m-body { padding: 14px 16px 10px; display: grid; gap: 6px; flex: 1; align-content: start; }
.m-name { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.m-name strong { font-size: .98rem; font-weight: 750; letter-spacing: -.01em; line-height: 1.3; }
.m-price { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 0; border-radius: 9px; background: var(--brand-50); color: var(--brand-ink); font: 800 .9rem var(--sans); cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-price .ic { width: 13px; height: 13px; opacity: .5; }
.m-price:hover { background: var(--brand-100); }
.m-price:hover .ic { opacity: 1; }
.m-price.none { background: var(--amber-bg); color: var(--amber); }
.m-price-edit { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 2px 0 8px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 4px rgba(142, 121, 62, .14); }
.m-price-edit input { width: 70px; border: 0; outline: 0; font: 800 .92rem var(--sans); text-align: right; background: transparent; }
.m-price-edit input[aria-invalid='true'] { color: var(--red); }
.m-price-edit span { font-weight: 800; color: var(--muted); }
.m-price-edit .icon-btn { width: 28px; height: 28px; color: var(--brand); }
.m-body p { margin: 0; font-size: .82rem; color: var(--fg-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.m-alg { display: inline-flex; align-items: center; gap: 3px; }
.m-alg i { width: 24px; height: 24px; border-radius: 8px; background: var(--fill); display: grid; place-items: center; color: var(--fg-2); }
.m-alg i .ic { width: 14px; height: 14px; }
.m-alg small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.tr-badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 8px; background: var(--green-bg); color: var(--green); font-size: .7rem; font-weight: 800; margin-left: auto; }
.tr-badge .ic { width: 13px; height: 13px; }
.tr-badge.warn { background: var(--amber-bg); color: var(--amber); }
.m-sec-t .tr-badge { margin-left: 0; }
.flag-s { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 8px; font-size: .7rem; font-weight: 750; }
.flag-s .ic { width: 13px; height: 13px; }
.flag-s.bad { background: var(--red-bg); color: var(--red); }
.m-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 10px 16px; border-top: 1px solid var(--line-2); }
.mini-switch { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; color: var(--fg-2); cursor: pointer; }
.mini-switch input { width: 34px; height: 20px; appearance: none; background: #d8d0bb; border-radius: 999px; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.mini-switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s; }
.mini-switch input:checked { background: var(--green-2); }
.mini-switch input:checked::after { transform: translateX(14px); }
.m-add { display: grid; place-content: center; justify-items: center; gap: 6px; min-height: 280px; border: 2px dashed #cdd6e4; border-radius: var(--r-lg); background: rgba(255, 255, 255, .5); color: var(--muted); cursor: pointer; font: inherit; text-align: center; padding: 20px; transition: border-color .15s, background .15s, color .15s; }
.m-add .ic { width: 30px; height: 30px; color: var(--brand); }
.m-add b { font-size: .95rem; color: var(--fg); }
.m-add span { font-size: .78rem; }
.m-add:hover { border-color: var(--brand-200); background: var(--brand-50); }
.m-addsec { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; }
.m-addsec-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.m-addsec input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; font: 600 .92rem var(--sans); background: transparent; }

/* Editor de plato */
.panel-body dialog.dish-dlg { width: min(1060px, calc(100% - 24px)); max-height: calc(100vh - 24px); }
.dish-dlg form { display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.dish-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 0; min-height: 0; flex: 1; overflow: hidden; border-top: 1px solid var(--line-2); }
.dish-photo { padding: 20px; background: #f7f4ec; border-right: 1px solid var(--line-2); overflow-y: auto; display: grid; gap: 14px; align-content: start; }
.dish-form { padding: 20px 24px; overflow-y: auto; display: grid; gap: 16px; align-content: start; }
@media (max-width: 860px) { .dish-grid { grid-template-columns: 1fr; overflow-y: auto; } .dish-photo { border-right: 0; border-bottom: 1px solid var(--line-2); overflow: visible; } .dish-form { overflow: visible; } }
.ph-drop { display: grid; justify-items: center; gap: 8px; padding: 40px 20px; border-radius: 18px; border: 2px dashed #dcd6c6; background: #fff; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.ph-drop:hover, .ph-drop.over, .ph-drop:focus-within { border-color: var(--brand); background: var(--brand-50); }
.ph-drop-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(180deg, #ad974f, #8e793e); color: #fff; box-shadow: 0 12px 24px -10px rgba(142, 121, 62, .8); }
.ph-drop-ic .ic { width: 28px; height: 28px; }
.ph-drop b { font-size: 1.02rem; }
.ph-drop span { font-size: .82rem; color: var(--muted); max-width: 280px; }
.ph-drop small { font-size: .76rem; font-weight: 650; color: var(--brand-ink); }
.ph-main { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--fill); box-shadow: 0 16px 30px -18px rgba(35, 31, 20, .5); }
.ph-main img { width: 100%; height: 100%; object-fit: cover; }
.ph-l { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; font-size: .82rem; font-weight: 700; }
.ph-l .ic { width: 16px; height: 16px; color: var(--brand); }
.ph-l span { font-weight: 500; color: var(--muted); }
.ph-vars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ph-vars button { position: relative; padding: 0; border: 0; border-radius: 12px; background: #fff; cursor: pointer; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); text-align: left; font: inherit; }
.ph-vars img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ph-vars span { display: block; padding: 5px 7px 6px; font-size: .68rem; font-weight: 750; color: var(--fg-2); line-height: 1.2; }
.ph-vars em { display: block; font-style: normal; font-size: .6rem; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .04em; }
.ph-vars button.on { box-shadow: 0 0 0 2.5px var(--brand), 0 8px 18px -8px rgba(142, 121, 62, .7); }
.ph-vars button.on span { color: var(--brand-ink); }
.ph-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ph-acts label.btn { cursor: pointer; }
.ai-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; font-size: .82rem; }
.ai-card > .ic { width: 20px; height: 20px; flex: none; }
.ai-card div { display: grid; gap: 2px; }
.ai-card b { font-size: .88rem; }
.ai-card span { color: inherit; opacity: .85; }
.ai-card.busy { background: #231f1a; color: #efe7cf; }
.ai-card.busy .spin { border-color: rgba(255, 255, 255, .2); border-top-color: #e7ca69; flex: none; }
.ai-card.ok { background: linear-gradient(150deg, #2b2619, #64552b); color: #efe7cf; box-shadow: 0 14px 30px -16px rgba(60, 50, 22, .9); }
.ai-card.ok > .ic { color: #e7ca69; }
.ai-card.err { background: var(--amber-bg); color: #7a4700; }
.spin.sm { width: 14px; height: 14px; border-width: 2px; }
.spin.light { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.fs { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.fs legend { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 10px; font-size: .8rem; font-weight: 700; color: var(--fg-2); }
.ai-tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; background: #2b2619; color: #e7ca69; font-size: .64rem; font-weight: 800; letter-spacing: .02em; }
.ai-tag .ic { width: 11px; height: 11px; }
.cat-grid, .alg-grid, .tag-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.cat, .alg, .tagb { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 9px; border: 0; border-radius: 10px; background: var(--fill); font: 650 .8rem var(--sans); color: var(--fg-2); cursor: pointer; transition: background .12s, box-shadow .12s, color .12s; }
.cat .ic, .alg .ic, .tagb .ic { width: 15px; height: 15px; }
.cat:hover, .alg:hover, .tagb:hover { background: var(--fill-2); }
.cat.on { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(142, 121, 62, .8); }
.alg.on { background: #fdecee; color: #a61b30; box-shadow: inset 0 0 0 1.5px #f5a3ae; }
.alg.ai { position: relative; }
.alg.ai::after { content: 'IA'; position: absolute; top: -6px; right: -4px; height: 15px; padding: 0 4px; border-radius: 5px; background: #2b2619; color: #e7ca69; font-size: .55rem; font-weight: 800; display: grid; place-items: center; }
.tagb.on { background: var(--green-bg); color: var(--green); box-shadow: inset 0 0 0 1.5px #9bdcb7; }
.chk { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .82rem; font-weight: 600; color: var(--fg-2); cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; }
.chk.strong { padding: 12px 14px; border-radius: 12px; background: var(--fill); color: var(--fg); font-weight: 700; }
.chk.invalid { background: var(--red-bg); box-shadow: inset 0 0 0 1.5px #f5a3ae; }
.dish-form .err { color: var(--red); font-size: .8rem; font-weight: 600; margin-top: 6px; }
.price-in { display: flex; align-items: center; height: 44px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); padding-right: 14px; }
.price-in:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 4px rgba(142, 121, 62, .14); }
.price-in input { flex: 1; min-width: 0; height: 100%; border: 0 !important; box-shadow: none !important; background: transparent !important; font: 800 1.05rem var(--sans) !important; }
.price-in span { font-weight: 800; color: var(--muted); }
.price-in.dis { background: var(--fill); }
.tr-acc summary .count.hot-soft { background: var(--amber-bg); color: var(--amber); }
.tr-list { display: grid; gap: 8px; padding-bottom: 10px; }
.tr-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px; align-items: center; }
.tr-l { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; color: var(--fg-2); }
.tr-l b { min-width: 26px; height: 22px; border-radius: 6px; background: #fff; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: var(--muted); }
.tr-row input { height: 36px; border: 0; border-radius: 10px; padding: 0 10px; font: 550 .82rem var(--sans); background: #fff; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.tr-row input:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--brand); }
@media (max-width: 640px) { .tr-row { grid-template-columns: 1fr; } }
.acc .acts .note { font-size: .76rem; }
.btn.armed { background: var(--red-bg) !important; color: var(--red) !important; }
.btn[aria-disabled='true'] { opacity: .5; }
.panel-body .btn[aria-disabled='true'] { pointer-events: auto; cursor: not-allowed; }
.panel-body .field .chk input, .panel-body .chk input { width: 17px; height: 17px; padding: 0; box-shadow: none; border-radius: 4px; flex: none; }
.venue-av.logo { background: #fff; padding: 4px; box-sizing: border-box; overflow: hidden; }
.venue-av.logo img { display: block; width: 30px; height: 30px; object-fit: contain; }

/* QR para mesas */
.panel-body dialog.qr-dlg { width: min(980px, calc(100% - 24px)); }
.qr-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); border-top: 1px solid var(--line-2); }
@media (max-width: 800px) { .qr-grid { grid-template-columns: 1fr; } }
.qr-prev { position: relative; padding: 24px; background: #efeadd; display: grid; place-items: center; }
.qr-prev img { width: 100%; max-width: 290px; aspect-ratio: 1240 / 1748; border-radius: 14px; background: #fff; box-shadow: 0 24px 50px -24px rgba(35, 31, 20, .6); }
.qr-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(245, 243, 239, .6); }
.qr-busy[hidden] { display: none; }
.qr-form { padding: 20px 24px 24px; display: grid; gap: 18px; align-content: start; }
.qr-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-form .copy code { font-size: .74rem; }
.page-tools .btn-secondary .ic { color: var(--brand); }
@media (max-width: 1300px) { .page-tools [data-scan-menu] { order: 5; } }

/* Ajustes › Restaurante y Marca */
.sec-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sec-h h2 { margin: 0 0 6px; }
.sec-h .note { margin: 0; }
.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .brand-grid { grid-template-columns: 1fr; } }
.logo-box { display: grid; gap: 12px; }
.logo-checker { display: grid; place-items: center; height: 200px; border-radius: 16px; padding: 24px; background-color: #fff; background-image: linear-gradient(45deg, #efeadd 25%, transparent 25%), linear-gradient(-45deg, #efeadd 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #efeadd 75%), linear-gradient(-45deg, transparent 75%, #efeadd 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; box-shadow: inset 0 0 0 1px var(--line); }
.logo-checker { overflow: hidden; }
.logo-checker img { display: block; max-width: min(100%, 320px); max-height: 150px; width: auto; height: auto; object-fit: contain; }
.logo-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-acts label.btn { cursor: pointer; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.sw { position: relative; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 14px; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .15s; }
.sw:hover { transform: translateY(-2px); }
.sw.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.sw.on i { position: absolute; inset: 0; display: grid; place-items: center; }
.sw.on i::after { content: ''; width: 12px; height: 7px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(1px, -2px); }
.sw.custom { display: grid; place-items: center; background: var(--fill); color: var(--muted); overflow: hidden; }
.sw.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.sw.custom .ic { width: 20px; height: 20px; }
.brand-colors .help { display: flex; gap: 6px; align-items: flex-start; font-size: .8rem; color: var(--muted); margin: 6px 0; }
.brand-colors .help .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--brand); }
.brand-colors .help.ok { color: var(--green); }
.brand-colors .help.ok .ic { color: var(--green); }
.brand-prev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 20px; border-radius: 18px; background: #efeadd; }
@media (max-width: 760px) { .brand-prev { grid-template-columns: 1fr; } }
.bp-widget, .bp-mail { border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -20px rgba(35, 31, 20, .5); overflow: hidden; }
.bp-widget { padding: 16px; display: grid; gap: 14px; }
.bp-head { display: flex; align-items: center; gap: 10px; }
.bp-head b { display: block; font-size: .92rem; }
.bp-head small { color: var(--muted); font-size: .74rem; }
.bp-ini { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: .8rem; }
.bp-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 42px; min-width: 42px; max-width: 112px; padding: 5px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bp-logo img { display: block; height: 32px; width: auto; max-width: 102px; object-fit: contain; }
.bp-logo.sm { height: 36px; min-width: 36px; padding: 4px; border-radius: 9px; box-shadow: 0 2px 8px -3px rgba(0, 0, 0, .35); }
.bp-logo.sm img { height: 28px; max-width: 96px; }
.bp-head > div { min-width: 0; }
.bp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bp-days span { display: grid; place-items: center; gap: 2px; height: 46px; border-radius: 10px; font-size: .64rem; font-weight: 700; color: var(--faint); }
.bp-days em { font-style: normal; font-size: .86rem; color: var(--fg-2); }
.bp-days .av { background: var(--brand-50); color: var(--brand-ink); }
.bp-days .av em { color: var(--brand-ink); }
.bp-days .sel { background: var(--brand); color: #fff; }
.bp-days .sel em { color: #fff; }
.bp-slots { display: flex; gap: 6px; }
.bp-slots span { flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); font-size: .78rem; font-weight: 700; }
.bp-slots .sel { background: var(--brand-50); box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand-ink); }
.bp-btn { display: block; text-align: center; padding: 11px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: .84rem; font-style: normal; }
.bp-btn.sm { display: inline-block; padding: 8px 14px; font-size: .76rem; margin-top: 10px; }
.bp-mail-h { display: flex; align-items: center; gap: 12px; min-height: 68px; box-sizing: border-box; background: var(--brand); color: #fff; padding: 16px; font-weight: 700; }
.bp-mail-b { padding: 16px; display: grid; gap: 2px; font-size: .82rem; }
.bp-mail-b span { color: var(--muted); }

/* Escáner de documentos */
.panel-body dialog.scan-dlg { width: min(980px, calc(100% - 24px)); max-height: calc(100vh - 24px); }
.scan-dlg form { display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.scan-body { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-2); min-height: 0; overflow: auto; }
.scan-body.has-photo { grid-template-columns: 300px minmax(0, 1fr); }
@media (max-width: 800px) { .scan-body.has-photo { grid-template-columns: 1fr; } }
.scan-photo { padding: 20px; background: #efeadd; }
.scan-photo img { width: 100%; border-radius: 12px; box-shadow: 0 16px 30px -18px rgba(35, 31, 20, .6); }
.scan-main { padding: 20px 24px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.scan-kinds { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 4px; }
.scan-kinds i { font-style: normal; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--fg-2); }
.scan-found { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-t { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px; background: #2b2619; color: #e7ca69; font-size: .76rem; font-weight: 750; }
.chip-t .ic { width: 14px; height: 14px; }
.chip-t.warn { background: var(--amber-bg); color: var(--amber); }
.scan-tbl { overflow-x: auto; }
.scan-tbl .rt.ed th[scope='row'] { font-size: .8rem; font-weight: 700; color: var(--fg-2); white-space: nowrap; padding-right: 10px; }
.scan-tbl .rt td.now { font-size: .8rem; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-tbl .rt tr.on td .mini { background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand-200); }
.scan-tbl .chk { margin: 0; }
.scan-sec { display: flex; align-items: center; gap: 10px; }
.scan-sec .flabel { margin: 0; white-space: nowrap; }
.scan-sec select { max-width: 280px; }
.mini-price { display: flex; align-items: center; gap: 4px; }
.mini-price .mini { width: 90px; }
.mini-price span { font-weight: 700; color: var(--muted); }
.scan-main .note .ic { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.dlg-f label.btn { cursor: pointer; }
.brand-colors .flabel { display: block; margin-bottom: 14px; }
.panel-body .toasts { left: auto; right: 24px; transform: none; bottom: 24px; width: min(420px, calc(100% - 32px)); }
@media (max-width: 640px) { .panel-body .toasts { right: 16px; bottom: 84px; } }
@media (max-width: 640px) { .page-tools > .btn { flex: 1 1 calc(50% - 5px); padding: 0 12px; } .panel-body dialog.qr-dlg, .panel-body dialog.scan-dlg { max-height: calc(100vh - 24px); overflow: auto; } }

/* Ajustes › A domicilio */
.dl-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1100px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-list { display: grid; gap: 10px; }
.dl-row { padding: 12px 14px; border-radius: 14px; background: var(--fill); display: grid; gap: 10px; transition: background .15s, box-shadow .15s; }
.dl-row.on { background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand-200); }
.dl-top { display: flex; align-items: center; gap: 12px; }
.dl-t { flex: 1; min-width: 0; display: grid; }
.dl-t b { font-size: .92rem; }
.dl-t small { font-size: .76rem; color: var(--muted); }
.dl-fields { display: grid; gap: 8px; }
.dl-fields .mini { background: var(--fill); }
.dl-side { display: grid; gap: 10px; align-content: start; }
.dl-side .chk.strong { margin: 0; }
.dl-side .help { font-size: .8rem; color: var(--muted); margin: 0; }
.dl-side .dlv-card { margin-top: 0; }
.dl-stats { margin-top: 8px; padding: 16px; border-radius: 14px; background: #231f1a; color: #efe7cf; display: grid; gap: 8px; }
.dl-stats .flabel { color: #cac0a4; margin: 0; }
.dl-stats > b { font-size: 2rem; font-weight: 750; line-height: 1; color: #fff; }
.dl-bar { display: grid; grid-template-columns: 80px 1fr 26px; align-items: center; gap: 8px; font-size: .78rem; }
.dl-bar i { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #c9ad58, #e7ca69); }
.dl-bar em { font-style: normal; font-weight: 750; text-align: right; }
.dl-bar { grid-template-columns: 96px 1fr 28px; }
.dl-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ajustes › Mesas: zonas dibujadas */
.zones-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zones-bar .flabel { margin: 0 6px 0 0; }
.zchip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px 0 10px; border-radius: 12px; background: var(--fill); }
.zchip i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.zchip.z-warm i { background: #e8d6bc; } .zchip.z-green i { background: #b9ddc4; } .zchip.z-violet i { background: #eae3ce; } .zchip.z-sky i { background: #e6dec6; }
.zname { width: 110px; height: 30px; border: 0; border-radius: 8px; padding: 0 8px; font: 700 .86rem var(--sans); background: transparent; color: var(--fg); }
.zname:hover { background: #fff; }
.zname:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand); }
.zchip small { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.zchip .icon-btn { width: 28px; height: 28px; }
.zchip .icon-btn .ic { width: 14px; height: 14px; }
.plan.edit .zone.edit { pointer-events: none; }
.plan.edit .zone.edit.dragging { box-shadow: inset 0 0 0 2px var(--brand); z-index: 1; }
.zhandle { pointer-events: auto; position: absolute; top: 6px; left: 8px; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); cursor: move; box-shadow: 0 1px 2px rgba(35, 31, 20, .12); touch-action: none; user-select: none; }
.zhandle:hover, .zhandle:focus-visible { background: #fff; color: var(--brand-ink); outline: 2px solid var(--brand); outline-offset: 1px; }
.zresize { pointer-events: auto; position: absolute; right: 2px; bottom: 2px; width: 18px; height: 18px; border-radius: 6px; cursor: nwse-resize; touch-action: none; background: linear-gradient(135deg, transparent 50%, rgba(35, 31, 20, .35) 50%); }
.zresize:hover, .zresize:focus-visible { background: linear-gradient(135deg, transparent 50%, var(--brand) 50%); outline: none; }
.plan.edit .tbl { z-index: 2; }
.plan.edit .tbl.outside .top { box-shadow: inset 0 0 0 2px var(--red), 0 0 0 4px rgba(217, 47, 69, .15); }
.rt.ed tr.warn-row td { background: #fff6f7; }
.rt.ed tr.flash td { animation: rowflash 1.6s ease; }
@keyframes rowflash { 0%, 40% { background: var(--brand-50); } 100% { background: transparent; } }
.zone-out { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 4px; font-size: .7rem; font-weight: 750; color: var(--red); }
.zone-out .ic { width: 12px; height: 12px; }
.rt.ed select.mini { min-width: 110px; }

/* Canales y pruebas */
.tests2 { display: grid; gap: 18px; max-width: 1180px; }
.t-hero { padding: 24px; display: grid; gap: 20px; }
.t-hero-top { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.t-hero h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 750; letter-spacing: -.01em; }
.t-hero p { margin: 0; color: var(--fg-2); font-size: .9rem; line-height: 1.55; max-width: 62em; }
.t-hero .btn { flex: none; }
.t-hero .alert.bad, .tests2 .alert.bad { display: flex; gap: 10px; align-items: flex-start; background: var(--red-bg); color: #9f1c2e; }
.t-hero .alert.bad .ic { flex: none; margin-top: 1px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: f; }
.flow li { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 14px 16px; border-radius: 14px; background: var(--fill); }
.flow li:not(:last-child)::after { content: ''; position: absolute; right: -10px; top: 26px; width: 8px; height: 8px; border-top: 2px solid #cbc3ad; border-right: 2px solid #cbc3ad; transform: rotate(45deg); z-index: 1; }
.flow .fi { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #fff; color: var(--brand); box-shadow: 0 1px 2px rgba(35, 31, 20, .08); margin-bottom: 6px; }
.flow .fi .ic { width: 17px; height: 17px; }
.flow b { font-size: .86rem; font-weight: 700; }
.flow span { font-size: .78rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } .flow li::after { display: none; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } .t-hero-top { flex-direction: column; } }
.t-sec { margin: 10px 0 -4px; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.chs { display: grid; gap: 10px; }
.ch { overflow: hidden; }
.ch-h { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 20px; gap: 14px; align-items: center; padding: 16px 20px; border: 0; background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ch-h:hover { background: #fbf9f3; }
.ch-h:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: inherit; }
.ch-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.ch-ic .ic { width: 20px; height: 20px; }
.ch-t b { display: block; font-size: .98rem; font-weight: 750; }
.ch-t span { display: block; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-chev { width: 18px; height: 18px; color: var(--faint); transition: transform .2s; }
.ch.open .ch-chev { transform: rotate(180deg); }
.ch-b { padding: 4px 20px 22px 74px; }
.ch-what { margin: 0 0 18px; font-size: .9rem; line-height: 1.6; color: var(--fg-2); max-width: 70em; }
.ch-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.ch-cols h3 { margin: 0 0 10px; font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ch-cols h3:not(:first-child) { margin-top: 20px; }
@media (max-width: 980px) { .ch-cols { grid-template-columns: 1fr; } .ch-b { padding-left: 20px; } }
@media (max-width: 560px) { .ch-h { grid-template-columns: 36px minmax(0, 1fr) 18px; padding: 14px 16px; } .ch-h .st-pill { grid-column: 2; grid-row: 2; justify-self: start; } .ch-t span { white-space: normal; } }

.st-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: .72rem; font-weight: 750; white-space: nowrap; background: var(--fill); color: var(--muted); }
.st-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.st-pill.ok { background: var(--green-bg); color: var(--green); }
.st-pill.bad { background: var(--red-bg); color: var(--red); }
.st-pill.warn { background: var(--amber-bg); color: var(--amber); }
.st-pill.demo { background: var(--brand-50); color: var(--brand-ink); }
.need { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.need li { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border-radius: 12px; background: var(--fill); }
.need li .st-pill { justify-self: start; }
.tech { margin-top: 10px; font-size: 13px; color: var(--muted, #667); }
.tech summary { cursor: pointer; font-weight: 600; }
.tech code { display: inline-block; margin: 4px 4px 0 0; padding: 2px 6px; border-radius: 6px; background: var(--fill); font-size: 12px; word-break: break-all; }
.need b { display: block; font-size: .86rem; font-weight: 700; }
.need span { display: block; font-size: .76rem; color: var(--muted); word-break: break-word; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: .86rem; line-height: 1.55; color: var(--fg-2); }
.steps code { font-size: .8rem; background: var(--fill); padding: 1px 6px; border-radius: 6px; }
.copy-line { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.copy-line code { flex: 1; min-width: 0; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .76rem !important; background: var(--fill); border-radius: 10px; padding: 9px 12px !important; overflow-x: auto; white-space: nowrap; }
.copy-line .btn .ic { width: 14px; height: 14px; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fine { margin: 8px 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.try { padding: 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.try + .try { margin-top: 12px; }
.try h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .9rem; font-weight: 750; }
.try h4 .ic { width: 16px; height: 16px; color: var(--brand); }
.try h4 + .fine { margin: -4px 0 12px; }
.try .inline-add { display: flex; gap: 8px; }
.try .inline-add input { flex: 1; min-width: 0; height: 40px; border: 0; border-radius: 11px; padding: 0 12px; font: 550 .88rem var(--sans); background: var(--fill); }
.try .inline-add input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand); }
.try .chat { height: 280px; border-radius: 12px 12px 0 0; }
.try .chat-in { padding: 10px 0 0; border-top: 0; }
.try .chat-in .btn .ic { width: 14px; height: 14px; }
.chat .msg.err { display: flex; gap: 8px; align-items: flex-start; background: var(--red-bg); color: #9f1c2e; border-color: transparent; }
.chat .msg.err .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.fine-det { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.fine-det summary { cursor: pointer; font-weight: 650; }
.fine-det input { display: block; margin: 8px 0 4px; height: 36px; width: 180px; border: 0; border-radius: 10px; padding: 0 10px; background: var(--fill); font-size: .84rem; }

.msgs { overflow: hidden; }
.msgs-h { padding: 18px 20px 0; }
.msgs-h p { margin: 0; font-size: .88rem; color: var(--fg-2); line-height: 1.55; max-width: 70em; }
.msgs-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; padding: 18px 20px 20px; align-items: start; }
@media (max-width: 900px) { .msgs-grid { grid-template-columns: 1fr; } }
.msg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.msg-list button { width: 100%; display: grid; gap: 2px; text-align: left; padding: 11px 14px; border: 0; border-radius: 12px; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.msg-list button:hover { background: var(--fill); }
.msg-list button[aria-selected="true"] { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand); }
.msg-list button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.msg-list b { font-size: .88rem; font-weight: 700; }
.msg-list span { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.msg-view { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.msg-view .wa-phone { width: min(360px, 100%); }
.msg-view .mail-prev { width: 100%; }
.msgs-f { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line-2); background: #fbf9f3; font-size: .82rem; color: var(--fg-2); }
.msgs-f > span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.msgs-f .ic { width: 15px; height: 15px; color: var(--muted); }
.msgs-f .fine { margin: 0; }
.try .btn .ic { width: 14px; height: 14px; }
.el-out { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px; border-radius: 12px; font-size: .82rem; line-height: 1.5; }
.el-out p { margin: 0; }
.el-out > .ic { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.el-out.ok { background: var(--green-bg); color: var(--green); }
.el-out.bad { background: var(--red-bg); color: #9f1c2e; }
.try .fine a { color: var(--brand); font-weight: 700; white-space: nowrap; }
.ch-cols > div, .steps li { min-width: 0; }

/* Reseñas de Google */
.rv-page { display: grid; gap: 18px; max-width: 1240px; }
.rv-stars { display: inline-flex; gap: 1px; font-style: normal; line-height: 1; letter-spacing: 0; }
.rv-stars i { font-style: normal; color: #d5dbe5; font-size: .95rem; }
.rv-stars i.on { color: #f5a524; }
.rv-stars.sm i { font-size: .72rem; }
.rv-kpis { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto auto; gap: 28px; align-items: center; padding: 22px 26px; }
.rv-score { display: grid; gap: 4px; justify-items: start; }
.rv-score > b { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.rv-score .rv-stars i { font-size: 1.15rem; }
.rv-score span { font-size: .8rem; color: var(--muted); }
.rv-dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; max-width: 340px; }
.rv-dist li { display: grid; grid-template-columns: 28px 1fr 28px; gap: 10px; align-items: center; font-size: .76rem; color: var(--muted); font-weight: 650; }
.rv-dist i { display: block; height: 8px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.rv-dist i b { display: block; height: 100%; border-radius: 99px; background: #f5a524; }
.rv-dist em { font-style: normal; text-align: right; }
.rv-k { display: grid; gap: 2px; padding: 0 0 0 24px; border-left: 1px solid var(--line-2); }
.rv-k span { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rv-k b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.rv-k.hot b { color: var(--amber); }
@media (max-width: 900px) { .rv-kpis { grid-template-columns: 1fr 1fr; } .rv-dist { grid-column: 1 / -1; max-width: none; grid-row: 2; } .rv-k { border: 0; padding: 0; } }
.rv-bulk { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.rv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .rv-grid { grid-template-columns: 1fr; } }
.rv-col { display: grid; gap: 18px; }
.rv-main .card-h { flex-wrap: wrap; gap: 10px; }
.rv-main .seg .nb { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--amber-dot); color: #fff; font-size: .68rem; }
.rv-list { list-style: none; margin: 0; padding: 0; }
.rv { padding: 18px 20px; border-top: 1px solid var(--line-2); display: grid; gap: 10px; }
.rv:first-child { border-top: 0; }
.rv.is-pending { background: linear-gradient(90deg, rgba(245, 165, 36, .07), transparent 60%); box-shadow: inset 3px 0 0 var(--amber-dot); }
.rv-h { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.rv-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 750; font-size: .9rem; }
.rv-who b { display: block; font-size: .92rem; font-weight: 700; }
.rv-who span { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.rv-who em { font-style: normal; color: var(--brand-ink); background: var(--brand-50); padding: 0 6px; border-radius: 6px; }
.rv-text { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--fg); }
.rv-text.muted { color: var(--muted); font-style: italic; }
.rv-reply { margin-left: 16px; padding: 12px 14px; border-radius: 12px; background: var(--fill); font-size: .86rem; line-height: 1.55; color: var(--fg-2); border-left: 3px solid var(--green-2); }
.rv-reply.draft { margin: 12px 0 0; border-left-color: var(--brand); background: var(--brand-50); }
.rv-reply-h { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.rv-reply-h .ic { width: 14px; height: 14px; }
.rv-edit { display: grid; gap: 10px; margin-left: 16px; }
.rv-edit textarea, .rv-side textarea { width: 100%; box-sizing: border-box; border: 0; border-radius: 12px; padding: 12px 14px; font: 500 .88rem/1.55 var(--sans); background: #fff; box-shadow: inset 0 0 0 1px var(--line); resize: vertical; }
.rv-edit textarea:focus, .rv-side textarea:focus, .rv-side input:focus, .rv-side select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--brand); }
.rv-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-acts .ic, .rv-side .btn .ic { width: 14px; height: 14px; }
.rv-edit .err { color: var(--red); margin: 0; }
.rv-sync { padding: 0 20px 16px; margin: 0; }
.rv-side .dlg-b { display: grid; gap: 12px; }
.rv-side .fld { display: grid; gap: 5px; font-size: .8rem; font-weight: 650; color: var(--fg-2); }
.rv-side .fld small { font-weight: 500; color: var(--muted); line-height: 1.45; }
.rv-side input, .rv-side select { height: 40px; border: 0; border-radius: 11px; padding: 0 12px; font: 550 .86rem var(--sans); background: var(--fill); width: 100%; box-sizing: border-box; }
.rv-side textarea { background: var(--fill); box-shadow: none; }
.rv-side .btn { justify-self: start; }
.rule-row { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; font-size: .8rem; line-height: 1.45; }
.rule-row b { font-weight: 750; }
.rule-row.ok { background: var(--green-bg); color: #0a5a2e; }
.rule-row.warn { background: var(--amber-bg); color: #7a4800; }
.g-acc { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .86rem; }
.g-acc .ic { width: 16px; height: 16px; color: var(--green-2); }
.g-loc { display: grid; gap: 2px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--fill); }
.g-loc span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.g-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-block { display: grid; gap: 8px; margin-top: 6px; }
.copy-block textarea { width: 100%; box-sizing: border-box; border: 0; border-radius: 10px; padding: 10px 12px; font: .74rem/1.5 ui-monospace, 'SF Mono', Menlo, monospace; background: var(--fill); color: var(--fg-2); resize: vertical; }
.copy-block .btn { justify-self: start; }
.copy-block .btn .ic { width: 14px; height: 14px; }
.rv-bulk-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.sms-phone { width: min(340px, 100%); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 0 0 8px #231f1a, 0 24px 50px -20px rgba(27, 25, 22, .6); margin: 8px; }
.sms-top { padding: 14px 16px; text-align: center; font-weight: 700; font-size: .9rem; border-bottom: 1px solid #eeeadf; background: #f7f8fa; }
.sms-top small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.sms-body { padding: 18px 12px 26px; min-height: 180px; }
.sms-bubble { max-width: 90%; padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: #e9e9eb; font-size: .86rem; line-height: 1.45; word-break: break-word; }

/* ── Clientes (CRM) ── */
.cr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cr-n { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--fill-2); color: var(--fg-2); font-size: .7rem; font-weight: 750; }
.seg button[aria-pressed='true'] .cr-n { background: var(--brand-50); color: var(--brand-ink); }
.cr-demo { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; color: var(--amber); background: var(--amber-bg); padding: 6px 12px; border-radius: 999px; }
.cr-demo .ic { width: 14px; height: 14px; }
.cr-kpis .kpi-v small { font-size: .95rem; }
.cr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }
.cr-search { flex: 1 1 260px; max-width: 360px; }
.cr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-chip { height: 34px; padding: 0 13px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 650 .8rem var(--sans); color: var(--fg-2); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.cr-chip:hover { color: var(--fg); box-shadow: inset 0 0 0 1px #d3cbb5; }
.cr-chip[aria-pressed='true'] { background: #1b1916; color: #fff; box-shadow: none; }
.cr-tagsel select { height: 34px; border: 0; border-radius: 999px; padding: 0 30px 0 14px; font: 650 .8rem var(--sans); color: var(--fg-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cr-list { padding: 4px 0; }
.cr-row { display: grid; grid-template-columns: minmax(220px, 2.4fr) 70px 100px 100px minmax(140px, 1.6fr) 74px; align-items: center; gap: 12px; width: 100%; padding: 11px 20px; border: 0; border-top: 1px solid var(--line-2); background: transparent; font: inherit; font-size: .86rem; color: var(--fg); text-align: left; cursor: pointer; transition: background .12s; }
.cr-row:hover { background: #f8f6ee; }
.cr-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.cr-head { cursor: default; border-top: 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 12px; padding-bottom: 10px; }
.cr-head:hover { background: transparent; }
.cr-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cr-who > span:last-child { display: grid; min-width: 0; }
.cr-who strong { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-who small { color: var(--muted); font-size: .76rem; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--av-bg); color: var(--av-fg); font-size: .78rem; font-weight: 750; }
.cr-av.lg { width: 52px; height: 52px; font-size: 1.05rem; }
.cr-num { font-weight: 750; font-variant-numeric: tabular-nums; }
.cr-next { color: var(--brand-ink); font-weight: 700; }
.cr-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cr-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: .7rem; font-weight: 750; background: var(--fill); color: var(--fg-2); white-space: nowrap; }
.cr-tag.gold { background: #fdf3c9; color: #7a5b00; }
.cr-tag.blue { background: var(--brand-50); color: var(--brand-ink); }
.cr-tag.green { background: var(--green-bg); color: var(--green); }
.cr-tag.grey { background: var(--fill-2); color: var(--muted); }
.cr-tag.red { background: var(--red-bg); color: var(--red); }
.cr-tag.amber { background: var(--amber-bg); color: var(--amber); }
.cr-tag.violet { background: #f1e4fb; color: #6b2d9c; }
.cr-tag.own { background: #eeeadf; color: #353f55; }
.dlg-h .sub .cr-tag { margin: 4px 4px 0 0; }
.cr-promo { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--faint); }
.cr-promo .ic { width: 15px; height: 15px; }
.cr-promo.ok { color: var(--green); }
.cr-promo.off { color: var(--red); }
.cr-more { display: block; margin: 8px auto 6px; }
.cr-empty { padding: 40px 20px; }
.cr-foot { margin: 12px 4px 0; font-size: .78rem; color: var(--muted); }
.cr-locked, .cr-empty-camp { max-width: 640px; margin: 8px auto; padding: 36px 32px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.cr-locked h2, .cr-empty-camp h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.cr-locked p, .cr-empty-camp p { margin: 0; color: var(--fg-2); max-width: 480px; }
.cr-locked ul { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 8px; text-align: left; }
.cr-locked li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .9rem; }
.cr-locked li .ic { width: 17px; height: 17px; color: var(--green); }
.cr-locked-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.cr-locked-ic .ic { width: 26px; height: 26px; }
/* ficha */
.panel-body dialog.cr-dlg.wide { width: min(760px, calc(100% - 24px)); }
.panel-body dialog.cr-dlg { max-height: calc(100dvh - 24px); }
.cr-card { display: grid; gap: 14px; }
.cr-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cr-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cr-stats > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--fill); }
.cr-stats b { font-size: 1.05rem; font-weight: 750; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-stats span { font-size: .72rem; font-weight: 600; color: var(--muted); }
.cr-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-consent { display: grid; gap: 8px; padding: 4px; border-radius: 16px; }
.cr-consent .switch span { display: inline-flex; align-items: center; gap: 8px; }
.cr-consent .switch .ic { width: 17px; height: 17px; color: var(--muted); }
.cr-consent.ok .switch { background: var(--green-bg); }
.cr-consent.ok .switch .ic { color: var(--green); }
.cr-consent .fine { margin: 0 6px; }
.cr-attest { align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--amber-bg); color: #6b4300; margin: 0; }
.cr-attest input { margin-top: 2px !important; }
.cr-hist summary { cursor: pointer; font-weight: 700; font-size: .86rem; padding: 6px 0; }
.cr-hist ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; max-height: 240px; overflow: auto; }
.cr-hist li { display: grid; grid-template-columns: 130px 64px 96px 1fr; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: .8rem; }
.cr-hist li:nth-child(odd) { background: var(--fill); }
.cr-hist em { grid-column: 1 / -1; color: var(--muted); font-size: .76rem; }
.cr-h-d { font-weight: 700; }
.cr-h-s { font-weight: 700; }
.cr-h-s.s-completada, .cr-h-s.s-llegada { color: var(--green); }
.cr-h-s.s-no_show { color: var(--red); }
.cr-h-s.s-cancelada { color: var(--faint); }
.cr-h-s.s-confirmada, .cr-h-s.s-pendiente_pago { color: var(--brand-ink); }
.cr-h-c { color: var(--muted); }
.cr-f { display: flex; align-items: center; gap: 8px; }
.cr-f > span { flex: 1; }
.dlg-ic.danger { background: var(--red-bg); color: var(--red); }
.cr-drop { display: block; position: relative; margin: 14px 0; border-radius: 16px; border: 1.5px dashed var(--line); background: var(--fill); text-align: center; cursor: pointer; }
.cr-drop:hover { border-color: var(--brand-200); background: var(--brand-50); }
.cr-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cr-drop > span { display: grid; justify-items: center; gap: 4px; padding: 24px; }
.cr-drop .ic { width: 24px; height: 24px; color: var(--brand); }
.cr-drop small { color: var(--muted); }
.n-promo { margin: 0; }
/* campañas */
.cr-camp-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cr-camp-top .fine { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.cr-camp-top .fine .ic { width: 16px; height: 16px; color: var(--green); }
.cr-ch-note { margin-bottom: 14px; }
.cr-camps { display: grid; gap: 10px; }
.cr-camp { display: grid; grid-template-columns: 44px minmax(0, 1fr) 110px 100px 110px; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border: 0; font: inherit; color: var(--fg); text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.cr-camp:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.cr-camp-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.cr-camp-ic.sms { background: #f1e4fb; color: #6b2d9c; }
.cr-camp-ic .ic { width: 20px; height: 20px; }
.cr-camp-t { display: grid; min-width: 0; }
.cr-camp-t strong { font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-camp-t small, .cr-camp-n small, .cr-camp-d { font-size: .76rem; color: var(--muted); font-weight: 550; }
.cr-camp-n { display: grid; }
.cr-camp-n b { font-size: 1.15rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.cr-st { justify-self: start; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: .74rem; font-weight: 750; }
.cr-st.ok { background: var(--green-bg); color: var(--green); }
.cr-st.draft { background: var(--fill); color: var(--fg-2); }
.cr-st.busy { background: var(--amber-bg); color: var(--amber); }
.cr-edit-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel-body dialog.cr-dlg.wide:has(.cr-edit) { width: min(1020px, calc(100% - 24px)); }
.cr-edit-form { display: grid; gap: 12px; }
.cr-edit-form .field { margin: 0; }
.cr-radio { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cr-radio label { position: relative; cursor: pointer; }
.cr-radio input { position: absolute; opacity: 0; }
.cr-radio label > span { display: grid; grid-template-columns: 20px 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, background .15s; }
.cr-radio .ic { width: 18px; height: 18px; color: var(--muted); grid-row: span 2; }
.cr-radio small { color: var(--muted); font-size: .74rem; font-weight: 550; }
.cr-radio input:checked + span { background: var(--brand-50); box-shadow: inset 0 0 0 1.5px var(--brand); }
.cr-radio input:checked + span .ic { color: var(--brand); }
.cr-radio input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.cr-vars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cr-var { height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--brand-50); color: var(--brand-ink); font: 700 .74rem var(--mono); cursor: pointer; }
.cr-test summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--brand-ink); }
.cr-test summary .ic { width: 15px; height: 15px; }
.cr-test-in { display: flex; gap: 8px; margin-top: 8px; }
.cr-test-in input { flex: 1; height: 34px; border: 0; border-radius: 10px; padding: 0 12px; font: 550 .85rem var(--sans); box-shadow: inset 0 0 0 1px var(--line); }
.cr-edit-prev { position: sticky; top: 0; display: grid; gap: 12px; }
.cr-reach { display: grid; grid-template-columns: 20px 1fr; column-gap: 8px; align-items: center; margin: 0; padding: 12px 14px; border-radius: 14px; background: #1b1916; color: #fff; }
.cr-reach .ic { width: 18px; height: 18px; color: #e7ca69; grid-row: span 2; }
.cr-reach b { font-size: 1.1rem; }
.cr-reach small { color: #d6cfbb; font-size: .74rem; }
.cr-prev.mail { border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: #f4f4f5; }
.cr-mail-h { display: grid; gap: 2px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line-2); font-size: .76rem; color: var(--muted); }
.cr-mail-h b { color: var(--fg); }
.cr-mail-b { margin: 12px; background: #fff; border-radius: 12px; overflow: hidden; font-size: .84rem; line-height: 1.55; }
.cr-mail-b p { margin: 0 16px 10px; }
.cr-mail-brand { background: var(--brand); color: #fff; font-weight: 800; padding: 12px 16px; margin-bottom: 14px; }
.cr-mail-btn { display: inline-block; margin: 6px 16px 12px; padding: 9px 16px; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 700; }
.cr-mail-b small { display: block; padding: 10px 16px 14px; border-top: 1px solid #eee; color: var(--muted); font-size: .7rem; }
.cr-prev.sms { display: grid; gap: 8px; }
.cr-phone { border-radius: 26px; padding: 14px; background: #f2f2f7; box-shadow: inset 0 0 0 1px var(--line); min-height: 220px; }
.cr-phone-top { text-align: center; font-size: .74rem; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.cr-bubble { max-width: 88%; padding: 10px 13px; border-radius: 18px 18px 18px 6px; background: #e5e5ea; font-size: .84rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.cr-optout { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; }
.cr-prog { height: 10px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.cr-prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #c9b681); transition: width .4s ease; }
.cr-prog-t { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-weight: 650; }
.cr-prog-t .ic { width: 18px; height: 18px; color: var(--green); }
@media (max-width: 1100px) { .cr-row { grid-template-columns: minmax(200px, 2fr) 60px 92px 92px 74px; } .cr-row > .cr-tags { display: none; } .cr-head > span:nth-child(5) { display: none; } }
@media (max-width: 860px) { .cr-edit-grid { grid-template-columns: 1fr; } .cr-edit-prev { position: static; } .cr-camp { grid-template-columns: 40px minmax(0, 1fr) auto; } .cr-camp-n, .cr-camp-d { display: none; } }
@media (max-width: 640px) {
  .cr-head { display: none; }
  .cr-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'who promo' 'meta meta'; row-gap: 6px; padding: 12px 16px; }
  .cr-row > .cr-who { grid-area: who; }
  .cr-row > span:last-child { grid-area: promo; }
  .cr-row > span[data-l] { display: none; }
  .cr-row > .cr-tags { display: flex; grid-area: meta; padding-left: 48px; }
  .cr-search { max-width: none; flex-basis: 100%; }
  .cr-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .cr-chip { flex: none; }
  .cr-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cr-stats > div:nth-child(n+4) { display: none; }
  .cr-stats.three > div { display: grid; }
  .cr-hist li { grid-template-columns: 1fr auto; }
  .cr-h-c { display: none; }
  .cr-radio { grid-template-columns: 1fr; }
  .cr-f { flex-wrap: wrap; }
  .cr-f > span { display: none; }
  .cr-f .btn { flex: 1 1 auto; }
  .cr-camp-top .btn { width: 100%; }
}
.cr-attest[hidden] { display: none; }

/* ── Fidelización ── */
.fd-lead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-size: .86rem; color: var(--fg-2); }
.fd-lead .ic { width: 16px; height: 16px; color: var(--brand); }
.fd-lead a { color: var(--brand-ink); font-weight: 700; }
.fd-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.fd-col { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 1100px) { .fd-grid { grid-template-columns: 1fr; } }
.fd-redeem-f { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 20px; }
.fd-redeem .fine { padding: 0 20px 18px; }
.fd-search { flex: 1 1 220px; }
.fd-search input { text-transform: uppercase; }
.fd-search input::placeholder { text-transform: none; }
.fd-list { list-style: none; margin: 0; padding: 0 0 6px; }
.fd-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: 'av who code act' 'av who until act'; align-items: center; column-gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line-2); }
.fd-list .fd-av { grid-area: av; }
.fd-list .fd-who { grid-area: who; }
.fd-list .fd-code { grid-area: code; }
.fd-list .fd-until { grid-area: until; justify-self: end; font-size: .72rem; color: var(--muted); }
.fd-list li > .btn, .fd-list li > .fd-st { grid-area: act; }
.fd-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 750; }
.fd-who { display: grid; min-width: 0; }
.fd-who strong { font-weight: 700; font-size: .88rem; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-who small { color: var(--muted); font-size: .76rem; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-lang { font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); background: var(--fill); border-radius: 5px; padding: 2px 5px; }
.fd-code { font: 750 .82rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; color: var(--fg-2); background: var(--fill); padding: 6px 8px; border-radius: 8px; }
.fd-st { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.fd-st .ic { width: 14px; height: 14px; }
.fd-st.ok { background: var(--green-bg); color: var(--green); }
.fd-st.warn { background: var(--amber-bg); color: var(--amber); }
.fd-st.off { background: var(--fill); color: var(--muted); }
@media (max-width: 560px) {
  .fd-list li { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'av who act' 'av code until'; row-gap: 6px; padding: 12px 16px; }
  .fd-list .fd-code { justify-self: start; }
  .fd-redeem-f { padding: 0 16px; }
  .fd-redeem-f .btn { flex: 1 1 100%; }
}
.fd-rule { padding: 14px 20px; border-top: 1px solid var(--line-2); display: grid; gap: 12px; }
.fd-rule.off .fd-rule-x { display: none; }
.fd-rule-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.fd-rule-t { display: grid; gap: 2px; }
.fd-rule-t strong { font-size: .9rem; font-weight: 700; }
.fd-rule-t small { font-size: .78rem; color: var(--muted); }
.fd-switch { flex: none; position: relative; width: 48px; height: 28px; border: 0; border-radius: 999px; background: var(--fill-2); cursor: pointer; transition: background .2s; padding: 0; }
.fd-switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(35, 31, 20, .25); transition: transform .2s; }
.fd-switch[aria-checked='true'] { background: var(--brand); }
.fd-switch[aria-checked='true'] span { transform: translateX(20px); }
.fd-switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fd-rule-x { display: grid; gap: 10px; padding: 12px; border-radius: var(--r); background: var(--fill); }
.fd-reward { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .fd-reward { grid-template-columns: 1fr; } }
.fd-reward label, .fd-url { display: grid; gap: 4px; font-size: .74rem; font-weight: 650; color: var(--fg-2); }
.fd-reward input, .fd-url input { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: 550 .86rem var(--sans); background: var(--surface); color: var(--fg); min-width: 0; }
.fd-num { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--fg-2); font-weight: 600; flex-wrap: wrap; }
.fd-num input { width: 64px; height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; font: 700 .9rem var(--sans); text-align: center; background: var(--surface); color: var(--fg); }
.fd-num em { font-style: normal; color: var(--muted); }
.fd-reward input:focus, .fd-url input:focus, .fd-num input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.fd-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .78rem; color: var(--amber); font-weight: 600; }
.fd-warn .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.fd-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px 0; border-top: 1px solid var(--line-2); }
.fd-actions + .fine { padding: 0 20px 18px; }
.fd-log { list-style: none; margin: 0; padding: 0 0 6px; }
.fd-log li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line-2); }
.fd-log-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-ink); }
.fd-log-ic.err { background: var(--red-bg); color: var(--red); }
.fd-log-ic .ic { width: 17px; height: 17px; }
.fd-when { font-size: .74rem; color: var(--muted); white-space: nowrap; }

/* ── Llamadas del asistente de voz ── */
.kpi-ic.violet { background: #f8f6f0; color: #c5b077; }
.ll-kpis { margin-bottom: 16px; }
.ll-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1080px) { .ll-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.ll-ul { list-style: none; margin: 0; padding: 4px 8px 10px; }
.ll-item { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; background: none; border: 0; border-radius: 14px; padding: 12px; cursor: pointer; font: inherit; color: inherit; transition: background .15s; }
.ll-item:hover { background: var(--fill); }
.ll-item.on { background: var(--brand-50); box-shadow: inset 0 0 0 1px #eee7d6; }
.ll-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #f9f6f0, #faf8f2); color: var(--brand); }
.ll-ic .ic { width: 18px; height: 18px; }
.ll-t { flex: 1; min-width: 0; }
.ll-t strong { display: block; font-size: 14.5px; }
.ll-t small { display: block; color: var(--fg-3, #6b7280); font-size: 12.5px; margin-top: 2px; }
.ll-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--fg-2, #4b5563); margin-top: 6px; line-height: 1.45; }
.ll-badge { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; border-radius: 999px; padding: 4px 9px; white-space: nowrap; background: var(--fill); color: var(--fg-2, #4b5563); }
.ll-badge .ic { width: 13px; height: 13px; }
.ll-badge.ok { background: var(--green-bg); color: var(--green-2); }
.ll-badge.info { background: var(--brand-50); color: var(--brand); }
.ll-badge.violet { background: #f8f6f0; color: #b9a05c; }
.ll-badge.warn { background: #fff1db; color: #a35f00; }
.ll-badge.bad { background: var(--red-bg); color: #9f1c2e; }
.ll-detail { padding: 20px 22px 24px; }
@media (min-width: 1080px) { .ll-detail { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; } }
.ll-dh { display: flex; gap: 12px; align-items: flex-start; }
.ll-dh > div { flex: 1; min-width: 0; }
.ll-dh h2 { margin: 2px 0 0; font-size: 1.25rem; letter-spacing: -.01em; }
.ll-back { display: none; }
.ll-who { display: flex; align-items: center; gap: 8px; margin: 14px 0; font-weight: 600; }
.ll-who .btn { margin-left: auto; }
.ll-k { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3, #6b7280); }
.ll-k .ic { width: 14px; height: 14px; }
.ll-res { background: linear-gradient(135deg, #faf6ea, #fbfaf6); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.ll-res p:last-child { margin: 0; line-height: 1.55; }
.ll-audio { margin-bottom: 18px; }
.ll-audio [data-audio] { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ll-audio audio { width: 100%; max-width: 420px; height: 40px; }
.ll-chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ll-m { max-width: 86%; border-radius: 16px; padding: 9px 13px; }
.ll-m p { margin: 2px 0 0; line-height: 1.5; font-size: 14px; }
.ll-m.ai { align-self: flex-start; background: var(--fill); border-bottom-left-radius: 6px; }
.ll-m.cl { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.ll-who2 { font-size: 11.5px; font-weight: 650; opacity: .7; }
.ll-tool { align-self: center; font-size: 12px; color: var(--fg-3, #6b7280); }
.ll-tool span { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px dashed var(--line); border-radius: 999px; padding: 3px 10px; }
.ll-tool .ic { width: 13px; height: 13px; color: var(--brand); }
@media (max-width: 1079px) {
  .ll-grid.has-detail .ll-list { display: none; }
  .ll-grid:not(.has-detail) .ll-detail { display: none; }
  .ll-back { display: inline-grid; }
}

/* ── Fidelización › Tarjeta de sellos ── */
.st-hero { margin-bottom: 16px; }
.st-rule { font-size: 12.5px; font-weight: 650; color: var(--brand); background: var(--brand-50); border-radius: 999px; padding: 4px 10px; }
.st-grid { display: grid; gap: 18px; padding: 4px 18px 18px; }
@media (min-width: 1100px) { .st-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.st-find { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-find .fd-search { flex: 1 1 220px; }
.st-scan { margin-top: 12px; border-radius: 18px; overflow: hidden; background: #1b1916; color: #fff; text-align: center; padding-bottom: 12px; }
.st-scan video { width: 100%; max-height: 300px; object-fit: cover; display: block; }
.st-scan p { margin: 10px 0 8px; font-size: 13px; opacity: .85; }
.st-found { margin-top: 14px; display: grid; gap: 12px; }
.st-card { border-radius: 22px; padding: 16px; color: #fff; background: radial-gradient(260px 160px at 100% 0, rgba(125,211,252,.45), transparent 60%), linear-gradient(145deg, #ab914a, #b3994f 55%, #b3984e); box-shadow: 0 24px 44px -26px rgba(121, 103, 54,.75); }
.st-card-h { display: flex; align-items: center; gap: 10px; }
.st-card-h > div { flex: 1; min-width: 0; }
.st-card-h strong { display: block; font-size: 15px; }
.st-card-h small { display: block; font-size: 12px; opacity: .8; }
.st-count { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.st-count small { font-size: 15px; opacity: .75; }
.st-sellos { display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 6px; margin: 14px 0 10px; }
.st-sellos i { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.5); display: grid; place-items: center; }
.st-sellos i.on { border: 0; background: #fff; color: #b3994f; }
.st-sellos i .ic { width: 60%; height: 60%; }
.st-sellos i.gift { border-style: solid; color: #fff; }
.st-sellos i.gift.on { background: #ffd66b; color: #7a4f00; }
.st-msg { margin: 0; font-size: 13.5px; display: flex; gap: 6px; align-items: center; }
.st-msg .ic { width: 16px; height: 16px; color: #ffd66b; }
.st-card.ready { box-shadow: 0 0 0 3px #ffd66b, 0 24px 44px -26px rgba(121, 103, 54,.75); }
.st-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.st-eur input { width: 110px; }
.st-new { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.st-new summary { cursor: pointer; font-weight: 650; display: inline-flex; gap: 8px; align-items: center; color: var(--brand); }
.st-new summary .ic { width: 16px; height: 16px; }
.st-newf { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 640px) { .st-newf { grid-template-columns: 1fr 1fr; } .st-newf .st-chk, .st-newf button { grid-column: 1 / -1; justify-self: start; } }
.st-newf label:not(.st-chk) { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.st-newf input:not([type=checkbox]) { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font: inherit; }
.st-chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--fg-2); }
.st-chk input { margin-top: 2px; }
.st-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.st-kpis div { background: var(--fill); border-radius: 14px; padding: 10px; text-align: center; }
.st-kpis b { display: block; font-size: 22px; letter-spacing: -.02em; }
.st-kpis span { font-size: 11.5px; color: var(--fg-2); }
@media (max-width: 520px) { .st-kpis { grid-template-columns: repeat(2, 1fr); } }
.st-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.st-list button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) 90px auto; gap: 10px; align-items: center; padding: 9px 8px; border: 0; background: none; border-radius: 12px; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.st-list button:hover { background: var(--fill); }
.st-who strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-who small { display: block; font-size: 12px; color: var(--fg-2); }
.st-bar { height: 8px; border-radius: 99px; background: #f7f4ed; overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #bea767, #c5b077); }
.st-n { font-size: 13px; font-weight: 700; min-width: 48px; text-align: right; display: inline-flex; gap: 4px; align-items: center; justify-content: flex-end; }
.st-n.ok { color: #a35f00; }
.st-n .ic { width: 14px; height: 14px; }
