@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #1A1D21;
  --ink-2: #4E5660;
  --ink-3: #7A828C;
  --paper: #F2F3EF;
  --card: #FFFFFF;
  --line: #D9DCD5;
  --line-2: #E9EBE6;
  --red: #C8102E;
  --ok: #24733A; --ok-bg: #E4F2E7; --ok-bar: #2E8B47;
  --warn: #8A5A00; --warn-bg: #FBEFD5; --warn-bar: #D99A1E;
  --bad: #B3122B; --bad-bg: #FBE6E9; --bad-bar: #C8102E;
  --none: #5F6670; --none-bg: #ECEEF0; --none-bar: #A7AEB6;
  --shop: #1C4E8A; --shop-bg: #E3EEFA; --shop-bar: #2F6FBF;
  --wa: #1E7E46;
  --r: 6px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-c: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); }
a { color: inherit; text-underline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-c); font-weight: 600; line-height: 1.1; margin: 0 0 .35em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Estructura de la app ---------- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; text-decoration: none; }
.brand img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.brand span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topnav { display: none; }
.topbar-link { margin-left: auto; color: var(--ink-2); font-weight: 500; text-decoration: none; }
.topbar-link.on { color: var(--ink); }
@media (min-width: 860px) {
  .topnav { display: flex; gap: 2px; margin-left: 20px; }
  .topnav a { padding: 6px 12px; border-radius: var(--r); color: var(--ink-2); font-weight: 500; text-decoration: none; }
  .topnav a:hover { color: var(--ink); }
  .topnav a.on { color: var(--ink); background: var(--paper); }
}

.tabbar { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; color: var(--ink-3); font-size: .75rem; font-weight: 500; text-decoration: none; }
.tabbar a.on { color: var(--ink); }
.tabbar svg { width: 22px; height: 22px; }
@media (min-width: 860px) { .tabbar { display: none; } }

.page { max-width: 980px; margin: 0 auto; padding: 20px 16px 104px; }
.page-narrow { max-width: 640px; }
@media (min-width: 860px) { .page { padding: 32px 24px 64px; } }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }
.back { display: inline-block; margin-bottom: 8px; color: var(--ink-2); font-size: .9375rem; text-decoration: none; }
.back:hover { color: var(--ink); text-decoration: underline; }

