/* Tu Bondi — rediseño conceptual, demo */
:root {
  --ink: #212529;
  --ink-2: #3c3c43;
  --muted: #6e737b;
  --line: #e3e5ea;
  --bg: #f2f2f2;
  --surface: #ffffff;
  --blue: #1746a2;
  --blue-2: #5f9df7;
  --blue-soft: #e7effd;
  --cream: #fff7e0;
  --orange: #e8742a;
  --ok: #1f8a4c;
  --ok-soft: #e2f4ea;
  --warn: #9a6512;
  --warn-soft: #fbf0d9;
  --danger: #c0392b;
  --radius: 16px;
  --v-black: #08080a;
  --v-orange: #ff7028;
  font-family: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #e6e8ee; }
body { font-size: 14px; line-height: 1.45; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.demobar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 18px; background: var(--v-black); color: #fff; font-size: 13px; }
.demobar .tag { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.demobar .tag b { color: var(--v-orange); }
.demobar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--v-orange); }
.demobar .spacer { flex: 1; }
.dbtn { border: 1px solid #34343a; background: transparent; color: #fff; padding: 6px 12px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.dbtn:hover { border-color: var(--v-orange); color: var(--v-orange); }

.stage { display: flex; gap: 32px; justify-content: center; align-items: flex-start; padding: 28px 16px 60px; }
.phone { width: 390px; max-width: 100%; height: 820px; background: var(--bg); border-radius: 40px; border: 10px solid #1b1b1f; box-shadow: 0 30px 60px rgba(0,0,0,.18); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.screen { flex: 1; overflow-y: auto; }
.top { background: var(--blue); color: #fff; padding: 16px 18px 18px; }
.top.light { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.top h2 { font-size: 20px; font-weight: 700; }
.top .sub { font-size: 13px; opacity: .85; margin-top: 2px; }
.top .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.back { border: 0; background: none; color: inherit; font-weight: 600; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.body { padding: 14px; }
.tabbar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); }
.tabbar button { border: 0; background: none; padding: 10px 0 12px; font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tabbar button svg { width: 21px; height: 21px; }
.tabbar button[aria-current="true"] { color: var(--blue); }
.tabbar .count { background: var(--orange); color: #fff; border-radius: 999px; font-size: 10px; padding: 0 5px; margin-left: 2px; }

.card { background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card + .card { margin-top: 12px; }
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.section-t { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 18px 2px 8px; }
.section-t:first-child { margin-top: 2px; }
.search-btn { display: flex; align-items: center; gap: 10px; width: 100%; background: #fff; color: var(--muted); border: 0; border-radius: 14px; padding: 13px 14px; cursor: pointer; margin-top: 14px; font-weight: 500; text-align: left; }
.search-btn svg { width: 18px; height: 18px; color: var(--blue); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; padding: 10px 14px; border-radius: 12px; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 11px; font-size: 13px; }
.btn.link { border: 0; background: none; color: var(--blue); padding: 4px 0; }
.badge-l { display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 8px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 14px; flex: none; }
.line-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.line-row:last-child { border-bottom: 0; }
.line-row .grow { flex: 1; min-width: 0; }
.line-row .t { font-weight: 600; font-size: 14px; }
.line-row .s { font-size: 12px; color: var(--muted); }
.eta { font-weight: 700; color: var(--blue); white-space: nowrap; font-variant-numeric: tabular-nums; }
.eta.now { color: var(--ok); }
.fav { border: 0; background: none; cursor: pointer; padding: 4px; display: grid; place-items: center; }
.fav svg { width: 20px; height: 20px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; padding: 8px 12px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.field input, .field select { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; width: 100%; }
.hint { font-size: 12px; color: var(--muted); }
.notice { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.notice:last-child { border-bottom: 0; }
.notice .txt { font-size: 13px; }
.alert { padding: 11px 13px; border-radius: 12px; font-size: 13px; margin-bottom: 12px; }
.alert.ok { background: var(--ok-soft); color: #165c34; }
.alert.info { background: var(--blue-soft); color: #11357a; }
.alert.warn { background: var(--warn-soft); color: #6f4a0d; }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; font-size: 13px; }

.map { background: #e9eef5; border-radius: 16px; overflow: hidden; position: relative; }
.map svg { display: block; width: 100%; height: auto; }
.live { position: absolute; top: 10px; left: 10px; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; display: flex; gap: 6px; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #e0362b; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.stops { position: relative; }
.stop { display: flex; gap: 12px; align-items: center; padding: 10px 0; position: relative; }
.stop .dotc { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--blue); background: #fff; flex: none; z-index: 1; }
.stops::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.stop .grow { flex: 1; min-width: 0; }
.stop .t { font-size: 13.5px; font-weight: 600; }
.acc { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); margin-left: 6px; }
.acc.no { background: #eee; color: var(--muted); }

.option { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: #fff; cursor: pointer; width: 100%; text-align: left; }
.option .steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }
.option .total { font-size: 20px; font-weight: 800; white-space: nowrap; }
.walk { display: inline-flex; align-items: center; gap: 3px; background: var(--bg); padding: 3px 8px; border-radius: 6px; }
.tl { display: grid; gap: 0; }
.tl .st { display: flex; gap: 12px; padding: 10px 0; }
.tl .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; flex: none; font-size: 12px; }

.tcard { border-radius: 20px; padding: 20px; color: #fff; background: linear-gradient(135deg, var(--blue), #2d63cf 60%, var(--blue-2)); position: relative; overflow: hidden; }
.tcard .s { font-size: 13px; opacity: .85; }
.tcard .amt { font-size: 34px; font-weight: 800; margin-top: 4px; }
.tcard .num { font-size: 12px; opacity: .8; margin-top: 18px; letter-spacing: .12em; }
.tcard::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.1); }
.mov { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.mov:last-child { border-bottom: 0; }
.mov .pos { color: var(--ok); font-weight: 700; }
.switch { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #cfd3da; border: 0; cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch[aria-pressed="true"] { background: var(--blue); }
.switch[aria-pressed="true"]::after { left: 21px; }

.onb { flex: 1; display: flex; flex-direction: column; background: var(--blue); color: #fff; padding: 22px; }
.onb .skip { align-self: flex-end; border: 0; background: none; color: #fff; opacity: .8; cursor: pointer; font-weight: 600; }
.onb .art { flex: 1; display: grid; place-items: center; }
.onb .art svg { width: 82%; }
.onb h2 { font-size: 24px; font-weight: 800; line-height: 1.2; }
.onb p { opacity: .85; margin-top: 8px; }
.onb .dots { display: flex; gap: 6px; margin: 18px 0; }
.onb .dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.4); }
.onb .dots span.on { width: 24px; background: #fff; }
.onb .btn { background: #fff; color: var(--blue); border: 0; }

.side-notes { width: 330px; position: sticky; top: 76px; }
.side-notes .card { box-shadow: none; border: 1px solid var(--line); }
.side-notes h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.side-notes ol { margin: 0; padding-left: 18px; }
.side-notes li { margin-bottom: 8px; }

.modal-bg { position: absolute; inset: 0; background: rgba(15, 20, 30, .45); display: flex; align-items: flex-end; z-index: 50; }
.modal { background: #fff; width: 100%; border-radius: 22px 22px 0 0; padding: 18px 18px 22px; max-height: 85%; overflow: auto; animation: sheet .2s ease-out; }
@keyframes sheet { from { transform: translateY(30px); opacity: .5; } }
.modal h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.modal .foot { display: flex; gap: 8px; margin-top: 14px; }
.modal .foot .btn { flex: 1; }
.toast { position: absolute; left: 12px; right: 12px; top: 12px; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 14px; font-weight: 600; z-index: 70; animation: drop .25s ease-out; display: flex; gap: 10px; align-items: center; font-size: 13px; }
.toast b { color: #ffd36b; }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } }

@media (max-width: 1100px) { .side-notes { display: none; } }
@media (max-width: 520px) {
  .stage { padding: 0; }
  .phone { width: 100%; height: calc(100vh - 46px); border: 0; border-radius: 0; box-shadow: none; }
  .demobar { gap: 8px; padding: 8px 10px; }
  .demobar .hide-sm { display: none; }
}

.onb .art img.onb-foto { width: 100%; max-height: 100%; aspect-ratio: 10 / 9; object-fit: cover; border-radius: 22px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.onb .art { min-height: 0; padding: 14px 0 6px; }
