/* ============================================================
   Menú + Pedidos — hoja de estilos única
   ============================================================ */
:root {
  /* Paleta Haute Gastronomie 4 Colores */
  --brand: #e11d48;         /* 1. Ruby Flame / Crimson Gourmet (Apetito, Botones de Compra y Acentos) */
  --brand-hover: #be123c;
  --brand-glow: rgba(225, 29, 72, 0.35);
  --brand2: #0b1120;        /* 2. Obsidian Midnight / Charcoal Profundo (Elegancia, Hero & Footer) */
  --gold: #f59e0b;          /* 3. Artisan Warm Gold / Saffron (Badges del Chef, Estrellas, Excelencia) */
  --gold-dark: #b45309;
  --gold-light: #fef3c7;
  --gold-border: rgba(245, 158, 11, 0.32);
  --green: #10b981;         /* 4. Botanical Emerald / Fresh Mint (WhatsApp Directo & Confirmación Inmediata) */
  --green-dark: #059669;
  --green-light: #ecfdf5;
  --grad: var(--brand);
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --ok: #10b981;
  --err: #ef4444;
  --warn: #f59e0b;
  --radius: 18px;
  --radius-xl: 34px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .05), 0 12px 32px -14px rgba(15, 23, 42, .12);
  --shadow-hover: 0 4px 10px rgba(15, 23, 42, .08), 0 20px 44px -16px rgba(15, 23, 42, .20);
  --shell: #0b1120;
  --shell-2: #0f172a;
  --shell-txt: #94a3b8;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.02em; }
