/* ============================================================
   MyOrderQR — sistema de diseño (unificado con la landing v2)
   Mismos tokens que el diseño v2: DM Sans + Playfair, azul #2E7CF6.
   ============================================================ */
:root {
  --brand: #2E7CF6;
  --brand-dark: #1A5FD1;
  --brand-soft: #E8F1FE;
  --ink: #0F1D2F;
  --ink-soft: #5A6E82;
  --muted: #8A97A8;
  --line: #CADAED;
  --bg: #F0F6FF;
  --card: #FFFFFF;
  --ok: #10B981;
  --ok-bg: #ECFDF5;
  --warn: #E8930C;
  --warn-bg: #FFF7ED;
  --info: #2E7CF6;
  --info-bg: #E0EDFF;
  --danger: #C0392B;
  --danger-bg: #FDECEB;
  --sidebar: #0F1D2F;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(15, 29, 47, .06);
  --shadow-lg: 0 8px 32px rgba(15, 29, 47, .10);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-d: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.2; margin: 0 0 .4em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: .85rem; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: .7em 1.3em; border-radius: 999px; border: 1px solid transparent;
  background: var(--brand); color: #fff; transition: .15s ease;
  text-align: center; line-height: 1.1; white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .9em 1.7em; font-size: 1.05rem; }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn-light { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--bg); }
.btn-dark { background: var(--sidebar); }
.btn-dark:hover { background: #000; }
.btn-success { background: var(--ok); }
.btn-success:hover { background: #036249; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: var(--danger-bg); }
.btn-danger-ghost:hover { background: var(--danger-bg); }
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---- Tarjetas ---- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }

/* ---- Badges / pills ---- */
.badge {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .25em .7em; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--bg); color: var(--ink-soft);
}
.pill { padding: .3em .8em; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }

/* ---- Formularios ---- */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35em; }
.field { margin-bottom: 1rem; }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=url], input[type=color], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .7em .85em; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); transition: .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
textarea { resize: vertical; min-height: 70px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 0; }
.check { display: flex; align-items: center; gap: .5em; font-weight: 500; }
.check input { width: auto; }

/* ---- Alertas / flash ---- */
.alert { padding: .8em 1em; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 500; font-size: .92rem; }
.alert-success { background: var(--ok-bg); color: var(--ok); }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.flash-stack { position: fixed; top: 16px; right: 16px; z-index: 80; max-width: 340px; }
.flash-stack .alert { box-shadow: var(--shadow-lg); animation: slidein .3s ease; }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } }

/* ============================================================
   Navegación pública
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,249,246,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-weight: 600; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.logo { display: inline-flex; align-items: baseline; font-family: var(--font-d); font-weight: 700; font-size: 1.4rem; letter-spacing: -.3px; }
.logo span { color: var(--brand); }
.logo .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--brand); display: inline-block; }
.footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 40px 0; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* ============================================================
   Landing
   ============================================================ */
