:root {
  --bg: #f5f1e8; --surface: #fffdf8; --surface-2: #efe9db; --ink: #1d2733; --muted: #6a7480; --line: #e2dac9;
  --accent: #c8402a; --accent-ink: #fff; --ok: #2b7a5b; --ok-bg: #e0f0e8; --warn: #9a5b00; --warn-bg: #fbefd5; --danger: #b3261e; --danger-bg: #fbe4e1; --info-bg: #e6eef5;
  --radius: 16px; --shadow: 0 1px 2px rgba(29, 39, 51, .06), 0 6px 18px rgba(29, 39, 51, .06);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12171d; --surface: #1a222b; --surface-2: #232d38; --ink: #eef1f4; --muted: #98a2ad; --line: #2b3541;
    --accent: #ee6a50; --accent-ink: #1a0d09; --ok: #62c79b; --ok-bg: #173126; --warn: #f0b95a; --warn-bg: #352a12; --danger: #ff8a80; --danger-bg: #3a1c1a; --info-bg: #1b2a38;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
body.noscroll { overflow: hidden; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
h2 { font-size: 1.05rem; } h3 { font-size: 1rem; margin-bottom: 6px; }
p { margin: 0 0 10px; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.boot { padding: 40px 20px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); } .mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .02em; }
.hint { color: var(--muted); font-size: .85rem; display: block; margin-top: 4px; }
.error { color: var(--danger); font-size: .9rem; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }

/* Estructura */
.page { max-width: 720px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.page main { padding: 12px 16px calc(32px + var(--safe-b)); flex: 1; }
.page.has-tabs main { padding-bottom: calc(96px + var(--safe-b)); }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 10px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-title { flex: 1; min-width: 0; }
.top-title h1 { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-title small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; gap: 4px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: .85rem; letter-spacing: .04em; flex: none; }
.brand-mark.big { width: 64px; height: 64px; font-size: 1.2rem; border-radius: 18px; margin: 0 auto 12px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; font-size: 1.25rem; display: grid; place-items: center; text-decoration: none; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-2); } .icon-btn.on { color: var(--accent); } .icon-btn.mini { width: 32px; height: 32px; font-size: .9rem; color: var(--muted); }

/* Botones y chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; cursor: pointer; font-weight: 600; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .btn.primary:hover { filter: brightness(1.06); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost.danger { color: var(--danger); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .9rem; border-radius: 10px; }
.btn.block { display: flex; width: 100%; margin-top: 12px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-reset { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .chips.scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.falta { background: var(--warn-bg); color: var(--warn); } .chip.on { background: var(--ink); color: var(--bg); }
.row { display: flex; gap: 10px; align-items: center; margin-top: 10px; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; } .row.wrap { flex-wrap: wrap; }

/* Tarjetas */
.cards { display: grid; gap: 12px; margin-bottom: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 12px; display: block; width: 100%; text-align: left; text-decoration: none; }
.cards .card { margin-bottom: 0; }
button.card { cursor: pointer; }
.trip-card h3 { font-size: 1.2rem; margin: 6px 0 2px; }
.trip-route { display: flex; align-items: center; gap: 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.trip-route i { font-style: normal; color: var(--accent); }
.sec { margin: 22px 0 8px; } .sec > h2 { margin-bottom: 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hero { background: var(--ink); color: var(--bg); border-radius: 20px; padding: 18px 18px 20px; margin-bottom: 14px; }
.hero small { opacity: .7; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; display: block; }
.hero strong { display: block; font-size: 2rem; line-height: 1.1; margin: 4px 0; }
.hero span { opacity: .8; font-size: .92rem; }
.hero.money { background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--ink) 80%, var(--accent))); }
.big { font-size: 1.6rem; font-weight: 700; }
.empty { text-align: center; padding: 36px 12px; color: var(--muted); } .empty h2 { color: var(--ink); font-size: 1.2rem; margin: 6px 0; } .empty-art { font-size: 3rem; }
.banner { border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: .92rem; background: var(--info-bg); } .banner p { margin: 0; }
.banner.warn { background: var(--warn-bg); color: var(--warn); } .banner.danger { background: var(--danger-bg); color: var(--danger); }
.banner .row { margin-top: 8px; }
.row-link { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; text-decoration: none; width: 100%; text-align: left; }
.row-link .bar { grid-column: 1 / -1; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.big-bar { height: 8px; margin-top: 12px; background: rgba(255, 255, 255, .2); } .big-bar i { background: #fff; } .big-bar.over i { background: #ff8a80; }

/* Navegación */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabs a { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0 7px; font-size: .72rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.tabs a span { font-size: 1.2rem; line-height: 1.2; } .tabs a.on { color: var(--accent); }
.fab { position: fixed; right: max(16px, calc(50% - 344px)); bottom: calc(80px + var(--safe-b)); width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 1.9rem; line-height: 1; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); z-index: 25; }

/* Plan */
.day { margin-top: 18px; } .day-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; text-transform: capitalize; }
.day-h small { font-weight: 700; color: var(--ink); }
.item { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 12px; margin-bottom: 8px; }
.item-time { text-align: center; } .item-time strong { font-size: 1.05rem; display: block; font-variant-numeric: tabular-nums; } .item-time small { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.item-title { font-weight: 700; } .item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.detail p { margin-bottom: 8px; } .notes { white-space: pre-wrap; background: var(--surface-2); padding: 10px; border-radius: 10px; }

/* Docs */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.doc img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.doc-ic { width: 100%; aspect-ratio: 1; display: grid; place-items: center; font-size: 2rem; background: var(--surface-2); border-radius: 9px; }
.doc-name { font-weight: 600; font-size: .85rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .doc small { color: var(--muted); font-size: .72rem; }
.doc-list { display: grid; gap: 8px; }
.doc-row { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 8px; }
.doc-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px; }
.doc-main img, .doc-main .doc-ic { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; flex: none; font-size: 1.5rem; }
.doc-main span:last-child { min-width: 0; } .doc-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .doc-main small { color: var(--muted); }

/* Gastos */
.table { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.tr { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: .88rem; font-variant-numeric: tabular-nums; } .tr span:not(:first-child) { text-align: right; }
.tr.th { border-top: 0; background: var(--surface-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tr.over span:nth-child(2) { color: var(--danger); font-weight: 700; }
.expense { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 8px; }
.expense .amount { text-align: right; display: flex; flex-direction: column; flex: none; }

/* Listas */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px 12px; margin-bottom: 10px; }
.list summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; cursor: pointer; font-weight: 700; list-style: none; } .list summary::-webkit-details-marker { display: none; }
.check { display: flex; align-items: center; gap: 12px; padding: 9px 0; cursor: pointer; } .check > span { flex: 1; } .check.done > span { text-decoration: line-through; color: var(--muted); }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.add-inline { display: flex; gap: 8px; margin: 6px 0 8px; } .add-inline input { flex: 1; }
.contact { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); } .contact > div { flex: 1; min-width: 0; }

/* IA */
.chat { display: flex; flex-direction: column; gap: 10px; min-height: calc(100dvh - 230px); }
.chat-log { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bubble { max-width: 92%; padding: 11px 14px; border-radius: 18px; overflow-wrap: anywhere; } .bubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; white-space: pre-wrap; }
.bubble.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; max-width: 100%; } .bubble.err { background: var(--danger-bg); color: var(--danger); }
.dots { color: var(--muted); animation: pulse 1.2s infinite; } @keyframes pulse { 50% { opacity: .35; } }
.chat-form { position: sticky; bottom: calc(66px + var(--safe-b)); display: flex; gap: 8px; align-items: flex-end; padding: 10px 0; background: var(--bg); }
.chat-form textarea { flex: 1; resize: none; max-height: 140px; }
.md > *:last-child { margin-bottom: 0; } .md h4 { margin: 10px 0 4px; } .md ul, .md ol { margin: 4px 0 10px; padding-left: 20px; } .md code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: .88em; }
.tbl-wrap { overflow-x: auto; margin: 6px 0 10px; } .md table { border-collapse: collapse; font-size: .85rem; min-width: 100%; } .md th, .md td { border: 1px solid var(--line); padding: 5px 8px; text-align: left; } .md th { background: var(--surface-2); }
.proposal { margin-top: 12px; padding: 12px; background: var(--surface-2); border-radius: 12px; } .prop-row { padding: 6px 0; font-size: .9rem; border-top: 1px solid var(--line); margin-top: 6px; } .proposal .btn { margin-top: 10px; }