p { margin: 0 0 .75rem; }
code { background: #eef2ff; padding: .1rem .35rem; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hint { color: var(--muted); font-size: .85rem; margin: .25rem 0 .75rem; }
.hint a { text-decoration: underline; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.wrap-md { max-width: 820px; }
.wrap-sm { max-width: 720px; margin: 0 auto; padding: 0 1rem; }
.section { margin: 2.5rem 0; }
.section-title { font-size: 1.6rem; text-align: center; margin-bottom: 1.5rem; }
.section-title-sm { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 1.75rem 0 .75rem; }

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid transparent; border-radius: 12px; padding: .62rem 1.15rem;
  font-size: .93rem; font-weight: 600; cursor: pointer; background: #eef1f7; color: var(--ink);
  transition: box-shadow .15s, transform .08s, background .15s, filter .15s; text-align: center;
}
.btn:hover { filter: brightness(.98); box-shadow: 0 6px 18px -8px rgba(16, 24, 40, .3); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
body.app .btn-primary { background: var(--grad); box-shadow: 0 8px 20px -10px rgba(79, 70, 229, .9); }
body.app .btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(79, 70, 229, 1); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #f3f4f6; }
.btn-danger { background: var(--err); color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-sm { padding: .4rem .78rem; font-size: .84rem; border-radius: 10px; }
.btn-lg { padding: .82rem 1.5rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-danger-text { color: var(--err); }
.btn-danger-text:hover { background: #fef2f2; }
.link-danger { background: none; border: 0; color: var(--err); font-size: .78rem; cursor: pointer; padding: 0; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.row-actions form { margin: 0; }

/* ---------------- Tarjetas ---------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 1.35rem; margin-bottom: 1.25rem; }
.card-inset { padding: 1rem; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: .95rem; }
.table-card { overflow: hidden; margin-bottom: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ============================================================
   SHELL DE LOS PANELES: topbar + sidebar oscuras unificadas
   y contenido claro con curva en la esquina superior izquierda
   ============================================================ */
body.app { background: var(--shell); }
/* Marco fijo: sidebar + topbar comparten UN solo fondo continuo y el contenido
   hace scroll por dentro, así la curva superior izquierda nunca se pierde. */
.shell {
  display: grid; grid-template-columns: 266px 1fr;
  height: 100vh; height: 100dvh; overflow: hidden;
  background: var(--shell);
}

/* Sidebar oscura (columna izquierda) — fondo unificado con shell y topbar */
.side {
  background: var(--shell);
  display: flex; flex-direction: column; gap: .4rem;
  padding: 18px 14px; height: 100%; min-height: 0; overflow-y: auto; z-index: 55;
}
.side-brand { display: flex; gap: .7rem; align-items: center; padding: 4px 8px 16px; color: #fff; }
.side-logo {
  width: 40px; height: 40px; border-radius: 13px; background: var(--grad);
  display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: #fff;
  box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .9); flex-shrink: 0;
}
.side-brand-txt { min-width: 0; }
.side-brand-txt b { display: block; font-size: .93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-brand-txt i { font-style: normal; font-size: .7rem; color: var(--shell-txt); }
.side-group { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #5b687f; padding: .4rem .8rem .2rem; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  display: flex; align-items: center; gap: .72rem; padding: .66rem .8rem;
  border-radius: 12px; color: #9aa7bd; font-weight: 600; font-size: .92rem; transition: .15s;
}
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-link.active {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 4px 12px -2px rgba(var(--brand-rgb), 0.35);
}
.side-link .ico { width: 18px; height: 18px; flex-shrink: 0; }
.n-badge {
  margin-left: auto; background: #ef4444; color: #fff; font-size: .68rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px;
}
.side-foot {
  margin-top: auto; display: flex; align-items: center; gap: .6rem;
  padding: .65rem; border-radius: 16px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
}
.side-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand);
  color: var(--brand-ink); font-weight: 700; font-size: .84rem; display: grid; place-items: center; flex-shrink: 0;
}
.side-who { min-width: 0; flex: 1; }
.side-who b { display: block; font-size: .82rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-who i { font-style: normal; font-size: .7rem; color: var(--shell-txt); }
.side-out {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px;
  color: var(--shell-txt); transition: .15s;
}
.side-out:hover { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.side-out .ico { width: 17px; height: 17px; }
.side-back { position: fixed; inset: 0; background: rgba(3, 7, 18, .6); z-index: 54; opacity: 0; visibility: hidden; transition: opacity .2s; }

/* Columna derecha: fondo idéntico a shell para que la curva de .content sea limpia */
.col {
  display: flex; flex-direction: column; min-width: 0; height: 100%; min-height: 0; overflow: hidden;
  background: var(--shell);
}

/* Topbar oscura (misma capa de color que la sidebar y col) */
.topbar {
  height: 64px; flex-shrink: 0; background: var(--shell); display: flex; align-items: center; gap: 1rem;
  padding: 0 26px; border-bottom: none;
}
.top-titles { display: flex; flex-direction: column; min-width: 0; line-height: 1.18; }
.top-title {
  font-size: 1.08rem; font-weight: 700; color: #fff; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top-sub {
  font-size: .72rem; color: var(--shell-txt);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-end { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex-shrink: 0; }
/* Botones de la página dentro de la topbar oscura (píldoras como el act genérico) */
.topbar-end .btn { padding: .5rem .95rem; font-size: .85rem; border-radius: 999px; white-space: nowrap; }
.topbar-end .btn-ghost { border-color: rgba(255, 255, 255, .18); color: #e5eaf3; background: rgba(255, 255, 255, .04); }
.topbar-end .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.top-act {
  display: inline-flex; align-items: center; gap: .45rem; color: #cfd8e7; font-size: .84rem;
  font-weight: 600; padding: .5rem .9rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); transition: .15s;
}
.top-act:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.top-act .ico { width: 15px; height: 15px; }
.burger { display: none; background: rgba(255, 255, 255, .07); border: 0; width: 38px; height: 38px; border-radius: 11px; color: #fff; cursor: pointer; place-items: center; }
.burger .ico { width: 20px; height: 20px; }

/* Contenido claro con curva superior izquierda (scroll propio: la curva queda fija) */
.content {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  background: var(--bg); border-top-left-radius: var(--radius-xl);
  scrollbar-width: thin; scrollbar-color: #c7cede transparent;
}
.content::-webkit-scrollbar { width: 10px; }
.content::-webkit-scrollbar-thumb { background: #c7cede; border-radius: 999px; border: 3px solid var(--bg); }
.content::-webkit-scrollbar-track { background: transparent; }
.content .wrap { padding: 30px 30px 60px; }

/* ---------------- Encabezados de página ---------------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .25rem 0 1.1rem; }
.page-head h1 { font-size: 1.55rem; margin: 0; font-weight: 800; }
.page-head h2 { font-size: 1.15rem; margin: 0; }

/* ---------------- Stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-bottom: 1.4rem; }
.stat { padding: 1.05rem 1.15rem; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .75rem; align-items: center; transition: box-shadow .2s, transform .2s; }
.stat:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.stat-icon {
  grid-row: span 2; font-size: 1.4rem; width: 2.9rem; height: 2.9rem; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; background: #eef2ff;
}
.stat-num { font-size: 1.55rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.stat-label { color: var(--muted); font-size: .78rem; font-weight: 600; }
.stat:nth-child(2) .stat-icon { background: #dcfce7; }
.stat:nth-child(3) .stat-icon { background: #fef3c7; }
.stat:nth-child(4) .stat-icon { background: #e0f2fe; }
.stat:nth-child(5) .stat-icon { background: #fae8ff; }
.stat:nth-child(6) .stat-icon { background: #fee2e2; }
.stat:nth-child(7) .stat-icon { background: #ede9fe; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }

/* ---------------- Badges ---------------- */
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; vertical-align: middle; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-gray { background: #f3f4f6; color: #4b5563; }

/* ---------------- Alertas ---------------- */
.alert { border-radius: 14px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .92rem; border: 1px solid; font-weight: 500; }
.alert-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ---------------- Formularios ---------------- */
.form-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 1.6rem 0 .8rem; border-bottom: 1px solid var(--line); padding-bottom: .45rem; }
.form-title:first-child { margin-top: 0; }
.field { display: block; margin-bottom: .95rem; }
.field > span { display: block; font-size: .84rem; font-weight: 600; color: #374151; margin-bottom: .32rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=tel], select, textarea {
  width: 100%; padding: .62rem .8rem; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; background: #fff; color: var(--ink); transition: box-shadow .15s, border-color .15s;
}
input[type=color] { width: 100%; height: 2.7rem; padding: .2rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
textarea { resize: vertical; }
input[type=file] { font-size: .85rem; width: 100%; }
.field .hint { margin-top: .3rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: .75rem 0; font-size: .92rem; cursor: pointer; }
.check input { margin-top: .22rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; gap: .75rem; margin-top: 1.35rem; flex-wrap: wrap; }
.thumb { margin-top: .5rem; width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.danger-zone { margin: 1.5rem 0 3rem; text-align: center; }
.searchbar { display: flex; gap: .5rem; margin-bottom: 1.1rem; }
.searchbar input { flex: 1; }
.plain-list { padding-left: 1.2rem; } .plain-list li { margin-bottom: .4rem; }
.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; flex-wrap: wrap; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.copy-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.copy-row input { flex: 1; min-width: 220px; background: #f8fafc; }
.share-card h3 { margin-bottom: .5rem; }
.qr-holder { display: flex; justify-content: center; padding: 1rem 0 .25rem; }
.qr-holder img, .qr-holder canvas { border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; }

/* ---------------- Tablas ---------------- */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
  text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); padding: .75rem 1rem; background: #f8fafc; border-bottom: 1px solid var(--line); font-weight: 700;
}
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f8fafc; }
.table .empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.sub { color: var(--muted); font-size: .8rem; font-weight: 400; }
.table-form input { min-width: 110px; }
@media (max-width: 700px) {
  .table-card { overflow-x: auto; }
  .table { min-width: 640px; }
}

/* ---------------- Login ---------------- */
body.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: var(--shell); }
.auth-card { width: 100%; max-width: 410px; padding: 1.9rem; border-radius: 20px; }
.auth-card h1 { font-size: 1.35rem; }
.auth-brand { font-weight: 800; color: var(--brand); margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.auth-brand span { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.auth-alt { display: block; text-align: center; margin-top: 1rem; color: var(--muted); font-size: .9rem; }

/* Envoltura y botón para revelar contraseña */
.input-pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.input-pwd-wrap input {
  width: 100%;
  padding-right: 2.75rem !important;
}
.btn-pwd-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0.4rem 0.6rem;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.btn-pwd-toggle:hover, .btn-pwd-toggle:focus {
  color: var(--ink);
  background-color: rgba(15, 23, 42, 0.08);
  outline: none;
}

/* Accesos rápidos por rol (login) */
.quick { margin-top: 1.15rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.quick-t { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .6rem; }
.quick-t span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.quick-t em { font-style: normal; font-size: .68rem; color: #9ca3af; }
.quick-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.quick-btn {
  display: flex; align-items: center; gap: .65rem; width: 100%; min-width: 0; overflow: hidden;
  text-align: left; font: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .6rem .7rem;
  cursor: pointer; transition: border-color .15s, transform .1s, box-shadow .15s;
}
.quick-btn:hover { border-color: var(--brand); background: #f8f9ff; transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(79, 70, 229, .8); }
.quick-av {
  width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .78rem; flex-shrink: 0;
}
.quick-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.quick-info b { font-size: .85rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-info i { font-style: normal; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-btn.done { border-color: #86efac; background: #f3fdf6; }
.quick-btn.done .quick-av { background: #16a34a; }

/* ---------------- Instalador ---------------- */
body.install { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem; background: var(--shell); }
.install-card { width: 100%; max-width: 640px; padding: 1.9rem; margin-bottom: 2rem; border-radius: 20px; }
.install-head { text-align: center; }
.install-icon { font-size: 2.2rem; width: 3.4rem; height: 3.4rem; display: flex; align-items: center; justify-content: center; background: #eef2ff; border-radius: 50%; margin: 0 auto .75rem; }
.install-ok { background: #dcfce7; }
.stack-sm { display: grid; gap: .6rem; margin-top: 1.25rem; }

/* ---------------- Portada ---------------- */
body.landing { background: #fff; }
.hero { background: var(--shell); color: #fff; padding: 4.5rem 1rem 5rem; text-align: center; }
.hero-in { max-width: 780px; margin: 0 auto; }
.hero-logo { width: 68px; height: 68px; border-radius: 20px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.5rem; margin: 0 auto 1.25rem; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); margin-bottom: .75rem; }
.hero-sub { font-size: 1.1rem; opacity: .9; max-width: 620px; margin: 0 auto 1.75rem; }
.hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--brand2); }
.hero .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
.features { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 1.35rem; }
.feature-icon { font-size: 1.6rem; margin-bottom: .5rem; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
.plans { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
@media (min-width: 850px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { padding: 1.6rem; position: relative; }
.plan-popular { border: 2px solid var(--brand); box-shadow: 0 16px 44px rgba(79,70,229,.2); transform: translateY(-4px); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .7rem; font-weight: 700; padding: .28rem .75rem; border-radius: 999px; text-transform: uppercase; }
.plan-name { font-size: 1.15rem; }
.plan-price { font-size: 2.2rem; font-weight: 800; margin-top: .5rem; letter-spacing: -.03em; }
.plan-note { color: var(--muted); font-size: .82rem; margin-bottom: .75rem; }
.plan-list { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .92rem; }
.plan-list li { padding: .35rem 0 .35rem 1.4rem; position: relative; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan-month { font-weight: 700; border-top: 1px dashed var(--line); padding-top: .75rem; }
.plan-month span { color: var(--muted); font-weight: 400; font-size: .85rem; }
.plans-note { text-align: center; color: var(--muted); margin-top: 1rem; font-size: .9rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: #f9fafb; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: -12px; left: 14px; background: var(--grad); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.steps li strong { display: block; margin-bottom: .25rem; font-size: .95rem; }
.steps li span { color: var(--muted); font-size: .85rem; }
.foot { border-top: 1px solid var(--line); padding: 2rem 1rem; text-align: center; color: var(--muted); font-size: .9rem; }
.foot .btn { margin-top: .5rem; }

/* ---------------- Constructor de menú (panel) ---------------- */
.plan-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .95rem 1.2rem; margin-bottom: 1.1rem; }
.plan-bar-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.plan-bar-top strong { color: var(--ink); }
.plan-bar .limit-track { margin: .6rem 0 0; }

.mtabs { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .9rem; }
.mtab {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: .48rem .95rem; font-size: .88rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: .15s; text-decoration: none;
}
.mtab b { background: #f1f3f9; color: var(--muted); border-radius: 999px; padding: .02rem .5rem; font-size: .76rem; font-weight: 700; }
.mtab:hover { color: var(--ink); border-color: #d5dbe8; transform: translateY(-1px); }
.mtab.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -10px rgba(79, 70, 229, .9); }
.mtab.active b { background: rgba(255, 255, 255, .22); color: #fff; }
.mtab-add { border-style: dashed; color: var(--brand); }

.cat-add {
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .85rem 1rem; margin-bottom: 1rem;
}
.cat-add input[type="text"] { flex: 1 1 240px; min-width: 0; }
.cat-ideas { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; width: 100%; }
.cat-ideas .hint { margin: 0; }
.idea {
  background: #f6f7fb; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: .3rem .75rem; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: .15s;
}
.idea:hover { background: #eef2ff; border-color: #c7d2fe; color: var(--brand); transform: translateY(-1px); }

.cat-ctx {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .8rem 1rem; margin-bottom: 1.1rem;
}
.cat-ctx[hidden] { display: none; }
.cat-ctx-name { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.cat-ctx-name strong { font-size: 1rem; }
.cat-ctx-rename { display: flex; gap: .5rem; align-items: center; flex: 1 1 300px; min-width: 0; }
.cat-ctx-rename input { flex: 1; min-width: 0; }
.cat-ctx-acts { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.cat-ctx-acts form { margin: 0; }

.pgrid-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.35rem 0 .75rem; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 1rem; }
.pcard {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}
.pcard:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.pcard.is-hidden { display: none; }
.pcard.off .pcard-media { filter: grayscale(.6); opacity: .75; }
.pcard-media { position: relative; display: block; aspect-ratio: 16 / 10; background: #eef1f7; overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard-media .ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 800; color: #fff;
  background: var(--brand);
}
.pcard-tag { position: absolute; top: .55rem; left: .55rem; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .5); }
.pcard-body { padding: .85rem .95rem .35rem; flex: 1; }
.pcard-title { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.pcard-name { color: var(--ink); min-width: 0; }
.pcard-name strong { font-size: .98rem; }
.pcard-name:hover strong { color: var(--brand); }
.pcard-price { color: var(--brand); font-weight: 800; white-space: nowrap; font-size: .98rem; }
.pcard-desc {
  color: var(--muted); font-size: .83rem; margin: .3rem 0 .55rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.pcard-acts { display: flex; align-items: center; gap: .45rem; padding: .6rem .95rem; border-top: 1px solid var(--line); background: #fafbfe; }
.pcard-acts form { margin: 0; }
.pcard-acts .sp { flex: 1; }
.pcard-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; min-height: 220px; text-align: center; padding: 1.4rem 1rem;
  background: #fbfcff; border: 2px dashed #cdd6ea; border-radius: var(--radius);
  color: var(--muted); text-decoration: none; transition: .18s;
}
.pcard-add:hover { border-color: var(--brand); background: #f5f7ff; transform: translateY(-2px); }
.pcard-add strong { color: var(--ink); font-size: 1rem; }
.pcard-add:hover strong { color: var(--brand); }
.pcard-add-ico {
  width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .9);
}
.pcard-add-ico .ico { width: 22px; height: 22px; }

.ico-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  cursor: pointer; transition: .15s; padding: 0; text-decoration: none;
}
.ico-btn .ico { width: 17px; height: 17px; }
.ico-btn:hover { background: #eef2ff; border-color: #c7d2fe; color: var(--brand); }
.ico-btn.danger:hover { background: #fef2f2; border-color: #fecaca; color: var(--err); }

/* Interruptor mostrar/ocultar producto */
.sw { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #d7dcea; border: 0; cursor: pointer; transition: background .18s; padding: 0; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: left .18s; }
.sw.on { background: #16a34a; }
.sw.on::after { left: 21px; }

.empty-state { padding: 2.25rem 1.25rem; text-align: center; color: var(--muted); }
.empty-state .btn { margin-top: .5rem; }
.limit-track { height: 9px; background: #e9edf5; border-radius: 999px; overflow: hidden; margin: .55rem 0; }
.limit-track span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
@media (max-width: 620px) {
  .pgrid { grid-template-columns: 1fr; }
  .cat-ctx-rename { flex-basis: 100%; }
}

/* ---------------- Pedidos ---------------- */
.order-card { padding: 1.1rem 1.2rem; margin-bottom: 1rem; transition: box-shadow .2s, transform .2s; }
.order-card:hover { box-shadow: var(--shadow-hover); }
.order-new { border-left: 4px solid var(--err); }
.order-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: .65rem; flex-wrap: wrap; }
.order-code { font-size: 1.05rem; font-weight: 800; margin-right: .35rem; letter-spacing: -.01em; }
.order-total { font-size: 1.2rem; font-weight: 800; }
.order-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; font-size: .92rem; }
@media (min-width: 760px) { .order-grid { grid-template-columns: 1fr 1fr; } }
.order-grid p { margin: 0 0 .3rem; }
.order-line { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.order-actions { display: flex; gap: .6rem; margin-top: .95rem; flex-wrap: wrap; align-items: center; border-top: 1px dashed var(--line); padding-top: .85rem; }
.order-status { display: flex; gap: .4rem; }
.order-status select { width: auto; padding: .42rem .6rem; }
.m-chips { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.m-chip {
  background: #fff; border: 1px solid var(--line); color: var(--muted); border-radius: 999px;
  padding: .42rem .9rem; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: .15s;
}
.m-chip:hover { color: var(--ink); border-color: #d5dbe8; }
.m-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(79, 70, 229, .9); }

/* ============================================================
   MENÚ PÚBLICO — CRAFT BURGER BISTRO (LUXURY NOIR & WARM GOLD)
   ============================================================ */
html {
  background: #090d16;
  scroll-behavior: smooth;
}
body.menu {
  background: #090d16;
  color: #f8fafc;
  margin: 0;
  padding: 0 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Tipografía de Lujo */
.gold-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--brand);
  font-weight: 700;
}
.m-gold-tag {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-block;
}

/* Botones Dorados de Alta Conversión */
.btn.m-btn-gold {
  background: var(--brand);
  color: var(--brand-ink) !important;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px -4px rgba(var(--brand-rgb), 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  border: 0;
  text-decoration: none;
}
.btn.m-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(var(--brand-rgb), 0.65);
  filter: brightness(1.05);
  color: var(--brand-ink) !important;
}

/* ============================================================
   TOP NAVBAR (Distrito Burger Co. Navbar)
   ============================================================ */
.m-navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
}
.m-nav-wrap, .m-navbar-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: nowrap;
}
.m-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.m-nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand);
  box-shadow: 0 0 14px rgba(var(--brand-rgb), 0.35);
}
.m-nav-logo-txt {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
}
.m-nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.m-nav-brand-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
}
.m-nav-brand-text span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--brand);
  font-weight: 700;
}
.m-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.m-nav-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}
.m-nav-links a:hover, .m-nav-links a.active {
  color: #ffffff;
}
.m-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.m-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.m-nav-ico {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.m-nav-ico:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(var(--brand-rgb), 0.4);
}
.m-nav-cart {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.m-nav-cart:hover {
  border-color: var(--brand);
  box-shadow: 0 0 15px rgba(var(--brand-rgb), 0.25);
}
.m-nav-cart-badge {
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}
.m-btn-pedir {
  background: var(--brand);
  color: var(--brand-ink) !important;
  font-weight: 800;
  font-size: 0.86rem;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.35);
  border: 0;
  white-space: nowrap;
  text-decoration: none;
}
.m-btn-pedir:hover {
  filter: brightness(1.08);
}
@media (max-width: 860px) {
  .m-nav-links { display: none; }
}

/* ============================================================
/* ============================================================
   HERO BISTRO SECTION — VITRINA GASTRONÓMICA PURA (SIN DEGRADADOS)
   ============================================================ */
.m-hero-bistro {
  position: relative;
  min-height: calc(88vh - 72px);
  display: flex;
  align-items: center;
  background-color: #090d16;
  padding: calc(72px + 2.5rem) 1.5rem 3.5rem;
  scroll-margin-top: 72px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.theme-light .m-hero-bistro {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.m-hero-bistro::after {
  display: none !important;
}
.m-hero-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.m-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.m-bistro-badge-wrap {
  margin-bottom: 1rem;
}
.m-bistro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--brand2);
  color: var(--brand2-ink);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.1);
}
body.theme-dark .m-bistro-badge {
  border-color: rgba(255, 255, 255, 0.15);
}
.m-bistro-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  color: #ffffff;
  margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
}
body.theme-light .m-bistro-title {
  color: #0f172a;
}
.brand-highlight {
  color: var(--brand);
}
.m-bistro-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 1.2rem;
  max-width: 580px;
}
body.theme-light .m-bistro-desc {
  color: #475569;
}
.m-bistro-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
body.theme-light .m-bistro-location {
  color: #475569;
}
.m-bistro-cta-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.btn-wa-bistro {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--brand);
  color: var(--brand-ink) !important;
  font-size: 0.98rem;
  font-weight: 800;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px -4px rgba(var(--brand-rgb), 0.45);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.btn-wa-bistro:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(var(--brand-rgb), 0.6);
}
.btn-secondary-bistro {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 1.4rem;
  border-radius: 999px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s;
}
body.theme-light .btn-secondary-bistro {
  border-color: #cbd5e1;
  color: #0f172a;
}
.btn-secondary-bistro:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.m-bistro-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}
body.theme-light .m-bistro-features {
  border-top-color: rgba(0, 0, 0, 0.08);
}
.m-feat-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.m-feat-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), 0.12);
  border: 1px solid rgba(var(--brand-rgb), 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.m-feat-item strong {
  display: block;
  font-size: 0.86rem;
  color: #ffffff;
  line-height: 1.2;
}
body.theme-light .m-feat-item strong {
  color: #0f172a;
}
.m-feat-item small {
  font-size: 0.75rem;
  color: #94a3b8;
}
body.theme-light .m-feat-item small {
  color: #64748b;
}

/* Vitrina Fotográfica Gastronómica Pura */
.m-hero-media {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.m-hero-img-card {
  position: relative;
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.45);
}
body.theme-light .m-hero-img-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
}
.m-hero-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.m-hero-img-card:hover .m-hero-img {
  transform: scale(1.02);
}

/* Insignias Flotantes con Alto Contraste Garantizado */
.m-hero-img-card .m-hero-floating-pill {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #090d16;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
body.theme-light .m-hero-img-card .m-hero-floating-pill {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.15);
}
.m-pill-ico {
  font-size: 1.35rem;
  line-height: 1;
}
.m-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.m-pill-text strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: inherit;
}
.m-pill-text small {
  font-size: 0.72rem;
  opacity: 0.75;
  font-weight: 600;
}

.m-hero-img-card .m-hero-floating-chalk {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 4;
  pointer-events: none;
}
.m-hero-img-card .m-chalk-note {
  background: rgba(15, 23, 42, 0.92);
  color: #facc15;
  padding: 0.55rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(250, 204, 21, 0.4);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.55);
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.theme-light .m-hero-img-card .m-chalk-note {
  background: #ffffff;
  color: #b91c1c;
  border: 2px solid #b91c1c;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12);
}
.m-chalk-arrow {
  width: 28px;
  height: 28px;
  color: inherit;
  margin-top: -2px;
}

@media (max-width: 960px) {
  .m-hero-bistro {
    min-height: auto;
    padding: calc(70px + 2rem) 1.25rem 3.5rem;
  }
  .m-hero-container {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .m-hero-media {
    order: -1;
  }
  .m-hero-img {
    aspect-ratio: 16/10;
  }
}

/* Indicador de Scroll hacia el Menú */
.m-scroll-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  margin-top: 2.5rem;
  transition: color 0.2s ease;
}
.m-scroll-down:hover {
  color: var(--brand);
}
.m-scroll-arrow {
  font-size: 1.1rem;
  color: var(--brand);
  animation: bounceDown 2s infinite ease-in-out;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   MENU SECTION (NUESTRO MENÚ)
   ============================================================ */
.m-menu-section {
  padding: 4.5rem 1.25rem 3.5rem;
  background: #090d16;
}
.m-menu-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.m-menu-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.m-menu-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0.4rem 0 0;
  letter-spacing: -0.015em;
}

/* Toolbar de Categorías y Buscador */
.m-toolbar-bistro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.m-search-wrap {
  position: relative;
  width: min(520px, 100%);
  display: flex;
  align-items: center;
}
.m-search-ico {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-search-ico svg {
  width: 20px;
  height: 20px;
  display: block;
}
.m-search-wrap input.m-search-input,
.m-search-input {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 0.85rem 1.4rem 0.85rem 3.35rem !important;
  font-size: 0.96rem !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease;
}
.m-search-wrap input.m-search-input:focus,
.m-search-input:focus {
  outline: none !important;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15) !important;
}
.m-chips-bistro {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}
.m-chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.m-chip-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}
.m-chip-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 6px 18px rgba(var(--brand-rgb), 0.4);
}

/* Grid de Platillos Bistro */
.m-bistro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 1080px) {
  .m-bistro-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Tarjeta Bistro Dark Luxury */
.m-bistro-card {
  display: flex;
  flex-direction: column;
  background: #0f1626;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.m-bistro-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--brand-rgb), 0.4);
  box-shadow: 0 16px 40px -10px rgba(var(--brand-rgb), 0.15), 0 0 0 1px rgba(var(--brand-rgb), 0.2);
}
.m-bcard-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #090d16;
  overflow: hidden;
}
.m-bcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.m-bistro-card:hover .m-bcard-media img {
  transform: scale(1.07);
}
.m-bcard-media .m-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  background: #0f172a;
}

/* Badges sobre la Foto */
.m-bcard-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.m-bcard-badge.gold {
  background: rgba(var(--brand-rgb), 0.95);
  color: var(--brand-ink);
}
.m-bcard-badge.hot {
  background: rgba(225, 29, 72, 0.95);
  color: #ffffff;
}
.m-bcard-badge.emerald {
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
}
.m-bcard-badge.purple {
  background: rgba(168, 85, 247, 0.95);
  color: #ffffff;
}

/* Contenido de la Tarjeta */
.m-bcard-body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.m-bcard-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.45rem;
  line-height: 1.3;
}
.m-bcard-desc {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 1.1rem;
  flex: 1;
}
.m-bcard-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--price-ink, var(--brand));
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}

/* Botón Agregar al Carrito (Bordered Style) */
.m-bcard-btn {
  width: 100%;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}
.m-bcard-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(var(--brand-rgb), 0.08);
}
.m-bcard-btn:active {
  transform: scale(0.97);
}
.m-bcard-btn.added {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  animation: addBounce 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   SOBRE NOSOTROS / HISTORIA SECTION
   ============================================================ */
.m-about-section {
  padding: 5rem 1.25rem;
  background: #060911;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.m-about-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.m-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 920px) {
  .m-about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.m-about-photo-box {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.m-about-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.m-about-stamp {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--brand);
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(5deg);
}
.m-about-stamp strong {
  font-size: 1.9rem;
}
.m-about-stamp small {
  font-size: 1.5rem;
  margin-top: 2px;
}
.m-about-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.m-about-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0.5rem 0 1.25rem;
  line-height: 1.2;
}
.m-about-p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.m-about-link {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}
.m-about-link:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(var(--brand-rgb), 0.08);
}

/* ============================================================
   PRE-FOOTER CTA BANNER (¿LISTO PARA SABOREAR?)
   ============================================================ */
.m-cta-banner {
  padding: 4.5rem 1.25rem;
  background: #090d16;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.m-cta-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.m-cta-sub {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.m-cta-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0.6rem 0 0.85rem;
}
.m-cta-desc {
  color: #94a3b8;
  font-size: 1.05rem;
  margin: 0 0 2rem;
}
.m-cta-action {
  margin-bottom: 1.5rem;
}
.m-btn-lg {
  padding: 0.9rem 2rem !important;
  font-size: 1.05rem !important;
}
.m-cta-checks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ============================================================
   FOOTER BISTRO — 100% FLUSH A FONDO
   ============================================================ */
.m-bistro-footer {
  margin-top: auto;
  margin-bottom: 0 !important;
  background: #060911;
  color: #94a3b8;
  padding: 4.5rem 1.25rem 7.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.m-bfooter-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.m-bfooter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.m-bfooter-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.m-bfooter-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.85rem;
  border: 2px solid var(--brand);
}
.m-bfooter-brand h4 {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}
.m-bfooter-brand p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0;
}
.m-bfooter-col strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin-bottom: 0.65rem;
}
.m-bfooter-info-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.m-bf-ico {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.m-bfooter-info-item span {
  display: block;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.4;
}
.m-bf-sub {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.2rem;
}
.m-bf-badge {
  display: inline-block;
  background: rgba(var(--brand-rgb), 0.12);
  border: 1px solid rgba(var(--brand-rgb), 0.28);
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-top: 0.4rem;
}
.m-bfooter-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.m-bfooter-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.m-bfooter-socials a:hover {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
  transform: translateY(-2px);
}
.m-bfooter-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  text-align: center;
}
@media (min-width: 640px) {
  .m-bfooter-bottom {
    flex-direction: row;
    text-align: left;
  }
}
.m-bf-copy {
  color: #64748b;
  font-size: 0.82rem;
  margin: 0;
}
.m-bf-handwritten {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ============================================================
   ESTILOS TIPOGRÁFICOS DE MARCA CONFIGURABLES
   ============================================================ */
/* 1. Playfair Display (Editorial Bistro Gourmet) */
body.font-playfair .m-bistro-title,
body.font-playfair .m-menu-title,
body.font-playfair .m-about-title,
body.font-playfair .m-cta-title,
body.font-playfair .m-bfooter-brand h4,
body.font-playfair .m-nav-brand-text strong {
  font-family: 'Playfair Display', Georgia, serif;
}
body.font-playfair .gold-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
}

/* 2. Modern & Clean (Plus Jakarta Sans / Minimalista) */
body.font-modern,
body.font-modern .m-bistro-title,
body.font-modern .m-menu-title,
body.font-modern .m-about-title,
body.font-modern .m-cta-title,
body.font-modern .m-bfooter-brand h4,
body.font-modern .m-nav-brand-text strong {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
  letter-spacing: -0.025em;
}
body.font-modern .gold-serif {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-style: normal;
  font-weight: 800;
  color: var(--brand);
}

/* 3. Urbana & Dinámica (Outfit / Casual & Smash Burger) */
body.font-outfit,
body.font-outfit .m-bistro-title,
body.font-outfit .m-menu-title,
body.font-outfit .m-about-title,
body.font-outfit .m-cta-title,
body.font-outfit .m-bfooter-brand h4,
body.font-outfit .m-nav-brand-text strong {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing: -0.02em;
}
body.font-outfit .gold-serif {
  font-family: 'Outfit', sans-serif !important;
  font-style: normal;
  font-weight: 800;
  color: var(--brand);
}

/* 4. Clásica & Artesanal (Merriweather / Tradición & Parrilla) */
body.font-merriweather .m-bistro-title,
body.font-merriweather .m-menu-title,
body.font-merriweather .m-about-title,
body.font-merriweather .m-cta-title,
body.font-merriweather .m-bfooter-brand h4,
body.font-merriweather .m-nav-brand-text strong {
  font-family: 'Merriweather', Georgia, serif;
  letter-spacing: -0.01em;
}
body.font-merriweather .gold-serif {
  font-family: 'Merriweather', Georgia, serif;
  font-style: italic;
  color: var(--brand);
}

/* ============================================================
   TEMA CLARO (LIGHT & CRISP MODE)
   ============================================================ */
body.theme-light {
  background-color: #f8fafc;
  color: #0f172a;
}
body.theme-light .m-navbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}
body.theme-light .m-nav-brand-text strong {
  color: #0f172a;
}
body.theme-light .m-nav-links a {
  color: #475569;
}
body.theme-light .m-nav-links a:hover,
body.theme-light .m-nav-links a.active {
  color: #0f172a;
}
body.theme-light .m-nav-ico {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #334155;
}
body.theme-light .m-nav-ico:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}
body.theme-light .m-nav-cart {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

body.theme-light .m-hero-bistro {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
body.theme-light .m-bistro-title {
  color: #0f172a;
}
body.theme-light .m-bistro-desc {
  color: #475569;
}
body.theme-light .m-bistro-location {
  color: #475569;
}
body.theme-light .m-bistro-features {
  border-top-color: rgba(0, 0, 0, 0.08);
}
body.theme-light .m-feat-ico {
  background: rgba(var(--brand-rgb), 0.15);
  border-color: rgba(var(--brand-rgb), 0.35);
}
body.theme-light .m-feat-item strong {
  color: #0f172a;
}
body.theme-light .m-feat-item small {
  color: #64748b;
}
body.theme-light .m-scroll-down {
  color: #64748b;
}
body.theme-light .m-scroll-down:hover {
  color: var(--brand);
}

body.theme-light .m-menu-section {
  background: #f8fafc;
}
body.theme-light .m-menu-title {
  color: #0f172a;
}
body.theme-light .m-search-wrap input.m-search-input,
body.theme-light .m-search-input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 999px !important;
  padding: 0.85rem 1.4rem 0.85rem 3.35rem !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}
body.theme-light .m-search-wrap input.m-search-input:focus,
body.theme-light .m-search-input:focus {
  background: #ffffff !important;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.2) !important;
}
body.theme-light .m-search-ico {
  color: #64748b;
}
body.theme-light .m-chip-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
body.theme-light .m-chip-btn:hover {
  color: #0f172a;
  border-color: #cbd5e1;
}
body.theme-light .m-chip-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

body.theme-light .m-bistro-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.07);
}
body.theme-light .m-bistro-card:hover {
  border-color: var(--brand);
  box-shadow: 0 16px 36px -8px rgba(var(--brand-rgb), 0.25);
}
body.theme-light .m-bcard-name {
  color: #0f172a;
}
body.theme-light .m-bcard-desc {
  color: #64748b;
}
body.theme-light .m-bcard-price {
  color: var(--price-ink, var(--brand));
}
body.theme-light .m-bcard-btn {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #f8fafc;
}
body.theme-light .m-bcard-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(var(--brand-rgb), 0.1);
}

body.theme-light .m-about-section {
  background: #ffffff;
  border-top-color: #e2e8f0;
}
body.theme-light .m-about-title {
  color: #0f172a;
}
body.theme-light .m-about-p {
  color: #475569;
}
body.theme-light .m-about-link {
  color: #0f172a;
  border-color: #cbd5e1;
}
body.theme-light .m-about-link:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(var(--brand-rgb), 0.1);
}