.hero { padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .82rem; padding: .4em 1em; border-radius: 999px; margin-bottom: 18px; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 30em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--muted); }
.phone-mock { background: var(--ink); border-radius: 32px; padding: 12px; box-shadow: var(--shadow-lg); max-width: 290px; margin: 0 auto; }
.phone-screen { background: #fff; border-radius: 22px; overflow: hidden; }
.phone-head { background: var(--brand); color: #fff; padding: 18px 16px 14px; }
.phone-item { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.phone-item small { color: var(--muted); }
.phone-plus { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; }

.section { padding: 60px 0; }
.section-head { max-width: 36em; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 26px; }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; }
.feature h3 { margin-bottom: .3em; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { text-align: center; padding: 10px; }
.step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; margin: 0 auto 12px; }
.step p { color: var(--ink-soft); font-size: .92rem; }

.cta-band { background: var(--ink); color: #fff; border-radius: 28px; padding: 54px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 32em; margin: 0 auto 24px; }

/* ---- Precios ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { padding: 30px; position: relative; display: flex; flex-direction: column; }
.plan.popular { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), var(--shadow-lg); }
.plan .tag-popular { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: .35em 1em; border-radius: 999px; }
.plan h3 { font-size: 1.4rem; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.plan li { padding: 7px 0; display: flex; gap: .6em; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.plan li .yes { color: var(--ok); font-weight: 800; }
.plan li .no { color: var(--muted); }
.plan li.off { opacity: .45; }

/* ---- Auth ---- */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 460px; padding: 36px; }
.auth-card h1 { font-size: 1.7rem; }
.plan-choice { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 4px; }
.plan-choice label { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; cursor: pointer; text-align: center; margin: 0; transition: .15s; }
.plan-choice input { display: none; }
.plan-choice input:checked + .pc-body { color: var(--brand-dark); }
.plan-choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pc-name { font-weight: 700; font-size: .95rem; }
.pc-price { font-size: .8rem; color: var(--muted); }

/* ============================================================
   Dashboard (panel restaurante)
   ============================================================ */
.dash { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar); color: #c4cdda; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .logo { color: #fff; padding: 0 8px 18px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { display: flex; align-items: center; gap: .7em; padding: .7em .8em; border-radius: 10px; font-weight: 600; font-size: .94rem; color: #c4cdda; }
.sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar nav a.active { background: var(--brand); color: #fff; }
.sidebar nav .sep { height: 1px; background: rgba(255,255,255,.1); margin: 12px 8px; }
.sidebar nav .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #7c8696; padding: 8px 8px 4px; font-weight: 700; }
.side-foot { margin-top: auto; padding: 14px 8px 0; font-size: .82rem; }
.dash-main { padding: 28px 32px 60px; max-width: none; min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { font-size: 1.7rem; margin: 0; }
.dash-head .sub { color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
/* Tablas anchas: scroll horizontal en pantallas pequeñas (sin recortar menús desplegables,
   que no viven dentro de tarjetas con tabla). */
.card:has(> table.list) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.card > table.list { min-width: 560px; }
/* Envoltorio para tablas que comparten tarjeta con otro contenido (p. ej. Equipo). */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table.list { min-width: 520px; }
.stat { padding: 20px; }
.stat .k { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }

.trial-banner { background: linear-gradient(100deg, var(--brand), #38bdf8); color: #fff; border-radius: var(--radius); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.trial-banner h3 { margin: 0; color: #fff; }
.trial-banner p { margin: 0; color: rgba(255,255,255,.85); font-size: .9rem; }

.panel { margin-bottom: 26px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.2rem; margin: 0; }

table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.list td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ic { font-size: 2.4rem; margin-bottom: 8px; }

/* ---- Carta admin ---- */
.cat-block { margin-bottom: 24px; }
.cat-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.menu-item-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-bottom: 1px solid var(--line); }
.menu-item-row:last-child { border-bottom: 0; }
.menu-item-row .thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--brand-soft); flex-shrink: 0; }
.menu-item-row .info { flex: 1; min-width: 0; }
.menu-item-row .name { font-weight: 700; }
.menu-item-row .desc { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item-row .price { font-weight: 700; white-space: nowrap; font-size: 1.05rem; letter-spacing: 0; margin: 0; }
.dim { opacity: .45; }

/* ---- Mesas ---- */
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.table-card { padding: 18px; text-align: center; }
.table-card .qr { width: 130px; height: 130px; margin: 0 auto 10px; border-radius: 12px; border: 1px solid var(--line); }
.table-card h3 { margin: 0; }

/* ---- Comandas (kanban) ---- */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.kcol { background: var(--bg); border-radius: var(--radius); padding: 12px; min-height: 120px; }
.kcol-head { display: flex; justify-content: space-between; font-weight: 700; padding: 4px 6px 12px; font-size: .92rem; }
.kcol-head .count { background: var(--card); border-radius: 999px; padding: 0 .6em; font-size: .8rem; }
.ticket { background: var(--card); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); margin-bottom: 10px; border-left: 4px solid var(--brand); }
.ticket.is-new { animation: pop .4s ease; }
@keyframes pop { from { transform: scale(.96); box-shadow: 0 0 0 6px var(--brand-soft); } }
.ticket .t-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ticket .t-num { font-weight: 800; }
.ticket .t-where { font-size: .82rem; color: var(--ink-soft); }
.ticket ul { list-style: none; padding: 0; margin: 8px 0; font-size: .9rem; }
.ticket ul li { display: flex; justify-content: space-between; padding: 2px 0; }
.ticket ul li .q { font-weight: 700; color: var(--brand-dark); margin-right: .4em; }
.ticket .note { font-size: .82rem; color: var(--warn); background: var(--warn-bg); padding: 4px 8px; border-radius: 8px; margin: 6px 0; }
.ticket .t-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ticket .t-time { font-size: .78rem; color: var(--muted); }

/* ---- POS ---- */
.pos { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
/* En escritorio la lista de productos tiene scroll propio: los saltos de categoría no mueven la página */
@media (min-width: 921px) {
  .pos-menu { max-height: calc(100vh - 140px); overflow-y: auto; padding-right: 6px; }
}
.pos-cats { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; background: var(--bg); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pos-cats::-webkit-scrollbar { display: none; }
.pos-cat-chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .85rem; cursor: pointer; transition: .12s; }
.pos-cat-chip:hover { border-color: var(--brand); }
.pos-cat-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pos-menu .pos-cat { font-weight: 800; margin: 16px 0 8px; scroll-margin-top: 60px; }
.pos-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px,1fr)); gap: 10px; }
.pos-prod { text-align: left; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; transition: .12s; overflow: hidden; display: flex; flex-direction: column; }
.pos-prod:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.pos-prod .pp-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--brand-soft); display: block; }
.pos-prod .pp-noimg { display: grid; place-items: center; font-size: 1.9rem; }
.pos-prod .pp-body { padding: 8px 10px; display: block; }
.pos-prod .pp-name { display: block; font-weight: 600; font-size: .86rem; line-height: 1.2; }
.pos-prod .pp-price { display: block; color: var(--brand-dark); font-weight: 700; font-size: .82rem; margin-top: 2px; }
.pos-cart { position: sticky; top: 20px; padding: 18px; }
.pos-cart .line { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pos-cart .line .nm { flex: 1; font-size: .9rem; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font-weight: 700; }
.pos-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; margin: 14px 0; }