.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-head h2 { margin: 0; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--ink); color: #fff; font: 600 1rem var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #2C3138; }
.btn-2 { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-2:hover { border-color: var(--ink-3); background: var(--card); }
.btn-wa { border-color: var(--wa); background: var(--wa); }
.btn-wa:hover { background: #18693A; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .9375rem; }
.btn-logout { border-color: var(--bad); background: var(--card); color: var(--bad); }
.btn-logout:hover { background: var(--bad-bg); }
.btn-block { width: 100%; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--ink-2); font: 500 1rem var(--font); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }
.linkbtn.danger { color: var(--bad); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Avisos ---------- */
.flash { margin-bottom: 16px; padding: 12px 14px; border: 1px solid; border-radius: var(--r); font-weight: 500; }
.flash-ok { border-color: #B9DCC2; background: var(--ok-bg); color: #1B5A2D; }
.flash-error { border-color: #F0B8C1; background: var(--bad-bg); color: #8A0E22; }
.note { padding: 12px 14px; border-left: 3px solid var(--warn-bar); background: var(--card); border-radius: 0 var(--r) var(--r) 0; }
.note.bad { border-left-color: var(--bad-bar); }
.note p:last-child { margin: 0; }

/* ---------- Formularios ---------- */
.form { padding: 20px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
@media (min-width: 640px) { .form { padding: 24px; } }
.field { margin-bottom: 18px; }
.field > label, .field > .label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.hint { display: block; margin-top: 5px; color: var(--ink-2); font-size: .875rem; }
.err { display: block; margin-top: 5px; color: var(--bad); font-size: .875rem; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); font: inherit;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--bad); }
.grid-2, .grid-3 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 2fr 1fr 1fr; } }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.form-actions .btn:only-child { margin-left: auto; }
.inline { display: inline; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.field .other { margin-top: 8px; }
fieldset.field { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
fieldset.field > legend { padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; user-select: none; }
.chip:hover span { border-color: var(--ink-3); }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--card); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.logo-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.logo-preview img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }

/* ---------- Estado ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-vigente { background: var(--ok-bg); color: var(--ok); }
.b-porvencer { background: var(--warn-bg); color: var(--warn); }
.b-vencido { background: var(--bad-bg); color: var(--bad); }
.b-sin { background: var(--none-bg); color: var(--none); }
.b-taller { background: var(--shop-bg); color: var(--shop); }

.statusbar { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line-2); }
.statusbar span { display: block; min-width: 4px; }
.s-vigente { background: var(--ok-bar); }
.s-porvencer { background: var(--warn-bar); }
.s-vencido { background: var(--bad-bar); }
.s-sin { background: var(--none-bar); }
.s-taller { background: var(--shop-bar); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; }
.legend div { display: flex; align-items: baseline; gap: 6px; }
.legend strong { font-family: var(--font-c); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.legend span { color: var(--ink-2); font-size: .9375rem; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; align-self: center; }

/* ---------- Listas ---------- */
.list { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.list > * + * { border-top: 1px solid var(--line-2); }
.row { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: inherit; text-decoration: none; }
a.row:hover { background: #FAFAF8; }
.row[data-s]::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 2px 2px 0; }
.row[data-s=vencido]::before { background: var(--bad-bar); }
.row[data-s=porvencer]::before { background: var(--warn-bar); }
.row[data-s=vigente]::before { background: var(--ok-bar); }
.row[data-s=sin]::before { background: var(--none-bar); }
.row[data-s=taller]::before { background: var(--shop-bar); }
.row-main { flex: 1; min-width: 0; }
.row-title { display: block; font-weight: 600; }
.row-title .muted { font-weight: 400; }
.row-sub { display: block; color: var(--ink-2); font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; }
.row-end { flex-shrink: 0; text-align: right; }
.row-end .small { display: block; margin-top: 2px; }
.mini-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: .875rem; color: var(--ink-2); }
.mini-stats b { font-weight: 600; }
.mini-stats .v { color: var(--bad); }
.mini-stats .p { color: var(--warn); }

.empty { padding: 28px 16px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--card); text-align: center; }
.empty h2 { margin-bottom: 6px; }
.empty p { color: var(--ink-2); }
.empty .btn-row { justify-content: center; }

.box { padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
@media (min-width: 640px) { .box { padding: 20px 24px; } }

.search { display: flex; gap: 8px; margin-bottom: 14px; }
.search input { flex: 1; }

/* ---------- Detalle de cliente ---------- */
.kv { display: grid; gap: 4px 16px; margin: 0; }
@media (min-width: 640px) { .kv { grid-template-columns: max-content 1fr; } }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0 0 6px; font-weight: 500; }
.actions-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
details.more { margin-top: 16px; }
details.more summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }

/* ---------- Nueva orden ---------- */
.pick { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; padding: 14px 16px; }
.pick input[type=checkbox] { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); }
.pick label { cursor: pointer; }
.pick-opts { grid-column: 2; display: grid; gap: 8px; }
@media (min-width: 640px) { .pick-opts { grid-template-columns: 220px 1fr; } }
.pick-opts select, .pick-opts input { min-height: 40px; padding: 7px 10px; }
.pick.off .pick-opts { display: none; }
.pick-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

/* ---------- Orden ---------- */
.folio { font-family: var(--font-c); font-size: 2.6rem; font-weight: 700; color: var(--red); line-height: 1; letter-spacing: .02em; }

/* ---------- Páginas públicas ---------- */
.pub-top { display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto; padding: 16px; }
.pub-top img { width: 44px; height: 44px; object-fit: contain; }
.pub-top .who { flex: 1; min-width: 0; }
.pub-top .who strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.pub-top .who span { color: var(--ink-2); font-size: .875rem; }
.pub-wrap { max-width: 520px; margin: 0 auto; padding: 0 16px 48px; }
.pub-section { margin-top: 28px; }
.pub-foot { max-width: 520px; margin: 0 auto; padding: 24px 16px 40px; color: var(--ink-3); font-size: .8125rem; text-align: center; }
.pub-foot a { color: var(--ink-2); }

