/* Oisyn · paneles (cliente, revendedor y administración) — estilo claro */
:root {
  --brand: #2F6BFF; --brand-2: #00C2A8; --brand-ink: #1F4FD8; --brand-soft: #EEF3FF;
  --ink: #0B1220; --ink-2: #3B4558; --muted: #6B7689; --line: #E6EAF2; --line-2: #F0F3F8; --bg: #F6F8FC;
  --sh-1: 0 1px 2px rgba(15,23,42,.05), 0 1px 1px rgba(15,23,42,.03);
  --sh-2: 0 10px 30px -12px rgba(15,23,42,.18), 0 2px 6px rgba(15,23,42,.04);
}
.side { background: #fff; color: var(--ink-2); border-right: 1px solid var(--line); }
.side::before { background: radial-gradient(120% 40% at 0% 0%, rgba(47,107,255,.07), transparent 60%); }
.side-brand { color: var(--ink); } .side-brand small { color: var(--muted); }
.side-brand .logo { background: conic-gradient(from 200deg, #2F6BFF, #7C5CFF, #00C2A8, #2F6BFF); position: relative; }
.side-brand .logo.mark::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.side-group { color: #9AA4B5; }
.side a.nav { color: var(--ink-2); font-weight: 600; }
.side a.nav:hover { background: var(--line-2); color: var(--ink); }
.side a.nav.active { background: var(--brand-soft); color: var(--brand-ink); box-shadow: inset 3px 0 0 var(--brand); }
.side a.nav .dot2 { width: 8px; height: 8px; border-radius: 3px; background: var(--c); margin: 0 5px; flex-shrink: 0; }
.side-foot { border-top-color: var(--line); } .side-user b { color: var(--ink); } .side-user small { color: var(--muted); }
.topbar { background: rgba(246,248,252,.85); }
.kpi.dark { background: linear-gradient(140deg, #2F6BFF, #5B4BFF 55%, #00C2A8); }
.kpi.dark .lbl .ic { color: #fff; background: rgba(255,255,255,.18); } .kpi.dark .lbl, .kpi.dark .sub { color: rgba(255,255,255,.85); }
.tabs { background: #EDF0F6; }
.btn-brand { background: linear-gradient(135deg, #2F6BFF, #4F7DFF); box-shadow: 0 8px 20px -10px rgba(47,107,255,.7); }
.btn-ink { background: var(--ink); color: #fff; }
.chip-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 12%, #fff); }
.svc { --c: var(--brand); border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh-1); transition: .2s; position: relative; overflow: hidden; }
.svc::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); }
.svc:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.svc .top { display: flex; gap: 12px; align-items: center; } .svc h4 { margin: 0; font-size: 15.5px; } .svc small { color: var(--muted); }
.svc .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .svc .stats div { background: var(--bg); border-radius: 12px; padding: 9px 10px; } .svc .stats b { display: block; font-size: 16px; letter-spacing: -.02em; } .svc .stats span { font-size: 11px; color: var(--muted); }
.svc .acts { display: flex; gap: 8px; margin-top: auto; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.welcome { border-radius: 24px; padding: 26px 28px; background: linear-gradient(135deg, #EEF3FF, #E9FBF7); border: 1px solid #DCE6FB; display: flex; gap: 20px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.welcome h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.03em; } .welcome p { margin: 0; color: var(--ink-2); }
.notif-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #EF4444; border: 2px solid #fff; }
.topbtn { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); background: #fff; border: 1px solid var(--line); }
.timeline .ev { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); } .timeline .ev:last-child { border: 0; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: inline-block; }
.auth2 { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.auth2-art { position: relative; overflow: hidden; isolation: isolate; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #F2F6FF, #EEFBF8); border-right: 1px solid var(--line); }
.auth2-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(15,23,42,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.05) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); }
.auth2-art h2 { font-size: 40px; letter-spacing: -.045em; line-height: 1.03; margin: 0 0 12px; } .auth2-art p { color: var(--ink-2); max-width: 430px; }
.auth2-form { display: grid; place-items: center; padding: 40px 24px; } .auth2-form .box { width: 100%; max-width: 420px; } .auth2-form h1 { font-size: 30px; letter-spacing: -.035em; margin: 0 0 6px; }
.otp { display: flex; gap: 8px; justify-content: space-between; margin: 18px 0; } .otp input { width: 52px; height: 60px; text-align: center; font-size: 26px; font-weight: 800; border: 1.5px solid var(--line); border-radius: 14px; }
.otp input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); outline: 0; }
.lg { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.04em; color: var(--ink); }
.lg-mark { width: 34px; height: 34px; border-radius: 11px; background: conic-gradient(from 200deg, #2F6BFF, #7C5CFF, #00C2A8, #2F6BFF); position: relative; flex-shrink: 0; }
.lg-mark::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
@media (max-width: 900px) { .auth2 { grid-template-columns: 1fr; } .auth2-art { display: none; } }

/* Motores de servicio */
.keybox { background: var(--bg); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 16px; }
.mini { background: var(--bg); border-radius: 12px; padding: 10px 12px; min-width: 0; } .mini span { display: block; font-size: 12px; color: var(--muted); } .mini b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps { display: flex; gap: 6px; } .steps .st { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); text-align: center; position: relative; }
.steps .st i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-weight: 700; color: var(--muted); z-index: 1; }
.steps .st:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--line); }
.steps .st.done i { background: var(--ok); color: #fff; } .steps .st.done::after { background: var(--ok) !important; } .steps .st.on i { background: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-soft); } .steps .st.on, .steps .st.done { color: var(--ink); font-weight: 600; }
.bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; } .bar span { display: block; height: 100%; border-radius: 99px; }
pre.code { background: #0F172A; color: #CBD5E1; border-radius: 12px; padding: 14px 16px; font-size: 12.5px; overflow-x: auto; white-space: pre; }
.seal-prev { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: 0 10px 30px -18px rgba(22,163,74,.6); min-width: 240px; }
.seal-prev .seal-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #16A34A, #22C55E); }
.seal-prev small { display: block; font-size: 11px; color: #16A34A; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; } .seal-prev b { display: block; font-size: 16px; } .seal-prev em { font-style: normal; font-size: 12px; color: var(--muted); }
.seal-prev.dark { background: #0F172A; border-color: #0F172A; } .seal-prev.dark b { color: #fff; }
.chatlog .msg { margin-bottom: 12px; max-width: 82%; } .chatlog .msg.me { margin-left: auto; text-align: right; }
.chatlog .bubble { display: inline-block; text-align: left; padding: 10px 14px; border-radius: 16px; background: var(--bg); font-size: 14px; margin-top: 3px; } .chatlog .msg.me .bubble { background: var(--brand); color: #fff; }
.card-head h3, .card-pad > h3 { display: flex; align-items: center; gap: 8px; } .card-head h3 svg { color: var(--muted); flex-shrink: 0; }
.totp-setup { display: flex; gap: 22px; align-items: flex-start; background: var(--bg); border-radius: 16px; padding: 18px; flex-wrap: wrap; }
.qrbox { width: 168px; height: 168px; background: #fff; border-radius: 14px; padding: 8px; border: 1px solid var(--line); flex-shrink: 0; } .qrbox svg { width: 100%; height: 100%; }
.pick { position: relative; cursor: pointer; } .pick input { position: absolute; opacity: 0; } .pick span { display: block; text-align: center; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; }
.pick input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.cols > .card, .cols > form.card { align-self: start; }
.svc-grid > .card { margin: 0; }

/* Administración */
.adm-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 40px; flex: 1; max-width: 420px; margin: 0 18px; color: var(--muted); }
.adm-search input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 14px; background: transparent; color: var(--ink); }
.adm-hero { display: flex; gap: 24px; align-items: center; padding: 26px 30px; border-radius: 22px; color: #fff; margin-bottom: 18px; background: radial-gradient(120% 140% at 100% 0%, #00C2A8 0%, transparent 45%), linear-gradient(120deg, #1D4ED8, #2F6BFF 45%, #6D5BFF); box-shadow: 0 24px 50px -30px rgba(47,107,255,.8); }
.adm-hero .big { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; } .adm-hero .big small { font-size: 18px; opacity: .7; font-weight: 600; }
.adm-hero-spark { width: 42%; min-width: 260px; } .adm-hero-spark .grid, .adm-hero-spark .axis { opacity: .25; } .adm-hero-spark text { fill: #fff !important; }
.task-n { min-width: 28px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--line-2); color: var(--muted); padding: 0 8px; } .task-n.on { background: var(--c); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } @media (max-width: 1100px) { .cols-3 { grid-template-columns: 1fr; } .adm-hero { flex-direction: column; align-items: flex-start; } .adm-hero-spark { width: 100%; } .adm-search { display: none; } }
.avatar.sm { width: 34px; height: 34px; font-size: 12px; border-radius: 11px; flex-shrink: 0; }
.lchip { width: 24px; height: 24px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); }
tr.rowlink { cursor: pointer; } tr.rowlink:hover td { background: #F8FAFF; }
.c360 { display: grid; grid-template-columns: 330px 1fr; gap: 18px; align-items: start; } @media (max-width: 1100px) { .c360 { grid-template-columns: 1fr; } }
.c360-id { text-align: center; padding: 26px 22px; } .c360-id .avatar { width: 76px; height: 76px; border-radius: 24px; font-size: 26px; margin: 0 auto 12px; display: grid; place-items: center; color: #fff; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; } .kv span { color: var(--muted); } .kv b { text-align: right; overflow-wrap: anywhere; }
.utabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; } .utabs a { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; } .utabs a.on { color: var(--brand-ink); border-color: var(--brand); }
.cols > * + *, .cols-3 > * + *, .cols-21 > * + * { margin-top: 0 !important; }
.c360 > div, .cols > *, .cols-21 > *, .cols-3 > * { min-width: 0; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: #EEF1F7; border-radius: 18px; padding: 12px; min-height: 200px; } .khead { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; }
.kcard { display: block; background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: 0 6px 16px -12px rgba(15,23,42,.35); border: 1px solid var(--line); transition: .2s; } .kcard:hover { transform: translateY(-2px); }
.pick-row { display: block; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; } .pay-m input:checked + .pick-row { border-color: var(--brand); background: var(--brand-soft); }
.pay-m > span { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; } .pay-m input:checked + span { border-color: var(--brand); background: var(--brand-soft); } .pay-m input { position: absolute; opacity: 0; } .pay-m { position: relative; display: block; cursor: pointer; }
