/* JetBus · Servicio privado aeropuerto — sistema de diseño compartido */
@font-face {
  font-family: "Jakarta";
  src: url("/fonts/jakarta.woff2?v=2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --blue: #00aae4;
  --blue-600: #0093c7;
  --blue-50: #e8f7fd;
  --blue-100: #cfeefa;
  --ink: #0b0b0c;
  --ink-2: #2b2e33;
  --muted: #6b7079;
  --muted-2: #9aa0a8;
  --line: #e8e9ec;
  --line-2: #f0f1f3;
  --bg: #f5f6f8;
  --card: #ffffff;
  --green: #12a150;
  --green-50: #e7f7ee;
  --amber: #d97706;
  --amber-50: #fff5e6;
  --red: #dc2626;
  --red-50: #fdecec;
  --violet: #6d4aff;
  --violet-50: #f0ecff;
  --teal: #0d9488;
  --teal-50: #e6f6f4;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 24px 48px rgba(16, 24, 40, .12);
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.nowrap { white-space: nowrap; }

/* ---------- header / footer ---------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1000;
}
.topbar .container { height: 72px; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none; font-weight: 800; font-size: 30px; letter-spacing: -0.045em; color: var(--ink); }
.logo small { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: -0.01em; }
.topbar .spacer { flex: 1; }
.topbar .link { font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.topbar .link:hover { color: var(--ink); }

.footer { background: #000; color: #fff; padding: 56px 0 28px; margin-top: 72px; }
.footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer h4 { font-size: 18px; margin-bottom: 18px; }
.footer a { display: block; color: #e5e5e5; text-decoration: none; padding: 5px 0; font-size: 15px; }
.footer .bottom { border-top: 1px solid #262626; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; color: #a3a3a3; font-size: 13px; }
.footer .tag { color: var(--blue); font-weight: 700; }

/* ---------- cards / surfaces ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 28px; }
.card-bordered { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.section-title { font-size: 20px; font-weight: 800; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 20px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #222; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover:not(:disabled) { background: var(--blue-600); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--bg); }
.btn-danger { background: #fff; border-color: #f3c4c4; color: var(--red); }
.btn-danger:hover:not(:disabled) { background: var(--red-50); }
.btn-soft { background: var(--line-2); color: var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { height: 60px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: var(--bg); }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-size: 15px; font-weight: 500; outline: none; transition: border .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 84px; padding: 14px 16px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); font-weight: 500; }
.field.invalid .input, .field.invalid .select { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-50); }
.field .error { color: var(--red); font-size: 13px; font-weight: 600; display: none; }
.field.invalid .error { display: block; }
.hint { font-size: 12.5px; color: var(--muted); }

.boxfield { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 16px 10px; background: #fff; position: relative; transition: border .15s, box-shadow .15s; }
.boxfield:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.boxfield .label { font-size: 12px; font-weight: 600; color: var(--muted); display: block; }
.boxfield input, .boxfield select { border: 0; outline: none; padding: 0; width: 100%; background: transparent; font-size: 16px; font-weight: 700; height: 26px; }
.boxfield select { appearance: none; cursor: pointer; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--line-2); border: 1px solid transparent; cursor: pointer; text-align: left; transition: background .15s, color .15s;
}
.seg .t { font-weight: 700; font-size: 15px; line-height: 1.2; }
.seg .s { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.seg.active { background: var(--ink); color: #fff; }
.seg.active .s { color: #c9c9cc; }
.seg:hover:not(.active) { background: #e9eaed; }

.stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius-sm); height: 62px; padding: 0 10px 0 16px; background: #fff; }
.stepper .lbl { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.stepper .lbl small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.stepper .ctl { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.stepper button:hover:not(:disabled) { background: var(--bg); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 18px; text-align: center; font-weight: 800; font-size: 17px; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin-top: 1px; flex: none; }

/* ---------- pills / status ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-soft { background: var(--line-2); color: var(--ink-2); }
.pill-blue { background: var(--blue-50); color: var(--blue-600); }
.st-requested { background: var(--amber-50); color: var(--amber); }
.st-confirmed { background: var(--blue-50); color: var(--blue-600); }
.st-driver_assigned { background: var(--violet-50); color: var(--violet); }
.st-en_route { background: #e6f4ff; color: #0a66c2; }
.st-arrived { background: var(--teal-50); color: var(--teal); }
.st-in_trip { background: var(--green-50); color: var(--green); }
.st-completed { background: #eef0f2; color: #4b5563; }
.st-cancelled { background: var(--red-50); color: var(--red); }
.live .dot { animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- banners ---------- */
.banner { display: flex; gap: 12px; padding: 16px 18px; border-radius: 16px; font-size: 14px; }
.banner .t { font-weight: 700; margin-bottom: 2px; }
.banner-warn { background: var(--amber-50); color: #9a4b00; border: 1px solid #fde3b8; }
.banner-info { background: var(--blue-50); color: #035a7a; border: 1px solid var(--blue-100); }
.banner-err { background: var(--red-50); color: #9b1c1c; border: 1px solid #f7caca; }
.banner-ok { background: var(--green-50); color: #0b6b37; border: 1px solid #c3ebd3; }

/* ---------- map ---------- */
.map { width: 100%; height: 320px; border-radius: 16px; overflow: hidden; background: #eef1f4; position: relative; z-index: 0; }
.leaflet-container { font-family: var(--font); background: #eef1f4; }
.jb-tiles { filter: grayscale(.55) contrast(.95) brightness(1.04); }
.leaflet-control-attribution { font-size: 10px !important; }
.pin {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ink);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(0,0,0,.25); border: 3px solid #fff;
}
.pin::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.pin-blue { background: var(--blue); }
.airport-pin { width: 38px; height: 38px; border-radius: 12px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(0,170,228,.35); border: 3px solid #fff; }
.car-pin { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.3); position: relative; }
.car-pin::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: rgba(0,170,228,.22); animation: halo 2s infinite; z-index: -1; }
@keyframes halo { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.map-tag { background: var(--ink); color: #fff; font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.leaflet-tooltip.zone-tip { background: #fff; border: 0; border-radius: 10px; box-shadow: var(--shadow); font-weight: 700; font-size: 12px; padding: 6px 10px; }

/* ---------- modal / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(11, 11, 12, .45); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
.modal { background: #fff; border-radius: 24px; width: 100%; max-width: 540px; padding: 28px; box-shadow: var(--shadow-lg); animation: rise .18s ease; max-height: 92vh; overflow: auto; }
.modal h3 { font-size: 22px; font-weight: 800; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); animation: rise .2s; display: flex; gap: 10px; align-items: center; max-width: 90vw; }
.toast.err { background: var(--red); }
.toast.ok { background: #0f7a3d; }

/* ---------- skeleton / spinner ---------- */
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.spinner.dark { border-color: rgba(0,0,0,.12); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #eef0f2 0%, #f7f8f9 50%, #eef0f2 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- modo desarrollador (claramente separado del producto) ---------- */
.devbar {
  background: repeating-linear-gradient(-45deg, #facc15 0 14px, #111 14px 28px);
  padding: 4px; border-radius: 18px;
}
.devbar-inner { background: #111; color: #f5f5f5; border-radius: 14px; padding: 18px 20px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.devbar-inner .devtitle { display: flex; align-items: center; gap: 10px; color: #facc15; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.devbar-inner .devnote { color: #a3a3a3; font-size: 12px; margin-top: 4px; }
.dev-btn { font-family: inherit; font-size: 13px; font-weight: 700; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid #3a3a3a; background: #1d1d1d; color: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.dev-btn:hover:not(:disabled) { background: #2a2a2a; }
.dev-btn.on, .dev-btn.primary { background: #facc15; color: #111; border-color: #facc15; }
.dev-btn:disabled { opacity: .4; cursor: not-allowed; }
.dev-chip { display: inline-flex; align-items: center; gap: 6px; background: #facc15; color: #111; font-weight: 800; font-size: 11px; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; }
.dev-ribbon { position: fixed; top: 0; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(-45deg, #facc15 0 10px, #111 10px 20px); z-index: 5000; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .container { padding: 0 16px; }
  .topbar .container { height: 62px; }
  .logo { font-size: 26px; }
  .footer .cols { grid-template-columns: 1fr; gap: 20px; }
  .footer .bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .card-pad { padding: 20px; }
  .hide-sm { display: none !important; }
}
button.dev-chip { border: 0; cursor: pointer; }
.dev-chip { white-space: nowrap; }
