@font-face { font-family: "Source Sans 3"; src: url("/fonts/sans.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/serif.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --ink: #1d1d1b;
  --ink-2: #4a4f57;
  --ink-3: #6b707a;
  --tinta: #253775;
  --tinta-2: #193f7d;
  --tinta-3: #102950;
  --claro: #b6cce0;
  --hueso: #fbfaf7;
  --hueso-2: #f1eee5;
  --acento: #f29a62;
  --acento-ink: #9a4a14;
  --ok: #1f7a4d;
  --warn: #9a5b00;
  --bad: #a3322a;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.85);
  --glass-edge: rgba(37, 55, 117, 0.10);
  --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -1px 0 rgba(37,55,117,.05) inset, 0 18px 40px -18px rgba(16,41,80,.28), 0 2px 6px rgba(16,41,80,.06);
  --radius: 22px;
  --radius-s: 14px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--hueso);
  -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.5;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--tinta); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); color: var(--tinta); font-weight: 600; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid rgba(242,154,98,.65); outline-offset: 2px; border-radius: 10px; }

/* ---------------------------------------------------------------- fondo vivo */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 800px at 85% -10%, #dfe8f3 0%, transparent 60%), radial-gradient(900px 700px at -10% 110%, #efe6d6 0%, transparent 60%), var(--hueso); }
.bg i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 26s var(--ease) infinite alternate; }
.bg i:nth-child(1) { width: 520px; height: 520px; background: #c9d9ec; top: -140px; right: -80px; }
.bg i:nth-child(2) { width: 420px; height: 420px; background: #f6d2b8; bottom: -120px; left: -60px; animation-duration: 32s; opacity: .45; }
.bg i:nth-child(3) { width: 360px; height: 360px; background: #b6cce0; top: 40%; left: 45%; animation-duration: 38s; opacity: .35; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-60px, 40px, 0) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .bg i { animation: none; } * { transition: none !important; animation: none !important; } }

/* ---------------------------------------------------------------- vidrio */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  position: relative;
}
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(160deg, rgba(255,255,255,.55), rgba(255,255,255,0) 40%); }
.glass > * { position: relative; }

/* ---------------------------------------------------------------- acceso */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(440px, 100%); padding: 36px 32px 30px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-brand img { width: 46px; height: 46px; object-fit: contain; }
.auth-brand b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta); }
.auth-brand span { font-size: 13px; color: var(--ink-3); }
.auth h1 { font-size: 30px; line-height: 36px; }
.auth .lead { color: var(--ink-2); margin: 8px 0 22px; }
.auth form { display: grid; gap: 14px; }
.auth .links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; flex-wrap: wrap; }
.auth .links button { background: none; border: 0; padding: 0; color: var(--tinta); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.input, .select, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(37,55,117,.16);
  background: rgba(255,255,255,.8); transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus, .select:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 4px rgba(37,55,117,.12); background: #fff; }
textarea.input { min-height: 96px; resize: vertical; }
.hint { font-size: 13px; color: var(--ink-3); }
.code-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-row input { text-align: center; font-size: 24px; font-weight: 600; padding: 12px 0; font-family: var(--serif); color: var(--tinta); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 15px;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, opacity .2s; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(180deg, #2f4689, var(--tinta)); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 20px -8px rgba(37,55,117,.6); }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 26px -8px rgba(37,55,117,.7); }
.btn-ghost { background: rgba(255,255,255,.65); border-color: rgba(37,55,117,.14); color: var(--tinta); }
.btn-ghost:hover { background: #fff; }
.btn-accent { background: var(--acento); color: #2b1606; }
.btn-ok { background: #e3f2ea; color: var(--ok); border-color: rgba(31,122,77,.2); }
.btn-bad { background: #f8e6e4; color: var(--bad); border-color: rgba(163,50,42,.2); }
.btn-s { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn-full { width: 100%; }

.msg { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.msg-bad { background: #f8e6e4; color: var(--bad); }
.msg-ok { background: #e3f2ea; color: var(--ok); }
.msg-info { background: rgba(37,55,117,.07); color: var(--tinta); }

/* ---------------------------------------------------------------- app */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100dvh; gap: 0; }
.side { position: sticky; top: 0; height: 100dvh; padding: 18px 14px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.side-inner { flex: 1; display: flex; flex-direction: column; padding: 18px 12px; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand b { display: block; font-family: var(--serif); font-size: 19px; color: var(--tinta); line-height: 1.1; }
.brand span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.nav a svg { width: 20px; height: 20px; flex: 0 0 20px; }
.nav a:hover { background: rgba(255,255,255,.7); color: var(--tinta); }
.nav a.on { background: #fff; color: var(--tinta); box-shadow: 0 6px 16px -10px rgba(16,41,80,.5); }
.nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--acento); color: #2b1606; font-size: 12px; display: grid; place-items: center; }
.side-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(37,55,117,.08); }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--tinta-2), var(--tinta-3)); flex: 0 0 34px; position: relative; }
.avatar .dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #2fbf71; border: 2px solid #fff; }
.me b { display: block; font-size: 14px; line-height: 1.2; }
.me span { font-size: 12px; color: var(--ink-3); }

.main { padding: 22px 26px 80px 12px; min-width: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 10px 12px 10px 20px; position: sticky; top: 14px; z-index: 20; }
.crumbs { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; display: flex; gap: 8px; align-items: center; min-width: 0; }
.crumbs a { text-decoration: none; color: var(--ink-3); }
.crumbs b { color: var(--tinta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); padding: 0 6px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 0 rgba(47,191,113,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,191,113,.5); } 70% { box-shadow: 0 0 0 8px rgba(47,191,113,0); } 100% { box-shadow: 0 0 0 0 rgba(47,191,113,0); } }

.view { animation: enter .45s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.stagger > * { animation: enter .5s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .04s; } .stagger > *:nth-child(3) { animation-delay: .08s; } .stagger > *:nth-child(4) { animation-delay: .12s; }
.stagger > *:nth-child(5) { animation-delay: .16s; } .stagger > *:nth-child(6) { animation-delay: .2s; } .stagger > *:nth-child(n+7) { animation-delay: .24s; }

.hero { padding: 34px 36px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; overflow: hidden; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--acento-ink); }
.hero h1 { font-size: 42px; line-height: 1.08; margin-top: 8px; }
.hero p { color: var(--ink-2); margin-top: 12px; max-width: 640px; font-size: 17px; }
.hero .by { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.hero .by b { color: var(--tinta); font-family: var(--serif); font-size: 16px; }
.hero img.mascot { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(16,41,80,.18)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1deg); } }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.mt { margin-top: 16px; } .mt-l { margin-top: 26px; }

.stat { padding: 18px 20px; }
.stat b { display: block; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--tinta); }
.stat span { font-size: 14px; color: var(--ink-2); }
.stat.accent b { color: var(--acento-ink); }

.panel { padding: 22px 24px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-h h2 { font-size: 22px; }
.panel-h .sub { font-size: 14px; color: var(--ink-3); }

/* ruta */
.route { display: grid; gap: 14px; position: relative; }
.route::before { content: ""; position: absolute; left: 33px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--claro), rgba(182,204,224,.2)); border-radius: 2px; }
.stop { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px 18px 14px; text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s; cursor: pointer; }
.stop:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 24px 40px -24px rgba(16,41,80,.45); }
.num { width: 40px; height: 40px; margin-left: 13px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: #fff; background: linear-gradient(160deg, var(--tinta-2), var(--tinta-3)); box-shadow: 0 0 0 6px rgba(255,255,255,.8); font-size: 15px; }
.stop h3 { font-size: 20px; line-height: 1.2; }
.stop .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.stop .meta span { display: inline-flex; align-items: center; gap: 6px; }
.stop .meta svg { width: 16px; height: 16px; color: var(--ink-3); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: rgba(37,55,117,.08); color: var(--tinta); white-space: nowrap; }
.chip.pc { background: #fdeee2; color: var(--acento-ink); }
.chip.ok { background: #e3f2ea; color: var(--ok); }
.chip.warn { background: #fff3d6; color: var(--warn); }
.chip.bad { background: #f8e6e4; color: var(--bad); }
.chip.kind { background: rgba(255,255,255,.8); border: 1px solid rgba(37,55,117,.12); }

/* evento */
.ev-head { padding: 30px 32px; }
.ev-head h1 { font-size: 36px; line-height: 1.1; }
.ev-head .subtitle { color: var(--ink-2); font-size: 18px; margin-top: 8px; font-family: var(--serif); }
.ev-head .summary { margin-top: 14px; color: var(--ink); max-width: 820px; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; font-size: 15px; }
.kv dt { color: var(--ink-3); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.kv dd { margin: 0; }
.agenda { display: grid; gap: 0; }
.agenda div { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(37,55,117,.08); font-size: 15px; }
.agenda div:last-child { border-bottom: 0; }
.agenda b { color: var(--tinta); font-variant-numeric: tabular-nums; }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.list li::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--acento); }

.date-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(37,55,117,.08); }
.date-row:last-child { border-bottom: 0; }
.date-row .lbl { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.date-row .val { font-family: var(--serif); font-size: 18px; color: var(--tinta); }
.date-row .was { font-size: 13px; color: var(--ink-3); text-decoration: line-through; margin-left: 6px; }
.date-edit { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 8px; grid-column: 1 / -1; }

.doc { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(37,55,117,.08); }
.doc:last-child { border-bottom: 0; }
.doc-ic { width: 42px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #fff; background: linear-gradient(160deg, #3b64b3, var(--tinta)); box-shadow: 0 8px 16px -10px rgba(37,55,117,.8); }
.doc-ic.pdf { background: linear-gradient(160deg, #e2775a, #a3322a); }
.doc-ic.img { background: linear-gradient(160deg, #47a37a, #1f7a4d); }
.doc-ic.xls { background: linear-gradient(160deg, #3fa36b, #1d6b44); }
.doc b { display: block; font-size: 15px; line-height: 1.3; }
.doc small { color: var(--ink-3); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.doc-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 36px; height: 22px; border-radius: 999px; background: #d6dbe5; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--tinta); }
.switch input:checked::after { transform: translateX(14px); }

.note { padding: 14px 0; border-bottom: 1px solid rgba(37,55,117,.08); display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; }
.note:last-child { border-bottom: 0; }
.note .who { font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.note .who b { color: var(--ink); }
.note p { margin-top: 4px; white-space: pre-wrap; font-size: 15px; }
.note.done p { color: var(--ink-3); text-decoration: line-through; }
.note .acts { display: flex; gap: 6px; margin-top: 8px; }
.composer { display: grid; gap: 8px; margin-top: 12px; }

.drop { border: 2px dashed rgba(37,55,117,.22); border-radius: 16px; padding: 22px; text-align: center; color: var(--ink-2); transition: background .2s, border-color .2s; cursor: pointer; display: grid; gap: 6px; place-items: center; }
.drop:hover, .drop.over { background: rgba(255,255,255,.7); border-color: var(--tinta); }
.drop svg { width: 28px; height: 28px; color: var(--tinta); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px 10px 0; border-bottom: 1px solid rgba(37,55,117,.12); }
.table td { padding: 12px 10px 12px 0; border-bottom: 1px solid rgba(37,55,117,.07); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.scroll-x { overflow-x: auto; }

.feed { display: grid; gap: 0; }
.feed-item { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(37,55,117,.07); animation: enter .4s var(--ease) both; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .t { font-size: 14px; }
.feed-item .t b { font-weight: 700; }
.feed-item time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.feed-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(37,55,117,.08); color: var(--tinta); }
.feed-ic svg { width: 17px; height: 17px; }

.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 130px; padding-top: 8px; }
.bars div { background: linear-gradient(180deg, #4b6fb8, var(--tinta)); border-radius: 6px 6px 3px 3px; min-height: 3px; position: relative; transition: height .6s var(--ease); }
.bars div span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ink-3); }
.bars-x { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; font-size: 10px; color: var(--ink-3); text-align: center; margin-top: 6px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 200px; flex: 1; padding: 10px 14px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.6); border: 1px solid rgba(37,55,117,.1); gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.seg button.on { background: #fff; color: var(--tinta); box-shadow: 0 4px 10px -6px rgba(16,41,80,.4); }

.empty { text-align: center; padding: 28px 12px; color: var(--ink-3); font-size: 15px; }
.empty img { width: 80px; height: 80px; object-fit: contain; opacity: .9; margin-bottom: 8px; }

/* modal, toast, tutorial */
.scrim { position: fixed; inset: 0; background: rgba(16,41,80,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px 26px 22px; background: var(--glass-strong); animation: pop .35s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal h2 { font-size: 24px; margin-bottom: 6px; }
.modal .lead { color: var(--ink-2); margin-bottom: 16px; }
.modal-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: grid; gap: 8px; }
.toast { padding: 12px 16px; border-radius: 14px; background: rgba(16,41,80,.92); color: #fff; font-size: 14px; box-shadow: 0 16px 30px -12px rgba(16,41,80,.6); animation: pop .3s var(--ease) both; max-width: 340px; }
.toast.ok { background: rgba(31,122,77,.95); }
.toast.bad { background: rgba(163,50,42,.95); }

.tour { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.tour-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(16,41,80,.42); transition: all .45s var(--ease); pointer-events: none; }
.tour-card { position: fixed; width: min(380px, calc(100vw - 32px)); padding: 22px 22px 18px; pointer-events: auto; background: var(--glass-strong); transition: top .45s var(--ease), left .45s var(--ease); }
.tour-card .step { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--acento-ink); text-transform: uppercase; }
.tour-card h3 { font-size: 21px; margin: 6px 0 6px; }
.tour-card p { color: var(--ink-2); font-size: 15px; }
.tour-card .dots { display: flex; gap: 5px; }
.tour-card .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(37,55,117,.2); }
.tour-card .dots i.on { background: var(--tinta); width: 18px; border-radius: 3px; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 10px; }

.mobile-bar { display: none; }
.skeleton { height: 18px; border-radius: 8px; background: linear-gradient(90deg, rgba(37,55,117,.06), rgba(37,55,117,.12), rgba(37,55,117,.06)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.center-load { min-height: 100dvh; display: grid; place-items: center; }
.center-load img { width: 90px; animation: float 2.4s ease-in-out infinite; }

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-main { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0,1fr); }
  .side { display: none; }
  .main { padding: 12px 16px 110px; }
  .top { top: 10px; padding: 8px 10px 8px 14px; }
  .hero { grid-template-columns: minmax(0,1fr); padding: 26px 22px; }
  .hero h1 { font-size: 32px; }
  .hero img.mascot { width: 96px; height: 96px; position: absolute; right: 14px; top: 14px; opacity: .9; }
  .ev-head { padding: 22px 20px; }
  .ev-head h1 { font-size: 28px; }
  .panel { padding: 18px 16px; }
  .grid-2 { grid-template-columns: minmax(0,1fr); }
  .stop { grid-template-columns: 52px minmax(0,1fr); padding: 14px 14px 14px 6px; }
  .stop .chips { grid-column: 2; justify-content: flex-start; }
  .num { margin-left: 6px; width: 36px; height: 36px; font-size: 14px; }
  .route::before { left: 23px; }
  .kv { grid-template-columns: minmax(0,1fr); gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .agenda div { grid-template-columns: 96px minmax(0,1fr); }
  .doc { grid-template-columns: 38px minmax(0,1fr); }
  .doc-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .mobile-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; padding: 8px; justify-content: space-around; }
  .mobile-bar a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink-3); text-decoration: none; padding: 6px 8px; border-radius: 12px; min-width: 56px; }
  .mobile-bar a svg { width: 22px; height: 22px; }
  .mobile-bar a.on { color: var(--tinta); background: #fff; }
  .toasts { left: 12px; right: 12px; bottom: 92px; }
  .live span { display: none; }
}
