/* ==========================================================================
   MenuPro - sistema visual original
   Paleta cálida (terracota + azafrán), tipografía de sistema, componentes
   reutilizables para menú público, autenticación y panel administrativo.
   ========================================================================== */

:root {
  --brand: #e4572e;
  --brand-700: #c6441f;
  --brand-800: #a83a1a;
  --brand-100: #fbe8e1;
  --brand-050: #fdf3ee;
  --accent: #f2b705;
  --accent-soft: #fff4cd;
  --ink: #171310;
  --ink-2: #3c342d;
  --muted: #766b5f;
  --muted-2: #9b8f82;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f6f0e7;
  --surface-3: #efe6d9;
  --line: #e8ded1;
  --line-strong: #d7c9b8;
  --success: #1c7a50;
  --success-soft: #e3f4eb;
  --warning: #96620a;
  --warning-soft: #fff2d2;
  --danger: #b2352b;
  --danger-soft: #fbe6e3;
  --info: #2a618d;
  --info-soft: #e8f1f8;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-xs: 0 1px 2px rgba(30, 22, 15, .05);
  --shadow-sm: 0 2px 8px rgba(30, 22, 15, .06);
  --shadow-md: 0 12px 30px -12px rgba(30, 22, 15, .18);
  --shadow-lg: 0 30px 70px -24px rgba(30, 22, 15, .28);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --sidebar-w: 264px;
  --header-h: 72px;
}

[data-theme="dark"] {
  --brand: #f0713f;
  --brand-700: #f78a5f;
  --brand-800: #ffb08c;
  --brand-100: #3a241c;
  --brand-050: #2a1b16;
  --accent: #f6c945;
  --accent-soft: #3b3018;
  --ink: #f8f3eb;
  --ink-2: #e3d9cd;
  --muted: #b0a394;
  --muted-2: #8b7f72;
  --bg: #12100e;
  --surface: #1b1713;
  --surface-2: #241e19;
  --surface-3: #2e2620;
  --line: #352c25;
  --line-strong: #4b3f34;
  --success: #5fd3a0;
  --success-soft: #173328;
  --warning: #f2c66d;
  --warning-soft: #3a2d13;
  --danger: #ff9b90;
  --danger-soft: #3c1f1c;
  --info: #8cc4ee;
  --info-soft: #1a2b3a;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
  --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 34px 80px -30px rgba(0, 0, 0, .8);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: .98rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-800); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
small { font-size: .82rem; }
strong, b { font-weight: 650; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--brand); color: #fff; }

