/* Munsa Logistics · demo cotizador + panel
   Tokens tomados del sitio en producción (Inter, negro, #2A3C98, #D02F27). */
:root {
  --ink: #000;
  --char: #312f30;
  --stone: #6a6863;
  --paper: #f2f2f2;
  --white: #fff;
  --blue: #2a3c98;
  --blue-700: #1f2d78;
  --blue-50: #eef0fa;
  --red: #d02f27;
  --line: #e3e3e3;
  --line-2: #ececec;
  --text: #141414;
  --muted: #636363;
  --ok: #17794a;
  --ok-bg: #e6f4ec;
  --warn: #8a5a00;
  --warn-bg: #fbf0d9;
  --bad: #b3261e;
  --bad-bg: #fbe9e7;
  --r-btn: 12px;
  --r-card: 21px;
  --r-in: 12px;
  --bar: 44px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px -12px rgba(0,0,0,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.5;
  color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.demobar :focus-visible, .side :focus-visible { outline-color: #fff; }
.quoter :focus-visible { outline-color: var(--blue); }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Barra demo ---------- */
.demobar {
  position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 1200;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 20px; background: #0b0b0c; color: #cfcfcf; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.demobar__label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.demobar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.demobar__by { justify-self: end; }
.by { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; white-space: nowrap; color: inherit; text-decoration: none; }
.by img { height: 30px; width: auto; transition: opacity .2s; }
.by:hover img { opacity: .75; }
/* el logotipo de Naiper es blanco: se invierte sobre fondo claro */
.by--dark img { filter: brightness(0); }

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--paper); gap: 2px; }
.seg__btn {
  padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background .2s, color .2s;
}
.seg__btn[aria-selected="true"], .seg__btn[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.seg--dark { background: rgba(255,255,255,.1); }
.seg--dark .seg__btn { color: #bdbdbd; padding: 5px 14px; font-size: 13px; }
.seg--dark .seg__btn[aria-selected="true"] { background: #fff; color: #000; }
.seg__count { min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border-radius: var(--r-btn);
  font-size: 14px; font-weight: 500; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .ico { width: 18px; height: 18px; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-700); }
.btn--blue:active { transform: scale(.98); }
.btn--lg { min-height: 50px; padding: 0 30px; }
.btn--wa { background: #128c4b; color: #fff; }
.btn--wa:hover { background: #0e7a40; }
.btn--ghost { background: #fff; border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: #bdbdbd; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn[aria-disabled="true"] { background: #c9cde6; color: #fff; }
.btn[aria-disabled="true"]:hover { background: #c9cde6; }

/* ---------- Encabezado ---------- */
.top { background: #fff; padding-top: var(--bar); }
.top .wrap { display: flex; align-items: center; height: 64px; }
.top img { height: 30px; width: auto; }

/* ---------- Hero ---------- */
.site { background: var(--paper); }
.hero { position: relative; padding: 52px 0 56px; isolation: isolate; }
/* Franja azul de marca con las diagonales del logotipo */
.hero__band { position: absolute; inset: 0 0 auto 0; height: 430px; z-index: -1; background: var(--blue); overflow: hidden; }
.hero__band i { position: absolute; top: -20%; height: 140%; width: 9vw; min-width: 90px; transform: skewX(-22deg); }
.hero__band i:nth-child(1) { right: 20vw; background: rgba(255,255,255,.06); }
.hero__band i:nth-child(2) { right: 9vw; background: rgba(0,0,0,.2); }
.hero__band i:nth-child(3) { right: -2vw; background: var(--red); }
.hero__copy { color: #fff; max-width: 760px; margin-bottom: 36px; }
.hero h1 { font-size: clamp(30px, 4.3vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.hero__lead { font-size: 18px; color: #dfe3f7; max-width: 54ch; margin-top: 16px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); flex: none; }
.pulse--blue { background: var(--blue); box-shadow: 0 0 0 4px rgba(42,60,152,.14); }

.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding: 28px 6px 0; font-size: 14.5px; color: #4a4a4a; }
.trust__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.trust__facts li { display: flex; align-items: center; gap: 9px; }
.trust__facts li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--blue) center/10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5'/%3E%3C/svg%3E"); }
.trust__clients { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.trust__clients span { color: var(--muted); }
.trust__clients b { font-weight: 600; letter-spacing: -.02em; color: #2b2b2b; }

/* ---------- Cotizador ---------- */
.quoter { background: #fff; color: var(--text); border-radius: var(--r-card); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 30px 70px -30px rgba(15,22,70,.45); }
.quoter__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 14px 14px 14px; border-bottom: 1px solid var(--line); }
.quoter__live { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.svc { display: flex; gap: 6px; }
.svc__tab {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 14px; text-align: left;
  color: var(--muted); border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.svc__tab svg { width: 24px; height: 24px; flex: none; }
.svc__tab b { display: block; font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.2; }
.svc__tab small { display: block; font-size: 12.5px; }
.svc__tab:hover { background: var(--paper); }
.svc__tab[aria-selected="true"] { background: var(--blue); color: #cdd3f3; }
.svc__tab[aria-selected="true"] b { color: #fff; }
.svc__tab[aria-selected="true"] svg { color: #fff; }

.quoter__body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.qform { padding: 26px 28px 30px; display: grid; gap: 26px; align-content: start; }
#details { display: grid; gap: 26px; }
.fs { display: grid; gap: 14px; }
.fs legend { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.fs__n { width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: #fff; display: grid; place-items: center; font-size: 12px; letter-spacing: 0; }
label, .lbl { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.hint { font-size: 12.5px; color: var(--muted); min-height: 18px; margin-top: 6px; }
.hint.is-warn { color: var(--warn); }

input[type="text"], input[type="tel"], input[type="date"], input[type="number"], input[type="search"], select {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-in);
  background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover { border-color: #c4c4c4; }
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,60,152,.16); }
input[aria-invalid="true"] { border-color: var(--bad); }
.err { font-size: 12.5px; color: var(--bad); margin-top: 5px; }

.route { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 8px; align-items: end; }
.swap { width: 44px; height: 48px; border-radius: var(--r-in); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: transform .3s var(--ease), color .2s, border-color .2s; }
.swap svg { width: 18px; height: 18px; transform: rotate(90deg); }
.swap:hover { color: var(--blue); border-color: var(--blue); }
.swap:active { transform: rotate(180deg); }
.combo { position: relative; min-width: 0; }
.combo__box { position: relative; }
.combo__box input { padding-left: 38px; text-overflow: ellipsis; }
.pin { position: absolute; left: 15px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 3px solid var(--blue); background: #fff; pointer-events: none; }
.pin--d { border-color: var(--red); border-radius: 3px; }
.combo__list {
  position: absolute; z-index: 900; top: calc(100% + 6px); left: 0; right: 0; max-height: 300px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px;
}
.combo__grp { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.combo__opt { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; font-size: 15px; cursor: pointer; }
.combo__opt small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.combo__opt[aria-selected="true"], .combo__opt:hover { background: var(--blue-50); }
.combo__empty { padding: 12px 10px; font-size: 14px; color: var(--muted); }
.field--date { max-width: 240px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: #bdbdbd; }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.chip small { font-weight: 400; opacity: .7; }
.chip--x[aria-pressed="true"] { background: var(--blue-50); border-color: var(--blue); color: var(--blue-700); }
.chip--x::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #b5b5b5; background: #fff center/11px no-repeat; flex: none; }
.chip--x[aria-pressed="true"]::before { border-color: var(--blue); background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.500 6.300l2.300 2.300 4.700-5'/%3E%3C/svg%3E"); }

.stepper { display: grid; grid-template-columns: 44px 1fr 44px; height: 48px; border: 1px solid var(--line); border-radius: var(--r-in); overflow: hidden; }
.stepper button { font-size: 20px; color: var(--muted); transition: background .15s; }
.stepper button:hover { background: var(--paper); color: var(--text); }
.stepper input { height: 46px; border: 0; border-radius: 0; text-align: center; padding: 0; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { appearance: none; }
.stepper input:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.suffix { position: relative; }
.suffix input { padding-right: 44px; }
.suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--muted); pointer-events: none; }

.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.unit {
  position: relative; text-align: left; padding: 10px 12px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.unit img { height: 62px; width: 100%; object-fit: contain; object-position: left center; margin-bottom: 6px; }
.unit b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.unit small { display: block; font-size: 12.5px; color: var(--muted); }
.unit:hover { border-color: #bdbdbd; }
.unit[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: #fafbff; }
.unit__rec { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; }
.sizes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.size { text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s, background .15s; }
.size b { display: block; font-size: 15px; font-weight: 600; }
.size small { font-size: 12.5px; color: var(--muted); }
.size:hover { border-color: #bdbdbd; }
.size[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: #fafbff; }

/* Resultado */
.qlive { background: var(--paper); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; border-radius: 0 0 var(--r-card) 0; overflow: hidden; }
.qmap { position: relative; height: 270px; flex: none; background: #e9e9e7; }
.qmap__map { position: absolute; inset: 0; z-index: 1; }
.qmap__chip {
  position: absolute; z-index: 500; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); font-size: 13px; font-weight: 500;
}
.qmap__chip:empty { display: none; }
.qmap__chip i { width: 1px; height: 14px; background: var(--line); }
.leaflet-container { font-family: inherit; background: #e9e9e7; }
.leaflet-tile-pane { filter: grayscale(1) contrast(.96); }
.leaflet-control-attribution { font-size: 10px; }
.mk { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.mk--d { border-color: var(--red); border-radius: 4px; }
.mk-label { background: #000; color: #fff; border: 0; border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 500; box-shadow: none; }
.mk-label::before { display: none; }
.route-line { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Ticket (guía de embarque) */
.ticket { position: relative; margin: 18px; background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06); flex: 1; display: flex; flex-direction: column; }
.tk-top { padding: 18px 20px 16px; }
.tk-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tk-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tk-folio { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tk-price { font-size: clamp(32px, 3.2vw, 42px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tk-price small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.tk-range { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.tk-month { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--blue-50); color: var(--blue-700); font-size: 13.5px; font-weight: 500; }
.tk-unit { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.tk-unit img { width: 78px; height: 46px; object-fit: contain; flex: none; }
.tk-unit b { display: block; font-size: 14.5px; font-weight: 600; }
.tk-unit small { font-size: 12.5px; color: var(--muted); }
.tk-cut { position: relative; height: 18px; }
.tk-cut::before { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; border-top: 1.5px dashed #d2d2d2; }
.tk-cut::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 0 50%, var(--paper) 9px, transparent 9.500px),
  radial-gradient(circle at 100% 50%, var(--paper) 9px, transparent 9.500px); }
.tk-lines { padding: 10px 20px 4px; display: grid; gap: 7px; }
.tk-line { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.tk-line span:first-child { color: #3b3b3b; }
.tk-line i { flex: 1; border-bottom: 1px dotted #c9c9c9; transform: translateY(-3px); min-width: 12px; }
.tk-line span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-line--sum { font-weight: 600; padding-top: 8px; margin-top: 3px; border-top: 1px solid var(--line-2); }
.tk-line--sum i { border: 0; }
.tk-line--off span:last-child { color: var(--ok); }
.tk-foot { padding: 16px 20px 20px; margin-top: auto; display: grid; gap: 10px; }
.tk-note { font-size: 12px; color: var(--muted); text-align: center; }
.tk-wait { font-size: 22px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; margin-top: 10px; text-wrap: balance; }
.tk-check { padding: 0 20px; }
.tk-check li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line-2); }
.tk-check__i { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #c9c9c9; display: grid; place-items: center; font-size: 13.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tk-check__i svg { width: 15px; height: 15px; stroke-width: 2.4; }
.tk-check .is-done .tk-check__i { background: var(--blue); border-color: var(--blue); color: #fff; }
.tk-check b { font-size: 15px; font-weight: 600; }
.tk-check small { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-empty { padding: 34px 24px; text-align: center; color: var(--muted); margin: auto; }
.tk-empty svg { width: 34px; height: 34px; color: #b9b9b9; margin: 0 auto 10px; display: block; }
.tk-empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.lead { display: grid; gap: 10px; }
.lead .grid2 { gap: 10px; }
.lead label { margin-bottom: 4px; }
.lead input { height: 46px; }
.tk-done { padding: 22px 20px 6px; text-align: center; }
.tk-done__ico { width: 46px; height: 46px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; animation: pop .4s var(--ease); }
.tk-done__ico svg { width: 22px; height: 22px; stroke-width: 2.2; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.tk-done h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.tk-done p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.tk-done__folio { display: inline-block; margin-top: 12px; padding: 6px 14px; border-radius: 8px; background: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.linkbtn { font-size: 14px; font-weight: 500; color: var(--blue); min-height: 40px; }
.linkbtn:hover { text-decoration: underline; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pie ---------- */
.foot { padding: 0 0 28px; font-size: 13px; color: var(--muted); }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot strong { color: var(--text); font-weight: 600; }

/* ---------- Guía: modo enfoque ---------- */
.quoter { position: relative; }
.g-step { transition: opacity .35s var(--ease), box-shadow .35s var(--ease); }
.guiding .g-step:not(.g-on) { opacity: .28; }
.guiding .g-on { border-radius: 14px; box-shadow: 0 0 0 10px #fff, 0 0 0 12px var(--blue); }
.guiding #qlive.g-on { border-radius: 0 0 var(--r-card) 0; box-shadow: inset 0 0 0 2px var(--blue); }
.coach { position: absolute; z-index: 950; width: 330px; background: #0e1330; color: #fff; border-radius: 18px; padding: 20px 20px 16px; box-shadow: 0 24px 50px -14px rgba(10,14,50,.55); animation: coachin .35s var(--ease); }
.coach[hidden] { display: none; }
@keyframes coachin { from { opacity: 0; transform: translateY(10px); } }
.coach__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.coach__n { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--blue-700); display: grid; place-items: center; font-size: 16px; font-weight: 700; flex: none; }
.coach__of { font-size: 13px; color: #aab2e0; font-variant-numeric: tabular-nums; }
.coach__x { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #aab2e0; }
.coach__x:hover { background: rgba(255,255,255,.1); color: #fff; }
.coach__x svg { width: 18px; height: 18px; }
.coach h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.coach p { font-size: 15px; color: #cfd4f1; margin-top: 6px; }
.coach__actions { display: flex; gap: 8px; margin-top: 16px; }
.coach__actions .btn { min-height: 44px; flex: 1; background: #fff; color: var(--blue-700); font-weight: 600; }
.coach__actions .btn:hover { background: #e4e8fb; }
.coach__actions .btn--back { flex: none; background: rgba(255,255,255,.12); color: #fff; padding: 0 16px; }
.coach__actions .btn--back:hover { background: rgba(255,255,255,.2); }
.coach :focus-visible { outline-color: #fff; }
.guidebtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: border-color .2s, color .2s; }
.guidebtn svg { width: 17px; height: 17px; }
.guidebtn:hover { border-color: var(--blue); color: var(--blue-700); }
.quoter__meta { display: flex; align-items: center; gap: 16px; padding-right: 6px; }

/* ---------- Precio fijo (pantallas chicas) ---------- */
.pricebar { display: none; }

/* ---------- Panel interno ---------- */
body[data-view="panel"] { background: var(--paper); }
.panel { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; padding-top: var(--bar); }
.panel[hidden], .site[hidden] { display: none; }
.side { background: #000; color: #b9b9b9; padding: 26px 16px 20px; display: flex; flex-direction: column; position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); }
.side__logo { height: 30px; width: auto; margin: 0 10px 34px; align-self: flex-start; }
.side__nav { display: grid; gap: 4px; }
.side__nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 500; text-align: left; transition: background .15s, color .15s; }
.side__nav svg { width: 19px; height: 19px; }
.side__nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.side__nav button[aria-current="page"] { background: var(--blue); color: #fff; }
.side__badge { margin-left: auto; min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; line-height: 22px; text-align: center; }
.side__badge:empty { display: none; }
.side__user { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
.side__user b { display: block; color: #fff; font-size: 14px; font-weight: 500; }
.side__user small { font-size: 12.5px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--char); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; flex: none; }

.pmain { min-width: 0; padding: 30px 36px 60px; }
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.phead h1 { font-size: 32px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.phead p { color: var(--muted); font-size: 14.5px; }
.phead__right { display: flex; align-items: center; gap: 14px; }
.sample { font-size: 12.5px; color: var(--muted); padding: 5px 10px; border: 1px dashed #bdbdbd; border-radius: 8px; }
/* Resumen */
.rs { display: grid; gap: 16px; }
.rs-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.card { background: #fff; border-radius: 18px; padding: 24px; min-width: 0; }
.card__h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.card__h h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.card__h span { font-size: 13px; color: var(--muted); }

/* Por atender */
.todo { background: #0e1330; color: #fff; border-radius: 18px; padding: 24px 24px 12px; display: flex; flex-direction: column; min-width: 0; }
.todo__head { display: flex; align-items: flex-end; gap: 18px; padding-bottom: 20px; }
.todo__n { font-size: 84px; font-weight: 600; letter-spacing: -.06em; line-height: .82; font-variant-numeric: tabular-nums; }
.todo__head p { font-size: 17px; font-weight: 500; line-height: 1.3; }
.todo__head small { display: block; font-size: 14px; font-weight: 400; color: #aab2e0; }
.todo__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; gap: 4px 14px; align-items: center; width: 100%; text-align: left; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.13); color: #fff; }
.todo__row b { font-size: 15.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo__row small { grid-column: 1; font-size: 13.5px; color: #aab2e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo__row span { grid-row: 1 / 3; grid-column: 2; text-align: right; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.todo__row span em { display: block; font-style: normal; font-size: 12.5px; font-weight: 400; color: #aab2e0; }
.todo__row svg { grid-row: 1 / 3; grid-column: 3; width: 18px; height: 18px; color: #aab2e0; transition: transform .2s var(--ease), color .2s; }
.todo__row:hover svg { transform: translateX(3px); color: #fff; }
.todo__ok { padding: 18px 0 14px; border-top: 1px solid rgba(255,255,255,.13); color: #aab2e0; font-size: 15px; }
.todo :focus-visible { outline-color: #fff; }

/* Dinero por estatus */
.money__big { font-size: clamp(34px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.money__sub { font-size: 14px; color: var(--muted); margin-top: 8px; }
.stack { display: flex; gap: 2px; height: 14px; margin: 22px 0 8px; }
.stack i { display: block; min-width: 4px; border-radius: 3px; transform-origin: left; animation: grow .7s var(--ease) both; }
.stack i:first-child { border-radius: 7px 3px 3px 7px; } .stack i:last-child { border-radius: 3px 7px 7px 3px; }
.s-ganada { background: var(--ok); } .s-enviada { background: #d99a1c; } .s-nueva { background: var(--blue); } .s-perdida { background: #c9c9c9; }
.money__rows { display: grid; }
.money__row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; width: 100%; text-align: left; }
.money__row:last-child { border-bottom: 0; }
.money__row i { width: 10px; height: 10px; border-radius: 3px; }
.money__row em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.money__row b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 86px; text-align: right; }
.money__row:hover span { text-decoration: underline; }

/* Cifras en una sola tira */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 18px; }
.strip div { padding: 20px 24px; border-left: 1px solid var(--line-2); min-width: 0; }
.strip div:first-child { border-left: 0; }
.strip p { font-size: 13.5px; color: var(--muted); }
.strip b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; font-variant-numeric: tabular-nums; margin-top: 2px; }
.strip small { font-size: 13px; color: var(--muted); }
.strip s { text-decoration-thickness: 1.5px; }
.strip .is-hl b { color: var(--blue); }

/* Mapa de demanda */
.demand { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); background: #fff; border-radius: 18px; overflow: hidden; }
.demand__map { position: relative; min-height: 420px; background: #e9e9e7; }
.demand__map > div { position: absolute; inset: 0; z-index: 1; }
.demand__side { padding: 24px 24px 12px; min-width: 0; }
.rank { display: grid; }
.rank__row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; width: 100%; text-align: left; padding: 12px 0; border-top: 1px solid var(--line-2); }
.rank__row > span:first-child { grid-row: 1 / 3; align-self: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank__row b { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank__row em { font-style: normal; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank__row small { grid-column: 2 / 4; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.rank__row small i { flex: 1; height: 4px; border-radius: 2px; background: var(--paper); overflow: hidden; }
.rank__row small i u { display: block; height: 100%; background: var(--blue); border-radius: 2px; transition: background .15s; }
.rank__row:hover b, .rank__row:focus-visible b { color: var(--blue-700); }
.rank__row:hover u, .rank__row:focus-visible u { background: var(--red); }
.dm-dot { width: 10px; height: 10px; border-radius: 50%; background: #000; border: 2px solid #fff; }
.dm-dot--d { background: var(--red); border-radius: 3px; }

.rs-bottom { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }
/* Barras por día: una sola serie, un solo tono */
.bars { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; align-items: end; height: 190px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1px solid var(--line-2); }
.bars::before { top: 22px; } .bars::after { top: calc(22px + (100% - 22px) / 2); }
.bar { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar i { display: block; width: min(22px, 70%); min-height: 2px; background: var(--blue); border-radius: 4px 4px 0 0; transition: background .15s; }
.bar:hover i, .bar:focus-visible i { background: var(--blue-700); }
.bar.is-today i { background: var(--red); }
.bar__tip { position: absolute; bottom: calc(100% - 16px); left: 50%; transform: translateX(-50%); background: #000; color: #fff; padding: 5px 9px; border-radius: 8px; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5; }
.bar:hover .bar__tip, .bar:focus-visible .bar__tip { opacity: 1; }
.bars__x { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; margin-top: 8px; font-size: 11.5px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--blue); margin-right: 6px; }
.legend i.r { background: var(--red); }

.hbars { display: grid; gap: 14px; }
.hbar { display: grid; gap: 6px; }
.hbar__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.hbar__top span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbar__track { height: 8px; background: var(--paper); border-radius: 4px; overflow: hidden; }
.hbar__track i { display: block; height: 100%; background: var(--blue); border-radius: 0 4px 4px 0; transform-origin: left; animation: grow .7s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* Tabla */
.tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.tools input[type="search"] { max-width: 300px; height: 44px; font-size: 15px; }
.tools select { width: auto; height: 44px; font-size: 15px; }
.tools .chips { margin-right: auto; }
.chip b { font-weight: 500; opacity: .6; font-variant-numeric: tabular-nums; }
.tablewrap { background: #fff; border-radius: 18px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 860px; }
th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: #fafafa; }
tbody tr:last-child td { border-bottom: 0; }
tr.is-new { animation: flash 2.6s ease-out; }
@keyframes flash { 0%, 40% { background: var(--blue-50); } }
td .sub { display: block; font-size: 12.5px; color: var(--muted); }
td.r, th.r { text-align: right; }
.folio { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.tag-new { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 600; vertical-align: 1px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 500; white-space: nowrap; background: var(--paper); color: #444; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--nueva { background: var(--blue-50); color: var(--blue-700); }
.pill--enviada { background: var(--warn-bg); color: var(--warn); }
.pill--ganada { background: var(--ok-bg); color: var(--ok); }
.pill--perdida { background: var(--bad-bg); color: var(--bad); }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }

/* Drawer */
.scrim { position: fixed; inset: 0; z-index: 1300; background: rgba(0,0,0,.42); animation: fade .2s; }
.scrim[hidden], .drawer[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1310; width: min(480px, 100%); background: #fff; display: flex; flex-direction: column; animation: slide .28s var(--ease); box-shadow: -20px 0 60px -20px rgba(0,0,0,.3); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.dr-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.dr-head h2 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.dr-head p { font-size: 14px; color: var(--muted); }
.dr-x { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); margin: -8px -10px 0 0; }
.dr-x:hover { background: var(--paper); color: var(--text); }
.dr-x svg { width: 20px; height: 20px; }
.dr-body { padding: 20px 24px; overflow: auto; flex: 1; display: grid; gap: 22px; align-content: start; }
.dr-sec h3 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.dr-route { display: grid; gap: 0; position: relative; padding-left: 26px; }
.dr-route::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; border-left: 1.5px dashed #c4c4c4; }
.dr-route div { position: relative; padding: 4px 0; font-weight: 500; }
.dr-route div small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.dr-route div::before { content: ""; position: absolute; left: -26px; top: 9px; width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--blue); background: #fff; }
.dr-route div:last-child::before { border-color: var(--red); border-radius: 3px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14.5px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; text-align: right; }
.dr-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; background: var(--paper); border-radius: 12px; font-weight: 600; margin-top: 12px; }
.dr-total b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dr-foot { padding: 16px 24px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.dr-status { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dr-status button { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; transition: background .15s, border-color .15s; }
.dr-status button:hover { border-color: #bdbdbd; }
.dr-status button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }

/* Tarifario */
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rate { background: #fff; border-radius: 18px; padding: 18px 22px 22px; }
.rate img { height: 84px; width: 100%; object-fit: contain; object-position: left; }
.rate h2 { font-size: 18px; font-weight: 600; margin: 8px 0 2px; }
.rate > p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.rate__f { display: grid; grid-template-columns: 1fr 132px; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.rate__f label { margin: 0; font-size: 14px; color: var(--text); font-weight: 400; }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; }
.money input { height: 42px; padding-left: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.money.pct::before { content: "%"; left: auto; right: 12px; }
.money.pct input { padding: 0 30px 0 12px; }
.rates2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.ratebar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border-radius: 18px; padding: 16px 22px; margin-bottom: 16px; font-size: 14.5px; }
.ratebar p { display: flex; gap: 10px; align-items: center; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 2000; transform: translate(-50%, 20px); background: #000; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .quoter__body { grid-template-columns: 1fr; }
  .qlive { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-card) var(--r-card); }
  .guiding #qlive.g-on { border-radius: 0 0 var(--r-card) var(--r-card); }
  .quoter__live { display: none; }
  .rates, .rates2, .rs-top, .rs-bottom, .demand { grid-template-columns: 1fr; }
  .demand__map { min-height: 320px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip div:nth-child(3) { border-left: 0; }
  .strip div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps__n { margin-bottom: 24px; }
  /* la guía pasa a ser una hoja fija abajo */
  .coach { position: fixed; left: 16px !important; right: 16px; top: auto !important; bottom: calc(16px + env(safe-area-inset-bottom)); width: auto; max-width: 460px; margin-inline: auto; z-index: 1400; }
  /* precio siempre a la vista mientras se llena el formulario */
  .pricebar { position: fixed; z-index: 1300; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transition: transform .3s var(--ease); }
  .pricebar[hidden] { display: flex; transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
  .pricebar small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pricebar b { font-size: 22px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
  .pricebar div { min-width: 0; }
  .pricebar .btn { flex: none; }
}
@media (max-width: 860px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; scrollbar-width: none; position: sticky; top: var(--bar); z-index: 50; height: auto; flex-direction: row; align-items: center; padding: 8px 12px; overflow-x: auto; }
  .side__logo, .side__user { display: none; }
  .side__nav { grid-auto-flow: column; }
  .side__nav button { white-space: nowrap; }
  .pmain { padding: 22px 16px 48px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .demobar { grid-template-columns: 1fr; justify-items: center; padding: 0 8px; }
  .demobar__label, .demobar__by { display: none; }
  .top .wrap { height: 54px; }
  .top img { height: 25px; }
  .hero { padding: 28px 0 40px; }
  .hero__band { height: 300px; }
  .hero__band i:nth-child(1), .hero__band i:nth-child(2) { display: none; }
  .hero__band i:nth-child(3) { right: -118px; }
  .hero__copy { margin-bottom: 22px; }
  .hero h1 { font-size: 29px; }
  .hero__lead { font-size: 16px; margin-top: 10px; }
  /* cotizador a todo el ancho */
  .quoter { margin-inline: -8px; border-radius: 20px; }
  .quoter__head { padding: 6px; border-bottom: 0; }
  .quoter__meta { display: none; }
  .svc { width: 100%; background: var(--paper); border-radius: 15px; padding: 4px; gap: 4px; }
  .svc__tab { flex: 1; justify-content: center; gap: 8px; padding: 0 6px; min-height: 48px; border-radius: 12px; }
  .svc__tab svg { width: 20px; height: 20px; }
  .svc__tab small { display: none; }
  .svc__tab b { font-size: 14.5px; }
  .svc__tab:hover { background: transparent; }
  .svc__tab[aria-selected="true"]:hover { background: var(--blue); }
  .qform { padding: 18px 16px 26px; gap: 28px; }
  #details { gap: 28px; }
  .fs legend { margin-bottom: 12px; }
  .route { grid-template-columns: 1fr; gap: 10px; }
  .route label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .combo__box input { height: 54px; padding-left: 44px; }
  .combo__box::before { position: absolute; left: 44px; top: 7px; font-size: 11.5px; color: var(--muted); pointer-events: none; }
  .combo[data-combo="origen"] .combo__box::before { content: "Origen"; }
  .combo[data-combo="destino"] .combo__box::before { content: "Destino"; }
  .combo__box input { padding-top: 18px; font-weight: 500; }
  .pin { left: 18px; }
  .swap { position: absolute; right: 12px; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; background: #fff; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
  .swap svg { transform: none; }
  .route { position: relative; }
  .combo__box input { padding-right: 64px; }
  .combo__list { max-height: 44vh; }
  .combo__opt { padding: 12px 10px; }
  .field--date { max-width: none; }
  .field--date input { height: 54px; }
  .chip { min-height: 44px; }
  .stepper, .suffix input { height: 54px; }
  .stepper { grid-template-columns: 52px 1fr 52px; }
  .stepper input { height: 52px; }
  .units { grid-template-columns: 1fr; gap: 8px; }
  .unit { display: grid; grid-template-columns: 88px 1fr; column-gap: 14px; align-items: center; padding: 12px 14px; min-height: 76px; }
  .unit img { grid-row: span 2; height: 52px; margin: 0; }
  .unit b { align-self: end; } .unit small { align-self: start; }
  .unit__rec { top: 8px; right: 8px; font-size: 10.5px; padding: 1px 7px; }
  .sizes { grid-template-columns: 1fr; gap: 8px; }
  .size { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; }
  .grid2 { gap: 10px; }
  .qmap { height: 200px; }
  .qlive { border-radius: 0 0 20px 20px; }
  .ticket { margin: 12px; }
  .tk-top { padding: 18px 16px 14px; }
  .tk-row { flex-direction: column; gap: 2px; }
  .tk-lines { padding: 10px 16px 4px; }
  .tk-foot { padding: 16px; }
  .tk-foot .btn { min-height: 52px; font-size: 15.5px; }
  .lead .grid2 { grid-template-columns: 1fr; }
  .lead input { height: 52px; }
  .trust { padding: 22px 4px 0; gap: 18px; }
  .trust__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; font-size: 13.5px; width: 100%; }
  .trust__clients { gap: 6px 16px; font-size: 13.5px; }
  .trust__clients span { width: 100%; }
  .sec { padding: 8px 0 56px; }
  .sec__head { margin-bottom: 22px; }
  .sec__head .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; border-top: 1px solid var(--line); padding: 20px; display: grid; grid-template-columns: 30px 1fr; column-gap: 16px; }
  .steps li:first-child { border-top: 0; }
  .steps__n { margin: 0; grid-row: span 2; }
  .foot { padding-bottom: 96px; }
  /* Panel */
  .phead { margin-bottom: 18px; }
  .phead h1 { font-size: 26px; }
  .phead__right { width: 100%; justify-content: space-between; }
  .sample { display: none; }
  .linkbtn { min-height: 44px; }
  .seg--dark .seg__btn { min-height: 36px; padding: 0 16px; }
  .todo { padding: 20px 18px 8px; }
  .todo__n { font-size: 68px; }
  .card { padding: 20px 18px; }
  .strip div { padding: 16px 18px; }
  .strip b { font-size: 22px; }
  .demand__map { min-height: 260px; }
  .demand__side { padding: 20px 18px 8px; }
  .bars { height: 150px; }
  .tools { gap: 10px; }
  .tools .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; width: calc(100% + 32px); }
  .tools .chips::-webkit-scrollbar { display: none; }
  .tools .chip { flex: none; }
  .tools select, .tools input[type="search"] { flex: 1; min-width: 0; max-width: none; height: 48px; font-size: 16px; }
  /* la tabla se vuelve lista de tarjetas */
  .tablewrap { background: transparent; border-radius: 0; overflow: visible; }
  table { min-width: 0; display: block; }
  thead { display: none; }
  tbody { display: grid; gap: 10px; }
  tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; background: #fff; border-radius: 16px; padding: 16px; }
  td { padding: 0; border: 0; }
  td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 13px; color: var(--muted); font-weight: 400; }
  td:nth-child(7) { grid-column: 2; grid-row: 1; justify-self: end; }
  td:nth-child(2) { grid-column: 1 / 3; grid-row: 2; font-weight: 600; font-size: 16px; margin-top: 6px; }
  td:nth-child(2) .sub { display: inline; font-weight: 400; margin-left: 6px; }
  td:nth-child(4) { grid-column: 1 / 3; grid-row: 3; font-size: 14.5px; color: #444; }
  td:nth-child(4) .sub { display: inline; margin-left: 6px; }
  td:nth-child(3), td:nth-child(5) { display: none; }
  td:nth-child(6) { grid-column: 2; grid-row: 4; font-size: 18px; font-weight: 600; margin-top: 10px; }
  td:nth-child(8) { grid-column: 1; grid-row: 4; align-self: end; font-size: 13px; color: var(--muted); }
  .dr-status { grid-template-columns: repeat(2, 1fr); }
  .rate__f { grid-template-columns: 1fr 112px; }
  .ratebar .btn { width: 100%; }
}
/* ---------- Móvil: cotizador por pasos ---------- */
.wzhead { display: none; }
.wz .wzhead { display: block; padding: 16px 16px 6px; }
.wzsteps { display: grid; grid-template-columns: repeat(5, 1fr); margin: 6px -6px 22px; }
.wzsteps li { position: relative; }
/* línea que une cada paso con el anterior */
.wzsteps li + li::before { content: ""; position: absolute; top: 19px; right: 50%; width: 100%; height: 3px; background: var(--line); }
.wzsteps li.is-done + li::before, .wzsteps li.is-done::before, .wzsteps li.is-now::before { background: var(--blue); }
.wzsteps button { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; width: 100%; min-height: 64px; color: var(--muted); }
.wzsteps button:disabled { cursor: default; }
.wzsteps span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background .3s, border-color .3s, box-shadow .3s; }
.wzsteps span svg { width: 18px; height: 18px; stroke-width: 2.4; }
.wzsteps em { font-style: normal; font-size: 12px; font-weight: 500; }
.wzsteps .is-done span { background: var(--blue-50); border-color: var(--blue); color: var(--blue); }
.wzsteps .is-now span { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px rgba(42,60,152,.16); }
.wzsteps .is-now em { color: var(--text); font-weight: 600; }
.wzsteps .is-done em { color: var(--blue-700); }
.wzhead__back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -8px 0 2px -2px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.wzhead__back svg { width: 17px; height: 17px; }
.wzhead h2 { font-size: 25px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.wzhead p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.wz .wzstep { animation: wzin .3s var(--ease); }
@keyframes wzin { from { opacity: 0; transform: translateX(14px); } }

.wz .quoter__head { display: none; padding: 14px 16px 20px; border: 0; }
.wz .quoter[data-wz="0"] .quoter__head { display: block; }
.wz .svc { flex-direction: column; background: none; padding: 0; gap: 10px; }
.wz .svc__tab, .wz .svc__tab:hover { flex-direction: row; justify-content: flex-start; gap: 16px; min-height: 78px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; text-align: left; background: #fff; color: var(--muted); }
.wz .svc__tab svg { width: 28px; height: 28px; color: var(--blue); }
.wz .svc__tab small { display: block; font-size: 13.5px; }
.wz .svc__tab b, .wz .svc__tab[aria-selected="true"] b { font-size: 17px; color: var(--text); }
.wz .svc__tab::after { content: ""; margin-left: auto; margin-right: 4px; width: 9px; height: 9px; border-right: 1.5px solid #8a8a8a; border-top: 1.5px solid #8a8a8a; transform: rotate(45deg); flex: none; }
.wz .svc__tab[aria-selected="true"], .wz .svc__tab[aria-selected="true"]:hover { background: #fafbff; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); color: var(--muted); }
.wz .svc__tab[aria-selected="true"] svg { color: var(--blue); }

.wz .qform { display: none; padding: 14px 16px 26px; }
.wz .quoter[data-wz="1"] .qform, .wz .quoter[data-wz="2"] .qform, .wz .quoter[data-wz="3"] .qform { display: grid; }
.wz #fsRuta, .wz #details, .wz #details .fs { display: none; }
.wz [data-wz="1"] #fsRuta { display: grid; }
.wz [data-wz="2"] #details, .wz [data-wz="3"] #details { display: grid; }
.wz [data-wz="2"] #details .fs:first-child { display: grid; }
.wz [data-wz="3"] #details .fs:not(:first-child) { display: grid; }
.wz .fs__n { display: none; }
.wz [data-wz="1"] legend, .wz [data-wz="2"] legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wz .qmap { height: 170px; border-radius: 14px; overflow: hidden; }
.wz .qlive { display: none; border-top: 0; }
.wz [data-wz="4"] .qlive { display: flex; margin-top: 10px; }
.wz .pricebar > div { display: none; }
.wz .pricebar .btn { flex: 1; min-height: 54px; font-size: 16px; font-weight: 600; }
.wz .coach { display: none; }
.wz-go .hero__copy { display: none; }
.wz-go .hero { padding-top: 12px; }
.wz-go .hero__band { height: 96px; }
.wz .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .route-line { stroke-dashoffset: 0; }
}
