/* =========================================================
   Cotizaciones · AGP
   Mismo lenguaje que Actas de reunión y Gestión documental: fondo claro con luces, azul AGP, menú de vidrio, Inter.
   ========================================================= */
:root {
  --bg: #f3f6fb; --surface: #ffffff; --surface-2: #f6f9fe; --surface-3: #eaf0f9;
  --border: #e1e8f2; --border-strong: #cfd9e8;
  --txt: #0f2240; --txt-2: #34486a; --muted: #5d6f8c; --faint: #8796ae;
  --primary: #1f78f0; --primary-deep: #1746c9;
  --r: 18px; --r-sm: 12px;
  --sh: 0 1px 2px rgba(16,42,90,.05), 0 14px 34px -18px rgba(16,42,90,.22);
  --ease: cubic-bezier(.23, 1, .32, 1); --spring: cubic-bezier(.34, 1.4, .64, 1);
  --side-w: 296px;
  /* Nombres que usa el resto de la hoja y algunos estilos en línea */
  --fondo: var(--bg); --panel: var(--surface); --tinta: var(--txt); --suave: var(--muted); --linea: var(--border);
  --marca: #0f2240; --acento: var(--primary); --acento-suave: #e6f0fe;
  --ok: #0e8a4e; --ok-suave: #e5f7ee; --alerta: #a86400; --alerta-suave: #fff4dc; --mal: #c8362a; --mal-suave: #fdecea;
  --radio: 14px; --sombra: var(--sh);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--txt); font: 14.5px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* Luces de fondo: el vidrio del menú las recoge */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(720px 520px at 8% -6%, rgba(47,140,255,.22), transparent 70%),
    radial-gradient(640px 520px at 100% 0%, rgba(45,212,191,.16), transparent 70%),
    radial-gradient(700px 600px at 92% 100%, rgba(139,92,246,.12), transparent 70%),
    radial-gradient(620px 520px at 0% 100%, rgba(251,191,36,.12), transparent 70%); }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; } h2 { font-size: 17px; } h3 { font-size: 14px; }
a { color: var(--primary); }
.suave { color: var(--muted); } .chico { font-size: 12.5px; } .derecha { margin-left: auto; }
.fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pila { display: grid; gap: 16px; }
.pila > *, .dos > *, .tarjeta { min-width: 0; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 600; text-decoration: none; transition: top .12s; }
.skip:focus { top: 12px; }

