/* ============================================================================
   OcularLáser® CR — Sistema de diseño clínico
   Tokens azul zafiro (sky-600 / blue-900) · claro/oscuro · componentes
   El color primario es sobreescribible en vivo por Marca Blanca (--brand).
   ========================================================================== */

:root {
  /* Paleta base */
  --brand: #0284c7;          /* sky-600 (sobreescribible) */
  --brand-deep: #1e3a8a;     /* blue-900 */
  --brand-ink: #0c4a6e;      /* sky-900 */
  --brand-soft: rgba(2, 132, 199, .12);
  --teal: #0d9488;
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, .13);
  --warning: #d97706;
  --warning-soft: rgba(217, 119, 6, .14);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, .12);
  --info: #2563eb;
  --violet: #7c3aed;

  /* Texto y superficies (claro) */
  --bg: #f4f8fb;
  --bg-2: #ffffff;
  --bg-3: #e8f0f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #dbe4ee;
  --border-2: #c9d8e6;
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, .16);
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 68px;
}

html[data-theme='dark'] {
  --bg: #0b1220;
  --bg-2: #0f1a2c;
  --bg-3: #16233a;
  --surface: #101b30;
  --surface-2: #0d1626;
  --text: #e7eef7;
  --text-2: #aebccf;
  --text-3: #6d7f96;
  --border: #1e2e49;
  --border-2: #2c405f;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .5);
  --brand-soft: rgba(56, 178, 236, .16);
  --success-soft: rgba(34, 197, 94, .16);
  --warning-soft: rgba(251, 191, 36, .15);
  --danger-soft: rgba(248, 113, 113, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15.5px;
  transition: background .25s ease, color .25s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; opacity: .92; }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .45em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 .9rem; }
small { color: var(--text-3); }
code { background: var(--bg-3); padding: .1em .4em; border-radius: 6px; font-size: .88em; }

/* ---------- utilidades ---------- */
.container { width: min(1180px, 92%); margin-inline: auto; }
.muted { color: var(--text-2); }
.center { text-align: center; }
.flex { display: flex; align-items: center; gap: .6rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; } .mt-4 { margin-top: 2.4rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.6rem; }
.hidden { display: none !important; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-brand { color: var(--brand); }
.nowrap { white-space: nowrap; }
.w-full { width: 100%; }

/* ---------- botones ---------- */
.btn {
  --btn-bg: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .62rem 1.15rem; border-radius: var(--radius-sm);
  background: var(--btn-bg); color: #fff; text-decoration: none;
  transition: filter .15s, transform .08s, background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.07); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.02rem; border-radius: 12px; }
.btn-sm { padding: .38rem .72rem; font-size: .84rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--brand); border-color: currentColor; }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-3); color: var(--text); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-success { --btn-bg: var(--success); }
.btn-danger { --btn-bg: var(--danger); }
.btn-warning { --btn-bg: var(--warning); }
.btn-deep { --btn-bg: var(--brand-deep); }
.btn[disabled] { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ---------- insignias ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .18rem .6rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .01em;
  background: var(--bg-3); color: var(--text-2); white-space: nowrap;
}
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-amber { background: var(--warning-soft); color: var(--warning); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-blue { background: rgba(37, 99, 235, .13); color: var(--info); }
.badge-violet { background: rgba(124, 58, 237, .13); color: var(--violet); }
.badge-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--border-2); }

/* ---------- tarjetas ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem;
}
.card-flat { box-shadow: none; }
.card-hover { transition: transform .18s, box-shadow .18s, border-color .18s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.card-pad-0 { padding: 0; }
.section { padding: 4.2rem 0; }
.section-tight { padding: 2.4rem 0; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .74rem; font-weight: 800; color: var(--brand); margin-bottom: .6rem;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.6rem; }

/* ---------- tabla ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th {
  text-align: left; padding: .68rem .9rem; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-3); background: var(--surface-2);
  border-bottom: 1px solid var(--border); white-space: nowrap; font-weight: 800;
}
.tbl td { padding: .68rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .actions { display: flex; gap: .3rem; justify-content: flex-end; }

/* ---------- formularios ---------- */
.field { margin-bottom: .9rem; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--text-2); margin-bottom: .3rem; }
.input, select.input, textarea.input {
  width: 100%; padding: .6rem .8rem; font: inherit; font-size: .95rem;
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--surface); }
.input::placeholder { color: var(--text-3); }
textarea.input { min-height: 84px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2394a3b8' d='M6 8 0 0h12z'/></svg>"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 1rem; }
.check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.radio-pill { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--border-2); padding: .5rem .9rem; border-radius: 999px; cursor: pointer; font-size: .88rem; transition: all .15s; background: var(--surface-2); }
.radio-pill:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.radio-pill input { accent-color: var(--brand); }

