/* T.T Ride · app del huésped · sistema de diseño claro con vidrio (v3, 26-sep-2026)
   Referencia visual: app de traslados clara, tarjetas translúcidas, botón negro en píldora, acento ladrillo de la marca.
   Reglas: todo color sale de los tokens; ningún campo con letra < 16 px; nada más ancho que la pantalla. */
:root {
  --bg: #F3F5F9;
  --ink: #0F1115; --ink2: #33373F; --muted: #6B7079; --faint: #9CA1AA;
  --line: rgba(15, 17, 21, .08); --line2: rgba(15, 17, 21, .14);
  --glass: rgba(255, 255, 255, .64); --glass2: rgba(255, 255, 255, .82); --glass-line: rgba(255, 255, 255, .78);
  --white: #FFFFFF; --soft: #EEF1F6; --soft2: #E6EAF1;
  --accent: #B62701; --accent2: #E8612C; --accent-soft: #FCE9E1; --accent-ink: #8A1D00;
  --gold: #C99A3F; --gold-soft: #F7EEDC;
  --ok: #1E8A55; --ok-soft: #E3F4EA; --warn: #A86A00; --warn-soft: #FBF0D9; --bad: #C0362C; --bad-soft: #FBE4E1; --info: #2563EB; --info-soft: #E3ECFD;
  --shadow-sm: 0 1px 2px rgba(20, 24, 40, .06), 0 4px 12px rgba(20, 24, 40, .05);
  --shadow: 0 2px 6px rgba(20, 24, 40, .05), 0 12px 32px rgba(20, 24, 40, .08);
  --shadow-lg: 0 8px 24px rgba(20, 24, 40, .10), 0 24px 60px rgba(20, 24, 40, .12);
  --r-xl: 28px; --r-lg: 22px; --r: 18px; --r-sm: 14px; --r-xs: 10px;
  --font: "Onest", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 76px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(900px 620px at -10% -8%, #DDE6FF 0%, rgba(221, 230, 255, 0) 60%),
    radial-gradient(760px 560px at 112% 6%, #FFE6DA 0%, rgba(255, 230, 218, 0) 58%),
    radial-gradient(820px 700px at 50% 112%, #EFE4FF 0%, rgba(239, 228, 255, 0) 60%),
    var(--bg);
  background-attachment: fixed;
}
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; font-size: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 11.5px; }
.accent { color: var(--accent); } .ok-t { color: var(--ok); }
.hide { display: none !important; }
.press { transition: transform 140ms var(--ease), background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease; }
.press:active, .btn:active, .tile:active, .chip:active, .seg button:active, .lrow:active, .opt:active, .pcard:active, .nav-b:active { transform: scale(.97); }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

/* ───── estructura ───── */
#app { min-height: 100vh; }
#panel { position: relative; min-height: 100vh; }
#root { position: relative; }
#side { display: none; }
.scr { padding: calc(14px + var(--safe-t)) 18px calc(var(--nav-h) + 28px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
.scr.nonav { padding-bottom: calc(28px + var(--safe-b)); }
html[data-device="desktop"] #app { display: grid; grid-template-columns: minmax(420px, 480px) 1fr; height: 100vh; overflow: hidden; }
html[data-device="desktop"] #panel { height: 100vh; overflow-y: auto; overflow-x: hidden; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html[data-device="desktop"] #side { display: block; position: relative; height: 100vh; }
html[data-device="desktop"] #side .map { position: absolute; inset: 0; }
html[data-device="desktop"] .scr { padding: 22px 22px 120px; max-width: none; }
#sideOver { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 600; display: flex; justify-content: center; pointer-events: none; }
#sideOver > * { pointer-events: auto; }

/* ───── superficies ───── */
.glass { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.card.glass { background: var(--glass); border-color: var(--glass-line); box-shadow: var(--shadow); }
.card.tint { background: linear-gradient(160deg, #FFF6F1, #FFFFFF 60%); border-color: #F5D9CC; }
.card.gold { background: linear-gradient(160deg, #FFF8EA, #FFFFFF 65%); border-color: #EFDDB6; }
.card + .card { margin-top: 12px; }
.card h3 { font-size: 15px; margin-bottom: 10px; display: flex; align-items: baseline; gap: 6px; }
.card h3 span { color: var(--muted); font-weight: 500; font-size: 13px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row.start { justify-content: flex-start; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sp8 { height: 8px; } .sp12 { height: 12px; } .sp16 { height: 16px; } .sp24 { height: 24px; }

/* ───── tipografía de pantalla ───── */
.hello { margin: 18px 2px 16px; }
.hello h1 { font-size: 30px; line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.hello h1 span { display: block; font-weight: 500; color: var(--ink2); }
.hello p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.title { margin: 6px 2px 14px; }
.title h1 { font-size: 26px; line-height: 1.1; letter-spacing: -.03em; }
.title p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.eyebrow { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.sec-h h2 { font-size: 18px; letter-spacing: -.02em; }
.sec-h a, .sec-h button { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ───── barra superior ───── */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.topbar .t { font-weight: 700; font-size: 16px; letter-spacing: -.01em; text-align: center; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--glass2); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--ink); flex: none; }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn .dot { position: absolute; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink); background: linear-gradient(145deg, #FFFFFF, #E9EDF4); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); flex: none; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.brand { height: 48px; padding: 0 12px; border-radius: 999px; background: #121214; display: inline-flex; align-items: center; box-shadow: var(--shadow-sm); }
.brand img { height: 36px; width: auto; }
.wx { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--glass2); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); font-size: 12.5px; white-space: nowrap; }
.wx b { font-size: 15px; letter-spacing: -.02em; }
.wx i { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFE7A8, #F6B64A 60%, #F08C2B); box-shadow: 0 0 0 3px rgba(246, 182, 74, .18); flex: none; }
.wx span { color: var(--muted); }
@media (max-width: 400px) { .wx span { display: none; } }

/* ───── botones ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; transition: transform 140ms var(--ease), background-color 160ms ease, opacity 160ms ease; }
.btn svg { width: 18px; height: 18px; }
.btn.xl { height: 56px; font-size: 16px; padding: 0 24px; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.full { width: 100%; }
.btn.sec { background: var(--white); color: var(--ink); border: 1px solid var(--line2); box-shadow: var(--shadow-sm); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line2); }
.btn.soft { background: var(--soft); color: var(--ink); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.ok { background: var(--ok); color: #fff; }
.btn:disabled, .btn[disabled] { opacity: .38; pointer-events: none; }
.linkbtn { color: var(--accent); font-weight: 600; font-size: 14px; padding: 10px 4px; }
.cta-bar { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.cta-bar .btn { flex: 1; }
.cta-bar .iconbtn { width: 56px; height: 56px; }
.applebtn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 56px; border-radius: 999px; background: #000; color: #fff; font-weight: 600; font-size: 18px; }
.zellebtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; border-radius: 999px; background: #6D1ED4; color: #fff; font-weight: 700; font-size: 16px; }
.zellebtn span { font-weight: 500; font-size: 13px; opacity: .9; }

/* ───── píldoras, insignias, chips ───── */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--ink2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.info { background: var(--info-soft); color: var(--info); }
.pill.accent { background: var(--accent-soft); color: var(--accent-ink); } .pill.gold { background: var(--gold-soft); color: #7A5A12; } .pill.dark { background: var(--ink); color: #fff; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: linear-gradient(90deg, #FFE4D6, #FFD2BD); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line2); font-size: 14px; font-weight: 500; color: var(--ink2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:disabled { opacity: .4; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 18px 6px; margin: 0 -18px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }

/* ───── control segmentado ───── */
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(15, 17, 21, .06); }
.seg button { flex: 1; min-height: 40px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink2); white-space: nowrap; transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease); }
.seg button.on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ───── campos ───── */
.lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 14px 2px 6px; }
.txt { width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--white); font-size: 16px; color: var(--ink); outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; -webkit-appearance: none; appearance: none; }
textarea.txt { height: auto; min-height: 88px; padding: 14px 16px; resize: vertical; line-height: 1.4; }
select.txt { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7079' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.txt:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15, 17, 21, .08); }
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line2); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.step { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); }
.step button { width: 40px; height: 40px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); font-size: 20px; font-weight: 500; }
.step b { min-width: 34px; text-align: center; font-size: 17px; }
.sw { width: 52px; height: 32px; border-radius: 999px; background: var(--soft2); position: relative; flex: none; transition: background-color 180ms ease; }
.sw i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 220ms var(--ease); }
.sw.on { background: var(--ink); } .sw.on i { transform: translateX(20px); }

/* ───── listas ───── */
.list { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.list.glass { background: var(--glass); border-color: var(--glass-line); }
.lrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; text-align: left; transition: background-color 160ms ease, transform 140ms var(--ease); }
.lrow + .lrow { border-top: 1px solid var(--line); }
button.lrow:hover { background: rgba(15, 17, 21, .025); }
.lrow .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--ink); flex: none; }
.lrow .ic svg { width: 20px; height: 20px; }
.lrow .ic.accent { background: var(--accent-soft); color: var(--accent); }
.lrow .ic.dark { background: var(--ink); color: #fff; }
.lrow .thumb { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: var(--soft); flex: none; overflow: hidden; }
.lrow .tx { flex: 1; min-width: 0; }
.lrow .tx b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .tx span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.lrow .end { text-align: right; flex: none; font-weight: 700; }
.lrow .end small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.lrow .chev { width: 18px; height: 18px; color: var(--faint); flex: none; }
.kv { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 10px 0; font-size: 14px; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv > span:first-child { color: var(--muted); flex: none; }
.kv > span:last-child, .kv > b { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.sum { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; color: var(--ink2); }
.sum.total { border-top: 1px solid var(--line2); margin-top: 8px; padding-top: 12px; font-size: 17px; font-weight: 700; color: var(--ink); }

/* ───── inicio: tarjeta «a dónde» y mosaicos ───── */
.where { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--glass2); border: 1px solid var(--glass-line); box-shadow: var(--shadow); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); width: 100%; text-align: left; }
.where .dotme { width: 14px; height: 14px; border-radius: 50%; background: #3B82F6; box-shadow: 0 0 0 5px rgba(59, 130, 246, .18); flex: none; }
.where .q { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.where .q small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.where .go { height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.where .eta { font-size: 12.5px; font-weight: 700; color: var(--info); flex: none; padding-right: 6px; }
.tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 168px; padding: 12px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); text-align: left; overflow: hidden; transition: transform 140ms var(--ease), box-shadow 160ms ease; }
.tile .art { position: absolute; left: 10px; right: 10px; top: 10px; height: 92px; border-radius: 16px; overflow: hidden; background: var(--soft); }
.tile .art img { width: 100%; height: 100%; object-fit: cover; }
.tile .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .25)); }
.tile b { font-size: 15.5px; letter-spacing: -.01em; margin-top: 104px; }
.tile span { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.tile .tag { position: absolute; top: 18px; right: 18px; }
.ask { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 999px; background: var(--glass2); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); width: 100%; text-align: left; font-size: 14px; color: var(--muted); }
.ask i { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(from 200deg, #E8612C, #B62701, #C99A3F, #E8612C); flex: none; }
.ask b { color: var(--ink); font-weight: 600; }

/* ───── tarjetas de lugar (fotos) ───── */
.pcard { width: 236px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; text-align: left; transition: transform 140ms var(--ease); }
.pcard .ph { position: relative; height: 140px; background: var(--soft); overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .ph .tagl { position: absolute; left: 10px; bottom: 10px; }
.pcard .bd { padding: 12px 14px 14px; }
.pcard .bd b { display: block; font-size: 15px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .bd span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard.wide { width: 100%; }
.pcard.wide .ph { height: 180px; }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
html[data-device="desktop"] .pgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
html[data-device="desktop"] .pgrid .pcard.wide .ph { height: 130px; }
.ph-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; }
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ───── pantalla con mapa (reserva y viaje) ───── */
.ms { position: relative; }
.ms-map { position: fixed; left: 0; right: 0; top: 0; height: 46vh; min-height: 280px; z-index: 0; }
.ms-map .map { position: absolute; inset: 0; }
.ms-top { position: fixed; left: 0; right: 0; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: calc(12px + var(--safe-t)) 16px 0; pointer-events: none; }
.ms-top > * { pointer-events: auto; }
.ms-panel { position: relative; z-index: 10; margin-top: calc(46vh - 28px); min-height: calc(54vh + 28px); border-radius: var(--r-xl) var(--r-xl) 0 0; background: rgba(255, 255, 255, .9); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); box-shadow: 0 -10px 30px rgba(20, 24, 40, .10); padding: 10px 18px calc(var(--nav-h) + 28px + var(--safe-b)); }
.ms-panel::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 99px; background: rgba(15, 17, 21, .16); margin: 0 auto 12px; }
.ms-panel .ph-h { text-align: center; font-weight: 700; font-size: 17px; letter-spacing: -.01em; margin-bottom: 14px; }
@media (min-height: 760px) { .ms-map { min-height: 330px; } .ms-panel { margin-top: max(calc(46vh - 28px), 302px); } }
html[data-device="desktop"] .ms-map, html[data-device="desktop"] .ms-top { display: none; }
html[data-device="desktop"] .ms-panel { margin-top: 0; min-height: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 22px 22px 120px; }
html[data-device="desktop"] .ms-panel::before { display: none; }
.mapwrap { position: relative; height: 230px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mapwrap .map { position: absolute; inset: 0; }

/* ───── ruta (recogida / destino) ───── */
.route { position: relative; padding: 6px 4px; }
.rt-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 44px 8px 10px; border-radius: var(--r-sm); text-align: left; position: relative; }
.rt-row:hover { background: rgba(15, 17, 21, .03); }
.rt-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); position: relative; z-index: 1; }
.rt-dot svg { width: 14px; height: 14px; }
.rt-row.to .rt-dot { background: var(--ink); color: #fff; }
.rt-row.stop .rt-dot { background: var(--soft); color: var(--ink2); }
.rt-row .tx { flex: 1; min-width: 0; }
.rt-row .tx small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.rt-row .tx b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-km { font-size: 12.5px; color: var(--muted); font-weight: 600; flex: none; }
.route::before { content: ""; position: absolute; left: 26px; top: 36px; bottom: 36px; width: 2px; background: repeating-linear-gradient(180deg, var(--line2) 0 4px, transparent 4px 8px); }
.rt-stopwrap { position: relative; }
.rt-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 14px; z-index: 2; }
.rt-swap { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 1px solid var(--line2); box-shadow: var(--shadow-sm); display: grid; place-items: center; z-index: 3; }
.rt-swap svg { width: 18px; height: 18px; }
.geo { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.geo i { width: 9px; height: 9px; border-radius: 50%; background: #3B82F6; box-shadow: 0 0 0 4px rgba(59, 130, 246, .18); }

/* ───── opciones (camionetas, métodos) ───── */
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px; border-radius: var(--r); background: var(--white); border: 1.5px solid var(--line); text-align: left; transition: border-color 160ms ease, box-shadow 160ms ease, transform 140ms var(--ease); }
.opt + .opt { margin-top: 10px; }
.opt.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 17, 21, .07), var(--shadow-sm); }
.opt:disabled { opacity: .42; }
.opt .vimg { width: 78px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--soft); flex: none; }
.opt .vimg img { width: 100%; height: 100%; object-fit: cover; }
.opt .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); flex: none; }
.opt .ic svg { width: 20px; height: 20px; }
.opt .tx { flex: 1; min-width: 0; }
.opt .tx b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.opt .tx span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.opt .pr { text-align: right; flex: none; font-weight: 700; font-size: 16px; }
.opt .pr small { display: block; margin-top: 3px; }