.icon { flex: 0 0 auto; vertical-align: middle; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hidden, [hidden] { display: none !important; }
.text-muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }
.nowrap { white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-heading { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-heading p { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  font-weight: 700; color: var(--brand-700); margin: 0 0 10px;
}
.eyebrow-light { color: var(--accent); }

/* ------------------------------- Botones -------------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--btn-border);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 650; font-size: .92rem;
  line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { --btn-bg: var(--brand); --btn-fg: #fff; --btn-border: var(--brand); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { --btn-bg: var(--brand-700); --btn-border: var(--brand-700); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-border: var(--ink); }
.btn-outline { --btn-bg: transparent; --btn-border: var(--line-strong); }
.btn-outline:hover { --btn-bg: var(--surface-2); }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; --btn-fg: var(--ink-2); }
.btn-ghost:hover { --btn-bg: var(--surface-2); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-border: #fff; }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255,255,255,.35); }
.btn-ghost-light:hover { --btn-bg: rgba(255,255,255,.12); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-border: var(--danger); }
.btn-danger-soft { --btn-bg: var(--danger-soft); --btn-fg: var(--danger); --btn-border: transparent; }
.btn-success { --btn-bg: var(--success); --btn-fg: #fff; --btn-border: var(--success); }
.btn-sm { padding: 7px 12px; font-size: .82rem; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 10px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* -------------------------------- Pills --------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px; font-size: .78rem;
  font-weight: 650; background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.pill-brand { background: var(--brand-050); color: var(--brand-700); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.pill-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.pill-warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.pill-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
  border-radius: 999px; font-size: .74rem; font-weight: 650; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-neutral { background: var(--surface-2); color: var(--muted); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-preparing { background: var(--accent-soft); color: #7c5a02; }
[data-theme="dark"] .badge-preparing { color: var(--accent); }
.badge-solid { background: var(--brand); color: #fff; }
.badge-solid::before { display: none; }

/* ------------------------------- Formularios ---------------------------- */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .label {
  font-size: .84rem; font-weight: 650; color: var(--ink-2);
}
.field .optional { color: var(--muted-2); font-weight: 400; }
.field-hint { color: var(--muted); font-size: .78rem; }
.field-error { color: var(--danger); font-size: .78rem; font-weight: 550; }
.field-span { grid-column: 1 / -1; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.link-small { font-size: .8rem; font-weight: 600; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="time"], input[type="search"],
input[type="url"], input[type="datetime-local"], select, textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); border-radius: 11px; padding: 11px 13px; font-size: .93rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--line-strong) 65%, var(--ink)); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
textarea { min-height: 110px; resize: vertical; }
select {
  appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23766b5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > svg { position: absolute; left: 13px; color: var(--muted-2); pointer-events: none; width: 18px; height: 18px; }
.input-icon input { padding-left: 41px; }
.input-icon-action input { padding-right: 44px; }
.input-action {
  position: absolute; right: 6px; display: grid; place-items: center;
  width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted);
}
.input-action:hover { background: var(--surface-2); color: var(--ink); }
.input-group { display: flex; align-items: stretch; }
.input-group input { border-radius: 11px 0 0 11px; }
.input-group .btn { border-radius: 0 11px 11px 0; border-left: 0; }
.input-suffix { display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 11px 11px 0; color: var(--muted); font-size: .85rem; }

.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .88rem; line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.check a { text-decoration: underline; text-underline-offset: 2px; }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: .9rem; color: var(--ink-2); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 44px; height: 25px; border-radius: 999px; background: var(--line-strong); transition: background .18s ease; flex: 0 0 auto; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s ease; }
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(19px); }
.switch input:focus-visible + .switch-track { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }

.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.segmented input { position: absolute; opacity: 0; }
.segmented label { padding: 8px 14px; border-radius: 9px; font-size: .84rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.segmented input:checked + label { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }

.form-alert {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  background: var(--danger-soft); color: var(--danger); border-radius: 11px;
  font-size: .87rem; font-weight: 550; margin-bottom: 4px;
}
.form-alert svg { width: 18px; height: 18px; margin-top: 1px; }
.form-alert-info { background: var(--info-soft); color: var(--info); }
.form-alert-warning { background: var(--warning-soft); color: var(--warning); }

/* -------------------------------- Tarjetas ------------------------------ */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-xs);
}
.card-pad { padding: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 1.02rem; }
.card-head p { color: var(--muted); font-size: .82rem; margin: 3px 0 0; }
.card-body { padding: 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.empty {
  text-align: center; padding: 48px 24px; color: var(--muted);
}
.empty-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 20px; background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-strong);
}
.empty-icon svg { width: 26px; height: 26px; }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty p { max-width: 380px; margin: 0 auto 18px; font-size: .9rem; }

/* -------------------------------- Layout -------------------------------- */
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.page-header h1 { font-size: 1.7rem; letter-spacing: -.03em; }
.page-header p { color: var(--muted); margin: 6px 0 0; font-size: .9rem; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-700); }