body.theme-light .m-cta-banner {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}
body.theme-light .m-cta-title {
  color: #0f172a;
}
body.theme-light .m-cta-desc {
  color: #475569;
}
body.theme-light .m-cta-checks {
  color: #334155;
}

/* ============================================================
   FAB Carrito Flotante Luxury Noir & Gold
   ============================================================ */
.fab {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  z-index: 45;
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  width: min(580px, calc(100% - 1.5rem));
  background: #0f1626;
  color: #ffffff;
  border: 1px solid rgba(var(--brand-rgb), 0.35);
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(var(--brand-rgb), 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.fab:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 20px 48px -6px rgba(0, 0, 0, 0.9), 0 0 25px rgba(var(--brand-rgb), 0.3);
}
.fab[hidden] { display: none; }
.fab-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.fab-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fab-arrow {
  font-size: 1.1rem;
  color: var(--price-ink, var(--brand));
  transition: transform 0.2s ease;
}
.fab:hover .fab-arrow {
  transform: translateX(3px);
}
body.theme-light .fab {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
}
body.theme-light .fab:hover {
  background: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 20px 44px -6px rgba(var(--brand-rgb), 0.25), 0 4px 14px rgba(0, 0, 0, 0.08);
}
body.theme-light .fab-arrow {
  color: var(--price-ink, var(--brand));
}
body.theme-light #fab-total {
  color: var(--price-ink, var(--brand));
}
#fab-count {
  background: var(--brand);
  color: var(--brand-ink);
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 0.45rem;
  box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.5);
}
#fab-total {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--price-ink, var(--brand));
}
.fab.bump {
  animation: bump 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bump {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.06); }
  100% { transform: translateX(-50%) scale(1); }
}