/* ---------- modal ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(8, 14, 28, .6); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 1rem; z-index: 90; overflow-y: auto;
}
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  width: min(640px, 100%); box-shadow: var(--shadow-lg); animation: pop .18s ease;
  max-height: 92vh; display: flex; flex-direction: column;
}
.modal-lg { width: min(960px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.3rem; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 1.3rem; overflow-y: auto; }
.modal-foot { padding: .9rem 1.3rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .6rem; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.x-btn { background: transparent; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-3); line-height: 1; padding: .3rem; border-radius: 8px; }
.x-btn:hover { background: var(--bg-3); color: var(--text); }

/* ---------- toast ---------- */
#toast-box { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 120; }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: 10px; padding: .8rem 1.1rem; box-shadow: var(--shadow-lg);
  min-width: 260px; max-width: 380px; font-size: .9rem; animation: slideIn .22s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ---------- spinner / skeletons ---------- */
.spinner {
  width: 26px; height: 26px; border: 3px solid var(--border-2); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty {
  text-align: center; color: var(--text-3); padding: 2.6rem 1rem;
}
.empty .emoji { font-size: 2rem; display: block; margin-bottom: .5rem; }

/* ---------- avatares ---------- */
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: .85rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); flex: none;
}
.avatar-lg { width: 74px; height: 74px; font-size: 1.6rem; }

/* ============================================================================
   CABECERA STICKY (sitio público)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, .35);
}
.brand-name { font-weight: 800; font-size: 1.04rem; line-height: 1.05; white-space: nowrap; }
.brand-sub { font-size: .7rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.site-nav { display: flex; gap: .3rem; margin-left: auto; align-items: center; flex-wrap: nowrap; }
.site-nav a.nav-link { color: var(--text-2); font-weight: 600; font-size: .9rem; padding: .5rem .7rem; border-radius: 8px; }
.site-nav a.nav-link:hover { background: var(--brand-soft); color: var(--brand); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch button { border: none; background: transparent; padding: .32rem .7rem; font-weight: 700; font-size: .8rem; cursor: pointer; color: var(--text-3); }
.lang-switch button.on { background: var(--brand); color: #fff; }

/* ============================================================================
   HERO + paneles públicos
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, color-mix(in srgb, var(--brand-deep) 22%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 85%, var(--brand-deep)), var(--bg));
  padding: 4.6rem 0 4rem;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.4rem; align-items: center; }
.hero-title-grad {
  background: linear-gradient(92deg, var(--text), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-visual { position: relative; }
.eye-illustration { border-radius: 20px; background: linear-gradient(145deg, #0c4a6e, #082f49); padding: 1rem; box-shadow: var(--shadow-lg); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }

.notice-bar {
  border: 1px solid var(--warning-soft); background: linear-gradient(90deg, var(--warning-soft), transparent);
  border-left: 4px solid var(--warning); border-radius: 12px; padding: .9rem 1.2rem; margin: 1.6rem 0;
  display: flex; gap: .8rem; align-items: flex-start;
}

/* ============================================================================
   CHATBOT
   ========================================================================== */
.chat-fab {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 70; width: 60px; height: 60px;
  border-radius: 50%; border: none; cursor: pointer; color: #fff; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 10px 28px rgba(2, 132, 199, .5); display: grid; place-items: center;
  transition: transform .18s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-panel {
  position: fixed; right: 1.2rem; bottom: 5.4rem; z-index: 75; width: min(380px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 7rem)); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .18s ease;
}
.chat-head { background: linear-gradient(120deg, var(--brand-deep), var(--brand)); color: #fff; padding: .9rem 1.1rem; }
.chat-head .flex-between { gap: .4rem; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--surface-2); }
.chat-msg { max-width: 82%; padding: .6rem .9rem; border-radius: 14px; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; }
.chat-msg.bot { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-input { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--border); }
.chat-typing { color: var(--text-3); font-size: .82rem; padding: .2rem .2rem .4rem; }
.chat-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .8rem; }
.chat-quick button { font-size: .78rem; }