/* =================== Estructura del panel =================== */
body.panel-app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); transition: grid-template-columns .55s var(--ease); }
body.panel-app.menu-col { --side-w: 96px; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 14px 0 14px 14px; z-index: 20; }
.side svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side .gs { height: 100%; --gs-accent: #ffffff; --gs-accent-2: #cfe4ff; --gs-tint: linear-gradient(180deg, rgba(31,120,240,.88), rgba(23,70,201,.9)); --gs-rim: rgba(255,255,255,.4); --gs-opaco: #1d63dc; }
.side .gs-glass { background: var(--gs-glass), linear-gradient(180deg, rgba(36,128,245,.9), rgba(22,72,204,.92)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 24px 50px -22px rgba(23,70,201,.65); }
.side .gs-logo { font-size: 11.5px; letter-spacing: .03em; text-decoration: none; background: #fff; color: #1746c9; box-shadow: 0 6px 16px -6px rgba(10,30,90,.45); }
.side .gs-avatar { background: linear-gradient(140deg, #ffffff, #d7e6ff); color: #1746c9; }
.side button.gs-item { font: inherit; border: 0; text-align: left; width: 100%; }
.gs-cta { margin: 4px 0 8px; background: #fff; color: #1746c9 !important; box-shadow: 0 8px 18px -10px rgba(10,30,90,.6); cursor: pointer; }
.gs-cta .gs-ico, .gs-cta .gs-label { color: #1746c9; font-weight: 650; }
.gs-cta:hover { background: #f1f6ff; }
.side .gs-pill--active { background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.16)); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px rgba(255,255,255,.35), 0 6px 14px -6px rgba(10,30,90,.45); }
.side .gs-pill--hover { background: rgba(255,255,255,.12); }
.side .gs-count.is-hot { background: #ffd166; color: #3a2a00; box-shadow: 0 2px 8px -2px rgba(10,30,90,.5); font-weight: 700; }
.gs-estado { cursor: default; } .gs-estado .gs-label { font-size: 13px; }
.gs-estado .led { display: block; width: 9px; height: 9px; border-radius: 50%; background: #c9d6ee; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.gs-estado.ok .led { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.3), 0 0 12px rgba(74,222,128,.8); }
.gs-estado.mal .led { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.3); }
.gs-user { cursor: pointer; }
.gs-tip { color: var(--txt); }
.topbar { display: none; }
main { min-width: 0; padding: clamp(24px, 3.4vw, 48px) clamp(16px, 3.4vw, 48px) 90px; outline: none; }
body.panel-app main > * { max-width: 1240px; margin-left: auto; margin-right: auto; animation: vista-in .45s var(--ease) both; }
@keyframes vista-in { from { opacity: 0; transform: translateY(10px); } }
.cabecera { display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.cabecera h1 { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.05; letter-spacing: -.04em; }
.cabecera > .suave { flex-basis: 100%; font-size: 15.5px; color: var(--txt-2); max-width: 70ch; }
.cabecera > a:first-child { font-weight: 600; text-decoration: none; }

.tarjeta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh); padding: 22px; }
.tarjeta > h2 { margin-bottom: 12px; }
.dos { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }

/* =================== Controles =================== */
button, .boton { font: inherit; font-weight: 600; font-size: 14px; min-height: 40px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--txt); border-radius: 12px; padding: 0 15px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, border-color .15s, transform .12s var(--ease), box-shadow .2s; -webkit-tap-highlight-color: transparent; }
button:hover, .boton:hover { background: var(--surface-2); border-color: #b9c8de; }
button:active, .boton:active { transform: scale(.97); }
button.primario, .boton.primario { border: 0; color: #fff; font-weight: 650; background: linear-gradient(180deg, #3a95ff, #1f6fe0); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 22px -12px rgba(47,140,255,.95); }
button.primario:hover, .boton.primario:hover { background: linear-gradient(180deg, #4a9eff, #2476e8); transform: translateY(-1px); }
button.primario:active { transform: scale(.97); }
button.peligro { color: var(--mal); }
button.enlace { border: 0; background: none; color: var(--primary); padding: 0; min-height: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
button.enlace:hover { background: none; }
button:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
input, select, textarea { font: inherit; color: var(--txt); width: 100%; min-height: 42px; border: 1px solid var(--border-strong); border-radius: 12px; padding: 8px 13px; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,140,255,.15); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=checkbox], input[type=radio] { min-height: 0; width: 18px; height: 18px; padding: 0; accent-color: var(--primary); }
input[type=file] { padding: 8px; min-height: 0; background: var(--surface-2); border-style: dashed; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235d6f8c' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 13px center; }
textarea { resize: vertical; min-height: 76px; }
label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--txt-2); }
label > span b { color: var(--primary); }
label > span em { font-weight: 500; color: var(--muted); }
.campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px 14px; }
.campos > * { min-width: 0; }
.campos label.falta input, .campos label.falta select { border-color: #e2a03f; background: #fffaf0; box-shadow: 0 0 0 4px rgba(245,184,74,.14); }
.ancho { grid-column: 1 / -1; }

/* Estados */
.chip { display: inline-block; border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 650; background: var(--surface-3); color: var(--txt-2); white-space: nowrap; }
.chip.levantamiento { background: var(--alerta-suave); color: var(--alerta); }
.chip.lista { background: var(--acento-suave); color: #1552b8; }
.chip.cotizada { background: #ece8fb; color: #5b3fb8; }
.chip.ganada, .chip.enviado { background: var(--ok-suave); color: var(--ok); }
.chip.perdida, .chip.error { background: var(--mal-suave); color: var(--mal); }
.chip.humano { background: var(--mal-suave); color: var(--mal); }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; }
.filtros button { border-radius: 999px; min-height: 38px; padding: 0 15px; color: var(--txt-2); }
.filtros button:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.filtros button.activo { background: linear-gradient(180deg, #3a95ff, #1f6fe0); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -8px rgba(31,120,240,.8); }
.filtros button b { font-weight: 700; margin-left: 2px; opacity: .8; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 10px; border-bottom: 1px solid var(--border); }
td { overflow-wrap: anywhere; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tr.clic { cursor: pointer; } tr.clic:hover td { background: var(--surface-2); }
.tabla-scroll { overflow-x: auto; }

.aviso { border-radius: 14px; padding: 13px 16px; background: rgba(31,120,240,.07); border: 1px solid rgba(31,120,240,.2); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.aviso.alerta { background: var(--alerta-suave); border-color: #f1d9a8; }
.aviso.mal { background: var(--mal-suave); border-color: #f5c6c1; }
.aviso.ok { background: var(--ok-suave); border-color: #bfe3cd; }
.vacio { text-align: center; color: var(--suave); padding: 34px 10px; }

pre.sap { overflow-wrap: anywhere; background: #0f1b2d; color: #e7ecf4; padding: 14px 16px; border-radius: 12px; white-space: pre-wrap; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 8px 0 0; }
details > summary { cursor: pointer; color: var(--primary); font-size: 13.5px; font-weight: 600; }
.bitacora { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.bitacora li { padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.bitacora li:last-child { border-bottom: 0; padding-bottom: 0; }

/* Conversaciones */
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding: 4px 2px; }
.burbuja { max-width: 86%; padding: 8px 12px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-3); align-self: flex-start; }
.burbuja.yo { background: linear-gradient(180deg, #3a95ff, #1f6fe0); color: #fff; align-self: flex-end; }
.burbuja.agente { background: var(--acento-suave); }
.burbuja table { font-size: 13px; background: #fff; border-radius: 6px; margin: 6px 0; }
.redactar { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.redactar textarea { min-height: 44px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kpi b { display: block; font-size: 30px; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.barra { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--acento); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #0f2240; color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 60; max-width: 90vw; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(16,42,90,.5); animation: toast-in .35s var(--spring) both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }
.toast.mal { background: var(--mal); }

/* Tablero por etapas */
.tablero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.columna { background: rgba(255,255,255,.55); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; min-height: 180px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.columna > header { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; font-weight: 700; }
.columna > header span { background: var(--acento-suave); color: var(--primary-deep); border-radius: 999px; padding: 1px 10px; font-size: 12px; }
.columna .pila { gap: 10px; }
.ficha-s { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; box-shadow: var(--sombra); transition: transform .16s, box-shadow .16s;
  animation: sube .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--n, 0) * 45ms); }
.ficha-s:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 18px 34px -18px rgba(16,42,90,.4); }
.ficha-s:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.ficha-s .arriba { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--suave); }
.ficha-s strong { display: block; font-size: 15px; margin: 2px 0; overflow-wrap: anywhere; }
.ficha-s .prod { color: var(--suave); font-size: 13px; }
.ficha-s .abajo { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 12px; color: var(--suave); }
.ficha-s .barra { margin-top: 9px; height: 5px; } .ficha-s .barra i { transition: width .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes sube { from { opacity: 0; transform: translateY(12px); } }

/* Ciclo de la solicitud */
.ciclo { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; padding: 4px 0 2px; }
.ciclo::before, .ciclo .avance { content: ""; position: absolute; top: 17px; left: 12.5%; height: 3px; border-radius: 3px; }
.ciclo::before { right: 12.5%; background: var(--linea); }
.ciclo .avance { background: var(--acento); width: 0; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.ciclo .etapa { position: relative; text-align: center; font-size: 12px; color: var(--suave); display: grid; justify-items: center; gap: 6px; }
.ciclo .etapa i { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--linea); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; transition: background .4s, border-color .4s, transform .4s; }
.ciclo .etapa.hecha i { background: var(--acento); border-color: var(--acento); color: #fff; }
.ciclo .etapa.actual i { border-color: var(--acento); color: var(--acento); transform: scale(1.18); box-shadow: 0 0 0 5px var(--acento-suave); }
.ciclo .etapa.actual { color: var(--tinta); font-weight: 700; }
.ciclo.fin-mal .avance { background: var(--mal); } .ciclo.fin-mal .etapa.actual i { border-color: var(--mal); color: var(--mal); box-shadow: 0 0 0 5px var(--mal-suave); }

/* Producto: anillo de avance y datos como fichas que se tocan para editar */
.anillo { width: 46px; height: 46px; flex: none; }
.anillo circle { fill: none; stroke-width: 5; }
.anillo .fondo { stroke: var(--surface-3); }
.anillo .valor { stroke: var(--acento); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.anillo.lleno .valor { stroke: var(--ok); }
.anillo text { font: 700 12px Inter, system-ui, sans-serif; fill: var(--tinta); text-anchor: middle; dominant-baseline: central; }
.datos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dato-f { all: unset; box-sizing: border-box; cursor: pointer; border-radius: 12px; padding: 7px 12px; background: var(--surface-2); border: 1px solid transparent; font-size: 13px; max-width: 100%; transition: transform .14s, border-color .14s, background .14s;
  animation: sube .35s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--n, 0) * 25ms); }
.dato-f:hover { border-color: var(--acento); transform: translateY(-1px); background: #fff; }
.dato-f:focus-visible { outline: 2px solid var(--acento); outline-offset: 1px; }
.dato-f small { display: block; color: var(--suave); font-size: 11px; }
.dato-f b { overflow-wrap: anywhere; }
.dato-f.falta { background: var(--alerta-suave); border: 1px dashed #d99a3a; color: var(--alerta); font-weight: 600; }
.dato-f.duda { background: #fff8e6; }
.dato-f.sap { background: #eef0fb; }
button[disabled].dato-f { cursor: default; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ficha-s, .dato-f { animation: none; } .ciclo .avance, .anillo .valor { transition: none; } }
@media (max-width: 860px) { .tablero { grid-template-columns: 1fr; } .ciclo .etapa span { font-size: 11px; } }

/* Editor de la cotización */
.cot table input { padding: 5px 8px; font-size: 13px; min-height: 36px; border-radius: 10px; }
.cot td { padding: 6px 5px; vertical-align: top; }
.cot th { padding: 6px 5px; }
.cot .num { text-align: right; font-variant-numeric: tabular-nums; }
.cot input.num { text-align: right; }
.cot .c-desc { min-width: 220px; } .cot .c-cod { width: 104px; } .cot .c-cant { width: 78px; } .cot .c-und { width: 58px; } .cot .c-precio { width: 112px; } .cot .c-descu { width: 60px; }
.cot td.total { text-align: right; white-space: nowrap; font-weight: 600; padding-top: 11px; font-variant-numeric: tabular-nums; }
.cot .sin-precio input.c-precio-i { border-color: #e2a03f; background: #fffaf0; }
.cot .ultimo { all: unset; cursor: pointer; display: block; font-size: 11px; color: var(--acento); margin-top: 3px; text-align: right; }
.cot .ultimo:hover { text-decoration: underline; }
.cot-pie { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; margin-top: 14px; align-items: start; }
.cot-totales { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.cot-totales div { display: flex; justify-content: space-between; gap: 12px; }
.cot-totales .gran { font-size: 19px; font-weight: 700; border-top: 1px solid var(--linea); padding-top: 8px; margin-top: 4px; }
.cot-totales .gran span:last-child { transition: color .3s; } .cot-totales.cambia .gran span:last-child { color: var(--acento); }
@media (max-width: 860px) { .cot-pie { grid-template-columns: 1fr; } }

/* Páginas públicas */
.publico { max-width: 760px; margin: 0 auto; padding: 0 16px 60px; }
.banda { background: linear-gradient(180deg, #2480f5, #1648cc); color: #fff; padding: 26px 16px; margin-bottom: 24px; box-shadow: 0 18px 40px -24px rgba(23,70,201,.7); }
.banda h1 { font-size: clamp(22px, 3.4vw, 30px); }
.banda div { max-width: 728px; margin: 0 auto; }
.banda small { color: #d3e4ff; display: block; margin-top: 4px; }
.lista-familias { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; }
.lista-familias button { text-align: left; justify-content: flex-start; font-size: 13px; min-height: 38px; padding: 6px 12px; }
.login { max-width: 420px; margin: 0 auto; padding: 12vh 16px 40px; }
.login .tarjeta { padding: 30px 28px; }
.login h1 { font-size: 30px; letter-spacing: -.04em; }
.login h1 em, .cabecera h1 em { font: italic 500 1.04em "Playfair Display", Georgia, serif; color: var(--primary); letter-spacing: -.02em; margin-left: .12em; }
.login .sello { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font: 800 12px Inter, sans-serif; color: #fff; background: linear-gradient(180deg, #2480f5, #1648cc); box-shadow: 0 10px 22px -10px rgba(23,70,201,.8); margin-bottom: 6px; }
.login button.primario { min-height: 48px; font-size: 15px; }

@media (max-width: 860px) {
  body.panel-app { display: block; }
  .side { display: none; }
  .topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
  .tb-logo { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 800 11px Inter, sans-serif; color: #fff; text-decoration: none; background: linear-gradient(180deg, #2480f5, #1648cc); }
  .tb-tabs { flex: 1; min-width: 0; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
  .tb-tabs::-webkit-scrollbar { display: none; }
  .tb-tabs a, .tb-tabs button { flex: none; min-height: 34px; padding: 0 13px; display: inline-flex; align-items: center; border: 0; background: none; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); }
  .tb-tabs a[aria-current="page"] { color: #fff; background: linear-gradient(180deg, #3a95ff, #1f6fe0); }
  main { padding: 20px 14px 70px; } .dos { grid-template-columns: 1fr; }
  .tarjeta { padding: 18px; }
}
@media (pointer: coarse) { input, select, textarea { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

/* Sugerencias de clientes guardados */
.sug-lista { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; min-height: 0; }
.sug-lista:empty { display: none; }
.sug-cli { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; max-width: 100%; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere;
  background: #fff; border: 1px solid var(--border-strong); animation: sug-entra .25s var(--ease) both; transition: border-color .15s, transform .15s, box-shadow .2s; }
.sug-cli:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(31,120,240,.7); }
.sug-cli:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sug-cli strong { font-size: 14px; } .sug-cli span { color: var(--muted); }
.sug-ok { font-size: 13.5px; font-weight: 600; color: var(--ok); }
@keyframes sug-entra { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .sug-cli { animation: none; transition: none; } }
