/* Panel del chofer: usa los colores, fuentes y componentes de ../assets/css/styles.css. Mobile first. */
body.admin { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.link { background: none; border: 0; color: var(--accent); font: inherit; font-size: .85rem; padding: 12px 0 0; cursor: pointer; width: 100%; }
.btn--sm { min-height: 40px; padding: .55em 1.1em .55em calc(1.1em + .14em); font-size: .68rem; }
.btn--xs { min-height: 34px; padding: .45em .9em .45em calc(.9em + .1em); font-size: .62rem; letter-spacing: .1em; }

/* Encabezado */
.atop {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.atop__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.atop__brand b { display: block; font-family: var(--font-heading); font-size: calc(1.15rem * var(--h-scale)); font-weight: 500; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atop__brand small { display: block; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }
.atop__logo { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--accent); display: grid; place-items: center; overflow: hidden;
  color: var(--accent); font-size: .66rem; font-weight: 600; }
.atop__logo img { width: 100%; height: 100%; object-fit: cover; }
.atop__out { min-height: 36px; padding: .45em 1em; font-size: .64rem; }
.demo-note { margin: 0; padding: 9px 16px; font-size: .78rem; background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }

.awrap { width: min(960px, 100% - 28px); margin: 18px auto 32px; }
.acard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.acard h3, .sec-title { font-family: var(--font-body); font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 12px; }
.login { max-width: 420px; margin: 40px auto; }
.login h1 { font-size: calc(2rem * var(--h-scale)); margin-bottom: 18px; }

.apane__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.apane__head h2 { margin: 0; font-size: calc(1.8rem * var(--h-scale)); }
.apane__tools { display: flex; gap: 8px; flex-wrap: wrap; }
.seg--sm { margin: 0 0 12px; }
.seg--sm span { height: 38px; font-size: .62rem; }
.seg--4 { grid-template-columns: repeat(4, 1fr); }
.seg--5 { grid-template-columns: repeat(5, 1fr); }
.seg--5 span, .seg--4 span { letter-spacing: .06em; text-indent: .06em; padding: 0 .2em; }
.saved-msg { min-height: 1.2em; margin: 8px 0; font-size: .85rem; color: var(--accent); text-align: center; }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.search { width: 100%; min-height: 44px; padding: .5em .85em; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.search:focus { outline: none; border-color: var(--accent); }

/* Listas genéricas */
.alist { display: grid; gap: 8px; }
.arow {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; width: 100%; text-align: left; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.arow:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.arow.is-off { opacity: .5; }
.arow__img { flex: none; width: 92px; height: 54px; object-fit: contain; background: #fff; border-radius: 8px; }
.arow__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-2); }
.arow__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arow__main { flex: 1; min-width: 0; }
.arow__main b { display: block; font-weight: 600; font-size: .95rem; }
.arow__main small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow__chev { color: var(--muted); font-size: 1.3rem; }
.arow__side { display: flex; gap: 6px; align-items: center; flex: none; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; font-size: .9rem; }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* Interruptor */
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch input:checked + span { background: color-mix(in srgb, var(--accent) 35%, var(--surface-2)); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--accent); }

/* Solicitudes */
.req { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.req.is-pending { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 18px -10px var(--glow); }
.req.is-flash { animation: flash 1.6s ease 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 2px var(--accent), 0 0 30px -6px var(--glow); } }
.req__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.req__who b { display: block; font-size: 1rem; }
.req__who a { color: var(--accent-2); font-size: .85rem; }
.badge { flex: none; font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .45em .8em; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge--pending { color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
.badge--invoiced { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.badge--paid, .badge--accepted { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 55%, transparent); }
.badge--declined, .badge--cancelled { color: var(--muted); border-color: var(--line); text-decoration: line-through; }
.req__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; padding: 12px 0; border-block: 1px solid var(--line); }
.req__grid div { min-width: 0; }
.req__grid .wide { grid-column: 1 / -1; }
.req__grid dt { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.req__grid dd { margin: 0; font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; }
.req__grid dd.money { font-family: var(--font-heading); font-size: 1.35rem; color: var(--accent); line-height: 1.1; }
.req__extra { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.req__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.req__actions.two { grid-template-columns: 1fr 1fr; }
.req__actions .btn { min-height: 44px; padding-left: .6em; padding-right: .6em; }
.req__note { margin: 10px 0 0; font-size: .8rem; color: var(--accent-2); }

/* Clientes: una línea por cliente */
.crow { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.crow__name { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow__name i { font-style: normal; font-size: .6rem; letter-spacing: .1em; color: var(--accent-2); margin-left: 6px; }
.crow__contact { grid-column: 1 / 2; display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); min-width: 0; }
.crow__contact span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.crow__trips { grid-row: 1 / 3; grid-column: 2; min-width: 58px; padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 10px; background: none; color: var(--accent); cursor: pointer; text-align: center; font: inherit; }
.crow__trips b { display: block; font-family: var(--font-heading); font-size: 1.25rem; line-height: 1; }
.crow__trips small { font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; }
.crow__call { grid-row: 1 / 3; grid-column: 3; }
.trip-mini { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.trip-mini b { font-weight: 600; }
.trip-mini small { grid-column: 2 / 4; color: var(--muted); font-size: .78rem; }
.trip-mini .money { font-family: var(--font-heading); color: var(--accent); font-size: 1.1rem; }

/* Reportes */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.kpi { padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.kpi small { display: block; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; font-family: var(--font-heading); font-size: calc(1.7rem * var(--h-scale)); color: var(--accent); font-weight: 500; line-height: 1.15; margin-top: 4px; }
.kpi em { font-style: normal; font-size: .72rem; color: var(--muted); }
.kpi em.up { color: var(--accent); } .kpi em.down { color: var(--muted); }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; align-items: center; font-size: .78rem; }
.bar span:first-child { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar i { display: block; height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, transparent)); min-width: 2px; }
.bar b { font-weight: 600; white-space: nowrap; }
.rtable { width: 100%; border-collapse: collapse; font-size: .82rem; }
.rtable th { text-align: left; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.rtable td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.rtable td.n, .rtable th.n { text-align: right; white-space: nowrap; }

/* Calendario */
.cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cal__head b { font-family: var(--font-heading); font-size: calc(1.15rem * var(--h-scale)); font-weight: 500; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal__dow { text-align: center; font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 2px 0; }
/* Calendario compacto: filas bajas para que los viajes del día se vean sin bajar */
.cal { padding-top: 12px; padding-bottom: 12px; }
.cal__day { height: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0;
  border-radius: 7px; border: 1px solid transparent; background: var(--surface); color: var(--text); font: inherit; font-size: .8rem; line-height: 1; cursor: pointer; }
.cal__day.is-other { opacity: .3; }
.cal__day.is-today { border-color: var(--accent-2); }
.cal__day.is-sel { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.cal__legend { margin: 8px 0 0; font-size: .7rem; color: var(--muted); text-align: center; }
.cal__dots { display: flex; gap: 2px; height: 5px; }
.cal__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal__dots i.p { background: transparent; border: 1px solid var(--accent); }
.cal__day.is-sel .cal__dots i { background: var(--accent-text); }
.agenda { margin-top: 14px; }
.agenda__item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.agenda__item b { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 500; }
.agenda__item p { margin: 2px 0 8px; font-size: .85rem; color: var(--muted); }
.agenda__item .btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Horarios */
.windows { display: grid; gap: 10px; }
.win { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 8px; align-items: center; }
.win b { grid-column: 1 / -1; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.win input { min-width: 0; width: 100%; min-height: 44px; padding: .5em .6em; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; color-scheme: dark; }
.vchips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; }
.vchip { flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: .8rem; cursor: pointer; white-space: nowrap; }
.vchip img { width: 58px; height: 34px; padding: 2px 4px; box-sizing: border-box; object-fit: contain; background: #fff; border-radius: 6px; }  /* esquinas suaves: la foto entera, sin recortar el auto */
.vchip.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.grid-adj { display: grid; grid-template-columns: 40px repeat(3, minmax(0, 1fr)); gap: 6px; align-items: start; }
.grid-adj .h { font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; line-height: 1.25; padding-bottom: 2px; }
.grid-adj .d { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding-top: 12px; }
.pct { position: relative; display: block; }
.pct input { width: 100%; min-height: 42px; padding: .4em 1.5em .4em .4em; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; text-align: right; -moz-appearance: textfield; }
.pct input::-webkit-outer-spin-button, .pct input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pct::after { content: "%"; position: absolute; right: .55em; top: 21px; transform: translateY(-50%); color: var(--muted); font-size: .8rem; pointer-events: none; }
.pct small { display: block; text-align: center; font-size: .7rem; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.pct.is-up input { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent); }
.pct.is-up small { color: var(--accent); }
.pct.is-down input { border-color: color-mix(in srgb, var(--accent-2) 55%, transparent); color: var(--accent-2); }
.pct.is-down small { color: var(--accent-2); }

/* Catálogo de vehículos */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.cat { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cat:hover { border-color: var(--accent); }
.cat img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; border-radius: 6px; }
.cat b { font-size: .82rem; font-weight: 600; line-height: 1.2; }
.cat small { font-size: .68rem; color: var(--muted); }
.cat--other { justify-content: center; align-items: center; text-align: center; min-height: 120px; border-style: dashed; }
.cat--other b { font-size: 1.6rem; color: var(--accent); }

/* Apariencia */
.skins { display: grid; grid-template-columns: 1fr; gap: 8px; }
.skin { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.skin.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.skin small { display: block; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.skin .sh { display: block; font-size: 1.45rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin .sb { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 8px; }
.swatch { position: relative; aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatch.is-on { border-color: var(--text); box-shadow: 0 0 0 3px var(--bg) inset; }
.swatch-name { display: block; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.swatch--custom { background: conic-gradient(#ff3b3b, #ffe01a, #2bff88, #00e5ff, #4f8dff, #e54cff, #ff3b3b); }
.cpick { display: grid; grid-template-columns: 1fr 26px; grid-template-areas: "sv hue" "side side" "warn warn"; gap: 12px; margin-top: 14px; max-width: 420px; }
.cpick__sv { grid-area: sv; position: relative; aspect-ratio: 1; border-radius: 8px; touch-action: none; cursor: crosshair;
  background-image: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent); }
.cpick__pin { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.6); pointer-events: none; }
.cpick__hue { grid-area: hue; position: relative; border-radius: 6px; touch-action: none; cursor: ns-resize;
  background: linear-gradient(to bottom, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); }
.cpick__hpin { position: absolute; left: -3px; right: -3px; height: 6px; margin-top: -3px; border: 2px solid #fff; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.6); pointer-events: none; }
.cpick__side { grid-area: side; display: flex; align-items: center; gap: 10px; }
.cpick__chip { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.cpick__hex { display: flex; align-items: center; gap: 6px; flex: 1; max-width: 180px; padding: 0 12px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--muted); }
.cpick__hex input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; outline: none; padding: 0; }
.cpick__warn { grid-area: warn; margin: 0; color: var(--accent); font-weight: 600; }
.cpick__warn:empty { display: none; }
.preview { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.preview .eyebrow { margin-bottom: .4em; }
.preview h4 { font-family: var(--font-heading); font-weight: var(--h-weight); letter-spacing: var(--h-track); font-size: calc(2rem * var(--h-scale)); line-height: 1.1; margin: 0 0 6px; }
.preview h4 em { color: var(--accent); font-style: italic; }
.preview p { font-size: calc(.95rem * var(--b-scale)); color: var(--muted); }
.logo-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-pick .lp { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--accent); overflow: hidden; display: grid; place-items: center; background: var(--bg); color: var(--accent); flex: none; }
.logo-pick .lp img { width: 100%; height: 100%; object-fit: cover; }
.logo-pick input[type=file] { display: none; }

/* Ajustes */
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row p { margin: 0; font-size: .85rem; }
.set-row small { display: block; color: var(--muted); font-size: .75rem; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; min-width: 0; min-height: 40px; padding: .4em .7em; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--muted); font: inherit; font-size: .78rem; }

/* Zonas */
.area-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 14px; }
.area-add input { min-height: 44px; padding: .5em .8em; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.area-add input:focus { outline: none; border-color: var(--accent); }
.chips--edit li { display: inline-flex; align-items: center; gap: 4px; padding-right: .4em; }
.chips--edit button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.chips--edit button:hover { color: var(--accent); background: var(--surface-2); }

/* Hoja */
.sheet { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet__card { width: min(620px, 100%); max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 16px 16px 0; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.sheet__head h3 { margin: 0; font-size: calc(1.5rem * var(--h-scale)); }
.sheet__x { width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }
.sheet__foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin: 8px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); }
.sheet__foot:empty { display: none; }
.sheet__foot .btn { width: 100%; }
.sheet__foot.one { grid-template-columns: 1fr; }
.sheet__body-pad { padding-bottom: 16px; }
.sheet h4 { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); margin: 16px 0 10px; font-weight: 600; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.img-pick { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.img-pick img { width: 140px; height: 80px; object-fit: contain; background: #fff; border-radius: 8px; }
.img-pick input[type=file] { display: none; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.geo { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.geo .btn { min-height: 48px; margin-bottom: 12px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 16px; }
.more-grid button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: .75rem; cursor: pointer; }
.more-grid svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Aviso flotante */
.toast { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 90; width: max-content; max-width: min(92vw, 420px); padding: 12px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--accent); box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 24px -8px var(--glow); font-size: .88rem; cursor: pointer; }

/* Pestañas: barra inferior en el teléfono (4 + Más), barra superior completa en desktop */
.atabs {
  position: fixed; inset: auto 0 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 2px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.atabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; min-height: 52px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .56rem; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.atabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.atabs button.is-active { color: var(--accent); }
.atabs .dot { position: absolute; top: 3px; left: 56%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: .6rem; font-weight: 700; line-height: 16px; letter-spacing: 0; }
.atabs .dot:empty { display: none; }
.atabs [data-tab].is-secondary { display: none; }

@media (min-width: 760px) {
  /* Escritorio: calendario chico a la izquierda y los viajes del día a la derecha */
  .cal-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
  .cal-wrap > .acard { margin: 0; }   /* las dos tarjetas empiezan a la misma altura */
  body.admin { padding-bottom: 0; }
  .atabs { position: sticky; top: 59px; inset: auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; border-top: 0; border-bottom: 1px solid var(--line); padding: 4px; }
  .atabs button { flex-direction: row; font-size: .64rem; padding: 10px 12px; min-height: 42px; }
  .atabs svg { width: 17px; height: 17px; }
  .atabs [data-tab].is-secondary { display: flex; }
  .atabs [data-more] { display: none; }
  .atabs .dot { position: static; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .skins { grid-template-columns: 1fr 1fr; }
  .sheet { align-items: center; }
  .sheet__card { border-radius: 18px; }
  .req__actions { grid-template-columns: repeat(3, 180px); }
  .req__actions.two { grid-template-columns: repeat(2, 180px); }
  .req__grid { grid-template-columns: repeat(4, 1fr); }
  .req__grid .wide { grid-column: span 2; }
  .crow { grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr) auto auto; }
  .crow__contact { grid-column: 2; grid-row: 1; }
  .crow__trips, .crow__call { grid-row: 1; }
  .crow__trips { grid-column: 3; display: flex; align-items: baseline; gap: 6px; }
  .crow__call { grid-column: 4; }
  .reports-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
  .reports-2 .acard { margin: 0; }
}

/* Ajustes: contacto y conexión con Square */
.field .help { display: block; margin-top: 6px; font-size: .74rem; line-height: 1.4; color: var(--muted); }
.btn--block { display: flex; width: 100%; }
.linkbtn { display: block; width: 100%; margin-top: 4px; padding: 12px 0; background: none; border: 0; color: var(--accent); font: inherit; font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.steps-list { margin: 0 0 16px; padding-left: 1.2em; font-size: .86rem; line-height: 1.5; }
.steps-list li { margin-bottom: 10px; }
.steps-list a { color: var(--accent); }
.steps-list .copy-field { margin-top: 8px; }
.more { margin: 4px 0 14px; border-top: 1px solid var(--line); }
.more summary { padding: 14px 0; font-size: .85rem; color: var(--accent); cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " +"; }
.more[open] summary::after { content: " −"; }
.row2a { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.set-row--check { cursor: pointer; }
.req__extras { font-weight: 600; color: var(--accent); }

/* Las listas no crecen más que la pantalla aunque un texto sea largo */
.alist { grid-template-columns: minmax(0, 1fr); }
.arow { min-width: 0; }

/* Apariencia: 4 pasos + vista previa del sitio real */
.ap { display: grid; gap: 14px; }
.ap__steps { display: grid; gap: 14px; min-width: 0; }
.ap__steps .acard, .ap__preview .acard { margin: 0; }
.ap__h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.ap__h h3 { margin: 2px 0 2px; }
.ap__h p { margin: 0; }
.ap__n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: .8rem; }
.ap__ptop { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ap__ptop h3 { margin: 0; }
.ap__dev { margin: 0; min-width: 220px; }
.ap__frame { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #000; margin-bottom: 8px; }
.ap__frame--phone { max-width: 330px; margin-inline: auto; border-radius: 22px; }
.ap__frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; }
.ap__bar { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 5; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); }
.ap__bar .saved-msg:empty { display: none; }
.apmodes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.apmode { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: center; }
.apmode.is-on, .appal.is-on, .aplay.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.apmode__demo { position: relative; display: block; height: 64px; border-radius: 8px; border: 1px solid var(--line); overflow: hidden; }
.apmode__demo i { position: absolute; left: 10%; right: 40%; top: 18%; bottom: 18%; border-radius: 6px; }
.apmode__demo b { position: absolute; right: 10%; width: 22%; top: 38%; height: 24%; border-radius: 999px; }
.appals { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.appal { display: grid; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; cursor: pointer; text-align: left; min-width: 0; }
.appal__demo { position: relative; display: block; height: 48px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(128, 128, 128, .25); }
.appal__demo span { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; }
.appal__demo i { position: absolute; top: 9px; width: 20px; height: 20px; border-radius: 50%; }
.appal__demo i:first-of-type { left: 9px; }
.appal__demo i:last-of-type { left: 24px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .15); }
.appal small { font-size: .72rem; line-height: 1.25; color: var(--muted); }
.appal.is-on small { color: var(--text); }
.ap__custom { margin-top: 12px; }
.ap__custom h4 { margin: 14px 0 8px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ap__warn { margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ap__warn p { margin: 0; font-size: .8rem; color: var(--text); }
.ap__warn p + p { margin-top: 6px; }
.aplays { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.aplay { display: grid; gap: 4px; align-content: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.aplay svg { width: 100%; height: auto; border-radius: 6px; background: var(--surface-2); margin-bottom: 4px; }
.aplay svg .t { fill: var(--text); opacity: .85; }
.aplay svg .a { fill: var(--accent); }
.aplay svg .m { fill: var(--muted); opacity: .6; }
.aplay svg .b { fill: var(--surface); }
.aplay svg .f { fill: var(--surface); stroke: var(--accent); stroke-width: 1.4; }
.aplay svg .fb { stroke-width: 2; }
.aplay svg .gl { fill: rgba(255, 255, 255, .06); }
.aplay svg .g { fill: var(--accent); opacity: .18; }
.aplay svg .l { stroke: var(--muted); stroke-width: 1; }
.aplay svg .l2 { fill: none; stroke: var(--accent); stroke-width: 1; opacity: .7; }
.aplay svg .l3 { stroke: var(--accent); stroke-width: 2; }
.aplay b { font-size: .9rem; }
.aplay small { font-size: .74rem; line-height: 1.35; color: var(--muted); }
@media (min-width: 1000px) {
  .ap { grid-template-columns: minmax(0, 1fr) minmax(340px, 42%); align-items: start; }
  .ap__preview { position: sticky; top: 16px; }
  .ap__bar { bottom: 12px; }
}
.ap__btns { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; }
.ap__btns .btn { padding-inline: 14px; }
.ap__close { display: none; }
body.no-scroll { overflow: hidden; }
@media (max-width: 999px) {
  .ap__preview { order: -1; display: none; }
  .ap.is-preview .ap__preview { display: block; position: fixed; inset: 0; z-index: 90; overflow: auto; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); }
  .ap.is-preview .ap__close { display: inline-flex; }
  .ap.is-preview .ap__dev { order: 3; flex-basis: 100%; }
}
@media (min-width: 1000px) {
  .ap__btns { grid-template-columns: 1fr 1fr; }
  .ap__see { display: none; }
}

/* Reloj del viaje: viajes de hoy */
.today { display: grid; gap: 10px; margin-bottom: 18px; }
.today__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.today__head h3 { margin: 0; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.today__demo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; font-size: .78rem; color: var(--muted); }
.today__demo .linkbtn { width: auto; margin: 0; padding: 6px 4px; }
.trip { display: grid; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 14px; min-width: 0; }
.trip.is-flash { animation: flash 1.6s ease 2; }
.trip--completed, .trip--no_show, .trip--scheduled { border-color: var(--line); }
.trip.is-soon { border-color: var(--accent-2); }
.trip.is-over { border-color: var(--accent); border-width: 2px; box-shadow: 0 0 22px -8px var(--glow); }
.trip__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.trip__meta { margin: 0; font-size: .84rem; line-height: 1.5; overflow-wrap: anywhere; }
.trip__clock { padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.trip__timer { font: 600 1.9rem/1 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.trip__timer small { font-size: .8rem; color: var(--muted); letter-spacing: 0; }
.trip__bar { height: 6px; margin: 10px 0 6px; border-radius: 6px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.trip__bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .6s linear; }
.trip.is-over .trip__bar i { background: repeating-linear-gradient(45deg, var(--accent) 0 8px, var(--accent-2) 8px 16px); }
.trip__row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-variant-numeric: tabular-nums; }
.trip__row b { font: 600 1.3rem/1 var(--font-body); font-variant-numeric: tabular-nums; }
.trip__over { margin: 8px 0 0; font-size: .82rem; color: var(--accent); font-weight: 600; }
.trip__over:empty { display: none; }
.trip__ask { display: grid; gap: 6px; padding: 12px; border-radius: 12px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.trip__ask .req__actions { margin-top: 4px; }
.trip__warn { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--text); font-size: .82rem; }
.trip__done { margin: 0; font-size: .85rem; color: var(--muted); }
.trip__done b { color: var(--accent); }
.trip__small { display: flex; flex-wrap: wrap; gap: 6px; }
.badge--trip-en_route, .badge--trip-arrived { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.badge--trip-on_board { color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
.badge--trip-completed { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 55%, transparent); }
.badge--trip-no_show { color: var(--muted); border-color: var(--line); text-decoration: line-through; }
.req__trip { color: var(--muted); }
.ext-opts { display: grid; gap: 8px; margin-top: 12px; }
.ext-opt { display: grid; gap: 2px; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; cursor: pointer; }
.ext-opt:hover { border-color: var(--accent); }
.ext-opt span { font-size: .8rem; color: var(--muted); }
.sumcard { padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 10px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .86rem; font-variant-numeric: tabular-nums; }
.sum-row:last-of-type { border-bottom: 0; }
.sum-row--total { font-weight: 700; color: var(--accent); font-size: .95rem; }
.seg-edit { padding: 10px 0; border-top: 1px solid var(--line); }
.seg-edit h4 { margin: 0 0 8px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Pie de las ventanas: las columnas no crecen más que la pantalla; un texto largo pasa a dos líneas */
.sheet__foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.sheet__foot.one { grid-template-columns: minmax(0, 1fr); }
.sheet__foot .btn { white-space: normal; line-height: 1.2; text-align: center; }

/* Apariencia: foto de portada y filtro */
.apheros { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.aphero { position: relative; display: grid; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; cursor: pointer; text-align: left; min-width: 0; }
.aphero.is-on, .apfilter.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.aphero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; display: block; }
.aphero small { font-size: .68rem; line-height: 1.25; color: var(--muted); padding: 0 2px 2px; }
.aphero--up { place-items: stretch; }
.aphero__plus { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 6px; border: 1px dashed var(--line); font-size: 1.6rem; color: var(--accent); }
.ap__sub { margin: 14px 0 8px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.apfilters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.apfilter { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.apfilter small { font-size: .72rem; color: var(--muted); line-height: 1.35; }

/* Recibo: tiempo extra y promoción */
.receipt-pick { display: grid; gap: 8px; margin-bottom: 10px; }
.receipt-pick h4 { margin: 6px 0 0; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.receipt-pick .seg { margin: 0; }

/* Contador de letras de los campos con límite */
.count { display: block; margin-top: 4px; text-align: right; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.count.is-full { color: var(--accent); font-weight: 600; }

/* Barra de Apariencia: tres botones que siempre entran en el teléfono */
.ap__btns { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); }
.ap__btns .btn { white-space: normal; line-height: 1.15; padding-inline: 10px; min-width: 0; }
@media (min-width: 1000px) { .ap__btns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Ayuda: manual del panel */
.help { display: grid; gap: 8px; }
.help__item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.help__item[hidden] { display: none; }
.help__item summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
  font-family: var(--font-heading); font-size: calc(1.15rem * var(--h-scale)); line-height: 1.2; }
.help__item summary::-webkit-details-marker { display: none; }
.help__item summary::after { content: "+"; flex: none; color: var(--accent); font-size: 1.3rem; transition: transform .2s; }
.help__item[open] summary::after { transform: rotate(45deg); }
.help__body { padding: 0 16px 16px; font-size: .92rem; line-height: 1.6; }
.help__body p { margin: 0 0 10px; }
.help__body ul { margin: 0 0 12px; padding-left: 1.1em; display: grid; gap: 6px; }
.help__body b { color: var(--text); }
.help__body .btn { margin-top: 4px; }
.help__body ol { margin: 0 0 12px; padding-left: 1.3em; display: grid; gap: 6px; }
.help__body li::marker { color: var(--accent); font-weight: 600; }

/* Número de avisos centrado: números alineados (algunas fuentes, como Raleway, bajan el 3, 4, 5…) y caja exacta */
.atabs .dot { display: inline-grid; place-items: center; box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 5px; line-height: 1;
  font-size: .62rem; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
@media (min-width: 761px) { .atabs .dot { vertical-align: middle; margin-left: 6px; } }

/* Fotos de vehículos: el auto nunca toca el borde de su recuadro blanco */
.arow__img { box-sizing: border-box; padding: 6px 8px; }
.cat img { box-sizing: border-box; padding: 8px 10px; }
.img-pick img { box-sizing: border-box; padding: 8px 10px; }
.vchip img { padding: 3px 5px; }

/* Listas del panel: el texto secundario pasa a otra línea en vez de cortarse con "…" */
.arow__main small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.atop__brand b, .crow__name, .crow__contact span, .bar span:first-child, .skin .sh { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }

/* Panel: los campos llevan la etiqueta arriba, completa (la etiqueta dentro del campo es solo para el formulario de reserva del sitio) */
@media (max-width: 760px) {
  .apane .field > span, .sheet .field > span, #login .field > span { position: static; white-space: normal; overflow: visible; text-overflow: clip;
    margin: 0 0 6px; font-size: .66rem; line-height: 1.3; }
  .apane .field input, .apane .field select, .apane .field textarea, .sheet .field input, .sheet .field select, .sheet .field textarea, #login .field input {
    min-height: 48px; padding: .65em .9em; }
}

/* Tipografía: tarjetas compactas (2 columnas en el teléfono, 3 o 4 en computadora) */
.skins { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.skin { padding: 9px 10px; display: grid; gap: 3px; align-content: start; min-width: 0; }
.skin .sh { line-height: 1.15; }
.skin .sb { margin: 0; font-size: .72rem; line-height: 1.3; overflow-wrap: anywhere; }
.skin .sb b { color: var(--text); font-weight: 600; }
@media (min-width: 761px) { .skins { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
@media (min-width: 761px) { .skins { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }

/* Números dentro de círculos del panel: mismo centrado que el sitio (ver styles.css) */
.atabs .dot > i, .ap__n > i { display: block; font-style: normal; line-height: 1; text-align: center;
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; text-box: trim-both cap alphabetic; }

/* Apariencia: estilos listos */
.appres { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.appre { display: grid; gap: 8px; align-content: start; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.appre.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.appre__img { position: relative; display: grid; align-content: end; justify-items: start; gap: 8px; min-height: 112px; padding: 12px; border-radius: 10px; background-size: cover; background-position: center; overflow: hidden; }
.appre__img b { line-height: 1.1; overflow-wrap: anywhere; }
.appre__img i { font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .45em 1em; border-radius: 999px; }
.appre__img em { position: absolute; top: 10px; right: 10px; display: flex; }
.appre__img em span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); margin-left: -4px; }
.appre small { padding: 0 4px 4px; font-size: .78rem; line-height: 1.4; color: var(--text); }
.appre small span { color: var(--muted); font-size: .7rem; }
/* Estilos listos: 2 columnas en el teléfono para que el paso no quede largo */
.appres { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.appre__img { min-height: 92px; padding: 10px; gap: 6px; }
.appre__img i { font-size: .58rem; padding: .4em .8em; }
.appre small { font-size: .72rem; }
@media (min-width: 761px) { .appres { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }

/* Fotos de vehículos: el auto nunca toca el borde del recuadro blanco */
.cat img, .arow__img, .img-pick img { box-sizing: border-box; padding: 7% 9%; }
.vchip img { padding: 3px 6px; }

/* Tableta: pantallas por vehículo, videos y código para vincular */
.scrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.scrow p { margin: 0; min-width: 0; flex: 1 1 100%; }
.scrow b { display: block; overflow-wrap: anywhere; }
.scrow small { color: var(--muted); font-size: .75rem; }
.scrow__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.vidrows { display: grid; gap: 6px; margin-bottom: 10px; }
.vidrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 44px; gap: 6px; }
.vidrow input { min-width: 0; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.vidrow.is-bad input { border-color: var(--accent); }
.vidrow__del { border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
@media (max-width: 520px) { .vidrows { gap: 14px; } .vidrow { grid-template-columns: minmax(0, 1fr) 44px; } .vidrow input[name="vurl"] { grid-column: 1; grid-row: 2; } .vidrow__del { grid-row: span 2; } }
.scrqr { width: min(260px, 70vw); margin: 10px auto 14px; padding: 12px; background: #fff; border-radius: 12px; }
.scrqr svg { display: block; width: 100%; height: auto; }