/* Formularios y hojas */
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
input[type="checkbox"] { width: 22px; min-height: 0; } textarea { resize: vertical; }
.field { display: block; margin-bottom: 12px; } .field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .pair .field { min-width: 0; }
.checks { display: grid; gap: 2px; }
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(10, 14, 18, .5); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; } .sheet-back.on { opacity: 1; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; background: var(--bg); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; transform: translateY(24px); transition: transform .22s; }
.sheet-back.on .sheet { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 4px 20px; } .sheet-head h2 { font-size: 1.1rem; }
.sheet-body { overflow-y: auto; padding: 8px 20px calc(24px + var(--safe-b)); overscroll-behavior: contain; }
@media (min-width: 640px) { .sheet-back { align-items: center; } .sheet { border-radius: 22px; } }
.toast { position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translate(-50%, 12px); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 14px; z-index: 90; opacity: 0; transition: .25s; max-width: 90vw; font-size: .92rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); } .toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Visor y bloqueo */
.viewer { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; }
.viewer-bar { display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 10px 8px; border-bottom: 1px solid var(--line); } .viewer-title { flex: 1; min-width: 0; } .viewer-title strong, .viewer-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .viewer-title small { color: var(--muted); }
.viewer-body { flex: 1; overflow: auto; display: grid; place-items: center; background: #0e1216; padding-bottom: var(--safe-b); } .viewer-body img { max-width: 100%; max-height: 100%; object-fit: contain; } .viewer-body iframe { width: 100%; height: 100%; border: 0; background: #fff; align-self: stretch; }
.viewer-other { text-align: center; color: #fff; padding: 24px; }
.lock { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; padding: 24px; } .lock-box { width: min(320px, 100%); text-align: center; } .lock-box input { text-align: center; font-size: 1.4rem; letter-spacing: .3em; margin: 14px 0 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.toast-act { margin-left: 14px; background: none; border: 0; color: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.viewer.qr .viewer-body { background: #fff; padding: 16px; } .viewer.qr .viewer-body img { width: 100%; max-width: 560px; image-rendering: -webkit-optimize-contrast; }
.qr-hint { margin: 0; padding: 10px 16px calc(10px + var(--safe-b)); text-align: center; background: var(--bg); color: var(--muted); font-size: .85rem; }

/* Vuelos, escalas */
.add-card { display: flex; align-items: center; gap: 12px; border-style: dashed; margin-bottom: 8px; } .add-card > span:nth-child(2) { flex: 1; } .add-card strong, .add-card small { display: block; } .add-card b { font-size: 1.4rem; color: var(--accent); }
.flight { padding: 14px; margin-bottom: 8px; } .flight-head { display: flex; justify-content: space-between; align-items: center; }
.flight-route { font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; margin: 8px 0 2px; } .flight-times { color: var(--muted); display: flex; gap: 8px; align-items: center; } .flight-times i { font-style: normal; color: var(--accent); }
.plan-h { margin: 22px 0 -6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.seg { padding: 10px 0; border-top: 1px solid var(--line); } .seg:first-child { border-top: 0; } .seg-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.seg-form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 2px; }
.layover { margin: 8px 0; padding: 0; font-size: .88rem; } .layover:empty { display: none; } .layover:not(:empty) { padding: 9px 12px; border-radius: 12px; background: var(--info-bg); }
.layover.warn { background: var(--warn-bg); color: var(--warn); } .layover.error { background: var(--danger-bg); color: var(--danger); } .layover.ok { background: var(--ok-bg); color: var(--ok); }
.chip.danger { background: var(--danger-bg); color: var(--danger); }
/* Entrada */
.hero.entry .hero-field { display: block; margin-top: 12px; } .hero.entry .hero-field span { display: block; opacity: .7; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; } .hero.entry select { background: rgba(255,255,255,.12); color: inherit; border-color: rgba(255,255,255,.25); } .hero.entry select option { color: #111; }
.steps { display: grid; gap: 8px; } .step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; } .step summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 600; } .step summary::-webkit-details-marker { display: none; } .step summary input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.step.ok .step-t { color: var(--muted); text-decoration: line-through; }
.step-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; flex: none; background: var(--surface-2); } .step-ic.ok { background: var(--ok-bg); color: var(--ok); } .step-ic.aviso { background: var(--warn-bg); color: var(--warn); } .step-ic.mal { background: var(--danger-bg); color: var(--danger); }
.step-body { padding: 0 14px 14px 48px; } .step-auto.mal { color: var(--danger); } .step-auto.aviso { color: var(--warn); } .step-auto.ok { color: var(--ok); }
.qr-slot { display: grid; gap: 10px; } .qr-slot .qr-thumb, .qr-slot .qr-empty { width: 132px; height: 132px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 3rem; overflow: hidden; justify-self: center; } .qr-slot img { width: 100%; height: 100%; object-fit: contain; }
.pax { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.info .info-i { padding: 6px 0 2px; } .info .info-i p { margin: 2px 0 8px; color: var(--muted); } .list.info { margin-bottom: 8px; }
.table.copy .tr { grid-template-columns: 1fr 1.4fr; width: 100%; text-align: left; cursor: pointer; } .table.copy .tr:disabled { cursor: default; } .table.copy .tr span:last-child { text-align: right; overflow-wrap: anywhere; font-weight: 600; }
/* Preparativos, dinero */
.prep { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; text-decoration: none; } .prep > span:nth-child(2) { flex: 1; } .prep strong, .prep small { display: block; }
.prep-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; flex: none; } .prep.ok .prep-ic { background: var(--ok-bg); color: var(--ok); }
.hero-btn { margin-top: 14px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); width: 100%; }
.money-card { display: flex; justify-content: space-between; text-decoration: none; } .money-card .right { text-align: right; } .big.neg { color: var(--danger); }
/* Gasto rápido */
.quick { display: grid; gap: 14px; } .quick-amt { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.amount-input { font-size: 2.4rem; font-weight: 800; min-height: 68px; text-align: right; } .conv { text-align: right; min-height: 1.2em; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .cat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 2px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: .72rem; font-weight: 600; cursor: pointer; } .cat span { font-size: 1.4rem; } .cat.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---- Fase 2: viajeros y viaje compartido ---- */
.pax-list { display: grid; gap: 6px; margin: 10px 0; }
.pax-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); } .pax-row:last-child { border-bottom: 0; }
.pax-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; } .pax-main > span:last-child { display: grid; } .pax-ic { font-size: 1.4rem; }
.sub-h { margin: 16px 0 6px; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.members { display: grid; gap: 8px; margin-bottom: 8px; }
.member { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; flex-wrap: wrap; }
.member.off { opacity: .6; } .member.pend { border-style: dashed; margin-bottom: 8px; }
.member-main { display: grid; min-width: 0; flex: 1; } .member-main small { display: block; }
.sync-line { margin: 10px 0 2px; font-weight: 600; } .sync-line.ok { color: var(--ok); } .sync-line.go { color: var(--muted); } .sync-line.err { color: var(--warn); }
.ticks { margin: 0 0 12px; padding-left: 18px; } .ticks li { margin-bottom: 4px; }
.steps-mini { margin: 8px 0; padding-left: 20px; color: var(--muted); font-size: .9rem; }
.qr-sheet { display: grid; gap: 4px; justify-items: stretch; }
.qr-box { background: #fff; border-radius: 16px; padding: 10px; width: min(100%, 340px); margin: 6px auto; box-shadow: var(--shadow); } .qr-box svg { display: block; width: 100%; height: auto; }
.qr-timer { text-align: center; margin: 4px 0 8px; }
.col { display: grid; gap: 10px; }
.scanner { position: fixed; inset: 0; z-index: 80; background: #000; color: #fff; display: flex; flex-direction: column; }
.scanner .viewer-bar { border-bottom-color: #333; } .scanner video { flex: 1; width: 100%; min-height: 0; object-fit: cover; }
.scan-frame { position: absolute; left: 50%; top: 45%; width: min(70vw, 320px); aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid rgba(255, 255, 255, .85); border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); pointer-events: none; }
.scan-msg { position: absolute; left: 0; right: 0; bottom: calc(76px + var(--safe-b)); text-align: center; margin: 0; padding: 0 20px; } .scanner > .btn { margin: 10px 16px calc(14px + var(--safe-b)); width: calc(100% - 32px); }
.share-card .right { text-align: right; }
.card > h2 { margin-bottom: 8px; }
