/* BULEGO · Miribilla — HARIAN · TASIO MGMT */
:root {
  /* Identidad TASIO (tasio.eus): monocromo, Manrope, fondo gris claro */
  --navy-950: #000000;
  --navy-900: #111111;
  --navy-850: #1b1922;
  --navy-800: #111111;
  --navy-700: #2b2b2b;
  --navy-500: #6b6b6b;
  --navy-300: #a8a8a8;
  --navy-100: #ececec;
  --paper: #f3f3f3;
  --card: #ffffff;
  --line: #e1e1e1;
  --line-2: #ececec;
  --ink: #000000;
  --ink-2: #333333;
  --muted: #595959;
  --brass: #000000;
  --brass-soft: #ececec;
  --ok: #24704f; --ok-bg: #e5f1ea;
  --warn: #7d500b; --warn-bg: #f8eedb;
  --bad: #a83a34; --bad-bg: #f7e4e2;
  --info: #2f4f7a; --info-bg: #e8edf4;
  --done: #000000; --done-bg: #e3e3e3;
  --mut-bg: #ececec;
  --r: 8px;
  --r-lg: 14px;
  --shadow: none;
  --f-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--f-sans); color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy-700); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.serif { font-family: var(--f-serif); font-weight: 400; letter-spacing: 0; }