/* Hojas Deslizantes (Sheets) y Modal de Pedido */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(11, 17, 32, 0.7); z-index: 50;
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sheet-backdrop.open { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 105%);
  width: min(580px, 100%); max-height: 88vh; z-index: 55;
  background: #fff; border-radius: 24px 24px 0 0; display: flex; flex-direction: column;
  box-shadow: 0 -10px 50px rgba(0,0,0,.35);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
  visibility: hidden;
}
.sheet.open { transform: translate(-50%, 0); visibility: visible; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.sheet-x, .sheet-back { background: #f1f5f9; border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; cursor: pointer; color: var(--ink); flex-shrink: 0; transition: background .15s; }
.sheet-x:hover, .sheet-back:hover { background: #e2e8f0; }
.sheet-back { font-size: 1.15rem; }
.sheet-body { overflow-y: auto; padding: 1.2rem 1.25rem; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet-foot { padding: 1.1rem 1.25rem; border-top: 1px solid var(--line); background: #fff; }
.cart-line { display: flex; gap: .75rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info strong { display: block; font-size: .95rem; font-weight: 700; color: #0f172a; }
.cart-line-info span { color: var(--muted); font-size: .82rem; }
.cart-line-total { font-weight: 800; font-size: .95rem; color: #0f172a; white-space: nowrap; }
.qty { display: flex; align-items: center; gap: .35rem; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #f8fafc; font-size: 1.05rem; cursor: pointer; line-height: 1; transition: background .15s; }
.qty button:hover { background: #e2e8f0; }
.qty b { min-width: 24px; text-align: center; font-size: .92rem; font-weight: 700; }
.cart-empty { text-align: center; color: var(--muted); padding: 2.5rem 0; font-size: 0.95rem; }
.cart-sum { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: .95rem; }
.cart-sum strong { font-size: 1.2rem; font-weight: 800; color: #0f172a; }
.cart-sum-total { border-top: 1px dashed var(--line); padding-top: .85rem; margin-top: .4rem; }
.tipo { display: flex; gap: .65rem; }
.tipo-opt { flex: 1; border: 1.5px solid var(--line); border-radius: 16px; padding: .8rem; text-align: center; cursor: pointer; font-size: .9rem; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: .3rem; transition: all .2s; }
.tipo-opt:has(input:checked) { border-color: var(--brand); background: rgba(var(--brand-rgb), .08); color: var(--brand); }
.tipo-opt input { margin: 0; }
#checkout-form .field > span { font-size: .9rem; font-weight: 600; color: #334155; }
@media (min-width: 640px) {
  .sheet { border-radius: 24px; bottom: 4vh; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; top: 0; bottom: 0; left: 0; width: 272px; height: 100%;
    transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto;
    background: var(--shell);
    box-shadow: none;
  }
  .side.open { transform: none; box-shadow: 30px 0 70px rgba(0,0,0,.45); }
  .side-back.open { opacity: 1; visibility: visible; }
  .burger { display: grid; }
  .content { border-top-left-radius: 24px; }
  .content .wrap { padding: 22px 18px 56px; }
  .topbar { padding: 0 16px; gap: .7rem; overflow: hidden; }
  .top-title { font-size: 1rem; }
  .top-act { padding: .45rem .75rem; font-size: .8rem; }
}
@media (max-width: 640px) {
  /* Si la página ya lleva sus botones, el enlace genérico se oculta */
  .topbar-end:has(.btn) .top-act { display: none; }
  .topbar-end .btn { padding: .45rem .8rem; font-size: .8rem; }
}
@media (max-width: 640px) {
  .page-head h1 { font-size: 1.3rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .stat { padding: .85rem .9rem; }
  .stat-num { font-size: 1.3rem; }
}

/* ---------------- Avisos de pedidos entrantes ---------------- */
.topbar-end #sound-toggle { white-space: nowrap; }
.topbar-end #sound-toggle.on { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }

.toast-wrap {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 95;
  display: flex; flex-direction: column; gap: .6rem;
  width: min(350px, calc(100vw - 2rem)); pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: start;
  background: #0f172a; color: #fff; padding: .85rem .9rem; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.6);
  animation: toast-in .34s cubic-bezier(.2,.9,.3,1.45);
}
.toast.out { opacity: 0; transform: translateY(10px); transition: opacity .38s, transform .38s; }
.toast-ico {
  width: 2.15rem; height: 2.15rem; border-radius: 11px; background: rgba(255,255,255,.1);
  display: grid; place-items: center; font-size: 1rem;
}
.toast-body { display: grid; gap: .08rem; min-width: 0; font-size: .85rem; }
.toast-body strong { font-size: .92rem; letter-spacing: -.01em; }
.toast-body span { color: #cbd5e1; overflow-wrap: anywhere; }
.toast-act {
  color: #a5b4fc; font-weight: 700; font-size: .8rem; margin-top: .35rem;
  text-decoration: none; justify-self: start;
}
.toast-act:hover { text-decoration: underline; }
.toast-x { background: none; border: 0; color: #94a3b8; cursor: pointer; font-size: .78rem; padding: 0; line-height: 1; }
.toast-x:hover { color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@media (max-width: 640px) {
  .toast-wrap { left: 1rem; right: 1rem; width: auto; }
}

/* ============================================================
   PESTAÑAS DE AJUSTES (SETTINGS TABS FIJAS A TODO EL ANCHO)
   ============================================================ */
.settings-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 45;
  width: 100%;
  background: #ffffff;
  border-bottom: 1.5px solid #e2e8f0;
  border-top-left-radius: var(--radius-xl);
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.05);
  padding: 0.75rem 2rem;
  backdrop-filter: blur(10px);
}
.settings-tabs-full {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0;
}
.settings-tabs-full .ptab-btn {
  flex: 1 1 0px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.settings-tabs-full .ptab-btn:hover {
  color: #0f172a;
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.settings-tabs-full .ptab-btn.active {
  background: var(--brand) !important;
  color: var(--brand-ink, #ffffff) !important;
  border-color: var(--brand) !important;
  box-shadow: 0 4px 14px -2px var(--brand-glow) !important;
}
.settings-tabs-full .ptab-btn .ptab-emoji {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.settings-tabs-full .ptab-btn .ptab-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .settings-sticky-bar {
    padding: 0.55rem 1rem;
    border-top-left-radius: 20px;
  }
  .settings-tabs-full {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 0.4rem;
  }
  .settings-tabs-full::-webkit-scrollbar {
    display: none;
  }
  .settings-tabs-full .ptab-btn {
    flex: 0 0 auto;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
  }
}

/* Fallback tradicional para contenedores clásicos */
.settings-tabs-wrapper {
  margin-bottom: 1.5rem;
}
.panel-tabs-bar {
  display: flex;
  gap: .5rem;
  align-items: center;
  overflow-x: auto;
  padding: .35rem .2rem .75rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  border-bottom: 2px solid #e2e8f0;
}
.ptab-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .62rem 1.1rem;
  font-size: .88rem;
  font-weight: 700;
  color: #64748b;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.ptab-btn:hover {
  color: #0f172a;
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.ptab-btn.active {
  background: var(--brand);
  color: var(--brand-ink, #ffffff) !important;
  border-color: var(--brand);
  box-shadow: 0 6px 18px -4px var(--brand-glow);
}
.ptab-btn .ptab-emoji {
  font-size: 1.1rem;
  line-height: 1;
}
.ptab-pane {
  display: none;
}
.ptab-pane.active {
  display: block;
  animation: ptabFadeIn .22s ease forwards;
}
@keyframes ptabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tab-header-box {
  margin-bottom: 1.25rem;
}
.tab-header-box h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.25rem;
}
.tab-header-box p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}
.tab-save-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

