/* GoMigo — Libro de Marca (docs/brand/GoMigo_Libro_de_Marca.pdf): Manrope for titles, Inter for UI. */
@font-face { font-family: "Manrope"; src: url("./fonts/manrope/manrope-latin-700-normal.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("./fonts/manrope/manrope-latin-ext-700-normal.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; src: url("./fonts/manrope/manrope-latin-800-normal.woff2") format("woff2"); font-style: normal; font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("./fonts/manrope/manrope-latin-ext-800-normal.woff2") format("woff2"); font-style: normal; font-weight: 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("./fonts/inter/inter-latin-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("./fonts/inter/inter-latin-ext-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("./fonts/inter/inter-latin-500-normal.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("./fonts/inter/inter-latin-ext-500-normal.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("./fonts/inter/inter-latin-600-normal.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("./fonts/inter/inter-latin-ext-600-normal.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("./fonts/inter/inter-latin-700-normal.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("./fonts/inter/inter-latin-ext-700-normal.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Brand: Go Blue #1168E8, Route Teal #14D1C0, Deep Navy #0D1F56, Cloud #F4F8FC, Mist #DCE9FF.
   Text variants are darkened only as far as WCAG AA needs (tests/test_contrast.py). */
:root {
  color-scheme: light;
  --bg: #f4f8fc;
  --surface: #ffffff;
  --ink: #0d1f56;
  --muted: #4a5472;
  --line: #e1e9f4;
  --line-strong: #c5d3e8;
  --blue: #1168e8;
  --blue-ink: #0f58c7;
  --mist: #dce9ff;
  --mistbg: #e8f0fd;
  --teal: #14d1c0;
  --teal-ink: #0a6e66;
  --mint: #e8f8f6;
  --green: #13753f;
  --green-bright: #25c46a;
  --greenbg: #e6f7ee;
  --amber: #8a5a00;
  --amber-bright: #f3b53f;
  --amberbg: #fdf3dc;
  --red: #c53a3a;
  --red-bright: #ec5b5b;
  --redbg: #fdecec;
  --purple: #5b3fa8;
  --purplebg: #f0ecfa;
  --shadow: 0 18px 48px rgb(13 31 86 / 18%);
  --card-shadow: 0 1px 2px rgb(13 31 86 / 5%), 0 8px 24px rgb(13 31 86 / 6%);
  --space: 16px;
  --radius: 20px;
  --display: "Manrope", "Inter", "Arial", system-ui, sans-serif;
  --reading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  background: #e7eef8;
  color: var(--ink);
  font-family: var(--reading);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.toast[hidden], .bottom[hidden], .party-summary[hidden] { display: none !important; }

.app {
  width: min(430px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  background: var(--bg);
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

/* Header: isotipo + wordmark, park context, live signal. */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
  background: rgb(244 248 252 / 96%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
}
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row > * { min-width: 0; }
.header-side { display: grid; justify-items: end; flex: 0 0 auto; gap: 4px; }
.party-summary { color: var(--muted); font-size: .7rem; font-weight: 600; white-space: nowrap; }
.brand { display: flex; align-items: center; min-height: 30px; font: 800 1.3125rem/1 var(--display); letter-spacing: -.035em; }
.logo { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.logo svg, .logo img { flex: 0 0 auto; width: 30px; height: 30px; }
.wm-go { color: var(--blue); }
.wm-migo { color: var(--teal); }
.context, .muted { color: var(--muted); font-size: .8125rem; }
.context { margin-top: 2px; overflow-wrap: anywhere; }
.park-trigger {
  min-height: 44px;
  padding: 2px 8px 2px 0;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}
.park-trigger .context { display: block; }
.live {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--green);
  background: var(--greenbg);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); }
.live.weak { color: var(--amber); background: var(--amberbg); }
.live.weak::before { background: var(--amber-bright); }
.live.idle { color: var(--muted); background: var(--mistbg); }
.live.idle::before { background: var(--line-strong); }

/* Screens and cards: rounded, generous space, clear hierarchy. */
.screen { padding: 18px 16px 32px; }
.hero, .card, .editorial, .gm-card, .mp, .plan-card, .prose {
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.hero { padding: 20px 20px 16px; }
.card:first-child { padding-top: 20px; }
.card > .item:first-child, .card > .list-row:first-child, .card > .setting:first-child { padding-top: 4px; }
.card > .item:last-child, .card > .list-row:last-child, .card > .setting:last-child { padding-bottom: 4px; }
.editorial:last-child, .dashboard-section:last-child { border-bottom: 0; }
.dashboard-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.kicker, .label {
  display: block;
  color: var(--blue-ink);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}
.ride {
  margin: 10px 0 6px;
  color: var(--ink);
  font: 800 clamp(1.875rem, 8.4vw, 2.5rem)/1.06 var(--display);
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.status, .badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.status { margin-top: 6px; }
.hero .status { display: inline-flex; margin-top: 0; padding: 5px 10px; font-size: .72rem; letter-spacing: .07em; }
.go, .badge.good { color: var(--green); background: var(--greenbg); }
.wait, .badge.wait { color: var(--amber); background: var(--amberbg); }
.later { color: var(--blue-ink); background: var(--mistbg); }
.badge.avoid, .status.avoid { color: var(--red); background: var(--redbg); }
.badge { color: var(--muted); background: #eef2f8; }
.bigwait {
  margin: 14px 0 2px;
  color: var(--ink);
  font: 800 clamp(4rem, 19vw, 5.75rem)/.9 var(--display);
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.bigwait span {
  display: inline-block;
  margin-left: 4px;
  color: var(--muted);
  font: 600 1.0625rem/1.2 var(--reading);
  letter-spacing: 0;
  vertical-align: baseline;
}
.subline { margin-top: 10px; color: var(--muted); font-size: .9375rem; }
.compare { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--mint); }
.compare strong { display: block; color: var(--teal-ink); font: 800 1.125rem/1.25 var(--display); letter-spacing: -.02em; }
.compare span { display: block; margin-top: 3px; color: var(--muted); font-size: .8125rem; }
.reason { margin: 14px 0 0; font-size: .9375rem; line-height: 1.5; }
.meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; color: var(--muted); font-size: .75rem; }
.meta b { color: var(--muted); font-weight: 600; }

.primary, .secondary {
  min-height: 50px;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  line-height: 1.3;
}
.primary {
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 6px 16px rgb(17 104 232 / 24%);
}
.primary.wait-action { border-color: var(--amber); background: var(--amber); color: #fff; box-shadow: none; }
.primary.avoid-action { border-color: var(--red); background: var(--red); color: #fff; box-shadow: none; }
.secondary { border: 1.5px solid var(--mist); background: var(--surface); color: var(--blue-ink); font-size: .875rem; }
.primary:active, .secondary:active, .alt:active, .list-row:active { filter: brightness(.94); }
.hero-actions { display: flex; align-items: stretch; gap: 10px; margin-top: 18px; }
.hero-actions .primary { flex: 1 1 auto; min-width: 0; margin: 0; }
.hero-actions .secondary { flex: 0 0 auto; min-width: 84px; }
.text-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  margin-top: 6px;
  padding: 8px 3px;
  border: 0;
  background: transparent;
  color: var(--blue-ink);
  font-size: .9375rem;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgb(15 88 199 / 35%);
  text-underline-offset: 4px;
}
.hero > .text-action:last-child { display: flex; margin-inline: auto; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.actions button {
  min-height: 44px;
  padding: 8px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}
.actions .avoid { color: var(--red); }

.heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 24px 4px 8px; }
.heading h2, .section-title {
  margin: 0;
  color: var(--ink);
  font: 800 .9375rem/1.3 var(--display);
  letter-spacing: -.01em;
}
.heading span { color: var(--muted); font-size: .75rem; }
.alts { overflow: hidden; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--card-shadow); }
.alts .alt:last-child { border-bottom: 0; }
.alt, .list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 70px;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.alt > *, .list-row > * { min-width: 0; }
.alt strong, .list-row strong { font: 700 1rem/1.25 var(--display); letter-spacing: -.01em; }
.alt small, .list-row small { display: block; margin-top: 4px; color: var(--muted); font-size: .8125rem; line-height: 1.35; }
.list-row .badge, .alt .badge { justify-self: end; }
.item, .setting, .sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.item:last-child, .setting:last-child, .sheet-row:last-child { border-bottom: 0; }
.item > *, .setting > *, .sheet-row > * { min-width: 0; }
.item strong, .setting strong, .sheet-row strong { font-size: .9375rem; line-height: 1.35; }
.setting, button.sheet-row {
  width: 100%;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.setting .setting-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; margin-right: 12px; border-radius: 12px; background: var(--mistbg); color: var(--blue-ink); font-size: 1rem; }
.setting > span:first-child { display: flex; align-items: center; }
.setting .chev { color: var(--muted); font-size: 1.25rem; }
button.sheet-row { min-height: 64px; }
.sheet-row.avoid { color: var(--red); }
.sheet-row .muted, .sheet-row small { display: block; margin-top: 2px; color: var(--muted); font-size: .8125rem; }
.stat { font: 800 clamp(2.5rem, 11vw, 4rem)/1 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font: 600 1rem/1.3 var(--reading); letter-spacing: 0; }
.progress { height: 8px; margin: 14px 0; overflow: hidden; border-radius: 999px; background: var(--mistbg); }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.wait-values { display: grid; gap: 0; margin: 15px 0; border-top: 1px solid var(--line); }
.wait-values > * { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }

.banner, .notice, .offline, .ll {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--mist);
  border-radius: 16px;
  background: var(--mistbg);
  font-size: .875rem;
}
.banner strong, .notice strong, .offline strong, .ll strong { display: block; }
.banner p, .notice p, .ll p { margin: 4px 0 8px; color: var(--muted); }
.banner button { min-height: 44px; margin: 4px 6px 0 0; padding: 8px 12px; border: 1.5px solid var(--blue); border-radius: 12px; background: var(--surface); color: var(--blue-ink); font-weight: 700; }
.offline, .notice.weak, .notice.stale { border-color: #f3dcae; background: var(--amberbg); color: var(--ink); }
.ll { margin-top: 14px; border-color: #dcd3f3; background: var(--purplebg); }
.pill { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #e4dcf6; color: var(--purple); font-size: .75rem; font-weight: 700; }
.hero.loading::before {
  content: "";
  display: block;
  height: 300px;
  border-radius: 14px;
  background: linear-gradient(90deg, #e8eff9, #f6f9fd, #e8eff9);
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

/* Bottom navigation (four simple icons). The active tab keeps a transparent button. */
.bottom {
  position: fixed;
  z-index: 6;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(430px, 100%);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  box-shadow: 0 -6px 24px rgb(13 31 86 / 7%);
}
.nav {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 58px;
  padding: 6px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.3;
}
.nav.on { color: var(--blue-ink); font-weight: 700; }
.nav-icon { display: grid; place-items: center; width: 46px; height: 28px; border-radius: 999px; font-size: 1rem; line-height: 1; }
.nav-icon svg { width: 22px; height: 22px; }
.nav.on .nav-icon { background: var(--mistbg); }
.toast {
  position: fixed;
  z-index: 30;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, calc(100% - 32px));
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: .875rem;
  box-shadow: var(--shadow);
}

.sheet-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgb(13 31 86 / 50%);
}
.sheet {
  position: fixed;
  z-index: 21;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  max-height: calc(100vh - 24px - env(safe-area-inset-top));
  max-height: calc(100dvh - 24px - env(safe-area-inset-top));
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.sheet-backdrop .sheet { z-index: 1; }
.sheet-head {
  flex: 0 0 auto;
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h1, .sheet-head h2 { margin: 4px 0; font: 800 1.5rem/1.12 var(--display); letter-spacing: -.035em; }
.sheet-head button, .full-view > button, .full-view header button { min-width: 44px; min-height: 44px; }
.sheet-head .secondary { min-height: 44px; padding: 8px 14px; }
.sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 20px 24px;
  -webkit-overflow-scrolling: touch;
}
.sheet-body > :first-child { margin-top: 0; }
.sheet-body .ride { font-size: clamp(1.625rem, 7vw, 2.125rem); }
.sheet-actions {
  flex: 0 0 auto;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.sheet-actions .primary { margin-top: 0; }
.sheet-actions .secondary { width: 100%; margin-top: 8px; }
.context-sheet .sheet-body { padding-bottom: 28px; }

.full-view {
  position: fixed;
  z-index: 21;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, 100%);
  height: 100vh;
  height: 100dvh;
  max-height: none;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  border-radius: 0;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}
.full-view .sheet-head { background: var(--surface); }
.full-view .screen { padding-inline: 0; }
.full-view .sheet { z-index: 21; }
.full-view .sheet-backdrop { z-index: 20; }
.full-view h1 { font: 800 clamp(1.75rem, 8vw, 2.5rem)/1.08 var(--display); letter-spacing: -.04em; }
.full-view .list-row { padding-inline: 14px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px; background: var(--surface); }
.search { display: block; width: 100%; min-height: 50px; margin: 14px 0; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--ink); }
.search::placeholder { color: var(--muted); opacity: 1; }
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 12px -20px 8px; padding: 2px 20px 10px; scrollbar-width: thin; }
.filter { flex: 0 0 auto; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .875rem; font-weight: 600; }
.filter.on, .filter.active, .filter[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.detail-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail-section:last-child { border-bottom: 0; }
.detail-section h2, .dashboard-section h2 { margin: 0 0 12px; font: 800 .9375rem/1.3 var(--display); }

.field { display: grid; gap: 6px; margin: 14px 0; font-size: .875rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--ink); }
.choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 9px 0; font-size: .9375rem; }
.choice input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: var(--blue); }
.choicegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.stack { display: grid; gap: 10px; }
.stack > .primary { margin-top: 0; }
.small { color: var(--muted); font-size: .8125rem; line-height: 1.55; }
.step { font-size: .9375rem; line-height: 1.5; }
.section-title { margin: 20px 0 10px; }
.disclaimer { margin: 22px 4px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.divider { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
details.divider > summary { list-style: none; }
details.divider > summary::-webkit-details-marker { display: none; }
details.divider > summary::after { content: "⌄"; margin-left: auto; color: var(--muted); font-size: 1.25rem; }
details[open].divider > summary::after { content: "⌃"; }

/* Onboarding splash (brand "Aplicaciones de marca"). */
.splash { padding: 18px 0 6px; text-align: left; }
.splash .logo { gap: 6px; font: 800 2.25rem/1 var(--display); letter-spacing: -.04em; }
.splash .logo svg, .splash .logo img { width: 54px; height: 54px; }
.tagline { margin: 18px 0 6px; font: 800 1.75rem/1.15 var(--display); letter-spacing: -.035em; }
.tagline span { display: block; }
.tagline .t1 { color: var(--blue); }
.tagline .t2 { color: var(--teal-ink); }

/* Chips (brand "Chips de utilidad"). */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 11px; border: 0; border-radius: 999px; background: var(--mistbg); color: var(--blue-ink); font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.chip.teal { background: var(--mint); color: var(--teal-ink); }
.chip.amber { background: var(--amberbg); color: var(--amber); }
.chip.green { background: var(--greenbg); color: var(--green); }
.chip.red { background: var(--redbg); color: var(--red); }
button.chip { min-height: 36px; }
.loc-chip { max-width: 100%; margin: 0 0 12px; overflow-wrap: anywhere; text-align: left; }
.loc-chip svg { flex: 0 0 auto; width: 16px; height: 16px; }

/* GoMigo recommendation (NOW + language model) and its note inside the hero. */
.gm-card { border-color: #bfe9e3; background: linear-gradient(180deg, var(--mint), var(--surface) 70%); }
.gm-card .ride { font-size: clamp(1.625rem, 7.4vw, 2.125rem); }
.gm-kicker { display: flex; align-items: center; gap: 6px; color: var(--teal-ink); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gm-kicker svg { width: 18px; height: 18px; }
.ai-note { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--mint); }
.ai-note .gm-kicker { margin-bottom: 4px; }
.ai-note strong { display: block; font: 800 1.0625rem/1.3 var(--display); letter-spacing: -.01em; }
.ai-note p { margin: 4px 0 0; font-size: .9375rem; }
.ai-note .caution, .gm-card .caution { color: var(--amber); font-size: .8125rem; }
.gm-lines { display: grid; gap: 4px; margin-top: 10px; color: var(--muted); font-size: .875rem; }
.gm-lines .good { color: var(--green); font-weight: 600; }
.gm-lines .bad { color: var(--amber); font-weight: 600; }
.gm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gm-actions .primary, .gm-actions .secondary { flex: 1 1 140px; margin-top: 0; }

/* Plan del día: progress, prose and stops. */
.plan-card .ride { font-size: clamp(1.625rem, 7.4vw, 2.125rem); }
.plan-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 4px; }
.plan-stats > div { padding: 10px; border-radius: 14px; background: var(--bg); }
.plan-stats strong { display: block; font: 800 1.25rem/1.15 var(--display); font-variant-numeric: tabular-nums; }
.plan-stats span { display: block; color: var(--muted); font-size: .72rem; line-height: 1.3; }
.prose { border-color: #bfe9e3; background: var(--mint); }
.prose h3 { margin: 6px 0 6px; font: 800 1.1875rem/1.25 var(--display); letter-spacing: -.02em; }
.prose p { margin: 6px 0; }
.prose ul { margin: 8px 0 0; padding-left: 20px; }
.prose li { margin: 4px 0; }
.stops { margin: 0; padding: 0; list-style: none; }
.stop { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 12px 0 12px; border-bottom: 1px solid var(--line); }
.stop:last-child { border-bottom: 0; }
.stop-time { color: var(--blue-ink); font: 800 .9375rem/1.3 var(--display); font-variant-numeric: tabular-nums; }
.stop strong { display: block; font: 700 1rem/1.3 var(--display); }
.stop small { display: block; margin-top: 3px; color: var(--muted); font-size: .8125rem; }
.stop .chips { margin-top: 6px; }
.stop.done strong { color: var(--muted); text-decoration: line-through; }
.stop.next { margin-inline: -10px; padding-inline: 10px; border-radius: 14px; background: var(--mistbg); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 6px 0 2px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; min-height: 46px; padding: 6px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: .8125rem; font-weight: 600; text-align: center; }
.seg input:checked + span { border-color: var(--blue); background: var(--mistbg); color: var(--blue-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Lightning Lane Multi Pass. */
.mp { border-color: #dcd3f3; }
.mp .kicker { color: var(--purple); }
.mp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mp-row:last-child { border-bottom: 0; }
.mp-row strong { display: block; font: 700 1rem/1.3 var(--display); }
.mp-row small { display: block; margin-top: 3px; color: var(--muted); font-size: .8125rem; }
.mp-row .secondary { min-height: 44px; padding: 8px 12px; }
.mp-note { margin: 10px 0 0; color: var(--muted); font-size: .8125rem; }
.mp-h { margin: 14px 0 0; color: var(--ink); font: 800 .9375rem/1.3 var(--display); }
.mp-row .chips { margin-top: 6px; }

/* Small GoMigo pieces: AI "thinking" line, plan progress, location chip text, group editor. */
.ai-busy { display: flex; align-items: center; gap: 8px; color: var(--teal-ink); font-size: .875rem; font-weight: 600; }
.ai-busy svg { flex: 0 0 auto; width: 16px; height: 16px; animation: gm-pulse 1.4s ease-in-out infinite; }
@keyframes gm-pulse { 50% { opacity: .35; } }
.gm-headline { margin: 6px 0 0; font: 800 1.0625rem/1.3 var(--display); letter-spacing: -.01em; }
.chip-link { margin-left: 2px; color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.plan-mini-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.plan-mini-row strong { font: 800 1.125rem/1.25 var(--display); font-variant-numeric: tabular-nums; }
.plan-mini p { margin: 8px 0 0; }
.saved-line { margin: 12px 0 4px; padding: 10px 12px; border-radius: 14px; background: var(--greenbg); color: var(--green); font-size: .9375rem; }
.follow-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0; }
.caution-box { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--amberbg); color: var(--ink); }
.caution-box p { margin: 4px 0 0; font-size: .875rem; }
.member { padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.member .text-action { margin-top: 2px; }
.setting .setting-icon svg { width: 20px; height: 20px; }

@media (max-width: 375px) {
  .top { padding-inline: 14px; }
  .party-summary { display: none; }
  .screen { padding-inline: 12px; }
  .hero, .card, .editorial, .gm-card, .mp, .plan-card, .prose { padding-inline: 16px; }
  .sheet-head, .sheet-body, .sheet-actions { padding-inline: 16px; }
  .full-view { padding-inline: 0; }
  .filters { margin-inline: -16px; padding-inline: 16px; }
  .live { font-size: .6875rem; }
  .nav-icon { width: 40px; }
}
@media (max-width: 350px) {
  .choicegrid { grid-template-columns: 1fr; }
  .ride { font-size: 1.875rem; }
  .bigwait { font-size: 4rem; }
  .plan-stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero.loading::before, .ai-busy svg { animation: none; }
}

/* Expected waits today: discreet band, strong P50, gaps on null. */
.curve-box h2 { margin: 0 0 10px; font: 800 .9375rem/1.3 var(--display); }
.curve { display: block; width: 100%; max-width: 100%; height: auto; overflow: visible; }
.curve .band { fill: rgba(17, 104, 232, .14); stroke: none; }
.curve .p50 { fill: none; stroke: #1168e8; stroke-width: 2.5; stroke-linejoin: round; }
.curve .now { stroke: #0d1f56; stroke-width: 1.2; stroke-dasharray: 3 3; }
.curve .better { stroke: #0a6e66; stroke-width: 1.8; stroke-dasharray: 5 3; }
.curve .live-dot { fill: #c53a3a; stroke: #fff; stroke-width: 2; }
.curve text { font-size: 10px; fill: #4a5472; }
.curve .now-label { font-weight: 700; fill: #0d1f56; }
.curve .better-label { font-weight: 700; fill: #0a6e66; }
.legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.lg-line { display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: #1168e8; }
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c53a3a; }
.curve-list summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.curve-list ul { margin: 4px 0 8px; padding-left: 18px; font-variant-numeric: tabular-nums; }
.curve-loading { min-height: 60px; color: var(--muted); }
button.item { width: 100%; text-align: left; background: none; border: 0; min-height: 44px; font: inherit; color: inherit; }

/* NOW → Full List in one tap; «% vs habitual» badges (comparison, never a saving). */
.all-rides-now { display: flex; width: 100%; min-height: 50px; margin-top: 14px; align-items: center; justify-content: center; gap: 4px; text-align: center; overflow-wrap: anywhere; }
.vs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; }
.vs-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .8125rem; line-height: 1.3; color: var(--muted); background: #eef2f8; }
.vs-badge.good { color: var(--green); background: var(--greenbg); }
.vs-badge.wait { color: var(--amber); background: var(--amberbg); }
.vs-badge.compact { flex: none; margin-right: 6px; padding: 2px 8px; font-size: .75rem; }
.vs-base { color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