/* ───── pasos ───── */
.steps { display: flex; gap: 6px; margin: 2px 0 14px; }
.steps i { flex: 1; height: 4px; border-radius: 99px; background: var(--soft2); }
.steps i.on { background: var(--ink); }
.timeline { display: flex; gap: 6px; margin: 14px 0 6px; }
.timeline i { flex: 1; height: 5px; border-radius: 99px; background: var(--soft2); }
.timeline i.on { background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* ───── viaje ───── */
.etacard { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.etacard b { display: block; font-size: 17px; letter-spacing: -.01em; }
.etacard span { display: block; font-size: 13px; opacity: .72; margin-top: 2px; }
.etacard .avatar { background: #2A2B30; color: #fff; border-color: #3A3B40; }
.drv { display: flex; align-items: center; gap: 12px; }
.plate { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line2); white-space: nowrap; }
.stars { color: #E5A10E; letter-spacing: 1px; }
.star { width: 46px; height: 46px; border-radius: 50%; font-size: 24px; color: var(--soft2); background: var(--white); border: 1px solid var(--line); }
.star.on { color: #E5A10E; border-color: #F4D48C; background: #FFF8E6; }
.trip { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; text-align: left; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 140ms var(--ease); }
.trip + .trip { margin-top: 10px; }
.trip .dt { width: 50px; height: 54px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; text-align: center; flex: none; line-height: 1.05; }
.trip .dt b { font-size: 19px; } .trip .dt span { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.trip .rt { flex: 1; min-width: 0; }
.trip .rt b { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip .rt > span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.trip .rt .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.trip .amt { font-weight: 700; flex: none; }
.chat { height: 44vh; max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r); background: var(--soft); }
.cb { max-width: 80%; padding: 10px 12px; border-radius: 16px; font-size: 14.5px; line-height: 1.35; }
.cb time { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; }
.cb.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.cb.them { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 4px; margin: 0 8px 8px 0; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line2); font-weight: 600; font-size: 14px; }
.fchip .avatar { width: 34px; height: 34px; font-size: 12px; box-shadow: none; }
.fchip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.fchip.on .avatar { background: #2A2B30; color: #fff; border-color: #3A3B40; }

/* ───── hoja inferior, aviso ───── */
#overlay { position: relative; z-index: 3000; }
.sheet-bg { position: fixed; inset: 0; background: rgba(15, 17, 21, .32); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn 180ms ease; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; padding: 10px 18px calc(22px + var(--safe-b)); border-radius: var(--r-xl) var(--r-xl) 0 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: var(--shadow-lg); animation: sheetUp 300ms var(--ease); }
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 99px; background: rgba(15, 17, 21, .16); margin: 0 auto 14px; }
.sheet h3 { font-size: 19px; letter-spacing: -.02em; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sheet-x { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); color: var(--ink2); display: grid; place-items: center; flex: none; }
.sheet-x svg { width: 16px; height: 16px; }
html[data-device="desktop"] .sheet-bg { align-items: center; }
html[data-device="desktop"] .sheet { border-radius: var(--r-xl); max-height: 84vh; }
html[data-device="desktop"] .sheet::before { display: none; }
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
#toast { position: fixed; left: 0; right: 0; top: calc(12px + var(--safe-t)); z-index: 4000; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.toast { max-width: 480px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); animation: sheetUp 260ms var(--ease); text-align: center; }
.pk { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 6px; text-align: left; border-radius: var(--r-sm); }
.pk + .pk { border-top: 1px solid var(--line); }
.pk.on { background: var(--soft); }
.pk-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; flex: none; }
.pk-ic svg { width: 18px; height: 18px; }
.pk .tx { flex: 1; min-width: 0; }
.pk .tx b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk .tx span { display: block; font-size: 12.5px; color: var(--muted); }
.pk-km { font-size: 12.5px; color: var(--muted); font-weight: 600; flex: none; }
.pk-g { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 6px 4px; }
.pk-list { margin-top: 6px; }
.more { margin-top: 12px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 0 16px; font-weight: 600; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more summary .chev { transition: transform 220ms var(--ease); color: var(--muted); }
.more[open] summary .chev { transform: rotate(180deg); }
.more .body { padding: 0 16px 16px; }
.faceid { font-size: 44px; margin: 18px 0 8px; }

/* ───── navegación inferior (píldora flotante) ───── */
#nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); z-index: 900; width: min(calc(100% - 28px), 460px); height: 68px; padding: 0 8px; border-radius: 999px; display: flex; align-items: center; justify-content: space-around; background: rgba(255, 255, 255, .78); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); }
#nav:empty { display: none; }
.nav-b { position: relative; flex: 1; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 999px; color: var(--faint); font-size: 11px; font-weight: 600; transition: color 160ms ease, transform 140ms var(--ease); }
.nav-b svg { width: 22px; height: 22px; }
.nav-b.on { color: var(--ink); }
.nav-b .n { position: absolute; top: 6px; right: calc(50% - 20px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; font-style: normal; }
.nav-b.center { flex: 0 0 auto; width: 64px; }
.nav-b.center .ring { width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(15, 17, 21, .28); margin-top: -26px; }
.nav-b.center .ring svg { width: 24px; height: 24px; }
.nav-b.center span { color: var(--ink); }
html[data-device="desktop"] #nav { position: sticky; left: auto; transform: none; bottom: 16px; margin: 0 auto; width: calc(100% - 32px); }

/* ───── marcadores del mapa ───── */
.mk { display: grid; place-items: center; }
.mk-pin { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid var(--accent2); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.mk-pin.dest { border-color: var(--ink); }
.mk-pin.stop { border-color: #9CA1AA; }
.mk-lbl { position: absolute; left: 24px; top: -3px; white-space: nowrap; font-size: 11.5px; font-weight: 700; color: var(--ink); padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(20, 24, 40, .15); }
.mk-car { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 5px rgba(15, 17, 21, .14), 0 6px 14px rgba(0, 0, 0, .3); }
.mk-car svg { width: 20px; height: 20px; }
.mk-car.busy { background: var(--accent); box-shadow: 0 0 0 5px rgba(182, 39, 1, .18), 0 6px 14px rgba(0, 0, 0, .3); }
.mk-me { width: 18px; height: 18px; border-radius: 50%; background: #3B82F6; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(59, 130, 246, .22); }
.mk-photo { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; overflow: hidden; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(20, 24, 40, .28); font-size: 18px; position: relative; background: var(--soft); }
.mk-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-photo.on { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15, 17, 21, .15), 0 6px 16px rgba(20, 24, 40, .3); }
.mk-photo + .mk-lbl { display: none; left: 52px; top: 12px; }
.mk-photo.on + .mk-lbl { display: block; }
.mapstyle { position: absolute; right: 12px; bottom: 12px; z-index: 500; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line2); box-shadow: var(--shadow-sm); font-size: 12px; font-weight: 600; color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ms-map .mapstyle { bottom: 40px; }
.leaflet-container { background: #E9ECEF; font-family: var(--font); }
.leaflet-control-attribution { font-size: 9px !important; background: rgba(255, 255, 255, .7) !important; }

/* ───── notas ───── */
.demo-note { margin-top: 18px; font-size: 12px; color: var(--faint); line-height: 1.5; text-align: center; }
.legal { font-size: 12px; color: var(--muted); line-height: 1.5; }
.empty { padding: 22px 16px; text-align: center; color: var(--muted); font-size: 14px; }

@media (max-width: 370px) {
  .scr { padding-left: 14px; padding-right: 14px; }
  .hello h1 { font-size: 27px; }
  .tile { min-height: 158px; } .tile .art { height: 84px; } .tile b { margin-top: 94px; font-size: 14.5px; }
  .where .eta { display: none; }
  .opt .vimg { width: 64px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }
@media (prefers-reduced-transparency: reduce) { .glass, .tile, .where, #nav, .sheet, .ms-panel { background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; } }