.mono { font-family: var(--f-mono); font-size: 0.86em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.eu { font-family: var(--f-serif); font-style: italic; color: var(--brass); font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hidden { display: none !important; }

/* ── Demo bar ── */
.demobar { background: repeating-linear-gradient(135deg, #f2c94c 0 12px, #e8bc35 12px 24px); color: #2a2000; font-size: 13px; }
.demobar .in { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 7px 20px; max-width: 1320px; margin: 0 auto; }
.demobar b { letter-spacing: 0.08em; }
.demobar select { background: #fffbea; border: 1px solid #9d7d16; border-radius: 6px; padding: 3px 6px; font-size: 13px; max-width: 280px; }
.demobar button { background: #2a2000; color: #fff6cf; border: 0; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.demobar .sp { flex: 1; }

/* ── Header ── */
.top { background: radial-gradient(1200px 300px at 85% -100px, #23446c 0%, transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #fff; }
.top .in { max-width: 1320px; margin: 0 auto; padding: 18px 20px 0; }
.brandrow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wordmark { font-weight: 700; letter-spacing: 0.32em; font-size: 18px; }
.vline { width: 1px; height: 28px; background: rgba(255, 255, 255, 0.18); }
.evt { line-height: 1.25; }
.evt .t { font-family: var(--f-serif); font-size: 21px; }
.evt .s { font-size: 12px; color: var(--navy-300); letter-spacing: 0.04em; }
.brandrow .sp { flex: 1; }
.userchip { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 5px 6px 5px 14px; font-size: 13px; }
.userchip .role { color: var(--navy-300); font-size: 12px; }
.userchip button { background: rgba(255, 255, 255, 0.1); border: 0; color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.nav { display: flex; gap: 2px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--navy-300); text-decoration: none; padding: 10px 14px 12px; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; display: flex; gap: 7px; align-items: center; }
.nav a:hover { color: #fff; }
.nav a.on { color: #fff; border-bottom-color: var(--brass); }
.nav .cnt { background: var(--brass); color: var(--navy-950); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 6px; line-height: 17px; }

/* ── Layout ── */
main { max-width: 1320px; margin: 0 auto; padding: 26px 20px 80px; }
.pagehead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead h1 { font-family: var(--f-serif); font-weight: 400; font-size: 36px; line-height: 1.05; }
.pagehead .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.pagehead .sp { flex: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-side { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } main { padding: 18px 14px 80px; } .pagehead h1 { font-size: 30px; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h2 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card h2 .eu { font-size: 15px; }
.card .cardhead { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card .cardhead h2 { margin: 0; }
.card .cardhead .sp { flex: 1; }
.card.navy { background: linear-gradient(160deg, var(--navy-850), var(--navy-950)); color: #fff; border-color: var(--navy-800); }
.card.navy .muted { color: var(--navy-300); }
.section-title { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; font-weight: 600; }

/* ── KPI ── */
.kpi { padding: 16px 18px; }
.kpi .v { font-family: var(--f-serif); font-size: 40px; line-height: 1; }
.kpi .l { font-size: 13px; color: var(--muted); margin-top: 6px; }
.kpi.click { cursor: pointer; transition: transform 0.12s, border-color 0.12s; }
.kpi.click:hover { border-color: var(--navy-500); transform: translateY(-1px); }
.kpi .bar { height: 4px; background: var(--line-2); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.kpi .bar i { display: block; height: 100%; background: var(--navy-700); }

/* ── Badges ── */
.b { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; line-height: 20px; }
.b::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.b.nodot::before { display: none; }
.b.ok { color: var(--ok); background: var(--ok-bg); }
.b.warn { color: var(--warn); background: var(--warn-bg); }
.b.bad { color: var(--bad); background: var(--bad-bg); }
.b.info { color: var(--info); background: var(--info-bg); }
.b.done { color: var(--done); background: var(--done-bg); }
.b.muted { color: var(--muted); background: var(--mut-bg); }
.b.demo { color: #6b5200; background: #fbeeb8; }
.b.cfg { color: #7a4b00; background: #fff3d6; border: 1px dashed #d1a250; }
.b.cfg::before { background: none; content: '⚙'; width: auto; height: auto; font-size: 11px; }
.b.lock::before { content: '🔒'; background: none; width: auto; height: auto; font-size: 10px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 500; text-decoration: none; transition: background 0.12s, border-color 0.12s; }
.btn:hover { border-color: var(--navy-300); }
.btn.pri { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn.pri:hover { background: var(--navy-700); }
.btn.brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--mut-bg); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 7px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── Forms ── */
.form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } .card .cardhead { flex-wrap: wrap; } .card .cardhead h2 { min-width: 0; overflow-wrap: anywhere; } }
label.f { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
label.f .h { font-weight: 400; color: var(--muted); font-size: 12px; }
.inp, select.inp, textarea.inp { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 9px 11px; font-size: 14px; font-weight: 400; color: var(--ink); outline: none; transition: border-color 0.12s, box-shadow 0.12s; }
.inp:focus { border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(61, 95, 138, 0.15); }
.inp[readonly], .inp:disabled { background: var(--paper); color: var(--ink-2); }
textarea.inp { min-height: 80px; resize: vertical; }
.f.err .inp { border-color: var(--bad); }
.f .em { color: var(--bad); font-weight: 500; font-size: 12px; }
.secretwrap { position: relative; }
.secretwrap .inp { padding-right: 38px; font-family: var(--f-mono); letter-spacing: 0.02em; }
.secretwrap .lk { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: 0.6; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 500; user-select: none; }
.chip input { accent-color: var(--navy-800); margin: 0; }
.chip:has(input:checked) { border-color: var(--navy-700); background: var(--navy-100); }
.chip .d { font-size: 12px; color: var(--muted); font-weight: 400; }
.daychip { flex-direction: column; align-items: flex-start; gap: 2px; min-width: 112px; }
.daychip .top2 { display: flex; gap: 8px; align-items: center; }
.opt { display: grid; grid-template-columns: auto 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; background: #fff; }
.opt:has(input:checked) { border-color: var(--navy-700); background: linear-gradient(0deg, var(--navy-100), #fff); box-shadow: 0 0 0 1px var(--navy-700) inset; }
.opt input { accent-color: var(--navy-800); margin-top: 3px; }
.opt .t { font-weight: 600; }
.opt .s { font-size: 13px; color: var(--muted); }
.fieldset { border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; display: grid; gap: 14px; background: #fcfbf9; }
.fieldset > .lg { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: flex; gap: 8px; align-items: center; }

/* ── Stepper ── */
.steps { display: flex; gap: 0; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.steps button { flex: 1; border: 0; background: transparent; padding: 12px 10px; text-align: left; cursor: pointer; border-right: 1px solid var(--line); display: grid; gap: 1px; }
.steps button:last-child { border-right: 0; }
.steps .n { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.steps .t { font-size: 14px; font-weight: 600; }
.steps button.on { background: var(--navy-800); color: #fff; }
.steps button.on .n { color: var(--navy-300); }
.steps .x { font-size: 11px; color: var(--bad); }
.steps button.on .x { color: #ffb4ac; }
@media (max-width: 640px) { .steps .t { font-size: 12px; } .steps button { padding: 10px 6px; } }

/* ── Tables ── */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 11px 12px; border-bottom: 1px solid var(--line); background: #faf9f6; white-space: nowrap; position: sticky; top: 0; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #f8f7f3; }
table.t .nm { font-weight: 600; }
table.t .sub { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  table.t.stack thead { display: none; }
  table.t.stack tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px; border-bottom: 1px solid var(--line-2); }
  table.t.stack td { border: 0; padding: 0; }
  table.t.stack td::before { content: attr(data-l); display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  table.t.stack td.full { grid-column: 1 / -1; }
}

/* ── Filters ── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters .inp { width: auto; padding: 7px 10px; font-size: 13px; }
.filters .search { min-width: 220px; flex: 1; max-width: 340px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pill { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.pill.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pill .c { font-weight: 700; }

/* ── Lists ── */
.list { display: grid; gap: 0; }
.li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .ttl { font-weight: 600; }
.li.click { cursor: pointer; }
.check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; flex-shrink: 0; font-weight: 700; }
.check.ok { background: var(--ok-bg); color: var(--ok); }
.check.warn { background: var(--warn-bg); color: var(--warn); }
.check.bad { background: var(--bad-bg); color: var(--bad); }
.check.muted { background: var(--mut-bg); color: var(--muted); }
.check.info { background: var(--info-bg); color: var(--info); }

/* ── Data rows ── */
.dl { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 0; }
.dl > div { padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.dl > .k { color: var(--muted); font-size: 13px; padding-right: 10px; }
.dl > .v { font-weight: 500; word-break: break-word; }
.pend { display: inline-flex; gap: 6px; align-items: center; color: var(--warn); font-style: italic; font-weight: 400; }

/* ── Invoice track ── */
.track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 10px 0 4px; }
.track .st { height: 5px; border-radius: 5px; background: var(--line-2); }
.track .st.on { background: var(--navy-700); }
.track .st.bad { background: var(--bad); }
.tracklbl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: 11px; color: var(--muted); }
.tracklbl span.on { color: var(--ink); font-weight: 600; }
.inv { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.inv + .inv { margin-top: 10px; }
.inv .hd { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inv .hd .sp { flex: 1; }
.hist { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; }
.hist li { padding: 4px 0 4px 16px; position: relative; color: var(--ink-2); }
.hist li::before { content: ''; position: absolute; left: 3px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--navy-300); }

/* ── Dropzone ── */
.drop { border: 1.5px dashed var(--navy-300); border-radius: 12px; padding: 22px; text-align: center; background: #fafbfd; cursor: pointer; transition: background 0.12s, border-color 0.12s; }
.drop:hover, .drop.over { background: var(--navy-100); border-color: var(--navy-700); }
.drop .ic { font-size: 22px; }
.drop.dis { opacity: 0.55; cursor: not-allowed; }
.filepill { display: inline-flex; gap: 8px; align-items: center; background: var(--navy-100); border-radius: 8px; padding: 6px 10px; font-size: 13px; }

/* ── Callouts ── */
.call { border-radius: 12px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.call .i { font-size: 15px; line-height: 1.4; }
.call.info { background: var(--info-bg); color: #173e70; }
.call.warn { background: var(--warn-bg); color: #6d4708; }
.call.ok { background: var(--ok-bg); color: #1b5238; }
.call.bad { background: var(--bad-bg); color: #7b2420; }
.call.cfg { background: #fff8e8; color: #6d4708; border: 1px dashed #d8b46c; }
.call.lock { background: #f1f4f9; color: var(--navy-800); border: 1px solid #dbe3ee; }

/* ── Messages ── */
.msgs { display: grid; grid-template-columns: 340px 1fr; gap: 16px; min-height: 420px; }
@media (max-width: 860px) { .msgs { grid-template-columns: 1fr; } }
.msgitem { padding: 12px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.msgitem:hover { background: #faf9f6; }
.msgitem.on { background: var(--navy-100); }
.msgitem.unread .s1 { font-weight: 700; }
.msgitem .s1 { font-size: 14px; }
.msgbody { white-space: pre-wrap; font-size: 14.5px; line-height: 1.6; font-family: var(--f-sans); background: #fcfbf8; border: 1px solid var(--line-2); border-radius: 12px; padding: 18px 20px; margin: 0; }

/* ── Drawer / modal ── */
.scrim { position: fixed; inset: 0; background: rgba(6, 15, 28, 0.45); z-index: 50; display: flex; justify-content: flex-end; animation: fade 0.15s; }
.drawer { width: min(980px, 100%); height: 100%; background: var(--paper); overflow-y: auto; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25); animation: slide 0.2s ease-out; }
.drawer .dh { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #fff; padding: 20px 24px 0; position: sticky; top: 0; z-index: 2; }
.drawer .dh .row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.drawer .dh h2 { font-family: var(--f-serif); font-weight: 400; font-size: 28px; }
.drawer .dh .x { background: rgba(255, 255, 255, 0.1); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.drawer .db { padding: 22px 24px 60px; }
.modalwrap { position: fixed; inset: 0; background: rgba(6, 15, 28, 0.5); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fade 0.15s; }
.modal { background: var(--paper); border-radius: 18px; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.modal.wide { width: min(860px, 100%); }
.modal .mh { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px 18px 0 0; }
.modal .mh h3 { font-size: 17px; flex: 1; }
.modal .mb { padding: 20px 22px; }
.modal .mf { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: #fff; border-radius: 0 0 18px 18px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: 0.4; } }
.tabs { display: flex; gap: 2px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: transparent; border: 0; color: var(--navy-300); padding: 10px 14px 12px; border-bottom: 2px solid transparent; cursor: pointer; font-size: 14px; white-space: nowrap; }
.tabs button.on { color: #fff; border-bottom-color: var(--brass); }

/* ── Toast ── */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(520px, calc(100% - 24px)); }
.toast { background: var(--navy-900); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); font-size: 14px; animation: fade 0.2s; display: flex; gap: 10px; }
.toast.bad { background: #5e1d19; }
.toast.ok { background: #143d2c; }

/* ── Hero ── */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero .card.navy h1 { font-family: var(--f-serif); font-weight: 400; font-size: 40px; line-height: 1.05; margin: 6px 0 10px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.days .day { box-sizing: border-box; flex: 0 0 calc((100% - 24px) / 5); }
.day { border-radius: 10px; padding: 10px 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); text-align: center; }
.day .d1 { font-size: 11px; color: var(--navy-300); letter-spacing: 0.06em; }
.day .d2 { font-family: var(--f-serif); font-size: 26px; line-height: 1.1; }
.day .d3 { font-size: 11px; color: var(--navy-300); }
.day.on { background: var(--brass); border-color: var(--brass); color: var(--navy-950); }
.day.on .d1, .day.on .d3 { color: rgba(6, 15, 28, 0.7); }
.day.show { outline: 1px solid var(--brass); }
.prog { height: 6px; background: rgba(255, 255, 255, 0.12); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.prog i { display: block; height: 100%; background: var(--brass); }

/* ── Bars ── */
.bars { display: grid; gap: 8px; }
.bars .r { display: grid; grid-template-columns: 70px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; }
.bars .tr { height: 10px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.bars .tr i { display: block; height: 100%; background: var(--navy-700); border-radius: 6px; }

/* ── Login ── */
.login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(900px 500px at 70% 10%, #1f3e66 0%, transparent 60%), var(--navy-950); padding: 20px; }
.login .box { width: min(420px, 100%); background: var(--paper); border-radius: 20px; padding: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.login .wordmark { color: var(--navy-900); }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .serif { font-size: 24px; color: var(--ink); display: block; margin-bottom: 4px; }
pre.code { background: var(--navy-950); color: #d6e2f2; padding: 14px; border-radius: 10px; font-size: 12px; overflow-x: auto; white-space: pre-wrap; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.kv { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.kv span { background: var(--mut-bg); border-radius: 6px; padding: 2px 8px; }
footer.foot { text-align: center; font-size: 12px; color: var(--muted); padding: 30px 20px; }


/* ───────── Identidad TASIO ───────── */
.serif { font-weight: 700; letter-spacing: -0.03em; }
.eu { font-family: var(--f-sans); font-style: normal; font-weight: 500; color: #686868; letter-spacing: 0; }
.top { background: var(--paper); color: var(--ink); border-bottom: 1px solid #000; }
.top .in { padding-top: 26px; }
.tasio-logo { display: block; height: 30px; width: auto; }
.vline { background: #000; opacity: 0.15; }
.evt .t { font-family: var(--f-sans); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.evt .s { color: var(--muted); }
.evchip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid #000; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.userchip { background: #fff; border-color: var(--line); color: var(--ink); }
.userchip .role { color: var(--muted); }
.userchip button { background: var(--mut-bg); color: var(--ink); }
.nav a { color: #555; text-transform: uppercase; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.nav a:hover { color: #000; }
.nav a.on { color: #000; border-bottom-color: #000; }
.nav .cnt { background: #000; color: #fff; }
.pagehead h1 { font-family: var(--f-sans); font-weight: 700; letter-spacing: -0.035em; font-size: 40px; }
.pagehead h1 .eu { font-size: 0.55em; letter-spacing: 0; }
.kpi .v { font-family: var(--f-sans); font-weight: 700; letter-spacing: -0.04em; }
.card { border-color: var(--line); }
.card.navy { background: #000; border-color: #000; }
.card.navy .muted { color: #a8a8a8; }
.hero .card.navy h1 { font-family: var(--f-sans); font-weight: 700; letter-spacing: -0.04em; }
.day { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.day .d2 { font-family: var(--f-sans); font-weight: 700; }
.day.on { background: #fff; border-color: #fff; color: #000; }
.day.on .d1, .day.on .d3 { color: #555; }
.day.show { outline-color: #fff; }
.prog i { background: #fff; }
.btn.pri { background: #000; border-color: #000; }
.btn.pri:hover { background: #2b2b2b; }
.btn.brass { background: #fff; border-color: #fff; color: #000; }
.card:not(.navy) .btn.brass, .btnrow .btn.brass { background: #000; border-color: #000; color: #fff; }
.drawer .dh { background: #000; }
.drawer .dh h2 { font-family: var(--f-sans); font-weight: 700; letter-spacing: -0.03em; }
.drawer .dh .eu { color: #a8a8a8; }
.drawer .dh .tabs button { color: #a8a8a8; }
.tabs button { color: #5f5f5f; }
.tabs button.on { color: #fff; border-bottom-color: #fff; }
.drawer .dh .btn.brass { background: #fff; color: #000; border-color: #fff; }
.steps button.on { background: #000; }
.steps button.on .n { color: #aaa; }
.chip:has(input:checked), .opt:has(input:checked) { border-color: #000; background: #f3f3f3; box-shadow: 0 0 0 1px #000 inset; }
.chip input, .opt input { accent-color: #000; }
.inp:focus { border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,0.08); }
.bars .tr i, .kpi .bar i { background: #000; }
.track .st.on { background: #000; }
.pill.on { background: #000; border-color: #000; }
.drop { border-color: #b5b5b5; background: #fafafa; }
.drop:hover, .drop.over { background: #f0f0f0; border-color: #000; }
.filepill { background: #ececec; }
.msgitem.on { background: #f0f0f0; }
.msgbody { background: #fafafa; }
.toast { background: #111; }
pre.code { background: #111; }
.call.lock { background: #f4f4f4; color: #111; border-color: #e0e0e0; }
.call.info { background: #eef1f5; color: #23364f; }

/* Acceso */
.login { background: var(--paper); display: grid; grid-template-columns: 1.1fr 1fr; padding: 0; place-items: stretch; }
.login .side .tasio-logo { align-self: flex-start; }
.login .side { background: #000; color: #fff; min-height: 100vh; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login .side .tasio-logo { height: 40px; }
.login .side h1 { font-size: 46px; line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; margin: 0; }
.login .side .s { color: #a8a8a8; font-size: 14px; max-width: 420px; }
.login .main { display: grid; place-items: center; padding: 32px 20px; }
.login .box { width: min(400px, 100%); background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.login .box h2 { font-size: 28px; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 4px; }
.login .linkbtn { background: none; border: 0; padding: 0; color: #000; text-decoration: underline; cursor: pointer; font-size: 13px; font-weight: 600; }
.login .demoacc { margin-top: 22px; border: 1px dashed #c9a64a; background: #fffbea; border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.login .demoacc button { background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: underline; font-size: 13px; color: #000; text-align: left; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login .side { min-height: auto; padding: 28px 22px; gap: 28px; } .login .side h1 { font-size: 32px; } }

/* ───────── Camino a Miribilla (Gantt) ───────── */
.linkbtn { background: none; border: 0; padding: 0; color: #000; text-decoration: underline; cursor: pointer; font-size: 12px; font-weight: 600; }
.gantt { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }
.gwrap { min-width: 820px; position: relative; }
.gr { display: grid; grid-template-columns: 280px 1fr; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line-2); position: relative; z-index: 1; }
.gr:last-child { border-bottom: 0; }
.gr.gh { min-height: 34px; background: #fafafa; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; }
.gl { padding: 8px 14px; min-width: 0; }
.gt { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.gt a { color: inherit; text-decoration: none; }
.gt a:hover { text-decoration: underline; }
.gs { margin-top: 3px; font-size: 11.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gs .b { font-size: 10.5px; line-height: 16px; padding: 0 7px; }
.gtk { position: relative; height: 100%; min-height: 34px; margin-right: 14px; }
.gm { position: absolute; top: 9px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #555; padding-left: 6px; border-left: 1px solid var(--line); height: 16px; line-height: 16px; white-space: nowrap; overflow: hidden; }
.gbody { position: relative; }
.gbg { position: absolute; inset: 0; display: grid; grid-template-columns: 280px 1fr; pointer-events: none; z-index: 0; }
.gbg .gtk { position: relative; }
.gmline { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line-2); }
.gmir { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, #f1f1f1 0 6px, #e9e9e9 6px 12px); border-left: 1px solid #000; border-right: 1px solid #000; }
.gmir i { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .12em; color: #000; background: #fff; padding: 0 4px; white-space: nowrap; }
.gtoday { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--bad); }
.gtoday i { position: absolute; bottom: 4px; left: 4px; font-style: normal; font-size: 10px; font-weight: 700; color: var(--bad); background: #fff; padding: 0 3px; }
.gb { position: absolute; top: 50%; transform: translateY(-50%); height: 14px; border-radius: 7px; border: 1.5px solid #000; background: #fff; min-width: 8px; }
.gb.hecho { background: #000; }
.gb.en_curso { background: repeating-linear-gradient(135deg, #000 0 4px, #fff 4px 8px); }
.gb.vencido { border-color: var(--bad); background: var(--bad-bg); }
.gb.evento { background: #333; border-color: #333; }
.gb.dot { width: 14px; height: 14px; border-radius: 3px; transform: translateY(-50%) rotate(45deg); }
.gb.mir { background: #000; border-color: #000; }
@media (max-width: 640px) { .gr, .gbg { grid-template-columns: 190px 1fr; } .gwrap { min-width: 680px; } }

/* Hoja: línea de tiempo del día */
.tl { border-left: 2px solid #000; margin-left: 4px; }
.tli { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 7px 0 7px 14px; position: relative; }
.tli::before { content: ''; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #000; }
.tli.ci::before { background: #000; }
.tli.co::before { border-color: #8a8a8a; }
.tli.ci .ttl { font-weight: 800; }
.tlt { font-weight: 700; font-variant-numeric: tabular-nums; }
.tlt span { font-weight: 400; color: var(--muted); }
/* FAQ */
details.faq { border-bottom: 1px solid var(--line-2); padding: 12px 0; }
details.faq:last-child { border-bottom: 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 8px; align-items: center; }
details.faq summary::before { content: '+'; font-weight: 700; width: 16px; }
details.faq[open] summary::before { content: '–'; }
.faqa { padding: 8px 0 4px 24px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.tli { grid-template-columns: 118px 1fr; }
.tlt { white-space: nowrap; }
@media (max-width: 640px) { .g4 { grid-template-columns: 1fr 1fr; } .kpi .v { font-size: 30px; } .tli { grid-template-columns: 96px 1fr; } }

/* Puertas del piloto */
.card.gate { border-top: 4px solid var(--line); }
.card.gate.verde { border-top-color: var(--ok); }
.card.gate.ambar { border-top-color: var(--warn); }
.card.gate.rojo { border-top-color: var(--bad); }
.card.gate.en_plazo { border-top-color: var(--navy-500, #556); }
.card.gate.click { cursor: pointer; }
.card.gate.on { box-shadow: 0 0 0 2px var(--navy-800, #111) inset; }
@media (min-width: 900px) { .nav { flex-wrap: wrap; overflow: visible; } .nav a { padding: 10px 11px 12px; } }

/* HARIAN · navegación por tareas y situación en una línea */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 22px; }
.subnav a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #333; font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.subnav a:hover { border-color: #000; }
.subnav a.on { background: #000; border-color: #000; color: #fff; }
.subnav .cnt { background: #fff; color: #000; border-radius: 999px; padding: 0 6px; font-size: 11px; }
.subnav a:not(.on) .cnt { background: #000; color: #fff; }
.sit .q { font-weight: 600; font-size: 14px; }
.sit .w { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.sit.ok { color: var(--ok); font-weight: 600; font-size: 14px; }
.team td { vertical-align: middle; }
@media (max-width: 640px) {
  .hide-s { display: none !important; }
  .demobar .in > span:not(.sp) { display: none; }
  .demobar .in { flex-wrap: wrap; gap: 8px; }
  .demobar select { max-width: 200px; }
  .evt .s { display: none; }
  .userchip .role { display: none; }
  .nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
  .nav a { justify-content: center; padding: 10px 2px 12px; font-size: 10.5px; letter-spacing: 0; }
  .nav .cnt { font-size: 10px; padding: 0 5px; }
  .subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
  .subnav a { white-space: nowrap; }
}

.hero .card.navy { display: flex; flex-direction: column; }
.hero .card.navy > div:last-child { margin-top: auto !important; padding-top: 22px; }
.nowbox { margin-top: 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 16px 18px; }
.nowbox .nowt { font-size: 20px; font-weight: 700; margin-top: 4px; line-height: 1.25; }
@media (max-width: 640px) { .cardhead h2 .eu, .pagehead h1 .eu { display: none; } }

.steps .okmark { color: var(--ok); font-weight: 700; margin-left: 4px; }
.steps button.on .okmark { color: #8fd3ae; }

/* ── Miribilla: jornadas y calendario ── */
.nextcall { display: flex; align-items: center; gap: 20px; justify-content: space-between; margin-bottom: 14px; }
.nextcall .nc-day { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; }
.nextcall .nc-time { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.daytabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.daytabs button { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; text-align: left; cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; font: inherit; color: inherit; }
.daytabs button .w { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); grid-column: 1 / 3; }
.daytabs button .n { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.daytabs button .t { font-size: 13px; font-weight: 600; }
.daytabs button .h { grid-column: 1 / 3; font-size: 12px; color: var(--muted); margin-top: 4px; font-family: var(--f-mono, monospace); }
.daytabs button:hover { border-color: #000; }
.daytabs button.on { background: #000; border-color: #000; color: #fff; }
.daytabs button.on .w, .daytabs button.on .h { color: rgba(255,255,255,.7); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 14px; }
.fact { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact:nth-child(3n) { border-right: 0; }
.fact:nth-last-child(-n+3) { border-bottom: 0; }
.fact .k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fact .v { font-size: 17px; font-weight: 700; margin-top: 4px; line-height: 1.25; }
.fact .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pendtxt { color: var(--warn); font-weight: 600; font-size: 14px; }
table.agenda tr.ci td { background: #000; color: #fff; }
table.agenda tr.ci td .muted, table.agenda tr.ci .sub { color: rgba(255,255,255,.7); }
table.agenda .tag { display: inline-block; font-size: 10px; letter-spacing: .08em; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: #fff; color: #000; margin-right: 6px; vertical-align: 1px; }
table.agenda .tag.soft { background: var(--line-2); color: #333; }
table.agenda td { vertical-align: top; }
.callist { display: grid; gap: 0; }
.calrow { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.calrow:last-child { border-bottom: 0; }
.calrow .ttl { font-weight: 600; }
.calrow.mb .ttl::after { content: 'MIRIBILLA'; font-size: 10px; letter-spacing: .1em; font-weight: 700; margin-left: 8px; padding: 2px 6px; border-radius: 4px; background: #000; color: #fff; vertical-align: 2px; }
.dblock { width: 54px; flex: none; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px 0; line-height: 1.05; background: #fff; }
.dblock span { display: block; }
.dblock .w { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dblock .n { font-size: 20px; font-weight: 700; }
.dblock .m { font-size: 11px; color: var(--muted); }
.dblock.on { background: #000; border-color: #000; color: #fff; }
.dblock.on .w, .dblock.on .m { color: rgba(255,255,255,.7); }
@media (max-width: 640px) {
  .nextcall { flex-direction: column; align-items: flex-start; }
  .nextcall .nc-time { font-size: 44px; }
  .nextcall .nc-day { font-size: 20px; }
  .daytabs { grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); }
  .daytabs button { padding: 8px 10px; }
  .daytabs button .t { grid-column: 1 / 3; font-size: 12px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3n) { border-right: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .fact:nth-last-child(-n+2) { border-bottom: 0; }
  .calrow { flex-wrap: wrap; }
  .calrow .grow { min-width: 0; flex: 1; }
  table.agenda th:nth-child(3), table.agenda td:nth-child(3) { display: none; }
}
@media print {
  .demobar, header.top, .subnav, .noprint, .foot, .scrim, .toast { display: none !important; }
  body, main { background: #fff !important; }
  main { padding: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #bbb !important; break-inside: avoid; }
  .grid.g-side { grid-template-columns: 1fr !important; }
  table.agenda tr.ci td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.calrow .grow { flex: 1; min-width: 0; }
.fact .v.long { font-size: 14px; font-weight: 600; }
@media (max-width: 640px) {
  .calrow .grow { flex-basis: calc(100% - 70px); }
  .calrow > .btn, .calrow > .b { margin-left: 68px; }
}

/* ── Firma con código ── */
.otpbox { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fafafa; }
/* ── Acreditación ── */
@font-face { font-family: 'Schoolbook Cond'; src: url('/brand/fonts/schoolbook-cond.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Schoolbook Cond'; src: url('/brand/fonts/schoolbook-cond-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
/* Acreditación: maqueta del original (504 × 766 px). Unidades en cqw = % del ancho de la tarjeta. */
.cred { --cred-red: #c8372d; --cred-paper: #e8e4da; --cred-serif: 'Schoolbook Cond', 'Century Schoolbook', Georgia, serif; width: min(504px, 100%); aspect-ratio: 504 / 766; container-type: inline-size; background: var(--cred-paper); color: #000; break-inside: avoid; page-break-inside: avoid; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.14); }
.cred-in { position: relative; width: 100%; height: 100%; }
.cred-in > * { position: absolute; margin: 0; }
.cred-tasio { left: 50%; transform: translateX(-50%); top: 5.5cqw; height: 3.6cqw; width: auto; }
.cred-head { left: 0; right: 0; top: 12.5cqw; display: flex; justify-content: center; align-items: flex-end; gap: 2.6cqw; height: 11.2cqw; }
.cred-head .cred-art { height: 11.2cqw; width: auto; display: block; }
.cred-artx, .cred-crew { font-family: var(--cred-serif); font-size: 15.4cqw; line-height: .73; display: block; }
.cred-ev { left: 0; right: 0; top: 27cqw; text-align: center; font-family: var(--cred-serif); font-size: 3.05cqw; letter-spacing: .29em; text-indent: .29em; line-height: 1; white-space: nowrap; }
.cred-qr { left: 23cqw; top: 32.5cqw; width: 54cqw; height: 54cqw; cursor: zoom-in; }
.cred-qr svg { width: 100%; height: 100%; display: block; }
.cred-flags { left: 37cqw; top: 89.5cqw; width: 26cqw; height: auto; }
.cred-name { left: 4.96cqw; right: 4.96cqw; top: 95.8cqw; text-align: center; font-family: var(--cred-serif); font-size: 9.6cqw; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cred-name.long { font-size: 7.4cqw; }
.cred-name.xlong { font-size: 5.6cqw; }
.cred-lines { left: 4.96cqw; right: 4.96cqw; top: 110cqw; display: grid; }
.cred-lines > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9cqw; height: 11cqw; box-sizing: border-box; font-family: Manrope, Arial, sans-serif; text-align: center; position: relative; }
.cred-lines > div + div::before { content: ''; position: absolute; top: 0; left: 20%; right: 20%; border-top: .3cqw solid #a19e96; }
.cred-lines .k { font-size: 2.3cqw; color: #55524b; line-height: 1; }
.cred-lines b { font-weight: 600; font-size: 3.4cqw; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cred-band { left: 0; right: 0; bottom: 0; height: 12.6cqw; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqw; padding: 0 4.96cqw; box-sizing: border-box; text-align: center; }
.cred-band .t { font-family: var(--cred-serif); font-style: italic; color: var(--cred-red); text-transform: uppercase; letter-spacing: .15em; text-indent: .15em; font-size: 4.9cqw; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cred-band .t.long { font-size: 3.4cqw; letter-spacing: .1em; }
.cred-band .t.xlong { font-size: 2.6cqw; letter-spacing: .06em; }
.cred-band .ref { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 1.9cqw; color: #8a877f; line-height: 1; }
.qrmini { width: 96px; height: 96px; flex: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qrmini svg { width: 100%; height: 100%; display: block; }
#printarea { display: none; }
@media print {
  body.print-creds > *:not(#printarea) { display: none !important; }
  body.print-creds #printarea { display: grid !important; grid-template-columns: repeat(2, 85mm); gap: 8mm; justify-content: center; padding-top: 6mm; }
  body.print-creds .cred { width: 85mm; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* ── Registro de llegada ── */
.checkin { text-align: center; padding: 8px 0; }
.checkin .ci-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 30px; font-weight: 700; background: var(--ok-bg); color: var(--ok); }
.checkin.warn .ci-icon { background: var(--warn-bg); color: var(--warn); }
.checkin.info .ci-icon { background: var(--info-bg); color: var(--info); }
.checkin .ci-name { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.checkin .ci-dep { color: var(--muted); margin-top: 2px; }
.checkin .ci-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.checkin .ci-row span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }

/* ── Marco de trabajo: fases (stages + Miribilla) ── */
.fgroups { display: grid; gap: 8px; }
.fgroup { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px 10px; background: #fff; }
.fgroup.stage { border-left: 3px solid var(--info); }
.fgroup.miribilla { border-left: 3px solid #000; }
.fgh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.fgh .fgn { font-weight: 700; font-size: 13px; }
.fgh .fgd { font-size: 12px; color: var(--muted); }
.fgh .sp { flex: 1; }
.fgh .btn.sm { padding: 2px 8px; font-size: 12px; }
.pills.sub2 { margin-top: -6px; }
.pill .muted { color: inherit; opacity: .6; }
.phases { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.card.phase.stage { border-top: 3px solid var(--info); }
.card.phase.miribilla { border-top: 3px solid #000; }
.mdays { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.mdays .md { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; min-width: 52px; text-align: center; display: grid; line-height: 1.2; }
.mdays .md .w { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mdays .md .n { font-size: 17px; font-weight: 700; }
.mdays .md .t { font-size: 10px; color: var(--muted); }
.mdays .md .c { font-size: 11px; font-weight: 700; background: var(--mut-bg); border-radius: 999px; margin-top: 3px; }
.cred-days span.stg { flex: 1 1 40%; text-align: center; }
.chip .top2 { display: inline-flex; gap: 8px; align-items: center; }
.days .day.stg { flex-basis: calc((100% - 24px) / 5 * 2 + 6px); }
.days .day.stg .d2 { font-size: 20px; line-height: 1.15; }

/* ── Acreditación siempre a mano ── */
.qri { width: 16px; height: 16px; flex: none; }
.userchip .credbtn { display: inline-flex; gap: 6px; align-items: center; background: #000; color: #fff; border-color: #000; }
.card.credhome { display: flex; gap: 20px; align-items: center; margin-bottom: 16px; border: 2px solid #000; }
.card.credhome .grow { flex: 1; min-width: 0; }
.card.credhome .qrmini { width: 116px; height: 116px; }
.fabcred { display: none; }
@media (max-width: 760px) {
  .userchip .credbtn span { display: none; }
  .card.credhome { flex-direction: column; align-items: flex-start; }
  .card.credhome .qrmini { width: 148px; height: 148px; }
  .fabcred { display: inline-flex; position: fixed; right: 16px; bottom: 18px; z-index: 60; gap: 8px; align-items: center; background: #000; color: #fff; border: 0; border-radius: 999px; padding: 12px 16px; font: 700 14px var(--f-sans); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
  .fabcred .qri { width: 20px; height: 20px; }
}
@media print { .fabcred { display: none !important; } }
@media (max-width: 640px) { .days .day { flex-basis: calc((100% - 18px) / 4); } .days .day.stg { flex-basis: calc((100% - 18px) / 4 * 2 + 6px); } }
.card.brandcard { display: flex; gap: 18px; align-items: center; }
.card.brandcard .grow { flex: 1; }
.artprev { width: 150px; height: 84px; border: 1px dashed var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #fff; flex: none; }
.artprev img { max-width: 130px; max-height: 64px; object-fit: contain; }

/* Monograma en el hueco de la tira de días y horarios por jornada */
.days .day.mono { flex: 1 1 calc((100% - 24px) / 5); background: transparent; border: 0; display: flex; align-items: center; justify-content: center; padding: 4px; }
.days .day.mono img { max-height: 74px; max-width: 100%; filter: invert(1); opacity: .9; }
.horarios { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 12px; display: grid; gap: 4px; }
.hrow { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(110px, .9fr) minmax(170px, 1.2fr) minmax(110px, 1fr) 14px; gap: 10px; align-items: center; text-align: left; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 8px 12px; color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.hrow:hover { background: rgba(255,255,255,.12); }
.hrow .hd span, .hrow .ha, .hrow .hl { color: rgba(255,255,255,.62); }
.hrow .hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow .pendh { color: rgba(255,255,255,.45); font-style: italic; }
.hrow .hgo { color: rgba(255,255,255,.5); font-size: 18px; text-align: right; }
.hrow.tent { opacity: .62; }
@media (max-width: 640px) {
  .hrow { grid-template-columns: 1fr auto; row-gap: 2px; }
  .hrow .ha, .hrow .hl { grid-column: 1; font-size: 12px; }
  .hrow .hc { grid-column: 2; grid-row: 1; text-align: right; }
  .hrow .hgo { display: none; }
}
.hrow.hide { display: none; }
.hmore { background: none; border: 0; color: #fff; text-decoration: underline; font: inherit; font-size: 13px; padding: 6px 0 0; cursor: pointer; justify-self: start; }

/* ── Planificación: escaleta, regidor, documentos técnicos, proveedores, presupuesto ── */
.inp.sm { padding: 5px 7px; font-size: 12.5px; border-radius: 7px; margin-bottom: 4px; }
textarea.inp.sm { min-width: 140px; resize: vertical; }
.nowrap { white-space: nowrap; }
table.t.esc td, table.t.esc th { vertical-align: top; }
table.t.esc td.cue { font-size: 12.5px; color: var(--ink-2); min-width: 130px; }
table.t.esc .mine { background: #fff7d6; color: var(--ink); font-weight: 600; }
table.t.esc tr.esc-cambio td, table.t.esc tr.esc-pausa td { background: var(--paper); }
.escedit td { vertical-align: top; }
.regidor { background: #000; color: #fff; border-radius: var(--r-lg); padding: 24px; }
.regidor .xs { letter-spacing: .14em; color: rgba(255,255,255,.6); font-size: 11px; }
.regtop { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.regclock { font-size: 44px; font-weight: 700; letter-spacing: .02em; }
.regstats { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.regstats div { display: grid; }
.regstats span { font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: .08em; text-transform: uppercase; }
.regstats b { font-size: 26px; }
.regstats .bad, .regidor .bad { color: #ff8a80; }
.regstats .warn { color: #ffd166; }
.regstats .ok { color: #8be0a4; }
.regnow { border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 18px 20px; background: rgba(255,255,255,.06); }
.regnow.over { border-color: #ff8a80; }
.regtitle { font-size: 40px; font-weight: 800; line-height: 1.1; margin: 4px 0 10px; }
.regbar { height: 8px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; }
.regbar i { display: block; height: 100%; background: #fff; }
.regnow.over .regbar i { background: #ff8a80; }
.regtime { margin-top: 8px; font-size: 18px; }
.regcues { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 14px; }
.regcue { background: rgba(255,255,255,.08); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.regcue span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 2px; }
.regnext { margin-top: 14px; padding: 14px 20px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.25); }
.regnext .regcues { opacity: .8; }
.regidor .btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.regidor .btn.pri { background: #fff; color: #000; border-color: #fff; }
.regidor .btn.big { font-size: 18px; padding: 14px 26px; }
.regidor .small.muted { color: rgba(255,255,255,.6); }
.caerow { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
table.t td.num, table.t th.num { text-align: right; }
table.t td.bad { color: var(--bad); font-weight: 600; }
table.t td.ok { color: var(--ok); }
.budbar { position: relative; height: 8px; margin-top: 8px; max-width: 420px; }
.budbar i { position: absolute; left: 0; top: 0; height: 8px; border-radius: 99px; }
.budbar i.pre { background: var(--mut-bg); border: 1px solid var(--line); box-sizing: border-box; }
.budbar i.com { background: #c9d6e6; height: 8px; }
.budbar i.com.over { background: #f2b8b5; }
.budbar i.fac { background: #6f8fb5; }
.budbar i.pag { background: #1f3b5c; }
.budkey { display: flex; gap: 16px; margin-top: 8px; }
.budkey i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.budkey i.pre { background: var(--mut-bg); border: 1px solid var(--line); }
.budkey i.com { background: #c9d6e6; }
.budkey i.fac { background: #6f8fb5; }
.budkey i.pag { background: #1f3b5c; }
.card .stat { font-size: 24px; font-weight: 700; margin-top: 4px; }

/* ── Personas y logística: zonas, puerta, hotel, transporte, material, cobertura, Mi semana ── */
.zchip { display: inline-block; font: 700 11px var(--f-sans); letter-spacing: .06em; padding: 2px 7px; border-radius: 5px; border: 1.5px solid #000; color: #000; background: #fff; }
.zchip.z-aaa { background: #000; color: #fff; }
.zchip { min-width: 22px; text-align: center; background: #EBE5D9; }
.zchip.z-ongi { background: #C21E16; border-color: #C21E16; color: #FFFFFF; }
.cred-zonas .zchip { font-size: 9px; padding: 1px 5px; }
h3.sect { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
table.t th.c, table.t td.c { text-align: center; }
table.zm td, table.zm th { padding: 6px 8px; }
.ptrow { padding: 12px; }
.lrow { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
.lrow > b.mono { margin-left: auto; }
.scanres { margin-top: 14px; border-radius: var(--r-lg); padding: 22px; text-align: center; color: #fff; }
.scanres.ok { background: #1e7a3c; }
.scanres.bad { background: #b3261e; }
.scanres.idle { background: var(--mut-bg); color: var(--muted); border: 1px dashed var(--line); }
.scanres .big { font-size: 30px; font-weight: 800; letter-spacing: .02em; }
.scanres .nm { font-size: 24px; font-weight: 700; margin-top: 8px; }
.scanres .mot { margin-top: 10px; font-weight: 600; font-size: 16px; background: rgba(0,0,0,.18); border-radius: 8px; padding: 8px; }
tr.chg td { background: #f1f6ff; }
table.cob td.ok { background: #eaf6ee; }
table.cob td.bad { background: #fdecea; }
table.cob .inp.sm { display: inline-block; margin: 0; }
.semday .cit { text-align: right; }
.semday .cit span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.semday .cit b { font-size: 24px; }

/* ── Día de show ── */
.card.live { background: #000; color: #fff; border-color: #000; }
.card.live .l { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #bdbdbd; }
.card.live .v { font-size: 34px; font-weight: 800; line-height: 1.1; margin: 6px 0; letter-spacing: -.01em; }
.card.live .small { color: #ddd; }
.card.live b.ok { color: #7fd6a6; } .card.live b.warn { color: #f4c56b; } .card.live b.bad { color: #ff8a80; }
.card.live .btn { background: #fff; color: #000; border-color: #fff; }
.card.tile .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card.tile .v { font-size: 34px; font-weight: 800; line-height: 1.1; margin: 4px 0; }
.card.tile .v .muted { font-size: 18px; font-weight: 600; }
.card.tile .v.bad { color: var(--bad); } .card.tile .v.warn { color: var(--warn); } .card.tile .v.ok { color: var(--ok); }
.click { cursor: pointer; } .card.click:hover, .li.click:hover { border-color: #000; }
.cklist { display: grid; gap: 4px; margin-top: 10px; }
.ck { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.ck input { width: 18px; height: 18px; accent-color: #000; }
.ck.on { background: var(--ok-bg); border-color: transparent; }
.ck.on .grow { text-decoration: line-through; color: var(--muted); }
.ckrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin-bottom: 10px; }
.ckrow .prog { grid-column: 1 / -1; }
.prog { height: 6px; background: var(--mut-bg); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.prog i { display: block; height: 100%; background: #000; border-radius: 99px; }
.prog.full i { background: var(--ok); }
.li.aviso { background: var(--warn-bg); border-radius: 8px; padding: 8px 10px; border: 0; }
.card.lila { border-color: #7b3fa0; box-shadow: inset 4px 0 0 #7b3fa0; }
.card.lila h2 { color: #5b2a7a; }
.btn.lilabtn { background: #7b3fa0; border-color: #7b3fa0; color: #fff; }

/* ── Gente de fuera ── */
.extqr { text-align: center; }
.extqr .qrbox { display: inline-block; background: #fff; padding: 10px; border-radius: 8px; margin: 12px auto 10px; }
.extqr .qrbox svg { display: block; }
.setlist { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-weight: 600; }
.setlist li::marker { color: var(--muted); font-family: var(--f-mono, monospace); font-size: 12px; }

/* ── Cierre ── */
.t tr.tot td { border-top: 2px solid #000; background: var(--paper); }
td.r, th.r { text-align: right; white-space: nowrap; } td.c, th.c { text-align: center; }
td .ok, .small.ok { color: var(--ok); } td .bad, .small.bad, td.bad { color: var(--bad); } .small.warn { color: var(--warn); } td.ok { color: var(--ok); }
.stars { display: flex; gap: 6px; margin-top: 6px; }
.stars label { cursor: pointer; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars span { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; background: #fff; }
.stars input:checked + span { background: #000; color: #fff; border-color: #000; }
.dist { display: flex; gap: 10px; align-items: flex-end; height: 100px; margin-top: 10px; }
.dist .db { display: grid; justify-items: center; gap: 2px; flex: 1; }
.dist .db i { display: block; width: 100%; max-width: 36px; background: #000; border-radius: 4px 4px 0 0; min-height: 2px; }
.informe h1 { margin: 6px 0 2px; }
.informe section.inf { margin-top: 22px; }
.informe section.inf h2 { font-size: 17px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.infkv { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.infkv .k { font-size: 12px; color: var(--muted); }
.infkv .v { font-size: 20px; font-weight: 800; }

/* Sello BULEGO arriba a la izquierda: lleva al inicio */
.homeseal { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 10px; flex: 0 0 auto; transition: background .15s; }
.homeseal:hover { background: var(--mut-bg); }
.homeseal img { max-height: 46px; max-width: 46px; display: block; }
@media (max-width: 640px) { .homeseal { width: 40px; height: 40px; } .homeseal img { max-height: 36px; max-width: 36px; } }
.brandrow .homeseal { margin-left: 4px; }
@media (max-width: 640px) { header.top .in { position: relative; } .brandrow .homeseal { position: absolute; top: 14px; right: 14px; margin: 0; } }
.card.credhome { background: #e8e4da; border-color: #d6d1c4; }
.card.credhome .qrmini { background: #fff; }
/* Stage */
.stcols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
@media (max-width: 900px) { .stcols { grid-template-columns: 1fr; gap: 6px; } }
.card.stday.done { border-left: 4px solid var(--ok); }

/* ── Tareas del stage ── */
.tk-card { padding-top: 6px; }
.tk-group + .tk-group { margin-top: 6px; }
.tklist { display: grid; }
.tk { display: flex; align-items: flex-start; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line-2); }
.tklist .tk:last-child { border-bottom: 0; }
.tk.late { box-shadow: inset 3px 0 0 var(--bad); padding-left: 12px; }
.tk-chk { position: relative; flex: none; width: 26px; height: 26px; margin-top: 1px; cursor: pointer; }
.tk-chk input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tk-chk span { position: absolute; inset: 0; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; transition: background 0.12s, border-color 0.12s; }
.tk-chk input:checked + span { background: var(--ok); border-color: var(--ok); }
.tk-chk input:checked + span::after { content: ''; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tk-chk input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,0,0,.15); }
.tk-body { flex: 1; min-width: 0; cursor: pointer; }
.tk-tit { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.tk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.tk-meta .dot { opacity: .5; }
.tk-who { color: var(--ink-2); font-weight: 500; }
.tk-det { margin-top: 4px; font-size: 13px; color: var(--ink-2); white-space: pre-wrap; }
.tk-ref { flex: none; margin-top: 3px; }
.tk.done .tk-tit { text-decoration: line-through; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .tk { gap: 10px; padding: 13px 0; }
  .tk.late { padding-left: 10px; }
  .tk-chk { width: 30px; height: 30px; }
  .tk-chk input:checked + span::after { left: 10px; top: 5px; width: 7px; height: 13px; }
  .tk-ref { display: none; }
  .tk-fil .inp { max-width: none !important; flex: 1 1 100%; order: 3; }
  .tk-fil .btn.pri { margin-left: auto; }
}
.tk-alta { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 6px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.tk-pz { font-weight: 600; }
.tk-pz.bad { color: var(--bad); } .tk-pz.warn { color: #9a6a00; } .tk-pz.info { color: #2b5c8a; } .tk-pz.ok { color: var(--ok); }
.tk-done > summary { cursor: pointer; list-style: none; }
.tk-done > summary::-webkit-details-marker { display: none; }
.tk-done > summary::after { content: ' ▸'; color: var(--muted); }
.tk-done[open] > summary::after { content: ' ▾'; }
.nt-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin: 6px 4px 0 2px; background: var(--muted); }
.nt-dot.warn { background: #d4a017; } .nt-dot.ok { background: var(--ok); } .nt-dot.info { background: #2b5c8a; }
[data-pver].tk { cursor: pointer; }
.m-only { display: none; }

/* ── Móvil compacto ── */
@media (max-width: 640px) {
  .m-hide { display: none !important; }
  .m-hide-i { display: none; }
  .m-only { display: block; }
  main { padding: 12px 12px 80px; }
  .top .in { padding: 12px 14px 0; }
  .tasio-logo { height: 22px; }
  .brandrow { gap: 10px; }
  .userchip { padding: 3px 4px 3px 10px; gap: 6px; font-size: 12px; }
  .userchip button { padding: 3px 8px; font-size: 11.5px; }
  .nav { display: flex; grid-template-columns: none; flex-wrap: nowrap; overflow-x: auto; margin-top: 8px; }
  .nav a { padding: 9px 10px 10px; font-size: 11.5px; flex: none; }
  .subnav { margin-bottom: 12px; }
  .subnav a { padding: 5px 11px; font-size: 12.5px; }
  .pagehead { margin-bottom: 10px; gap: 8px; }
  .pagehead h1, .pagehead h1 { font-size: 28px; }
  .pagehead .sub { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card { padding: 14px; }
  .section-title { margin-top: 12px; }
  .m-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding-right: 12px; }
  .m-scroll::-webkit-scrollbar { display: none; }
  .m-scroll .pill { flex: none; white-space: nowrap; }
  .pill { padding: 5px 11px; }
  .daytabs.m-row { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-right: -12px; padding-right: 12px; }
  .daytabs.m-row::-webkit-scrollbar { display: none; }
  .daytabs.m-row button { flex: none; min-width: 74px; padding: 7px 10px; border-radius: 12px; }
  .tk-card { padding: 4px 14px 8px; }
  .tk { padding: 10px 0; gap: 10px; }
  .tk.late { padding-left: 9px; }
  .tk-chk { width: 26px; height: 26px; }
  .tk-chk input:checked + span::after { left: 8px; top: 4px; width: 6px; height: 11px; }
  .tk-tit { font-size: 14px; }
  .tk-meta { font-size: 12px; margin-top: 2px; }
  .tk-det { font-size: 12.5px; }
  .tk-fil { gap: 8px; }
  .tk-fil .inp { padding: 7px 10px; font-size: 13px; }
  .tk-fil .btn.pri { padding: 7px 14px; font-size: 16px; line-height: 1; }
  .tk-card .section-title { margin: 10px 0 0; }
}
@media (max-width: 640px) {
  .tk-fil { flex-wrap: wrap; }
  .tk-fil > .pills { flex: 1 1 0; min-width: 0; margin-right: 0 !important; padding-right: 0 !important; }
  .tk-fil > .sp { display: none; }
  .tk-fil > .btn.pri { order: 2; flex: none; }
  .tk-fil > select.inp { order: 3; flex: 1 1 100%; }
}
.tk .bad { color: var(--bad); } .tk .ok { color: var(--ok); }

/* ── Barra inferior y cuenta (móvil) ── */
.tabbar, .meav { display: none; }
.tbsheet[hidden] { display: none; }
@media (max-width: 640px) {
  header.top { position: sticky; top: 0; z-index: 50; background: rgba(242,242,242,.92); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
  .top .in { padding: 10px 14px 10px; }
  .brandrow { flex-wrap: nowrap; gap: 10px; }
  .brandrow .vline { height: 22px; }
  .evt .t { font-size: 14px; white-space: nowrap; }
  .evt .t .eu { display: none; }
  .userchip { display: none; }
  .nav { display: none !important; }
  .brandrow .homeseal { position: static; width: 34px; height: 34px; margin: 0; }
  .brandrow .homeseal img { max-height: 30px; max-width: 30px; }
  .meav { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #000; color: #fff; font: 700 12.5px var(--f-sans); letter-spacing: .02em; cursor: pointer; }
  main { padding-bottom: 24px; }
  .foot { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70; background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px); border: 1px solid rgba(0,0,0,.08); border-radius: 22px; box-shadow: 0 8px 28px rgba(0,0,0,.14); padding: 6px; }
  .tabbar a, .tabbar button { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px; border-radius: 16px; color: #4a4a4a; text-decoration: none; background: none; border: 0; font: 600 10.5px var(--f-sans); letter-spacing: .01em; cursor: pointer; transition: background .15s, color .15s; }
  .tabbar .ti { width: 23px; height: 23px; }
  .tabbar .tbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar a.on { color: #000; background: rgba(0,0,0,.065); }
  .tabbar a.on .ti { stroke-width: 2.1; }
  .tabbar .tcnt { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 10px; line-height: 17px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
  .tbsheet { position: fixed; inset: 0; z-index: 90; }
  .tbscrim { position: absolute; inset: 0; background: rgba(0,0,0,.32); animation: fade .15s; }
  .tbpanel { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 22px 22px 0 0; padding: 8px 14px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 2px; animation: tbup .2s ease-out; }
  .tbgrab { width: 38px; height: 4px; border-radius: 4px; background: #d6d6d6; margin: 2px auto 8px; }
  .tbpanel a, .tbpanel button { display: flex; align-items: center; gap: 14px; padding: 13px 10px; border-radius: 12px; color: #000; text-decoration: none; font: 600 15px var(--f-sans); background: none; border: 0; text-align: left; cursor: pointer; }
  .tbpanel a:active, .tbpanel button:active { background: #f1f1f1; }
  .tbpanel .ti { width: 22px; height: 22px; }
  .tbpanel .tbn { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 500; }
  .mehead { display: flex; gap: 12px; align-items: center; padding: 6px 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
  .meav.lg { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #000; color: #fff; font: 700 15px var(--f-sans); }
  .fabcred { bottom: calc(92px + env(safe-area-inset-bottom)); padding: 10px 14px; }
  .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .subnav { position: relative; }
}
@keyframes tbup { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.hqr { display: none; }
@media (max-width: 640px) {
  .fabcred { display: none !important; }
  .hqr { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #000; background: #fff; color: #000; cursor: pointer; padding: 0; }
  .hqr .qri, .hqr svg { width: 18px; height: 18px; }
}

/* ── Sin conexión ── */
.offbar { position: sticky; top: 0; z-index: 75; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 9px 16px; background: #2b2b2b; color: #fff; font-size: 13px; line-height: 1.35; }
.offbar[hidden] { display: none; }
.offbar .dot { width: 9px; height: 9px; border-radius: 50%; background: #f2b33d; box-shadow: 0 0 0 3px rgba(242,179,61,.25); flex: none; }
.offbar span:last-child { color: #d9d9d9; }
.demobar .simoff { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; cursor: pointer; }
@media (max-width: 640px) { header.top { top: 0; } .offbar { font-size: 12px; padding: 8px 12px; } }
.scanres .off { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.18); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.offpack { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: var(--mut-bg); font-size: 12.5px; }
.offpack b { font-weight: 600; }
.offpack .q { margin-left: auto; color: #9a6a00; font-weight: 600; }
/* Puerta: en el móvil el resultado va justo debajo del lector, a la vista */
.scanres-mob { display: none; }
@media (max-width: 640px) { .scanres-mob { display: block; margin-top: 10px; } .scanres-desk { display: none; } .scanres-mob .scanres { margin-top: 0; } }
.cred-band.ongi { background: var(--cred-red); } .cred-band.ongi .t { color: #EBE5D9; } .cred-band.ongi .ref { color: rgba(235,229,217,.8); }

/* ── Lugares: minimapa + Google Maps ── */
.card.lugar { padding: 0; overflow: hidden; }
.minimapa { display: block; width: 100%; height: 150px; border-bottom: 1px solid var(--line-2); }
.lugar-body { padding: 14px 16px 12px; }
.lugar-body h2 { margin: 0 0 8px; }
.lugar-pt { display: flex; gap: 10px; align-items: center; padding: 7px 0; }
.lugar-pt + .lugar-pt { border-top: 1px solid var(--line-2); }
.lugar-ic { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #000; box-shadow: 0 0 0 3px rgba(225,37,27,.18); }
.lugar-ic.sec { background: #EBE5D9; border: 2px solid #000; box-shadow: none; }
.lugar-pt .btn { flex: none; white-space: nowrap; }
.lugar-nota { margin-top: 6px; }
@media (max-width: 640px) { .minimapa { height: 130px; } .lugar-body { padding: 12px 14px 10px; } }
@media print { .card.lugar { display: none; } }

/* App instalable */
.instcard { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.instcard[hidden] { display: none; }
.instcard .instic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #000; color: #EBE5D9; display: grid; place-items: center; }
.instcard .instic .ti { width: 24px; height: 24px; }
.instcard .instbtns { display: flex; gap: 8px; flex: none; }
.instpasos { margin: 0 0 12px; padding-left: 20px; line-height: 1.7; }
@media (max-width: 640px) {
  .instcard { flex-wrap: wrap; }
  .instcard .grow { flex: 1 1 calc(100% - 60px); }
  .instcard .instbtns { width: 100%; justify-content: flex-end; }
}
@media (display-mode: standalone) { .instcard { display: none !important; } }
.card.navy .eu, .nowbox .eu { color: #b5b5b5; }

/* Estado del servidor */
.syscard .sysrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line, #e2e2e2); }
.syscard .sysrow:first-of-type { border-top: 0; }
.sysdot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #2e7d4f; }
.sysdot.warn { background: #b7791f; }
.sysdot.bad { background: #C21E16; }
.syscard .sysrow .grow { flex: 1; min-width: 0; }

/* Añadir a mi agenda (suscripción) */
.calsub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calsub .btn { justify-content: center; gap: 8px; min-height: 46px; text-decoration: none; }
.calsub .btn .ti { width: 18px; height: 18px; }
.modal .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.modal .row { display: flex; align-items: center; }
@media (max-width: 480px) { .calsub { grid-template-columns: 1fr; } }

/* ═════════ Modo oscuro (#12) ═════════
   Se activa con html.oscuro (lo pone public/tema.js: automático según el sistema, claro u oscuro).
   Monocromo TASIO invertido: fondo casi negro, texto hueso, y los elementos «negros» (botón principal,
   pestaña activa, contadores) pasan a crema TASIO #EBE5D9 con texto negro. La credencial, los QR y la
   firma se quedan en papel claro: tienen que leerse y escanearse igual. */
html.oscuro {
  --paper: #0e0e0e; --card: #181818; --line: #303030; --line-2: #262626;
  --ink: #f0eee9; --ink-2: #d6d4ce; --muted: #a9a7a1;
  --navy-100: #242424; --navy-300: #4a4a4a; --navy-500: #8a8a8a; --navy-700: #d6d4ce; --navy-800: #EBE5D9;
  --brass: #EBE5D9; --brass-soft: #242424; --mut-bg: #242424;
  --ok: #7fd1a3; --ok-bg: #11291c; --warn: #f2b85e; --warn-bg: #2d2310; --bad: #ff9389; --bad-bg: #3a1613;
  --info: #a3bfe6; --info-bg: #16233a; --done: #f0eee9; --done-bg: #2a2a2a;
  --sol: #EBE5D9; --on-sol: #000000;
}
html.oscuro ::selection { background: #EBE5D9; color: #000; }
/* superficies */
html.oscuro .inp, html.oscuro select.inp, html.oscuro textarea.inp, html.oscuro .chip, html.oscuro .opt, html.oscuro .steps,
html.oscuro .tablewrap, html.oscuro .pill, html.oscuro .inv, html.oscuro .modal .mh, html.oscuro .modal .mf, html.oscuro .userchip,
html.oscuro .gantt, html.oscuro .subnav a, html.oscuro .daytabs button, html.oscuro .dblock, html.oscuro .fgroup, html.oscuro .stars span,
html.oscuro .tk-chk span, html.oscuro .gb, html.oscuro .tli::before, html.oscuro .gtoday i, html.oscuro .otpbox, html.oscuro .hqr { background: var(--card); color: var(--ink); }
html.oscuro .opt:has(input:checked) { background: var(--navy-100); border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
html.oscuro .chip:has(input:checked) { border-color: var(--ink); background: var(--navy-100); box-shadow: 0 0 0 1px var(--ink) inset; }
html.oscuro .chip input, html.oscuro .opt input, html.oscuro .ck input { accent-color: var(--sol); }
html.oscuro .inp:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(235,229,217,.14); }
html.oscuro .inp::placeholder { color: #7d7b76; }
html.oscuro .fieldset, html.oscuro .drop, html.oscuro .msgbody, html.oscuro .gr.gh, html.oscuro table.t th { background: #141414; }
@media (max-width: 640px) { html.oscuro header.top { background: rgba(14,14,14,.92); } }
html.oscuro table.t tr.click:hover td, html.oscuro .msgitem:hover { background: #1f1f1f; }
html.oscuro .msgitem.on, html.oscuro .filepill, html.oscuro .tbpanel a:active, html.oscuro .tbpanel button:active { background: #262626; }
html.oscuro .drop { border-color: #4a4a4a; }
html.oscuro .drop:hover, html.oscuro .drop.over { background: #1c1c1c; border-color: var(--ink); }
/* elementos sólidos: de negro a crema TASIO */
html.oscuro .btn.pri, html.oscuro .card:not(.navy) .btn.brass, html.oscuro .btnrow .btn.brass, html.oscuro .steps button.on, html.oscuro .pill.on,
html.oscuro .subnav a.on, html.oscuro .daytabs button.on, html.oscuro .dblock.on, html.oscuro table.agenda tr.ci td, html.oscuro .nav .cnt,
html.oscuro .userchip .credbtn, html.oscuro .fabcred, html.oscuro .meav, html.oscuro .meav.lg, html.oscuro .stars input:checked + span,
html.oscuro .zchip.z-aaa, html.oscuro .subnav a:not(.on) .cnt, html.oscuro .instcard .instic { background: var(--sol); border-color: var(--sol); color: var(--on-sol); }
html.oscuro .subnav a.on .cnt { background: #000; color: var(--sol); }
html.oscuro .btn.pri:hover { background: #d9d2c3; border-color: #d9d2c3; }
html.oscuro .gb.hecho, html.oscuro .gb.mir, html.oscuro .tli.ci::before, html.oscuro .bars .tr i, html.oscuro .kpi .bar i, html.oscuro .track .st.on,
html.oscuro .prog i, html.oscuro .dist .db i, html.oscuro .lugar-ic, html.oscuro .tk-chk input:checked + span { background: var(--sol); border-color: var(--sol); }
html.oscuro .tk-chk input:checked + span::after { border-color: #000; }
html.oscuro .gb.en_curso { background: repeating-linear-gradient(135deg, var(--sol) 0 4px, #181818 4px 8px); }
html.oscuro .gb.evento { background: #bdbdbd; border-color: #bdbdbd; }
html.oscuro .lugar-ic.sec { background: #3a3832; border-color: var(--sol); }
/* líneas y textos que eran negros */
html.oscuro .top { background: var(--paper); border-bottom-color: #3a3a3a; }
html.oscuro .vline { background: var(--ink); }
html.oscuro .evchip, html.oscuro .gb, html.oscuro .tl, html.oscuro .tli::before, html.oscuro .zchip, html.oscuro .hqr { border-color: var(--ink); }
html.oscuro .nav a { color: var(--muted); }
html.oscuro .nav a:hover, html.oscuro .nav a.on { color: var(--ink); border-bottom-color: var(--ink); }
html.oscuro .linkbtn, html.oscuro .login .linkbtn, html.oscuro .login .demoacc button, html.oscuro .hqr, html.oscuro .tbpanel a, html.oscuro .tbpanel button { color: var(--ink); }
html.oscuro .subnav a { color: var(--ink-2); }
html.oscuro .subnav a:hover, html.oscuro .daytabs button:hover, html.oscuro .click:hover, html.oscuro .card.click:hover, html.oscuro .li.click:hover { border-color: var(--ink); }
html.oscuro .fgroup.miribilla { border-left-color: var(--sol); }
html.oscuro .card.phase.miribilla { border-top-color: var(--sol); }
html.oscuro .t tr.tot td { border-top-color: var(--ink); }
html.oscuro .gmir { background: repeating-linear-gradient(135deg, #1b1b1b 0 6px, #222 6px 12px); border-color: var(--ink); }
html.oscuro .gmir i { color: var(--ink); }
html.oscuro .gm { color: var(--muted); }
html.oscuro .eu { color: #9a9893; }
html.oscuro .tabs button { color: var(--muted); }
html.oscuro .tli.co::before { border-color: #6f6f6f; }
html.oscuro table.agenda .tag { background: var(--card); color: var(--ink); }
html.oscuro table.agenda .tag.soft { color: var(--ink-2); }
/* grandes bloques oscuros: se quedan negros, con borde para separarse del fondo */
html.oscuro .card.navy, html.oscuro .card.live, html.oscuro .regidor { background: #050505; border: 1px solid #333; }
html.oscuro .drawer .dh { border-bottom: 1px solid #2a2a2a; }
html.oscuro .login .side { background: #050505; border-right: 1px solid #262626; }
html.oscuro .toast { background: #2a2a2a; color: var(--ink); border: 1px solid #3a3a3a; }
html.oscuro .offbar { background: #262626; }
html.oscuro .modal, html.oscuro .drawer, html.oscuro .login .box { box-shadow: 0 30px 80px rgba(0,0,0,.7); }
/* avisos y etiquetas tintadas */
html.oscuro .call.info { background: var(--info-bg); color: #c9d9f0; }
html.oscuro .call.warn { background: var(--warn-bg); color: #f6d39a; }
html.oscuro .call.ok { background: var(--ok-bg); color: #b5e6c9; }
html.oscuro .call.bad { background: var(--bad-bg); color: #ffc2bc; }
html.oscuro .call.cfg { background: #2a210f; color: #f6d39a; border-color: #6b5426; }
html.oscuro .call.lock { background: #1c1c1c; color: var(--ink); border-color: #333; }
html.oscuro .b.demo { color: #f5d77a; background: #2e2810; }
html.oscuro .b.cfg { color: #f2c27a; background: #2d2310; border-color: #6b5426; }
html.oscuro table.t.esc .mine { background: #3a3216; }
html.oscuro tr.chg td { background: #16233a; }
html.oscuro table.cob td.ok { background: var(--ok-bg); }
html.oscuro table.cob td.bad { background: var(--bad-bg); }
html.oscuro .card.lila h2 { color: #d2a8ee; }
html.oscuro .tk-pz.warn, html.oscuro .offpack .q { color: var(--warn); }
html.oscuro .tk-pz.info, html.oscuro .nt-dot.info { color: var(--info); }
html.oscuro .nt-dot.info { background: var(--info); }
html.oscuro .login .demoacc { background: #2a2410; border-color: #6b5426; }
html.oscuro .card.credhome { background: #1d1b17; border-color: #3a372f; }
/* barra inferior y menú de usuario (móvil) */
@media (max-width: 640px) {
  html.oscuro .tabbar { background: rgba(24,24,24,.9); border-color: #303030; }
  html.oscuro .tabbar a, html.oscuro .tabbar button { color: #b4b2ac; }
  html.oscuro .tabbar a.on { color: var(--ink); background: rgba(255,255,255,.08); }
  html.oscuro .tbpanel { background: #181818; }
  html.oscuro .tbgrab { background: #444; }
  html.oscuro .tbscrim { background: rgba(0,0,0,.6); }
}
/* logotipos negros: en blanco */
html.oscuro .tasio-logo, html.oscuro .homeseal img { filter: invert(1); }
/* el minimapa se pasa a «modo noche» manteniendo el rojo del concierto */
html.oscuro .minimapa { filter: invert(.92) hue-rotate(180deg); }
/* papel que se queda claro: credencial, QR y firma */
html.oscuro .cred, html.oscuro .extqr .qrbox, html.oscuro .card.credhome .qrmini { color-scheme: light; }
/* selector de tema */
.temasel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--mut-bg); }
.temasel button { border: 0; background: none; border-radius: 9px; padding: 8px 4px; font: 600 13px var(--f-sans); color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.temasel button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.temasel .ti { width: 16px; height: 16px; }
.userchip .temabtn { display: inline-grid; place-items: center; padding: 4px 8px; }
.userchip .temabtn .ti { width: 16px; height: 16px; }
.tbtema { padding: 6px 4px 10px; }
/* modo oscuro: textos secundarios dentro de elementos crema */
html.oscuro .steps button.on .n, html.oscuro .dblock.on .w, html.oscuro .dblock.on .m, html.oscuro .daytabs button.on .w, html.oscuro .daytabs button.on .h { color: rgba(0,0,0,.66); }
html.oscuro .steps button.on .x { color: #8a1c15; }
html.oscuro .steps button.on .okmark { color: #1b5e3a; }
html.oscuro .day.on { background: var(--sol); border-color: var(--sol); color: #000; }
html.oscuro .day.on .d1, html.oscuro .day.on .d3 { color: rgba(0,0,0,.66); }
html.oscuro .day .d1, html.oscuro .day .d3 { color: #b3b1ab; }
html.oscuro .tabbar .tcnt, html.oscuro .tk-alta { background: #C21E16; color: #fff; }

/* Bandeja de acciones (#10) */
.bandeja .bjlist { display: grid; grid-template-columns: minmax(0, 1fr); }
.bjrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.bjrow:first-child { border-top: 0; }
.bjrow .ttl a { color: inherit; font-weight: 600; text-decoration: none; }
.bjrow .ttl a:hover { text-decoration: underline; }
.bjchips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 3px; }
.bjchip { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bjchip.mas { background: var(--mut-bg); color: var(--muted); }
.bjrow .grow { flex: 1; min-width: 0; }
@media (min-width: 900px) {
  .bandeja .bjlist { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; }
  .bjrow:nth-child(2) { border-top: 0; }
}
.bjchip { min-width: 0; flex: 0 1 auto; }
.bjrow > .btn, .bjrow > .b { flex: none; }
@media (max-width: 640px) { .bandeja .cardhead { flex-wrap: wrap; gap: 8px; } }

/* Guía rápida y bienvenida (#3) */
.guia { max-width: 760px; }
.guia-k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.guia h1 { margin: 6px 0 8px; font-size: 30px; line-height: 1.1; }
.guia-lead { margin: 0 0 18px; color: var(--ink-2); }
.guia-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.guia-pasos li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.guia-ic { width: 44px; height: 44px; border-radius: 12px; background: #000; color: #EBE5D9; display: grid; place-items: center; }
.guia-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.guia-pasos h2 { font-size: 16px; margin: 2px 0 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.guia-n { font: 700 12px var(--f-sans); color: var(--muted); }
.guia-pasos p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.guia-pie { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); display: grid; gap: 8px; }
.guia-firma { color: var(--muted); font-size: 12px; }
body.guiapag { background: var(--paper); }
.guia-wrap { max-width: 820px; margin: 0 auto; padding: 18px 18px 40px; }
.guia-barra { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.guia-barra .tasio-logo { height: 26px; }
.guia-barra .sp, .guia-wrap .sp { flex: 1; }
.guiapag #guia { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.bvpasos { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; }
.bvpasos li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.bvn { width: 30px; height: 30px; border-radius: 50%; background: #000; color: #EBE5D9; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
html.oscuro .guia-ic, html.oscuro .bvn { background: var(--sol); color: #000; }
@media (max-width: 640px) { .guia h1 { font-size: 24px; } .guiapag #guia { padding: 18px; } }
@media print {
  .guia-barra, .noprint { display: none !important; }
  .guiapag #guia, .guia-card { border: 0 !important; padding: 0 !important; }
  .guia-ic { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .guia h1 { font-size: 24pt; } .guia-pasos { gap: 10pt; } .guia-pasos p { font-size: 10.5pt; }
}

/* Ahora / siguiente (#4) */
.card.momento { margin-bottom: 16px; padding: 18px 20px; }
.momento .mo-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.momento .mo-reloj { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.momento .mo-cit { text-align: right; font-size: 12px; color: #bdbdbd; line-height: 1.3; }
.momento .mo-cit b { font-size: 20px; color: #fff; }
.mo-fila { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.14); }
.momento-s .mo-fila { border-top-color: var(--line); }
.mo-l { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #bdbdbd; font-weight: 600; }
.momento-s .mo-l { color: var(--muted); }
.mo-t { font-size: 22px; font-weight: 700; line-height: 1.2; margin-top: 2px; }
.mo-s { font-size: 13px; color: #d0d0d0; margin-top: 2px; }
.momento-s .mo-s { color: var(--muted); }
.momento-s { margin-bottom: 14px; }
.momento-s .mo-t { font-size: 18px; }
.mo-aviso { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 14px; }
.mo-tels { display: grid; gap: 8px; }
.mo-tel { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; background: var(--card); }
.mo-tel > span:first-child { display: grid; }
.mo-call { flex: none; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: #000; color: #fff; }
html.oscuro .mo-call { background: var(--sol); color: #000; }
/* Pantalla de backstage */
.backstage { position: fixed; inset: 0; z-index: 200; background: #000; color: #f2f2f2; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(16px, 3vw, 40px); gap: 2vh; font-family: var(--f-sans); }
.bs-top { display: flex; align-items: center; gap: 24px; }
.bs-reloj { font-size: clamp(48px, 9vw, 120px); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.bs-dia { font-size: clamp(14px, 1.8vw, 22px); font-weight: 600; line-height: 1.3; }
.bs-dia span { color: #9a9a9a; font-weight: 500; }
.bs-x { margin-left: auto; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 10px 18px; font: 600 15px var(--f-sans); cursor: pointer; }
.bs-main { display: flex; flex-direction: column; justify-content: center; gap: 1.5vh; border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a; }
.bs-l { font-size: clamp(14px, 2vw, 26px); letter-spacing: .12em; text-transform: uppercase; color: #a8a8a8; font-weight: 600; }
.bs-xl { font-size: clamp(36px, 7.5vw, 110px); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; }
.bs-m { font-size: clamp(18px, 2.8vw, 38px); color: #d8d8d8; }
.bs-m.ok { color: #7fd6a6; } .bs-m.warn { color: #f4c56b; } .bs-m.bad { color: #ff8a80; }
.bs-pie { display: grid; grid-template-columns: auto auto 1fr; gap: clamp(16px, 4vw, 56px); align-items: start; }
.bs-pie > div > span { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #9a9a9a; font-weight: 600; margin-bottom: 4px; }
.bs-pie b { font-size: clamp(28px, 4.5vw, 60px); line-height: 1; }
.bs-pie b small { font-size: .45em; color: #9a9a9a; }
.bs-pie b.warn { color: #f4c56b; }
.bs-pie em { display: block; font-style: normal; font-weight: 700; margin-top: 4px; }
.bs-pie em.bad { color: #ff8a80; }
.bs-av { font-size: clamp(14px, 1.7vw, 20px); margin-top: 4px; }
.bs-av .mono { color: #9a9a9a; margin-right: 6px; }
@media (max-width: 700px) { .bs-pie { grid-template-columns: 1fr 1fr; } .bs-avs { grid-column: 1 / -1; } }

/* Segundo factor (#5) */
.mfacode { font-size: 22px; letter-spacing: .3em; text-align: center; }
.mfapasos { margin: 0 0 8px; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.mfaqr { display: flex; justify-content: center; background: #fff; border-radius: 12px; padding: 10px; width: 220px; margin: 0 auto; }
.mfaqr svg { width: 200px; height: 200px; display: block; }
.mfaclave { margin-top: 8px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; font-size: 15px; letter-spacing: .06em; word-break: break-all; }
.mfarec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 15px; }
html.oscuro .mfaqr { color-scheme: light; }

/* Plan B en papel (#19) */
.planb .pb-hoja { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; color: var(--ink); }
.pb-t { font-size: 22px; margin: 0 0 6px; }
.pb-intro { margin: 0 0 14px; font-size: 14px; }
.planb h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 16px 0 6px; }
.pb-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.pb-tab td, .pb-tab th { border-bottom: 1px solid var(--line); padding: 5px 6px; text-align: left; vertical-align: top; }
.pb-tab th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pb-ck { width: 26px; text-align: center !important; }
.pb-box { display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--ink); border-radius: 3px; }
.pb-hora { width: 64px; }
.pb-uso { font-size: 10px; font-weight: 700; border: 1px solid var(--ink); border-radius: 4px; padding: 0 4px; }
.pb-vacio { font-size: 13px; color: var(--muted); }
.pb-pie { margin-top: 14px; font-size: 10px; color: var(--muted); }
@media print {
  .tabbar, .fabcred, .offbar, .instcard { display: none !important; }
  .planb .pb-hoja { border: 0 !important; padding: 0 !important; margin: 0 !important; break-after: page; }
  .planb .pb-hoja:last-child { break-after: auto; }
  .pb-tab tr { break-inside: avoid; }
  .pb-lista thead { display: table-header-group; }
  html.oscuro body, html.oscuro .planb .pb-hoja { background: #fff !important; color: #000 !important; }
}
/* al imprimir, siempre en claro (también con el modo oscuro activado) */
@media print { html.oscuro { --paper: #fff; --card: #fff; --ink: #000; --ink-2: #333; --muted: #555; --line: #ccc; --line-2: #ddd; color-scheme: light; } }

/* Búsqueda global (#17) */
.hsearch { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 500 13px var(--f-sans); cursor: pointer; margin-right: 10px; }
.hsearch .ti { width: 16px; height: 16px; }
.hsearch .hs-k { font: 600 10.5px var(--f-sans); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--muted); }
.hsearch:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 640px) {
  .hsearch { width: 34px; padding: 0; justify-content: center; border: 1.5px solid var(--ink); color: var(--ink); margin-right: 0; flex: none; }
  .hsearch .hs-txt, .hsearch .hs-k { display: none; }
  .hsearch .ti { width: 17px; height: 17px; }
}
.bq-modal { width: min(640px, 100%); }
.bq-modal .mb { padding-top: 12px; }
.bq-in { font-size: 17px; padding: 12px 14px; }
.bq-res { margin-top: 12px; max-height: min(60vh, 520px); overflow-y: auto; }
.bq-g + .bq-g { margin-top: 12px; }
.bq-gt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 4px 4px; }
.bq-it { display: grid; gap: 1px; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 9px 10px; cursor: pointer; color: var(--ink); font: inherit; }
.bq-it span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bq-it:hover, .bq-it.on { background: var(--mut-bg); }
kbd { font: 600 11px var(--f-sans); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; }
/* Avisos en el móvil (#14) */
.pushops{border:0;margin:14px 0 0;padding:0}
.pushops legend{font-weight:600;font-size:13px;margin-bottom:4px;padding:0}
.pushop{display:flex;gap:10px;align-items:flex-start;padding:8px 0;cursor:pointer}
.pushop input{margin-top:3px;flex:none;width:18px;height:18px;accent-color:var(--ink,#111)}
.pushop>span{display:flex;flex-direction:column;gap:2px}
/* Marca blanca (#22): el color del promotor en botones principales y en la pestaña activa */
html[data-marca] .btn.pri { background: var(--acento); border-color: var(--acento); color: var(--acento-txt); }
html[data-marca] .btn.pri:hover { background: var(--acento); filter: brightness(.9); }
html[data-marca] .subnav a.on { background: var(--acento); border-color: var(--acento); color: var(--acento-txt); }
html[data-marca] .tabbar a.on { box-shadow: inset 0 -3px 0 var(--acento); }
html[data-marca] :focus-visible { outline-color: var(--acento); }
.tasio-logo.marca { object-fit: contain; max-width: 180px; }
html.oscuro .tasio-logo.marca { filter: none; background: #fff; padding: 3px 6px; border-radius: 6px; }
.login .side .tasio-logo.marca { background: #fff; padding: 6px 10px; border-radius: 8px; }
.marcaprev { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--paper); }
.marcaprev .tasio-logo { height: 34px; }
.marcasw { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.marcasw button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
