:root {
  --bg: #f4f6f9; --surface: #fff; --surface-2: #f9fafb; --line: #e3e7ee; --line-2: #d0d6e0;
  --ink: #18202c; --ink-2: #5b6576; --ink-3: #8b94a3;
  --brand: #0c0f42; --brand-2: #262a73; --brand-soft: #eceefa; --teal: #5ab8b5; --teal-soft: #e5f4f3; --accent: #5ab8b5;
  --good: #0aac23; --good-ink: #006c10; --good-soft: #e6f6e9;
  --warn: #fbb315; --warn-ink: #8a5a00; --warn-soft: #fff5dc;
  --crit: #dc3c3d; --crit-ink: #a52223; --crit-soft: #fdeaea;
  --info: #257de0; --info-soft: #e7f1fd;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: #2f3596; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 20px; font-weight: 650; }
h2 { font-size: 15px; font-weight: 650; }
h3 { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.muted { color: var(--ink-2); } .small { font-size: 12px; } .tiny { font-size: 11px; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.hidden { display: none !important; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 80% 15%, rgba(90,184,181,.35) 0, transparent 40%), linear-gradient(160deg, #080a30 0%, #0c0f42 55%, #262a73 100%); }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 16px; padding: 32px 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.login-card .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.login-card p { margin: 4px 0 20px; }

.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; flex: none; }
.logo-mark svg { width: 22px; height: 22px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100%; }
.sidebar { background: #0c0f42; color: #c9d4e5; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { display: flex; gap: 10px; align-items: center; padding: 18px 18px 16px; color: #fff; font-weight: 650; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .brand .logo-mark { background: #171b5a; width: 40px; height: 40px; border: 1px solid rgba(90,184,181,.35); }
.sidebar .brand .ast { font-size: 20px; font-weight: 800; letter-spacing: .02em; display: block; line-height: 1.1; }
.sidebar .brand small { display: block; font-weight: 400; color: #9fd8d6; font-size: 11px; }
.nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: auto; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: #c9d4e5; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.nav a.active { background: #262a73; color: #fff; box-shadow: inset 3px 0 0 var(--teal); }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav .badge-count { margin-left: auto; background: var(--teal); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 600; }
.sidebar .me { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.sidebar .me b { color: #fff; display: block; }
.sidebar .me .row { display: flex; gap: 10px; margin-top: 8px; }
.sidebar .me a { color: #9db7dc; font-size: 12px; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 16px 28px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar .grow { flex: 1; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.live.off i { background: var(--ink-3); box-shadow: none; }
.content { padding: 22px 28px 60px; max-width: 1400px; }

/* ---------- mobile (técnico) ---------- */
.mobile-head { display: none; }
.bottom-nav { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { display: none; }
  .mobile-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #0c0f42; color: #fff; position: sticky; top: 0; z-index: 5; }
  .mobile-head .logo-mark { width: 34px; height: 34px; background: #171b5a; border: 1px solid rgba(90,184,181,.35); }
  .mobile-head .grow { flex: 1; } .mobile-head b { display: block; font-size: 14px; } .mobile-head small { color: #9db7dc; font-size: 11px; }
  .mobile-head .live { color: #c9d4e5; }
  .content { padding: 14px 14px 96px; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 6; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px; font-size: 11px; color: var(--ink-2); }
  .bottom-nav a.active { color: var(--brand-2); font-weight: 600; }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a:hover { text-decoration: none; }
  .hide-m { display: none !important; }
}

/* ---------- componentes ---------- */
.page-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .grow { flex: 1; min-width: 200px; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-h .grow { flex: 1; }
.card-b { padding: 16px; }
.card-b.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-main { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
@media (max-width: 1100px) { .g-main, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .g2 { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.tile .lbl { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.tile .val { font-size: 26px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tile .val small { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.tile .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.tile.alert { border-color: #f5c2c2; background: #fffafa; }
a.tile:hover { text-decoration: none; border-color: var(--line-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; min-height: 36px; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn.primary:hover { background: #1b1f5e; }
.btn.good { background: var(--good-ink); border-color: var(--good-ink); color: #fff; }
.btn.danger { color: var(--crit-ink); border-color: #f0b8b8; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; min-height: 30px; font-size: 13px; }
.btn.lg { padding: 13px 18px; min-height: 50px; font-size: 16px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; width: 100%; min-height: 38px; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #9fd8d6; outline-offset: 0; border-color: var(--brand-2); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input, .filters select { width: auto; min-width: 140px; }
.filters input[type=search] { min-width: 220px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 7px 12px; font: inherit; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--brand-soft); color: var(--brand-2); font-weight: 650; }

table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #f7f9fc; }
.table-wrap { overflow: auto; max-height: 70vh; }
.empty { padding: 32px 16px; text-align: center; color: var(--ink-3); }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip svg { width: 12px; height: 12px; }
.chip.completa, .chip.disponible { background: var(--good-soft); color: var(--good-ink); }
.chip.parcial { background: var(--warn-soft); color: var(--warn-ink); }
.chip.no_atendida { background: var(--crit-soft); color: var(--crit-ink); }
.chip.en_curso, .chip.en_visita { background: var(--info-soft); color: #1757ac; }
.chip.pendiente { background: #eef0f4; color: #4b5565; }
.chip.cancelada, .chip.sin_marcar, .chip.finalizo { background: #f1f2f4; color: var(--ink-3); }
.chip.urgente { background: var(--crit); color: #fff; } .chip.alta { background: #fde7dc; color: #a2420f; }
.chip.media { background: #eef0f4; color: #4b5565; } .chip.baja { background: transparent; border-color: var(--line-2); color: var(--ink-3); }
.chip.resuelta { background: var(--good-soft); color: var(--good-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }

.list { display: flex; flex-direction: column; }
.li { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.li:last-child { border-bottom: 0; }
a.li { color: inherit; } a.li:hover { background: #f7f9fc; text-decoration: none; }
.li .grow { flex: 1; min-width: 0; }
.li .t1 { font-weight: 600; } .li .t2 { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.feed .li { padding: 9px 16px; font-size: 13px; }
.feed .ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #eef0f4; color: var(--ink-2); }
.feed .ico svg { width: 14px; height: 14px; }
.feed .ico.ok { background: var(--good-soft); color: var(--good-ink); } .feed .ico.warn { background: var(--warn-soft); color: var(--warn-ink); }
.feed .ico.bad { background: var(--crit-soft); color: var(--crit-ink); } .feed .ico.in { background: var(--info-soft); color: #1757ac; }
.feed .new { animation: flash 2.5s ease-out; }
@keyframes flash { from { background: #fff7d6; } to { background: transparent; } }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
.timeline li::after { content: ""; position: absolute; left: 8.5px; top: 16px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline .when { font-size: 12px; color: var(--ink-3); }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photos img, .thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; background: #eef0f4; display: block; }
.thumb.s { width: 44px; height: 33px; aspect-ratio: auto; display: inline-block; vertical-align: middle; }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; }

/* ---------- jornada (técnico) ---------- */
.jornada { padding: 18px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #0c0f42, #262a73 70%, #2f6f8f); }
.jornada.cerrada { background: linear-gradient(135deg, #3b4656, #5b6576); }
.jornada.sin { background: linear-gradient(135deg, #7a3a12, #c2551d); }
.jornada .t { font-size: 13px; opacity: .85; } .jornada .big { font-size: 28px; font-weight: 700; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.jornada .btn { margin-top: 14px; background: #fff; color: var(--brand); border-color: #fff; }
.vcard { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; box-shadow: var(--shadow); }
.vcard:hover { text-decoration: none; border-color: var(--line-2); }
.vcard.encurso { border: 2px solid var(--info); }
.vcard .top { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.vcard .cli { font-weight: 650; font-size: 15px; }
.vcard .desc { color: var(--ink-2); margin-top: 4px; font-size: 13px; }

.resultado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.resultado button { border: 2px solid var(--line-2); background: var(--surface); border-radius: 12px; padding: 12px 6px; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.resultado button svg { width: 26px; height: 26px; }
.resultado button.on.completa { border-color: var(--good); background: var(--good-soft); color: var(--good-ink); }
.resultado button.on.parcial { border-color: var(--warn); background: var(--warn-soft); color: var(--warn-ink); }
.resultado button.on.no_atendida { border-color: var(--crit); background: var(--crit-soft); color: var(--crit-ink); }
.matrow { display: grid; grid-template-columns: 1fr 86px 36px; gap: 6px; margin-bottom: 6px; }
.matrow .otro { grid-column: 1 / -1; }
.gps { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 12px; font-size: 13px; }
.gps svg { width: 20px; height: 20px; flex: none; }
.gps.ok { background: var(--good-soft); border-color: #b9e5c1; color: var(--good-ink); }
.gps.err { background: var(--crit-soft); border-color: #f3c0c0; color: var(--crit-ink); }
.photo-pick { border: 2px dashed var(--line-2); border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; color: var(--ink-2); background: var(--surface-2); margin-bottom: 12px; }
.photo-pick svg { width: 28px; height: 28px; display: block; margin: 0 auto 6px; }
.photo-pick img { max-width: 100%; max-height: 220px; border-radius: 8px; }
.previews { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.previews div { position: relative; }
.previews img { width: 76px; height: 57px; object-fit: cover; border-radius: 6px; }
.previews button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 12px; line-height: 20px; padding: 0; }

/* ---------- modal / toast / lightbox ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(12,22,38,.5); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal.wide { max-width: 760px; }
.modal-h { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); gap: 10px; }
.modal-h h2 { flex: 1; font-size: 16px; }
.modal-b { padding: 18px; overflow: auto; }
.modal-f { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 860px) {
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal { max-height: 94vh; border-radius: 16px 16px 0 0; }
  .modal-f .btn { flex: 1; min-height: 46px; }
}
.err { background: var(--crit-soft); color: var(--crit-ink); padding: 9px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
@media (max-width: 860px) { .toasts { left: 12px; right: 12px; bottom: 76px; max-width: none; } }
.toast { background: #18202c; color: #fff; padding: 11px 14px; border-radius: 10px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: tin .2s ease-out; }
.toast.ok { background: var(--good-ink); } .toast.bad { background: var(--crit-ink); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 70; display: grid; place-items: center; cursor: zoom-out; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* ---------- gráficos ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis text { fill: var(--ink-2); font-size: 11px; }
.chart .grid line { stroke: #eceff3; }
.chart .base { stroke: var(--line-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tip { position: absolute; pointer-events: none; background: #18202c; color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; z-index: 3; box-shadow: 0 6px 16px rgba(0,0,0,.2); transform: translate(-50%, -100%); margin-top: -8px; }
.tip b { display: block; margin-bottom: 3px; }
.tip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 44px; gap: 8px 10px; align-items: center; font-size: 13px; }
.hbar .track { height: 14px; border-radius: 0 4px 4px 0; }
.hbar .bar { height: 100%; background: var(--brand-2); border-radius: 0 4px 4px 0; min-width: 2px; }
.meter { height: 6px; background: #eceff3; border-radius: 3px; overflow: hidden; min-width: 60px; }
.meter i { display: block; height: 100%; background: var(--good); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 10px 14px; font: inherit; font-weight: 550; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--brand-2); border-bottom-color: var(--brand-2); }

.card-h h2 svg, h2 > svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; color: var(--crit-ink); }
.feed { max-height: 760px; overflow: auto; }

.req-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; background: var(--surface-2); }
.req-box.falta { border: 2px solid var(--crit); background: var(--crit-soft); }
.req-box.falta h3 { color: var(--crit-ink); }
.falta-linea { margin-top: 4px; color: var(--crit-ink); }

/* marca A.S.T */
.logo-mark svg { width: 80%; height: 80%; }
.logo-mark .nodo { fill: #171b5a; }
.login-logo { display: block; width: 100%; max-width: 300px; margin: -6px auto 10px; border-radius: 8px; }
.login-t { font-size: 17px; text-align: center; color: var(--brand); }
.login-card > p.muted { text-align: center; }
.login-pie { text-align: center; font-size: 11px; color: var(--ink-3); margin-top: 18px; letter-spacing: .02em; }
.chip.en_curso, .chip.en_visita { background: var(--teal-soft); color: #1f6e6b; }
.vcard.encurso { border-color: var(--teal); }

.logo-mark img { width: 100%; height: 100%; display: block; }
.sidebar .brand .logo-mark, .mobile-head .logo-mark { background: transparent; border: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(90,184,181,.35), 0 0 12px rgba(95,242,232,.18); }

/* fotos de perfil */
.av { border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; color: #fff; font-weight: 700; letter-spacing: .02em; vertical-align: middle; background: #e3e7ee; box-shadow: 0 0 0 1px rgba(12,15,66,.08); }
.av.ring { box-shadow: 0 0 0 2px var(--teal); }
.av.grande { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--teal); }
.av.inline { vertical-align: -4px; margin-right: 2px; }
.con-av { display: inline-flex; align-items: center; gap: 9px; }
.sidebar .me .me-row { display: flex; gap: 10px; align-items: center; }
.sidebar .me .me-row .av { box-shadow: 0 0 0 2px var(--teal); }
.perfil-top, .foto-usuario { display: flex; gap: 16px; align-items: center; }
.foto-usuario { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.saludo { display: flex; align-items: center; gap: 12px; }
.saludo b { font-size: 17px; }
.mobile-head a { display: flex; }

/* instalar y compartir */
.qr-card .card-b { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.qr-head { display: flex; gap: 10px; align-items: center; align-self: stretch; text-align: left; }
.qr-head svg { width: 30px; height: 30px; color: var(--brand-2); flex: none; }
.qr-box { padding: 12px; border: 2px solid var(--teal); border-radius: 18px; background: #fff; box-shadow: 0 0 0 6px var(--teal-soft); }
.qr-box svg { display: block; width: 240px; height: 240px; }
.qr-url code { font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 4px 8px; border-radius: 6px; word-break: break-all; display: inline-block; }
.qr-pasos { text-align: left; margin: 0; padding-left: 20px; font-size: 13px; color: var(--ink-2); align-self: stretch; }
.qr-pasos li { margin-bottom: 4px; }
.qr-pasos.grande { font-size: 15px; color: var(--ink); margin: 8px 0 14px; }
.qr-pasos svg { width: 16px; height: 16px; vertical-align: -3px; }
.ins-card .btn.block + .btn.block { margin-top: 8px; }
.ins-card p { font-size: 14px; }
.ins-icon { display: block; width: 88px; height: 88px; margin: 0 auto 10px; border-radius: 20px; box-shadow: 0 8px 24px rgba(12,15,66,.35); }
.ins-ok { display: flex; gap: 8px; align-items: center; background: var(--good-soft); color: var(--good-ink); padding: 12px; border-radius: 10px; margin: 10px 0; }
.ins-ok svg { width: 22px; height: 22px; flex: none; }
.ins-ok.hidden { display: none; }
.err svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; flex: none; }
.ins-card .btn { white-space: normal; text-align: center; }
.ins-card .btn svg { flex: none; }
.ins-card .qr-url { text-align: center; margin: 6px 0 12px; }