/* ------------------------------- Toasts --------------------------------- */
.toast-stack { position: fixed; top: 18px; right: 18px; z-index: 2000; display: grid; gap: 10px; width: min(390px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--info);
  border-radius: 12px; box-shadow: var(--shadow-md); animation: toast-in .25s ease both;
}
.toast p { margin: 0; font-size: .87rem; color: var(--ink-2); flex: 1; }
.toast-icon { color: var(--info); display: grid; place-items: center; }
.toast-success { border-left-color: var(--success); } .toast-success .toast-icon { color: var(--success); }
.toast-error { border-left-color: var(--danger); } .toast-error .toast-icon { color: var(--danger); }
.toast-warning { border-left-color: var(--accent); } .toast-warning .toast-icon { color: var(--warning); }
.toast-close { border: 0; background: transparent; color: var(--muted); padding: 2px; border-radius: 6px; }
.toast-close:hover { background: var(--surface-2); color: var(--ink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ------------------------------- Brand ---------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand-mark { border-radius: 12px; width: 38px; height: 38px; }
.brand-text { font-size: 1.28rem; line-height: 1; }
.brand-text span { color: var(--brand); }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }
.brand-lg .brand-mark { width: 48px; height: 48px; border-radius: 14px; }
.brand-lg .brand-text { font-size: 1.55rem; }
.brand-sm .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.brand-sm .brand-text { font-size: 1.02rem; }

/* ==========================================================================
   AUTENTICACIÓN
   ========================================================================== */
.auth-body { background: var(--bg); min-height: 100vh; }
.auth-shell { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 100vh; }
.auth-aside {
  position: relative; overflow: hidden; padding: 48px; display: flex; align-items: stretch;
  background: #171310; color: #f8f3eb;
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(650px 420px at 82% 18%, rgba(228, 87, 46, .32), transparent 62%),
    radial-gradient(520px 380px at 12% 88%, rgba(242, 183, 5, .16), transparent 65%);
}
.auth-aside-inner { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; max-width: 520px; margin: auto; }
.auth-aside-copy { margin: auto 0; padding: 56px 0 40px; }
.auth-aside-copy h1 { color: #fff; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.03; margin-bottom: 22px; }
.auth-aside-lead { color: #cfc4b6; font-size: 1.02rem; max-width: 440px; line-height: 1.65; }
.auth-benefits { display: grid; gap: 13px; margin-bottom: 44px; }
.auth-benefits li { display: flex; gap: 12px; align-items: center; color: #e7ded1; font-size: .93rem; }
.auth-benefits svg { width: 20px; height: 20px; color: var(--accent); }
.auth-aside-foot { color: #8d8174; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; margin: 0; }
.auth-orbs span { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.09); }
.auth-orbs span:nth-child(1) { width: 420px; height: 420px; right: -160px; bottom: -140px; }
.auth-orbs span:nth-child(2) { width: 280px; height: 280px; right: -60px; bottom: -30px; }
.auth-orbs span:nth-child(3) { width: 90px; height: 90px; right: 80px; top: 90px; background: rgba(242,183,5,.08); }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 28px; }
.auth-mobile-brand { display: none; margin-bottom: 32px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card-wide { max-width: 640px; }
.auth-heading { margin-bottom: 26px; }
.auth-heading h2 { font-size: 1.85rem; margin-bottom: 8px; }
.auth-heading p { color: var(--muted); font-size: .92rem; margin: 0; }
.auth-switch { text-align: center; font-size: .88rem; color: var(--muted); margin: 22px 0 0; }
.auth-switch a { font-weight: 650; }
.auth-legal-links { display: flex; gap: 8px; align-items: center; margin-top: 40px; font-size: .75rem; color: var(--muted-2); }
.auth-legal-links a { color: var(--muted); }
.auth-step { font-size: .78rem; font-weight: 650; color: var(--brand-700); margin-bottom: 12px; }

/* ==========================================================================
   LANDING
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.site-links { display: flex; gap: 26px; margin-left: 12px; }
.site-links a { color: var(--ink-2); font-size: .88rem; font-weight: 550; }
.site-links a:hover { color: var(--brand-700); }
.site-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px; color: var(--ink); }
.mobile-nav { display: none; }

.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 20px 0 20px; max-width: 620px; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px;
  background: color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 4px; z-index: -1;
}
.hero-lead { font-size: 1.05rem; color: var(--muted); max-width: 540px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .82rem; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points svg { color: var(--success); width: 16px; height: 16px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(320px, 82vw); background: #171310; border-radius: 42px; padding: 11px;
  box-shadow: 0 50px 90px -30px rgba(23, 19, 16, .55), inset 0 0 0 2px #2d2620;
  transform: rotate(-2deg); position: relative; z-index: 2;
}
.phone-notch { position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; border-radius: 999px; background: #171310; z-index: 4; }
.phone-screen { background: #fbf8f3; border-radius: 32px; overflow: hidden; color: #171310; min-height: 560px; }
.demo-cover {
  position: relative; padding: 40px 18px 18px; min-height: 142px;
  background: radial-gradient(300px 180px at 80% 0%, #f2b70555, transparent 70%), linear-gradient(140deg, #2e2118, #5c2a17 60%, #a33a1e);
  color: #fff;
}
.demo-badge { position: absolute; top: 42px; right: 14px; font-size: .58rem; font-weight: 700; background: #1c7a50; padding: 3px 8px; border-radius: 999px; }
.demo-cover-title { font-size: 1.32rem; font-weight: 750; letter-spacing: -.03em; }
.demo-cover-sub { font-size: .62rem; color: #e8d7c5; margin-top: 4px; }
.demo-chips { display: flex; gap: 7px; padding: 14px 14px 6px; }
.demo-chips span { font-size: .62rem; font-weight: 650; padding: 5px 10px; border-radius: 999px; background: #f1e8dd; color: #5d5145; }
.demo-chips .is-active { background: #e4572e; color: #fff; }
.demo-product { display: flex; gap: 10px; padding: 10px 14px; align-items: center; }
.demo-thumb { width: 55px; height: 55px; border-radius: 12px; flex: 0 0 auto; background: #e9ded0; position: relative; overflow: hidden; }
.demo-thumb::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 6px solid rgba(255,255,255,.35); }
.demo-thumb-red { background: linear-gradient(135deg, #ca5a35, #8a341c); }
.demo-thumb-green { background: linear-gradient(135deg, #749b5e, #3f5a30); }
.demo-thumb-yellow { background: linear-gradient(135deg, #eab63a, #b58012); }
.demo-info { min-width: 0; }
.demo-info strong { display: block; font-size: .74rem; letter-spacing: -.01em; }
.demo-info small { display: block; font-size: .58rem; color: #7b6f62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.demo-info b { display: block; font-size: .72rem; color: #c6441f; margin-top: 3px; }
.demo-cart {
  margin: 10px 14px 14px; background: #e4572e; color: #fff; border-radius: 12px;
  display: flex; align-items: center; gap: 7px; padding: 10px 12px; font-size: .68rem; font-weight: 700;
}
.demo-cart span { margin-left: auto; }
.demo-cart svg { width: 14px; height: 14px; }
.floating-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 14px; box-shadow: var(--shadow-md); font-size: .72rem;
}
.floating-card strong { display: block; font-size: .76rem; }
.floating-card small { color: var(--muted); font-size: .66rem; }
.floating-card-top { top: 52px; left: max(0px, 2%); }
.floating-card-bottom { bottom: 50px; right: 0; }
.floating-card svg { color: var(--brand); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot-green { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent); }

.logo-strip { border-block: 1px solid var(--line); background: var(--surface); padding: 22px 0; text-align: center; }
.logo-strip p { margin: 0; color: var(--muted); font-size: .8rem; letter-spacing: .02em; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-xs); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--brand-050); color: var(--brand); margin-bottom: 18px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 8px; font-size: 1rem; }
.feature-card p { color: var(--muted); font-size: .88rem; margin: 0; line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { position: relative; padding-top: 20px; border-top: 2px solid var(--line-strong); }
.step-number { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: var(--brand); margin-bottom: 12px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .9rem; margin: 0; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.pricing-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.pricing-card.is-featured { border: 2px solid var(--brand); box-shadow: var(--shadow-md); }
.pricing-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pricing-card h3 { font-size: 1.1rem; }
.pricing-desc { color: var(--muted); font-size: .8rem; min-height: 38px; margin: 6px 0 16px; }
.pricing-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.pricing-price strong { font-size: 1.55rem; letter-spacing: -.03em; }
.pricing-price span { color: var(--muted); font-size: .76rem; }
.pricing-features { display: grid; gap: 9px; margin: 0 0 22px; flex: 1; }
.pricing-features li { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--ink-2); line-height: 1.4; }
.pricing-features svg { color: var(--success); margin-top: 1px; }
.pricing-note { text-align: center; color: var(--muted); font-size: .78rem; margin: 22px 0 0; }

.cta-band { background: #171310; color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 20%, rgba(228,87,46,.35), transparent 65%); }
.cta-band-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #cfc4b6; margin: 0; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow-light { color: var(--accent); }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer-copy { color: var(--muted); font-size: .84rem; max-width: 300px; margin-top: 16px; }
.footer-col { display: grid; gap: 9px; align-content: start; }
.footer-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.footer-col a, .footer-muted { color: var(--ink-2); font-size: .84rem; }
.footer-col a:hover { color: var(--brand-700); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 42px; padding-top: 20px; color: var(--muted-2); font-size: .76rem; flex-wrap: wrap; }

/* ==========================================================================
   ADMIN SHELL
   ========================================================================== */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); background: #171310; color: #cfc4b6;
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 120;
  border-right: 1px solid #241d17;
}
.sidebar-head { padding: 22px 18px 16px; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.sidebar-brand:hover { color: #fff; }
.sidebar-brand img { width: 34px; height: 34px; border-radius: 10px; }
.sidebar-brand span { font-weight: 750; font-size: 1.12rem; letter-spacing: -.03em; }
.sidebar-brand span b { color: #f0713f; font-weight: 750; }
.sidebar-restaurant {
  display: flex; gap: 10px; align-items: center; margin: 14px 10px 4px; padding: 10px;
  background: #211a15; border: 1px solid #2f261f; border-radius: 12px;
}
.sidebar-restaurant img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: #2f261f; }
.sidebar-restaurant-info { min-width: 0; flex: 1; }
.sidebar-restaurant-info strong { display: block; color: #f8f3eb; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-restaurant-info small { color: #a29584; font-size: .68rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; scrollbar-width: thin; }
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #3a3028; border-radius: 99px; }
.sidebar-section { margin: 18px 0 6px; padding: 0 10px; font-size: .64rem; text-transform: uppercase; letter-spacing: .14em; color: #7e7264; font-weight: 700; }
.sidebar-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px;
  color: #c9bdae; font-size: .84rem; font-weight: 500; margin-bottom: 2px; position: relative;
}
.sidebar-link svg { width: 18px; height: 18px; color: #8f8273; transition: color .15s ease; }
.sidebar-link:hover { background: #211a15; color: #fff; }
.sidebar-link:hover svg { color: #d8ccbd; }
.sidebar-link.is-active { background: #2a211a; color: #fff; }
.sidebar-link.is-active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 4px 4px 0; background: var(--brand); }
.sidebar-link.is-active svg { color: #f0713f; }
.sidebar-link .badge { margin-left: auto; background: #3a2a1e; color: #f5b28f; font-size: .64rem; }
.sidebar-foot { padding: 12px 14px 18px; border-top: 1px solid #2a221b; display: grid; gap: 8px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #33281f; color: #f0e5d7; font-size: .72rem; font-weight: 700; flex: 0 0 auto; }
.avatar-lg { width: 46px; height: 46px; font-size: .85rem; }
.sidebar-user strong { display: block; color: #f0e5d7; font-size: .78rem; line-height: 1.2; }
.sidebar-user small { color: #928575; font-size: .66rem; }
.sidebar-logout { color: #a99c8b; font-size: .76rem; display: flex; align-items: center; gap: 8px; padding: 7px 4px; }
.sidebar-logout:hover { color: #fff; }
.sidebar-logout svg { width: 16px; height: 16px; }
.plan-meter { margin: 4px 0 8px; padding: 10px; border-radius: 10px; background: #211a15; border: 1px solid #2f261f; }
.plan-meter-row { display: flex; justify-content: space-between; font-size: .68rem; color: #a29584; margin-bottom: 6px; }
.plan-meter-bar { height: 5px; background: #352a21; border-radius: 99px; overflow: hidden; }
.plan-meter-bar span { display: block; height: 100%; background: linear-gradient(90deg, #f2b705, #e4572e); border-radius: 99px; }

.admin-main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }
.topbar {
  height: var(--header-h); display: flex; align-items: center; gap: 16px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 90;
}
.topbar-toggle { display: none; }
.topbar-title { font-weight: 650; font-size: .95rem; }
.topbar-title small { display: block; color: var(--muted); font-size: .72rem; font-weight: 400; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.icon-btn .dot-alert { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; background: var(--brand); border-radius: 50%; border: 2px solid var(--bg); }
.topbar-badge { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--brand); color: #fff; font-size: .58rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.admin-content { padding: 28px; max-width: 1500px; width: 100%; margin: 0 auto; }
.sidebar-overlay { display: none; }

.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--surface-2); border-color: var(--line); }
.user-menu .avatar { width: 32px; height: 32px; }
.user-menu-name { font-size: .8rem; font-weight: 600; line-height: 1.1; }
.user-menu-name small { display: block; color: var(--muted); font-size: .66rem; font-weight: 400; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 150;
}
.user-dropdown a, .user-dropdown button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: transparent;
  border-radius: 8px; color: var(--ink-2); font-size: .84rem; text-align: left;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--surface-2); color: var(--ink); }
.user-dropdown svg { width: 17px; height: 17px; color: var(--muted); }
.dropdown-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.dropdown-head { padding: 10px 12px 8px; }
.dropdown-head strong { display: block; font-size: .85rem; }
.dropdown-head small { color: var(--muted); font-size: .72rem; }

/* Notificaciones panel */
.notif-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 150; overflow: hidden; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.notif-head strong { font-size: .88rem; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; gap: 10px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.notif-item:last-child { border-bottom: 0; }
.notif-item.is-unread { background: var(--brand-050); }
.notif-item p { margin: 0; font-size: .8rem; color: var(--ink-2); }
.notif-item small { color: var(--muted); font-size: .7rem; }
.notif-empty { padding: 28px; text-align: center; color: var(--muted); font-size: .82rem; }

/* -------------------------------- Stats --------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden; }
.stat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.stat-label { font-size: .76rem; color: var(--muted); font-weight: 550; }
.stat-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-050); color: var(--brand); }
.stat-icon svg { width: 18px; height: 18px; }
.stat-value { font-size: 1.6rem; font-weight: 750; letter-spacing: -.035em; line-height: 1.1; }
.stat-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .73rem; color: var(--muted); }
.trend-up { color: var(--success); font-weight: 650; display: inline-flex; align-items: center; gap: 3px; }
.trend-down { color: var(--danger); font-weight: 650; display: inline-flex; align-items: center; gap: 3px; }
.stat-card-accent { background: linear-gradient(135deg, var(--brand), #c03c1b); color: #fff; border-color: transparent; }
.stat-card-accent .stat-label, .stat-card-accent .stat-foot { color: rgba(255,255,255,.78); }
.stat-card-accent .stat-icon { background: rgba(255,255,255,.16); color: #fff; }
.stat-card-accent .stat-value { color: #fff; }

.dash-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
.dash-stack { display: grid; gap: 18px; }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 12px; }
.chart-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; height: 100%; justify-content: flex-end; }
.chart-bar-fill { width: 100%; max-width: 44px; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 62%, var(--accent))); border-radius: 7px 7px 3px 3px; min-height: 4px; transition: height .4s ease; }
.chart-bar small { color: var(--muted); font-size: .68rem; white-space: nowrap; }
.chart-bar:hover .chart-bar-fill { filter: brightness(1.06); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .75rem; color: var(--muted); }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }

.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut { width: 140px; height: 140px; border-radius: 50%; flex: 0 0 auto; position: relative; background: conic-gradient(var(--brand) 0 40%, var(--accent) 40% 65%, #7c9f6a 65% 85%, var(--line-strong) 85% 100%); }
.donut::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--surface); }
.donut-legend { display: grid; gap: 8px; font-size: .78rem; color: var(--ink-2); }
.donut-legend span { display: flex; align-items: center; gap: 7px; }
.donut-legend b { margin-left: auto; color: var(--muted); font-weight: 550; }

/* ------------------------------- Tablas --------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.table th { text-align: left; padding: 11px 14px; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table .cell-main { display: flex; align-items: center; gap: 10px; }
.table .cell-title { font-weight: 600; color: var(--ink); }
.table .cell-sub { color: var(--muted); font-size: .74rem; }
.table .row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.table-thumb { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; background: var(--surface-2); flex: 0 0 auto; }
.table-empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.table-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.table-toolbar .search { max-width: 300px; flex: 1; }
.table-toolbar .toolbar-spacer { flex: 1; }
.pagination { display: flex; gap: 4px; justify-content: flex-end; padding: 14px 18px; }
.pagination a, .pagination span { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); font-size: .78rem; color: var(--ink-2); padding: 0 8px; }
.pagination a:hover { background: var(--surface-2); }
.pagination .is-current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* -------------------------------- Tabs ---------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 14px; font-size: .84rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; background: transparent; border-top: 0; border-left: 0; border-right: 0; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--brand-700); border-bottom-color: var(--brand); }

/* ------------------------------ Utilidades ------------------------------ */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel-title { font-size: .95rem; margin-bottom: 4px; }
.panel-sub { color: var(--muted); font-size: .8rem; margin: 0 0 16px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.badge-lg { padding: 7px 12px; font-size: .8rem; }
.loading-overlay { position: fixed; inset: 0; background: rgba(23,19,16,.32); display: grid; place-items: center; z-index: 3000; backdrop-filter: blur(2px); }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner-brand { border-color: color-mix(in srgb, var(--brand) 25%, transparent); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.is-open { transform: none; }
  .admin-main { margin-left: 0; }
  .sidebar-overlay.is-open { display: block; position: fixed; inset: 0; background: rgba(15, 12, 10, .5); z-index: 110; backdrop-filter: blur(2px); }
  .topbar-toggle { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; color: var(--ink); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding-top: 34px; }
  .auth-mobile-brand { display: block; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 860px) {
  .site-links { display: none; }
  .site-actions { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .mobile-nav { display: grid; gap: 4px; padding: 12px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .mobile-nav.is-open { display: grid; }
  .mobile-nav a { padding: 10px 4px; color: var(--ink-2); font-size: .92rem; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { border-bottom: 0; margin-top: 6px; color: #fff; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .field-span { grid-column: auto; }
  .dash-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .card-head, .card-body { padding: 18px; }
  .admin-content { padding: 20px 16px 40px; }
  .topbar { padding: 0 16px; }
  .stat-value { font-size: 1.35rem; }
  .user-menu-name { display: none; }
  .page-header h1 { font-size: 1.45rem; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 18px; }
  .hero-actions .btn { width: 100%; }
  .hero-points { gap: 12px; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-icon { width: 30px; height: 30px; }
  .stat-value { font-size: 1.22rem; }
  .form-grid { gap: 14px; }
  .toast-stack { top: auto; bottom: 14px; right: 14px; left: 14px; width: auto; }
  .table-toolbar { padding: 12px; }
  .modal { width: calc(100vw - 20px); max-height: calc(100vh - 24px); }
  .auth-main { padding: 24px 18px 40px; }
  .auth-card-wide { max-width: 100%; }
  .floating-card { display: none; }
  .donut-wrap { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   COMPONENTES ADICIONALES: modales, drawer, menú público, POS, KDS, mesas
   ========================================================================== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(18, 14, 11, .55); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease;
  backdrop-filter: blur(3px);
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg); width: min(620px, 100%);
  max-height: calc(100vh - 36px); overflow-y: auto; box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(.99); transition: transform .18s ease; position: relative;
}
.modal-backdrop.is-open .modal { transform: none; }
.modal-sm { max-width: 440px; }
.modal-lg { max-width: 820px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 22px 24px 0; }
.modal-head h3 { font-size: 1.2rem; }
.modal-head p { color: var(--muted); font-size: .83rem; margin: 4px 0 0; }
.modal-body { padding: 20px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
.modal-close { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 0; background: var(--surface-2); color: var(--muted); flex: 0 0 auto; }
.modal-close:hover { color: var(--ink); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(18,14,11,.5); z-index: 900; opacity: 0; visibility: hidden; transition: .18s ease; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw); background: var(--surface);
  z-index: 950; transform: translateX(102%); transition: transform .22s ease; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.05rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px; background: var(--surface); }

.alert { display: flex; gap: 11px; padding: 13px 15px; border-radius: 11px; background: var(--surface-2); color: var(--ink-2); font-size: .85rem; border-left: 3px solid var(--muted-2); }
.alert svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.alert-info { background: var(--info-soft); color: var(--info); border-left-color: var(--info); }
.alert-success { background: var(--success-soft); color: var(--success); border-left-color: var(--success); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-left-color: var(--warning); }
.alert-danger { background: var(--danger-soft); color: var(--danger); border-left-color: var(--danger); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; font-size: .86rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; color: var(--ink-2); font-weight: 550; }

progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--surface-2); }
progress::-webkit-progress-value { background: var(--brand); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--brand); border-radius: 99px; }

/* Editor de horarios */
.hours-row { display: grid; grid-template-columns: 120px 1fr 1fr 1fr 1fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-day { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; }
.hours-row input[type="time"] { padding: 8px 10px; font-size: .82rem; }
.hours-row.is-closed .hours-times { opacity: .35; pointer-events: none; }

@media (max-width: 700px) {
  .hours-row { grid-template-columns: 1fr 1fr; }
  .hours-day { grid-column: 1 / -1; }
}

/* ==========================================================================
   IMPRESIÓN
   ========================================================================== */
@media print {
  .sidebar, .topbar, .page-actions, .btn, .toast-stack, .no-print, .site-header, .site-footer { display: none !important; }
  .admin-main { margin: 0 !important; }
  .admin-content { padding: 0 !important; }
  body { background: #fff; color: #000; font-size: 12px; }
  .card { border: 1px solid #ddd; box-shadow: none; }
  a { color: #000; text-decoration: none; }
}


/* -------------------- Presentacion visual MenuPro -------------------- */
.hero-visual-showcase {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0 0 12px;
}
.menupro-showcase-image {
  width: min(100%, 650px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(50, 32, 18, .12));
  border-radius: 28px;
}
.showcase-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(92%, 440px);
  margin-top: -8px;
  padding: 14px 18px;
  position: relative;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.showcase-caption-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  color: var(--brand);
  background: var(--brand-050);
}
.showcase-caption strong { display: block; font-size: .88rem; line-height: 1.35; }
.showcase-caption small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.4; margin-top: 3px; }
@media (max-width: 640px) {
  .hero-visual-showcase { margin-top: 10px; padding: 0; }
  .menupro-showcase-image { width: 112%; max-width: none; margin-inline: -6%; border-radius: 18px; }
  .showcase-caption { width: 94%; margin-top: -2px; padding: 11px 13px; }
  .showcase-caption strong { font-size: .82rem; }
  .showcase-caption small { font-size: .7rem; }
}

/* Boton con apariencia de enlace dentro de un formulario POST (p. ej. reenviar verificacion) */
.inline-link-form { display: inline; margin: 0; }
.inline-link-form button { border: 0; background: transparent; padding: 0; font: inherit; color: var(--brand, #e4572e); cursor: pointer; text-decoration: underline; }
.inline-link-form button:hover { text-decoration: none; }