/* La etiqueta: imita la etiqueta de servicio con la perforación de mes y año */
.tag { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px 12px 8px 8px; background: var(--card); cursor: default; }
.tag-band { position: relative; padding: 30px 20px 14px; background: var(--red); color: #fff; }
.tag-hole { position: absolute; top: 10px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.tag-owner { display: block; font-family: var(--font-c); font-size: 1.05rem; font-weight: 600; opacity: .92; }
.tag-title { display: block; font-family: var(--font-c); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.tag-status { padding: 18px 20px 16px; border-bottom: 1px dashed var(--line); }
.tag-state { margin: 0; font-family: var(--font-c); font-size: 3.2rem; font-weight: 700; line-height: .95; }
.tag-vigente .tag-state { color: var(--ok); }
.tag-porvencer .tag-state { color: var(--warn); }
.tag-vencido .tag-state { color: var(--bad); }
.tag-sin .tag-state { color: var(--none); }
.tag-taller .tag-state { color: var(--shop); }
.tag-when { margin: 8px 0 0; color: var(--ink-2); }
.tag-punch { padding: 16px 20px 18px; border-bottom: 1px dashed var(--line); }
.tag-punch p { margin: 0 0 10px; color: var(--ink-2); font-size: .875rem; }
/* Cuadrícula impresa: solo la celda del último servicio lleva la perforación */
.punch-months, .punch-years { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.punch-months { grid-template-columns: repeat(6, 1fr); }
.punch-years { grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
.punch-months span, .punch-years span { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 4px 2px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .78rem; font-weight: 500; }
.punch-months i, .punch-years i { display: block; flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.punch-months .hit, .punch-years .hit { color: var(--ink); font-weight: 700; }
.tag-punch.is-empty .punch-months, .tag-punch.is-empty .punch-years { opacity: .5; }
.tag-punch .punch-note { margin: 10px 0 0; color: var(--ink-3); font-size: .8125rem; }
.tag-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; padding: 16px 20px 20px; }
.tag-specs .wide { grid-column: 1 / -1; }
.tag-specs dt { color: var(--ink-2); font-size: .8125rem; }
.tag-specs dd { margin: 0; font-weight: 600; }
.tag-code { font-family: var(--font-c); font-size: 1.3rem; letter-spacing: .08em; }

.history { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.history li { padding: 12px 16px; }
.history li + li { border-top: 1px solid var(--line-2); }
.history .top { display: flex; justify-content: space-between; gap: 12px; }
.history .obs { margin-top: 4px; color: var(--ink-2); font-size: .9375rem; }

.staff { margin-bottom: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.staff p { margin: 0 0 12px; color: var(--ink-2); font-size: .875rem; }
.staff-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.staff-link { display: inline-block; margin-top: 10px; color: var(--ink-2); }
.kv dd.notes { white-space: pre-line; }
.kv dd .badge { margin-left: 4px; }

/* ---------- Firmas ---------- */
.sigs { margin-bottom: 24px; }
.sig-cards { display: grid; gap: 16px; }
@media (min-width: 860px) { .sig-cards { grid-template-columns: 1fr 1fr; align-items: start; } }
.sig-card { min-width: 0; }
.sig-card h3 { margin-bottom: 10px; }
/* "Firme aquí" y la línea base son fondo: no salen en la imagen que se guarda. */
.sigpad { position: relative; height: 180px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.sigpad::before { content: 'Firme aquí'; position: absolute; left: 16px; bottom: 46px; color: var(--ink-3); font-size: .875rem; pointer-events: none; }
.sigpad::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 40px; border-top: 1px solid var(--line); pointer-events: none; }
.sigpad canvas { position: relative; z-index: 1; display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sig-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.sig-actions > :last-child { margin-left: auto; }
.sig-save { margin-top: 12px; }
.sig-note { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--warn-bar); border-radius: 0 var(--r) var(--r) 0; background: var(--warn-bg); color: var(--warn); font-size: .875rem; font-weight: 500; }
.sig-or { margin: 12px 0 8px; }
.sig-shown { margin: 0; }
.sig-shown img { display: block; width: 100%; max-width: 360px; height: 110px; object-fit: contain; object-position: left bottom; border-bottom: 1px solid var(--ink); }
.sig-shown figcaption { margin-top: 6px; }
.sig-shown figcaption strong { display: block; }
.sig-shown figcaption span { color: var(--ink-2); font-size: .875rem; }
.row-main .badge { margin-top: 4px; }

/* ---------- Equipo ---------- */
.team-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 14px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.checklist { display: grid; gap: 2px; }
.checklist .check { min-height: 40px; }
.checklist-scroll { max-height: 280px; overflow-y: auto; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r); }
.client-pick { margin-top: 12px; }
.client-pick-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.client-pick-tools input { flex: 1; }

/* ---------- Órdenes, recordatorios e inicio del técnico ---------- */
.fixed-value { margin: 0; min-height: 44px; padding: 9px 0; font-weight: 600; }
.warranty { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--ok-bar); border-radius: 0 var(--r) var(--r) 0; background: var(--card); font-weight: 500; }
.reminded { margin: 8px 0 0; color: var(--ok); font-size: .875rem; font-weight: 500; }
.scan-hint { margin: 14px 0 0; color: var(--ink-2); }

/* ---------- Inicio: pendientes, accesos y este mes ---------- */
.pend-section h2 { margin-bottom: 10px; }
.pend-ok { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ok); font-weight: 600; }
.pend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pend { display: flex; flex-direction: column; gap: 2px; min-height: 96px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--warn-bar); border-radius: var(--r); background: var(--card); color: var(--ink); text-decoration: none; }
.pend:hover { border-color: var(--ink-3); border-left-color: var(--warn-bar); }
.pend-n { font-family: var(--font-c); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.pend-label { font-weight: 600; line-height: 1.25; }
.pend-sub { color: var(--ink-2); font-size: .8125rem; }
.pend-shop { border-left-color: var(--shop-bar); background: var(--shop-bg); }
.pend-shop:hover { border-left-color: var(--shop-bar); }
.pend-shop .pend-n, .pend-shop .pend-label { color: var(--shop); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-search { margin: 12px 0 0; }
.month-stats { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.month-stats div { display: flex; align-items: baseline; gap: 8px; }
.month-stats strong { font-family: var(--font-c); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.month-stats span { color: var(--ink-2); }

/* ---------- Listas largas: 3 y el cuarto asomado ---------- */
.list-peek .peek { align-items: flex-start; max-height: 44px; overflow: hidden; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, transparent 100%); }
.see-all { margin-top: 10px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.orders-search { flex-wrap: wrap; align-items: center; }
.orders-search .check { white-space: nowrap; }

/* ---------- Vales y taller ---------- */
.sig-legend { margin: -4px 0 10px; color: var(--ink-2); font-size: .875rem; }
.row-main a.row-title { text-decoration: none; }
.shop-line p { margin: 0; font-weight: 500; }
.shop-line p + p { margin-top: 6px; }
.shop-box { padding: 16px; border: 1px solid #BCD3EE; border-radius: var(--r); background: var(--shop-bg); }
.shop-box .section-head h2 { color: var(--shop); }
.shop-box .actions-bar { margin-top: 14px; }
.btn-shop { border-color: var(--shop-bar); background: var(--shop-bar); }
.actions-bar .btn-shop { max-width: 100%; padding-top: 8px; padding-bottom: 8px; white-space: normal; text-align: center; }
.btn-shop:hover { border-color: var(--shop); background: var(--shop); }
.note-shop { border-left-color: var(--shop-bar); }
.section-sm { margin-top: 12px; }

/* ---------- Acceso ---------- */
.auth { max-width: 420px; margin: 0 auto; padding: 40px 16px; }
.auth .mark { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-family: var(--font-c); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.auth .mark svg { width: 32px; height: 32px; }
.auth h1 { margin-bottom: 18px; }
.auth .alt { margin-top: 18px; color: var(--ink-2); text-align: center; }

/* ---------- Landing ---------- */
.landing { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.l-top { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.l-mark { display: flex; align-items: center; gap: 10px; font-family: var(--font-c); font-size: 1.5rem; font-weight: 700; }
.l-mark svg { width: 30px; height: 30px; }
.l-hero { display: grid; gap: 36px; align-items: center; padding: 28px 0 56px; }
@media (min-width: 900px) { .l-hero { grid-template-columns: 1.15fr 1fr; gap: 56px; padding: 56px 0 80px; } }
.l-hero h1 { max-width: 15ch; font-size: clamp(2.5rem, 7vw, 4.2rem); font-weight: 700; line-height: .98; letter-spacing: -.005em; }
.l-hero .lead { max-width: 56ch; color: var(--ink-2); font-size: 1.15rem; }
.l-demo { max-width: 400px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) { .l-demo { transform: rotate(-2deg); } }
.l-steps { padding: 48px 0; border-top: 1px solid var(--line); }
.steps { display: grid; gap: 22px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.steps li { counter-increment: s; color: var(--ink-2); }
.steps li::before { content: counter(s); display: block; margin-bottom: 8px; font-family: var(--font-c); font-size: 2.2rem; font-weight: 700; color: var(--red); line-height: 1; }
.steps strong { display: block; margin-bottom: 4px; color: var(--ink); }
.l-cols { display: grid; gap: 28px; padding: 48px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .l-cols { grid-template-columns: repeat(3, 1fr); } }
.l-cols p { color: var(--ink-2); }
.l-foot { padding: 28px 0 48px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9375rem; }

/* ---------- Cómo funciona (panel) ---------- */
.howto .steps { margin-top: 14px; }
@media (min-width: 640px) and (max-width: 899px) { .howto .steps { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .topbar, .tabbar, .no-print { display: none !important; } body { background: #fff; } }

/* ---------- Precios y cobros ---------- */
.money { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.money-input { position: relative; display: block; }
.money-input::before { content: '$'; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.money-input input[type=text] { padding-left: 23px; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .pick-opts.priced { grid-template-columns: 200px 132px 1fr; align-items: start; } }
.price-cell.has-err input, .price-row.has-err input { border-color: var(--bad); }
.order-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r); background: var(--paper); font-weight: 600; }
.order-total strong { font-family: var(--font-c); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-total-hint { margin: 6px 0 18px; }
.item-price { color: var(--ink); font-weight: 500; }
.pend-money .pend-n { font-size: 1.7rem; overflow-wrap: anywhere; }
.month-money { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.month-money a { display: flex; align-items: baseline; gap: 8px; color: inherit; text-decoration: none; }
.month-money a span { text-decoration: underline; text-underline-offset: 2px; }
.cobro-total { font-family: var(--font-c); font-size: 1.4rem; }
.cobro-state { margin: 0 0 12px; font-size: 1.125rem; font-weight: 600; }
.due-line { color: var(--warn); }
.paid-line { color: var(--ok); }
.cobro-form { margin-top: 14px; }
.cobro-form .chips { gap: 6px; }
.cobro-prices { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.cobro-lock { margin: 14px 0 0; }
.price-row { align-items: center; }
.price-row .row-main { cursor: pointer; }
.price-row .money-input { flex: 0 0 132px; }
.price-row .money-input input[type=text] { min-height: 40px; }
.price-list .price-end { display: flex; align-items: center; gap: 16px; }
.price-add { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.price-add h3 { margin-bottom: 12px; }
.price-add .form-actions .hint { margin: 0; }
.price-public { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); }
.price-public .hint { margin: 4px 0 10px 30px; }
.pub-total { margin-top: 12px; }
.stamp { display: inline-block; margin: 12px 0 0; padding: 4px 14px; border: 2px solid var(--ok); border-radius: 6px; color: var(--ok); font-family: var(--font-c); font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; transform: rotate(-3deg); }
.fiscal { margin: 8px 0 0; }
.since.late { color: var(--bad); font-weight: 600; }
.pub-total .order-total { border: 1px solid var(--line); background: var(--card); }
.price-missing { margin: 0; color: var(--warn); font-size: .875rem; font-weight: 500; }
.price-missing a { color: inherit; }
@media (min-width: 640px) { .pick-opts .price-missing { grid-column: 1 / -1; order: 10; } }
.section-sm-b { margin-bottom: 10px; }

/* ---------- En proceso ---------- */
.proc-stage .section-head h2 { display: flex; align-items: center; gap: 10px; }
.proc-n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--card); font-size: 1rem; }
.proc-link { margin: -4px 0 10px; }
.proc-empty { margin: 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--card); color: var(--ink-2); }
.proc-row { align-items: flex-start; }
.proc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.proc-actions .btn { white-space: normal; text-align: center; }
.proc-days { color: var(--ink-2); font-size: .9375rem; font-weight: 600; white-space: nowrap; }
.proc-days.late { color: var(--bad); }