/* ============================================================================
   PORTAL PACIENTE
   ========================================================================== */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.4rem;
  background: radial-gradient(800px 500px at 20% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
              radial-gradient(700px 500px at 110% 110%, color-mix(in srgb, var(--brand-deep) 24%, transparent), transparent 55%),
              var(--bg); }
.auth-card { width: min(440px, 100%); }
.qr-box { display: grid; place-items: center; gap: .4rem; padding: 1rem; background: #fff; border-radius: 14px; }
.qr-box canvas, .qr-box img { border-radius: 8px; }
.rx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.rx-eye { border: 1px solid var(--border); border-radius: 12px; padding: .9rem; background: var(--surface-2); }
.rx-eye h4 { margin-bottom: .4rem; color: var(--brand); display: flex; align-items: center; gap: .4rem; }

/* ============================================================================
   PANEL INTERNO
   ========================================================================== */
.panel-body { display: flex; min-height: 100vh; background: var(--bg); }
.panel-aside {
  width: 240px; flex: none; background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.panel-aside .brand { padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); }
.panel-nav { flex: 1; overflow-y: auto; padding: .7rem; display: flex; flex-direction: column; gap: .18rem; }
.panel-nav .nav-group { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); padding: .8rem .6rem .3rem; }
.panel-nav a.mitem {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 9px;
  color: var(--text-2); font-weight: 600; font-size: .9rem; cursor: pointer; border: none; background: none; width: 100%; text-align: left;
}
.panel-nav a.mitem:hover { background: var(--brand-soft); color: var(--brand); }
.panel-nav a.mitem.on { background: linear-gradient(90deg, var(--brand-soft), transparent); color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
.panel-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.panel-topbar {
  position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); padding: .65rem 1.4rem;
}
.panel-content { padding: 1.4rem; flex: 1; }
.module-head { margin-bottom: 1.2rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.kpi .k { font-size: .76rem; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.kpi .v { font-size: 1.7rem; font-weight: 800; margin-top: .2rem; }
.kpi .d { font-size: .78rem; color: var(--text-3); }

/* kanban leads */
.kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: .8rem; align-items: start; }
.kanban-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem; }
.kanban-col h4 { font-size: .82rem; margin-bottom: .7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-2); }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: .7rem .8rem; margin-bottom: .6rem; box-shadow: var(--shadow); cursor: grab; }
.kcard:hover { border-color: var(--brand); }
.kcard .lead-phone { font-size: .8rem; color: var(--text-3); }
.drag-over { outline: 2px dashed var(--brand); outline-offset: -2px; background: var(--brand-soft); }

/* lista de día agenda */
.appt-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brand); }
.waiting-badge { position: relative; }
.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* login oscuro panel */
.login-dark {
  --bg: #070d1a; --surface: #0c1526; --surface-2: #0a1120; --text: #e6eefb;
  --text-2: #9fb0c8; --text-3: #5c6f8c; --border: #16243c; --border-2: #22365a;
  background:
    radial-gradient(900px 500px at 80% -20%, rgba(2, 132, 199, .25), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(30, 58, 138, .35), transparent 55%), var(--bg);
  min-height: 100vh; display: grid; place-items: center; padding: 1.2rem;
}

/* Tabs */
.tabs { display: flex; gap: .35rem; border-bottom: 1px solid var(--border); margin-bottom: 1.1rem; overflow-x: auto; }
.tabs button {
  border: none; background: none; padding: .6rem .95rem; font: inherit; font-weight: 700;
  color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; font-size: .9rem;
}
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }

/* Scrollbar refinada */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* responsive */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .panel-aside { position: fixed; left: 0; top: 0; z-index: 80; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .panel-aside.open { transform: none; }
  .menu-burger { display: grid !important; }
  .site-nav .nav-links { display: none; }
}
.menu-burger { display: none; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 65; background: var(--surface); display: none;
  flex-direction: column; padding: 1.4rem; gap: .2rem; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a.nav-link { padding: .9rem .6rem; font-size: 1.05rem; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border); }

/* footer */
.site-footer { background: linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg-2) 60%, var(--brand-deep))); border-top: 1px solid var(--border); padding: 3rem 0 1.6rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.2rem; font-size: .82rem; color: var(--text-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }

/* impresión de recibos */
@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; inset: 0; }
}
