/* =========================================================
   La Regional 870 — Maquetas de Reservas (Fase 2, etapa 0)
   Base: MDB5 (Bootstrap 5). Marca: #390e5e / #F5B700
   ========================================================= */
:root {
  --purple-900: #1f0636; --purple-800: #2b0a47; --purple-700: #390e5e;
  --purple-500: #5d2a8c; --purple-300: #b58ae0; --purple-100: #efe6f8;
  --gold-500: #f5b700; --gold-400: #ffc933;
  --ok: #1b9e5a; --warn: #e08a00; --bad: #d6334f; --info: #2d7dd2; --muted-st: #7d7488;

  --bg: #faf8fc; --surface: #ffffff; --surface-2: #f1ebf7;
  --text: #1d1428; --text-muted: #5b5068; --border: #e3d9ee;
  --heading: var(--purple-700); --link: var(--purple-500);
  --shadow: 0 8px 24px rgba(57, 14, 94, .10);
  --radius: 16px; --radius-sm: 10px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --mdb-primary: #390e5e; --mdb-primary-rgb: 57, 14, 94;
  --mdb-body-bg: var(--bg); --mdb-body-color: var(--text);
}
[data-mdb-theme="dark"] {
  --bg: #120720; --surface: #1d0d30; --surface-2: #28133f;
  --text: #f3ecfa; --text-muted: #bfb1cf; --border: #3a2357;
  --heading: #ffffff; --link: var(--gold-400);
  --shadow: 0 8px 24px rgba(0, 0, 0, .45);
  --purple-100: #2f1750;
  --mdb-primary: #b58ae0; --mdb-primary-rgb: 181, 138, 224;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; padding-bottom: 0;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--heading); font-weight: 800; }
a { color: var(--link); }
.text-muted, .form-text { color: var(--text-muted) !important; }
.mk-hr { border-top: 1px solid var(--border); margin: 1rem 0; opacity: 1; }

/* ---------- Barra de maqueta ---------- */
.mk-banner {
  background: var(--purple-900); color: #fff; font-size: .78rem; padding: .35rem .75rem;
  display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.mk-banner a { color: var(--gold-400); text-decoration: none; font-weight: 600; }
.mk-banner .mk-tag { background: var(--gold-500); color: var(--purple-900); border-radius: 4px; padding: 0 .4rem; font-weight: 700; }
.mk-theme-btn { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 6px; padding: .1rem .55rem; font-size: .78rem; }

/* ---------- Botones de marca ---------- */
.btn { text-transform: none; letter-spacing: 0; font-weight: 700; border-radius: 12px; min-height: 44px; }
.btn-primary { background: var(--purple-700) !important; color: #fff !important; }
[data-mdb-theme="dark"] .btn-primary { background: var(--purple-500) !important; }
.btn-gold { background: var(--gold-500) !important; color: var(--purple-900) !important; box-shadow: 0 4px 12px rgba(245,183,0,.35); }
.btn-gold:hover { background: var(--gold-400) !important; }
.btn-outline-brand { border: 2px solid var(--purple-700); color: var(--purple-700); background: transparent; }
[data-mdb-theme="dark"] .btn-outline-brand { border-color: var(--purple-300); color: var(--purple-300); }
.btn-ghost { background: transparent; color: var(--link); }
.form-control, .form-select { background: var(--surface); color: var(--text); border: 1px solid var(--border); min-height: 46px; border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: var(--purple-500); box-shadow: 0 0 0 .2rem rgba(93,42,140,.2); background: var(--surface); color: var(--text); }
label.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }

/* ---------- Tarjetas ---------- */
.mk-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.mk-card.flat { box-shadow: none; }
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.st-pago { background: #fff0d6; color: #9a5a00; }
.st-rev  { background: #e0eefc; color: #1b5aa0; }
.st-ok   { background: #dcf5e8; color: #11713f; }
.st-no   { background: #fde3e8; color: #a0233a; }
.st-exp  { background: #ece8f0; color: #5f5669; }
.st-can  { background: #ece8f0; color: #5f5669; }
[data-mdb-theme="dark"] .st-pago { background: #4a3300; color: #ffc933; }
[data-mdb-theme="dark"] .st-rev  { background: #0f2f52; color: #8ec3f5; }
[data-mdb-theme="dark"] .st-ok   { background: #0b3a22; color: #6fdca2; }
[data-mdb-theme="dark"] .st-no   { background: #4a1320; color: #ff9aae; }
[data-mdb-theme="dark"] .st-exp, [data-mdb-theme="dark"] .st-can { background: #33283f; color: #c9bdd6; }

/* =========================================================
   CLIENTE
   ========================================================= */
.c-header {
  position: sticky; top: 0; z-index: 30; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.c-header .inner { max-width: 1040px; margin: auto; padding: .6rem 1rem; display: flex; align-items: center; gap: .75rem; min-height: 60px; }
.c-header .back { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--heading); text-decoration: none; font-size: 1.1rem; }
.c-header .back:hover { background: var(--surface-2); }
.c-header .title { font-family: var(--font-head); font-weight: 800; color: var(--heading); font-size: 1.05rem; flex: 1; margin: 0; line-height: 1.2; }
.c-header img.logo { height: 38px; width: auto; }
.cart-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--heading); text-decoration: none; font-size: 1.15rem; }
.cart-btn:hover { background: var(--surface-2); }
.cart-btn .badge-count {
  position: absolute; top: 2px; right: 0; background: var(--gold-500); color: var(--purple-900);
  font-size: .7rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px;
}
.cart-btn .badge-count.bump { animation: bump .45s; }
@keyframes bump { 30% { transform: scale(1.5); } 100% { transform: scale(1); } }

.c-main { max-width: 1040px; margin: auto; padding: 1rem 1rem 7rem; }
@media (min-width: 992px) { .c-main { padding-bottom: 3rem; } }

.stepper { display: flex; align-items: flex-start; gap: 0; margin: .25rem 0 1.25rem; }
.stepper .s { flex: 1; text-align: center; position: relative; font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.stepper .s::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.stepper .s:first-child::before { display: none; }
.stepper .dot { position: relative; z-index: 1; width: 28px; height: 28px; margin: 0 auto .25rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--border); display: grid; place-items: center; font-size: .72rem; color: var(--text-muted); }
.stepper .s.done .dot { background: var(--purple-700); border-color: var(--purple-700); color: #fff; }
.stepper .s.done::before, .stepper .s.now::before { background: var(--purple-700); }
.stepper .s.now .dot { border-color: var(--gold-500); background: var(--gold-500); color: var(--purple-900); }
.stepper .s.now, .stepper .s.done { color: var(--heading); }
[data-mdb-theme="dark"] .stepper .s.done .dot { background: var(--purple-500); border-color: var(--purple-500); }
[data-mdb-theme="dark"] .stepper .s.done::before, [data-mdb-theme="dark"] .stepper .s.now::before { background: var(--purple-500); }

/* Barra inferior fija (móvil) */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface);
  border-top: 1px solid var(--border); padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.bottom-bar .inner { max-width: 1040px; margin: auto; display: flex; gap: .6rem; align-items: center; }
.bottom-bar .summary { flex: 1; font-size: .85rem; line-height: 1.2; }
.bottom-bar .summary strong { font-size: 1.05rem; color: var(--heading); display: block; }
@media (min-width: 992px) {
  .bottom-bar { position: static; border: 0; box-shadow: none; padding: 1rem 0 0; background: transparent; }
  .bottom-bar.mobile-only { display: none; }
}

/* Calendario */
.cal { padding: 1rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.cal-head h3 { margin: 0; font-size: 1.05rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-grid .dow { font-size: .72rem; font-weight: 700; color: var(--text-muted); padding: .25rem 0; }
.cal-grid .d {
  aspect-ratio: 1 / 1; min-height: 44px; display: grid; place-items: center; border-radius: 12px;
  font-weight: 600; font-size: .95rem; border: 2px solid transparent; background: transparent; color: var(--text); position: relative; cursor: pointer;
}
.cal-grid .d.off { color: var(--text-muted); opacity: .4; cursor: not-allowed; background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(125,116,136,.15) 5px 7px); }
.cal-grid .d.free { background: var(--purple-100); }
.cal-grid .d.free::after { content: ""; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--purple-700); }
[data-mdb-theme="dark"] .cal-grid .d.free::after { background: var(--gold-400); }
.cal-grid .d.free:hover { border-color: var(--purple-500); }
.cal-grid .d.sel { background: var(--gold-500); color: var(--purple-900); border-color: var(--gold-500); }
.cal-grid .d.sel::after { background: var(--purple-900); }
.legend { display: flex; gap: 1rem; font-size: .8rem; color: var(--text-muted); flex-wrap: wrap; margin-top: .75rem; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: .3rem; vertical-align: -1px; }

/* Locutores */
.host-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 768px) { .host-grid { grid-template-columns: repeat(3, 1fr); } }
.host-card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .15s; position: relative; }
.host-card:hover { border-color: var(--purple-500); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.host-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.host-card .info { padding: .6rem .75rem .8rem; }
.host-card .name { font-family: var(--font-head); font-weight: 800; color: var(--heading); font-size: 1rem; margin: 0; }
.host-card .free { font-size: .8rem; color: var(--ok); font-weight: 700; }
.host-card .from { font-size: .8rem; color: var(--text-muted); }
.host-card.full { opacity: .55; filter: grayscale(1); pointer-events: none; }
.host-card.full .free { color: var(--bad); }
.host-card.full::after { content: "Sin cupo"; position: absolute; top: 10px; left: 10px; background: #000a; color: #fff; padding: .15rem .6rem; border-radius: 8px; font-size: .75rem; font-weight: 700; }

/* Horarios */
.slot { display: flex; align-items: center; gap: .75rem; background: var(--surface); border: 2px solid var(--border); border-radius: 14px; padding: .8rem 1rem; margin-bottom: .6rem; transition: .15s; }
.slot .time { font-family: var(--font-head); font-weight: 800; color: var(--heading); font-size: 1.05rem; }
.slot .sub { font-size: .8rem; color: var(--text-muted); }
.slot .price { margin-left: auto; text-align: right; font-weight: 800; color: var(--heading); font-size: 1.1rem; }
.slot.added { border-color: var(--gold-500); background: color-mix(in srgb, var(--gold-500) 12%, var(--surface)); }
.slot.taken { opacity: .55; background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--surface-2) 8px 16px); }
.slot.taken .time { text-decoration: line-through; }

/* Carrito */
.cart-item { display: flex; gap: .8rem; align-items: center; padding: .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: .6rem; }
.cart-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.cart-item .t { font-weight: 800; color: var(--heading); font-family: var(--font-head); }
.cart-item .s { font-size: .85rem; color: var(--text-muted); }
.cart-item .p { margin-left: auto; font-weight: 800; color: var(--heading); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--bad); display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); }
.total-row { display: flex; justify-content: space-between; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--heading); }

/* Confirmación */
.hold-box { background: linear-gradient(135deg, var(--purple-800), var(--purple-500)); color: #fff; border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.hold-box h2 { color: #fff; font-size: 1.2rem; }
.hold-box .clock { font-family: var(--font-head); font-size: 2.6rem; font-weight: 900; color: var(--gold-400); letter-spacing: 2px; line-height: 1.1; }
.hold-box .bar { height: 8px; background: rgba(255,255,255,.2); border-radius: 4px; overflow: hidden; margin-top: .6rem; }
.hold-box .bar > span { display: block; height: 100%; width: 98%; background: var(--gold-500); transition: width 1s linear; }
.folio-box { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border: 2px dashed var(--gold-500); border-radius: 14px; padding: .7rem 1rem; background: var(--surface); }
.folio-box .folio { font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; color: var(--heading); letter-spacing: 1px; }
.steps-list { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.steps-list li { counter-increment: n; position: relative; padding: 0 0 1rem 2.6rem; }
.steps-list li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-500); color: var(--purple-900); font-weight: 800; display: grid; place-items: center; }
.copy-line { display: flex; align-items: center; gap: .5rem; background: var(--surface-2); border-radius: 10px; padding: .5rem .75rem; margin-top: .35rem; font-weight: 600; }
.copy-line span { flex: 1; word-break: break-all; }

/* Línea de tiempo de estado */
.timeline { display: flex; justify-content: space-between; position: relative; margin: .5rem 0 1rem; }
.timeline::before { content: ""; position: absolute; top: 13px; left: 12%; right: 12%; height: 3px; background: var(--border); }
.timeline .t { flex: 1; text-align: center; font-size: .78rem; font-weight: 600; color: var(--text-muted); position: relative; }
.timeline .t i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border); margin: 0 auto .25rem; font-style: normal; font-size: .7rem; position: relative; z-index: 1; }
.timeline .t.done i { background: var(--purple-700); border-color: var(--purple-700); color: #fff; }
.timeline .t.now i { background: var(--gold-500); border-color: var(--gold-500); color: var(--purple-900); }
.timeline .t.bad i { background: var(--bad); border-color: var(--bad); color: #fff; }
.timeline .t.now, .timeline .t.done, .timeline .t.bad { color: var(--heading); }
.receipt-thumb { width: 100%; max-width: 260px; aspect-ratio: 3/4; border-radius: 12px; background: linear-gradient(160deg, #e9f5ee, #cfe9db); border: 1px solid var(--border); display: grid; place-items: center; color: #11713f; text-align: center; font-weight: 700; padding: 1rem; }

/* Sitio principal (C0) */
.site-fake header { background: var(--surface); border-bottom: 1px solid var(--border); padding: .7rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-fake nav a { margin-right: 1rem; text-decoration: none; font-weight: 600; color: var(--heading); font-size: .9rem; }
.site-fake nav a.new { color: var(--purple-900); background: var(--gold-500); padding: .2rem .7rem; border-radius: 8px; animation: glow 2s infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(245,183,0,.25); } }
.site-fake .hero { background: linear-gradient(135deg, var(--purple-900), var(--purple-500)); color: #fff; padding: 3rem 1rem; text-align: center; }
.site-fake .hero h1 { color: #fff; }
.cta-event { background: linear-gradient(120deg, var(--purple-700), var(--purple-500)); color: #fff; border-radius: 20px; padding: 2rem 1.5rem; display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.cta-event h2 { color: #fff; margin-bottom: .25rem; }

/* Próximamente */
.soon { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 2rem 1rem; }
.soon img { width: 120px; }
.preview-strip { background: var(--gold-500); color: var(--purple-900); text-align: center; font-weight: 700; padding: .4rem; font-size: .85rem; }

/* Toast */
.mk-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--purple-900); color: #fff; padding: .6rem 1.1rem; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; font-weight: 600; font-size: .9rem; }
.mk-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   ADMIN
   ========================================================= */
.adm-wrap { display: flex; min-height: calc(100vh - 34px); }
.adm-side {
  width: 250px; flex: 0 0 250px; background: var(--purple-900); color: #d9c9ec; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 60; transition: transform .25s;
}
.adm-side .brand { padding: 1.1rem 1.2rem; display: flex; align-items: center; gap: .6rem; color: #fff; font-family: var(--font-head); font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.08); }
.adm-side .brand img { height: 34px; }
.adm-side nav { padding: .75rem .6rem; flex: 1; overflow-y: auto; }
.adm-side nav a { display: flex; align-items: center; gap: .75rem; color: #d9c9ec; text-decoration: none; padding: .7rem .9rem; border-radius: 10px; font-weight: 600; font-size: .93rem; margin-bottom: 2px; min-height: 44px; }
.adm-side nav a i { width: 20px; text-align: center; }
.adm-side nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.adm-side nav a.active { background: var(--gold-500); color: var(--purple-900); }
.adm-side nav a .count { margin-left: auto; background: var(--bad); color: #fff; border-radius: 10px; font-size: .72rem; padding: 0 .45rem; min-width: 20px; text-align: center; }
.adm-side .store-switch { padding: 1rem 1.2rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; display: flex; justify-content: space-between; align-items: center; }
.adm-main { flex: 1; min-width: 0; }
.adm-top { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .75rem; padding: .55rem 1rem; min-height: 60px; }
.adm-top .search { flex: 1; max-width: 420px; position: relative; }
.adm-top .search input { padding-left: 2.2rem; }
.adm-top .search i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.adm-top .burger { display: none; }
.adm-content { padding: 1.25rem 1.25rem 5rem; max-width: 1400px; }
.adm-content > h1 { font-size: 1.5rem; margin-bottom: 1rem; }
.adm-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; }
@media (max-width: 991.98px) {
  .adm-side { position: fixed; left: 0; top: 0; transform: translateX(-100%); }
  .adm-side.open { transform: none; }
  .adm-side.open ~ .adm-overlay { display: block; }
  .adm-top .burger { display: grid; }
  .adm-content { padding: 1rem .9rem 6rem; }
}
.adm-tabbar { display: none; }
@media (max-width: 991.98px) {
  .adm-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .adm-tabbar a { flex: 1; text-align: center; padding: .5rem 0; font-size: .7rem; text-decoration: none; color: var(--text-muted); font-weight: 600; min-height: 56px; }
  .adm-tabbar a i { display: block; font-size: 1.15rem; margin-bottom: 2px; }
  .adm-tabbar a.active { color: var(--heading); }
  .adm-tabbar a.active i { color: var(--gold-500); }
}

.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .kpi-grid { grid-template-columns: repeat(6, 1fr); } }
.kpi { padding: .9rem 1rem; }
.kpi .lbl { font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.kpi .val { font-family: var(--font-head); font-weight: 900; font-size: 1.6rem; color: var(--heading); line-height: 1.2; }
.kpi .delta { font-size: .78rem; font-weight: 700; }
.kpi .delta.up { color: var(--ok); } .kpi .delta.down { color: var(--bad); } .kpi .delta.warn { color: var(--warn); }
.kpi.alert { border-color: var(--warn); }
.chart-box { padding: 1rem; }
.chart-box h3 { font-size: 1rem; margin-bottom: .6rem; }
.chart-box canvas { max-height: 260px; }

.heat { display: grid; grid-template-columns: 52px repeat(5, 1fr); gap: 4px; font-size: .75rem; }
.heat .h { text-align: center; color: var(--text-muted); font-weight: 600; }
.heat .c { height: 28px; border-radius: 6px; background: var(--purple-700); }
.heat .l { color: var(--text-muted); font-weight: 600; align-self: center; }

.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); padding: .65rem .75rem; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.tbl td { padding: .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: .9rem; }
.tbl tr:hover td { background: var(--surface-2); }
.tbl .folio { font-weight: 800; color: var(--heading); font-family: var(--font-head); text-decoration: none; }
.tbl-wrap { overflow-x: auto; }
@media (max-width: 767.98px) {
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: .7rem; padding: .5rem .75rem; }
  .tbl.cards td { border: 0; padding: .25rem 0; display: flex; justify-content: space-between; gap: 1rem; }
  .tbl.cards td::before { content: attr(data-l); color: var(--text-muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
  .tbl.cards tr:hover td { background: transparent; }
}

.tabs-simple { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 2px solid var(--border); margin-bottom: 1rem; overflow-x: auto; }
.tabs-simple button, .tabs-simple a { background: transparent; border: 0; padding: .65rem 1rem; font-weight: 700; color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; text-decoration: none; min-height: 44px; }
.tabs-simple .active { color: var(--heading); border-bottom-color: var(--gold-500); }
.tabs-simple .n { background: var(--surface-2); border-radius: 10px; padding: 0 .45rem; font-size: .75rem; margin-left: .3rem; }
.tab-pane { display: none; } .tab-pane.active { display: block; }

.chip-slot { display: inline-flex; align-items: center; gap: .4rem; background: var(--purple-100); border: 1px solid var(--border); border-radius: 10px; padding: .35rem .7rem; font-size: .85rem; font-weight: 600; margin: 0 .35rem .35rem 0; }
.chip-slot button { border: 0; background: transparent; color: var(--text-muted); padding: 0 .15rem; }
.chip-add { border: 2px dashed var(--border); background: transparent; color: var(--link); border-radius: 10px; padding: .3rem .7rem; font-weight: 700; font-size: .85rem; }

.acal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.acal .dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--text-muted); }
.acal .day { min-height: 74px; padding: .35rem .45rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: .78rem; cursor: pointer; }
.acal .day b { font-size: .85rem; color: var(--heading); display: block; }
.acal .day.part { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); }
.acal .day.full { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, var(--surface)); }
.acal .day.blocked { background: repeating-linear-gradient(135deg, var(--surface) 0 6px, var(--surface-2) 6px 12px); color: var(--text-muted); }
.acal .day.sel { outline: 3px solid var(--gold-500); }
.acal .day.empty { border: 0; background: transparent; cursor: default; }

.timeline-log { list-style: none; padding: 0; margin: 0; }
.timeline-log li { position: relative; padding: 0 0 .9rem 1.4rem; font-size: .88rem; border-left: 2px solid var(--border); margin-left: .35rem; }
.timeline-log li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-500); }
.timeline-log small { color: var(--text-muted); display: block; }

.auth-wrap { min-height: calc(100vh - 34px); display: grid; place-items: center; padding: 1.5rem 1rem; background: radial-gradient(circle at 20% 10%, var(--purple-500), var(--purple-900) 60%); }
.auth-card { width: 100%; max-width: 400px; padding: 1.75rem; }
.otp { display: flex; gap: .45rem; justify-content: center; }
.otp input { width: 46px; height: 56px; text-align: center; font-size: 1.5rem; font-weight: 800; border-radius: 10px; border: 2px solid var(--border); background: var(--surface); color: var(--text); }
.otp input:focus { border-color: var(--gold-500); outline: 0; }
.qr-fake { width: 168px; height: 168px; margin: .5rem auto; background:
  conic-gradient(from 90deg at 3px 3px, transparent 90deg, #000 0) 0 0 / 12px 12px, #fff; border: 8px solid #fff; border-radius: 8px; box-shadow: 0 0 0 1px var(--border); image-rendering: pixelated; }

dialog.mk-dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: 480px; width: calc(100% - 2rem); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
dialog.mk-dialog::backdrop { background: rgba(0,0,0,.55); }
dialog.mk-dialog .dlg-h { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-family: var(--font-head); font-weight: 800; color: var(--heading); }
dialog.mk-dialog .dlg-b { padding: 1.25rem; }
dialog.mk-dialog .dlg-f { padding: .9rem 1.25rem; border-top: 1px solid var(--border); display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }

.switch { position: relative; width: 52px; height: 30px; display: inline-block; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #b9aec6; border-radius: 15px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(22px); }
.set-block { padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.set-block h3 { font-size: 1rem; margin-bottom: .8rem; }

.mk-index-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mk-index-grid a { display: block; padding: .9rem 1rem; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--text); }
.mk-index-grid a:hover { border-color: var(--gold-500); box-shadow: var(--shadow); }
.mk-index-grid b { color: var(--heading); font-family: var(--font-head); }
.mk-index-grid small { color: var(--text-muted); display: block; }

@media print {
  .mk-banner, .adm-side, .adm-top, .adm-tabbar, .no-print { display: none !important; }
  .adm-content { padding: 0; }
  body { background: #fff !important; color: #000 !important; }
  .adm-main { margin: 0 !important; }
  .mk-card { box-shadow: none !important; border: 0 !important; }
  .tbl.cards thead { display: table-header-group !important; }
  .tbl.cards, .tbl.cards tbody { display: table !important; width: 100% !important; }
  .tbl.cards tr { display: table-row !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
  .tbl.cards td { display: table-cell !important; border-bottom: 1px solid #ccc !important; }
  .tbl.cards td::before { content: none !important; }
  .pill { border: 1px solid #999; background: transparent !important; color: #000 !important; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Calendario admin: los días son enlaces */
a.day { display: block; text-decoration: none; color: var(--text); }
a.day:hover { border-color: var(--purple-500); }
a.day b { color: var(--heading); }
.chip-slot form { display: inline; margin: 0; }

/* Tienda real: los días del calendario son enlaces */
.cal-grid a.d { text-decoration: none; }
.cal-grid a.d:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.bottom-bar a.btn.disabled { pointer-events: none; opacity: .5; }
.slot form { margin: 0; }