/* ---- Analíticas ---- */
.bars { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; background: var(--brand); border-radius: 8px 8px 0 0; min-height: 4px; transition: height .4s; }
.bar-col .bl { font-size: .75rem; color: var(--muted); }
.bar-col .bv { font-size: .75rem; font-weight: 700; }
.rank { list-style: none; padding: 0; margin: 0; }
.rank li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rank li .barbg { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.rank li .barfill { height: 100%; background: var(--brand); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .features, .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .stat-grid, .stat-grid.cols-3 { grid-template-columns: repeat(2,1fr); }
  .kanban { grid-template-columns: repeat(2,1fr); }
  .pos { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
}

@media (max-width: 560px) {
  .kanban { grid-template-columns: 1fr; }
  .dash-head h1 { font-size: 1.4rem; }
  .plan-choice { grid-template-columns: 1fr; }
  .card > table.list { min-width: 520px; }
}

/* ============================================================
   Landing v2 (home) — diseño completo
   ============================================================ */
/* Nav transparente sobre el hero oscuro; sólido al hacer scroll */
.nav.nav-hero { position: fixed; top: 0; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background .25s, border-color .25s; }
.nav.nav-hero .logo { color: #fff; }
.nav.nav-hero .nav-links a { color: rgba(255,255,255,.85); }
.nav.nav-hero .nav-links a:hover { color: #fff; }
.nav.nav-hero .nav-links a.btn { color: #fff; background: var(--brand); }
.nav.nav-hero.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav.nav-hero.scrolled .logo { color: var(--ink); }
.nav.nav-hero.scrolled .nav-links a { color: var(--ink-soft); }
.nav.nav-hero.scrolled .nav-links a:hover { color: var(--ink); }
.nav.nav-hero.scrolled .nav-links a.btn { color: #fff; }

/* Hero */
.lp-hero { position: relative; color: #fff; padding: 140px 0 90px; overflow: hidden;
  background: linear-gradient(135deg, #0a1733 0%, #102350 42%, #173372 68%, #1e49a8 100%); }
.lp-hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.lp-badge { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff; font-weight: 600; font-size: .85rem; padding: .45em 1em; border-radius: 999px; margin-bottom: 22px; }
.lp-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; color: #fff; line-height: 1.08; margin: 0 0 18px; letter-spacing: -.02em; }
.lp-hero h1 .hl { color: #7cb3ff; }
.lp-lead { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 30em; margin: 0 0 28px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.lp-hstats { display: flex; gap: 40px; margin-top: 34px; }
.lp-hstats b { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.lp-hstats span { font-size: .82rem; color: rgba(255,255,255,.6); }

/* Mockup de móvil */
.lp-hero-visual { display: flex; justify-content: center; }
.lp-phone { position: relative; width: 272px; }
.lp-phone-frame { background: #0b1220; border-radius: 38px; padding: 10px; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.lp-phone-screen { background: #fff; border-radius: 28px; overflow: hidden; }
.lp-app-head { background: var(--brand); color: #fff; padding: 18px 16px 16px; }
.lp-app-rest { font-weight: 800; font-size: 1.05rem; }
.lp-app-table { font-size: .8rem; opacity: .9; margin-top: 2px; }
.lp-app-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #f0f3f8; }
.lp-app-item .ci { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.lp-app-item .t { flex: 1; min-width: 0; }
.lp-app-item .t b { font-size: .85rem; display: block; color: var(--ink); }
.lp-app-item .t small { font-size: .73rem; color: var(--muted); }
.lp-app-item .pl { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.lp-app-foot { margin: 10px 14px 16px; background: var(--brand); color: #fff; text-align: center; font-weight: 700; font-size: .85rem; padding: 12px; border-radius: 12px; }
.lp-fbadge { position: absolute; z-index: 3; background: #fff; color: #0f172a; font-weight: 700; font-size: .78rem; padding: .55em .85em; border-radius: 11px; box-shadow: 0 12px 30px rgba(0,0,0,.22); border-left: 3px solid var(--ok); white-space: nowrap; }
.fbadge-1 { top: 22px; right: -20px; }
.fbadge-2 { bottom: 44px; left: -24px; }

/* Barra de confianza */
.lp-trust { background: #fff; border-bottom: 1px solid var(--line); }
.lp-trust-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding: 18px 0; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }

/* Secciones */
.lp-section { padding: 76px 0; }
.lp-head { max-width: 40em; margin: 0 auto 48px; text-align: center; }
.lp-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
.lp-head p { color: var(--ink-soft); font-size: 1.1rem; }
.lp-eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; padding: .4em 1em; border-radius: 999px; margin-bottom: 16px; }

/* Pasos */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 960px; margin: 0 auto; }
.lp-step { text-align: center; padding: 0 10px; }
.lp-step-n { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 10px 24px rgba(37,99,235,.35); }
.lp-step h3 { font-size: 1.15rem; }
.lp-step p { color: var(--ink-soft); font-size: .95rem; }

/* Funcionalidades */
.lp-features-wrap { background: #eef3fb; padding: 76px 0; }
.lp-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 960px; margin: 0 auto; }
.lp-feature { padding: 24px; }
.lp-feature .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; }
.lp-feature h3 { font-size: 1.05rem; margin-bottom: .3em; }
.lp-feature p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* Banda de ceros */
.lp-zeros { background: #0c1c40; color: #fff; padding: 50px 0; }
.lp-zeros-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.lp-zeros b { display: block; font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.lp-zeros span { color: rgba(255,255,255,.6); font-size: .9rem; }

/* FAQ */
.lp-faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.lp-faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item .faq-ic { color: var(--brand); font-size: 1.5rem; font-weight: 700; line-height: 1; transition: transform .2s; flex-shrink: 0; }
.lp-faq-item[open] .faq-ic { transform: rotate(45deg); }
.lp-faq-a { padding: 0 20px 18px; color: var(--ink-soft); }

/* CTA final */
.lp-cta-wrap { padding: 20px 0 84px; }
.lp-cta-band { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%); color: #fff; border-radius: 28px; padding: 56px; text-align: center; box-shadow: 0 24px 60px rgba(37,99,235,.3); }
.lp-cta-band h2 { color: #fff; }
.lp-cta-band p { color: rgba(255,255,255,.85); max-width: 34em; margin: 0 auto 26px; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.5); transition: transform .15s; }
.wa-float:hover { transform: scale(1.08); }

/* Footer */
.footer-links a { margin-right: 16px; }
.footer-links a:hover { color: var(--brand); }

@media (max-width: 920px) {
  .lp-hero { padding: 118px 0 70px; }
  .lp-hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .lp-hero-copy { order: 1; }
  .lp-hero-visual { order: 2; }
  .lp-lead { margin-left: auto; margin-right: auto; }
  .lp-cta, .lp-hstats { justify-content: center; }
  .lp-steps, .lp-features { grid-template-columns: 1fr; }
  .lp-zeros-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .lp-trust-inner { justify-content: center; }
  .lp-cta-band { padding: 40px 22px; }
}

/* ── Chip "En directo" (mismas dimensiones que los botones .btn) ── */
.live-chip { display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.3em; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font: inherit; font-weight: 600; line-height: 1.1; color: var(--ink-soft); white-space: nowrap; }
.live-chip .live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex-shrink: 0; animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.45); } 60% { box-shadow: 0 0 0 6px rgba(16,185,129,0); } }

/* ── Selector de restaurante (multi-local) en la barra lateral ── */
.rsw { margin: 4px 8px 12px; }
.rsw > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; padding: .6em .8em; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.rsw > summary::-webkit-details-marker { display: none; }
.rsw-current { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rsw-caret { opacity: .7; flex-shrink: 0; transition: transform .2s; }
.rsw[open] .rsw-caret { transform: rotate(180deg); }
.rsw-menu { margin-top: 6px; background: #10203f; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; overflow: hidden; }
.rsw-item { display: block; width: 100%; text-align: left; background: transparent; border: none; color: #cfd6e2; padding: .6em .8em; font: inherit; font-size: .88rem; cursor: pointer; }
.rsw-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.rsw-item.is-active { color: #fff; font-weight: 700; }
.rsw-manage { border-top: 1px solid rgba(255,255,255,.1); }

/* ── Cabecera tipo píldora, idéntica a la landing v2 (estado sólido) ── */
.lp-nav { position: sticky; top: 0; z-index: 100; padding: 1rem 2rem; }
.lp-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1.5rem; border-radius: 60px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(15,29,47,.08); border: 1px solid rgba(202,218,237,.4);
}
.lp-nav-logo { font-family: var(--font-d); font-size: 1.4rem; font-weight: 700; color: var(--ink); letter-spacing: -.3px; }
.lp-nav-logo span { color: var(--brand); }
.lp-nav-links { display: flex; gap: 1.8rem; align-items: center; }
.lp-nav-links a { color: var(--ink-soft); font-size: .88rem; font-weight: 500; position: relative; transition: color .3s; }
.lp-nav-links a:hover { color: var(--brand); }
.lp-nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px; background: var(--brand); transition: width .3s; border-radius: 1px; }
.lp-nav-links a:hover::after { width: 100%; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.8rem; border-radius: 60px; font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none; border: none; font-family: var(--font); transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, background .25s; }
.lp-btn-accent { background: var(--brand); color: #fff; box-shadow: 0 4px 20px rgba(46,124,246,.3); }
.lp-btn-accent:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(46,124,246,.4); background: var(--brand-dark); }
.lp-nav-links a.lp-btn::after { display: none; }
@media (max-width: 720px) {
  .lp-nav { padding: .7rem 1rem; }
  .lp-nav-links { gap: 1rem; }
  .lp-nav-links a:not(.lp-btn) { display: none; }
}

/* ============================================================
   Modo oscuro — se activa con <html data-theme="dark">.
   Todo el sistema usa tokens, así que basta con redefinirlos.
   ============================================================ */
html[data-theme="dark"] {
  --brand: #4C8DF8;
  --brand-dark: #6EA5FF;
  --brand-soft: #1B2C4E;
  --ink: #E7EEF8;
  --ink-soft: #B3C0D4;
  --muted: #8493A8;
  --line: #253550;
  --bg: #0B1120;
  --card: #131D32;
  --sidebar: #0A1322;
  --ok: #2FD08E;
  --ok-bg: #113429;
  --warn: #F0A63A;
  --warn-bg: #37280D;
  --danger: #F07B70;
  --danger-bg: #3A1613;
  --info-bg: #14263F;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .55);
}
/* Ajustes puntuales que no salen solos de los tokens */
html[data-theme="dark"] .lp-nav-inner { background: rgba(19, 29, 50, .88); border-color: rgba(37, 53, 80, .8); box-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .btn-dark:hover { background: #000; }
html[data-theme="dark"] .fp-canvas { background-image: radial-gradient(rgba(160, 180, 205, .16) 1.2px, transparent 1.2px); }
html[data-theme="dark"] .kcol { background: #0E1730; }
html[data-theme="dark"] input[type=date] { color-scheme: dark; }

/* ============================================================
   Ajustes responsive (móvil y tablet)
   ============================================================ */
/* Cabecera de página: el título conserva un ancho mínimo razonable y los
   botones saltan de línea en vez de estrujar el texto en vertical. */
.dash-head > div:first-child { flex: 1 1 240px; min-width: 0; }

/* Páginas "de lectura" (analíticas, facturación…): contenido acotado para
   que no se estire de borde a borde en monitores grandes. */
.page-cap { max-width: 1240px; }

@media (max-width: 700px) {
  body { overflow-x: hidden; }

  /* Pares de campos/tarjetas (.row): en móvil, siempre en una columna.
     El !important es necesario para ganar a los anchos fijos en línea. */
  .row { gap: 10px; }
  .row > * { flex: 1 1 100% !important; min-width: 0; }

  /* Filas de platos en la carta: el nombre pasa a su propia línea completa
     y los controles (precio, switch, ⋯) quedan arriba a la derecha. */
  .menu-item-row { flex-wrap: wrap; row-gap: 6px; }
  .menu-item-row .info { flex: 1 1 100%; order: 5; }
  .menu-item-row .desc { white-space: normal; }
  .menu-item-row .price { margin-left: auto; }

  /* Cabecera de categoría: título y botones pueden repartirse en dos líneas. */
  .cat-block-head { flex-wrap: wrap; gap: 8px; }
  .cat-block-head > div:last-child { flex-wrap: wrap; justify-content: flex-start; }

  /* Analíticas: ranking legible y barras sin desbordes. */
  .rank li span:first-child { flex: 0 1 110px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bars { gap: 6px; }
  .bar-col .bv { white-space: nowrap; font-size: .7rem; }

  /* TPV: sin desbordes horizontales y carrito en flujo normal. */
  .pos, .pos > * { min-width: 0; max-width: 100%; }
  .pos-cart { position: static; }
}

/* ============================================================
   Móvil y tablet: barra superior + menú lateral deslizante.
   En escritorio la barra lateral fija se mantiene tal cual.
   ============================================================ */
.mtop { display: none; }
.nav-scrim { display: none; }

@media (max-width: 920px) {
  .dash { display: block; }

  /* Barra superior fija de la app */
  .mtop {
    position: sticky; top: 0; z-index: 120;
    display: flex; align-items: center; gap: 12px;
    background: var(--sidebar); color: #fff; padding: 10px 14px;
    padding-top: calc(10px + env(safe-area-inset-top));
  }
  .mtop .logo { color: #fff; font-size: 1.15rem; }
  .mtop-rest { margin-left: auto; font-size: .8rem; color: #c4cdda; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mtop-btn { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; width: 40px; height: 40px; border-radius: 11px; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }

  /* La barra lateral pasa a cajón deslizante (off-canvas) */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 290px; max-width: 85vw; height: 100dvh;
    transform: translateX(-105%);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
    z-index: 200; overflow-y: auto;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }
  .sidebar.open { transform: none; box-shadow: 24px 0 60px rgba(0, 0, 0, .4); }
  .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(6, 10, 20, .55); z-index: 190; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .nav-scrim.show { opacity: 1; pointer-events: auto; }
  .sidebar nav a { padding: .85em .8em; } /* objetivos táctiles cómodos */

  /* Contenido a pantalla completa, con aire justo */
  .dash-main { padding: 18px 14px calc(56px + env(safe-area-inset-bottom)); }
  .dash-head { margin-bottom: 16px; row-gap: 10px; }
  .dash-head h1 { font-size: 1.5rem; }
  .dash-head .sub { font-size: .85rem; }
  .card-pad { padding: 16px; }
  .panel { margin-bottom: 18px; }
  .stat { padding: 14px; }
  .stat .k { font-size: .78rem; }
  .stat .v { font-size: 1.4rem; }
}
