/* ===================== DASHBOARD (ref. 1) ===================== */
.welcome {
  position: relative; overflow: hidden; border-radius: var(--radius); color: #fff;
  background: var(--primary); min-height: 114px; display: flex; align-items: center; padding: 18px 28px 18px 270px;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), .25);
}
.welcome::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 92% 20%, rgba(255,255,255,.14) 0 60px, transparent 61px),
  radial-gradient(circle at 70% 110%, rgba(255,255,255,.08) 0 90px, transparent 91px); pointer-events: none; }
.welcome-art { position: absolute; left: 6px; bottom: 0; width: 250px; height: 140px; }
.welcome h2 { color: #fff; font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.welcome p { margin: 0; opacity: .92; font-size: 13.8px; }
.welcome .hl { color: #FFD27A; font-weight: 600; }
.welcome-meta { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.welcome-meta span { background: rgba(255,255,255,.16); border-radius: 20px; padding: 4px 11px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.welcome-meta svg { width: 13px; height: 13px; }
.welcome-side { margin-left: auto; text-align: center; padding-left: 20px; position: relative; }
.welcome-side .ring { width: 78px; height: 78px; }
.welcome-side small { display: block; opacity: .85; font-size: 11.5px; margin-top: 2px; }

.kpi-card .kpi-icon { position: absolute; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.kpi-card .kpi-icon svg { width: 21px; height: 21px; }
.kpi-card { padding: 22px 24px; min-height: 146px; }
.kpi-card .kpi-label { font-size: 13px; }

.launch { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.launch .big { font-size: 26px; font-weight: 600; color: var(--primary); line-height: 1.2; margin-top: 10px; }

/* Widgets ref. 4 */
.w-trend { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; margin-top: 8px; }
.w-trend .up::before, .w-trend .down::before { content: ""; display: inline-block; border: 5px solid transparent; margin-right: 6px; vertical-align: 1px; }
.w-trend .up::before { border-bottom: 6px solid var(--success); border-top: 0; }
.w-trend .down::before { border-top: 6px solid var(--danger); border-bottom: 0; }
.w-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.w-center { text-align: center; padding: 24px 18px; }
.w-center .icon-circle { width: 56px; height: 56px; margin: 0 auto 12px; }
.w-center .icon-circle svg { width: 20px; height: 20px; }
.w-center .w-label { color: var(--text-2); font-size: 13.5px; }
.w-center .w-value { font-size: 25px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ratio-row { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.ratio-row > div { text-align: center; padding: 24px 12px; border-right: 1px solid var(--border-2); }
.ratio-row > div:last-child { border-right: 0; }
.ratio-row .r-label { font-weight: 500; font-size: 13.5px; }
.ratio-row .r-value { font-size: 27px; font-weight: 500; margin: 6px 0 2px; }
.ratio-row .r-trend { font-size: 12.5px; color: var(--text-2); }
.person-card { text-align: center; padding: 24px 18px; }
.person-card .avatar { margin: 0 auto 10px; }
.person-card h4 { font-size: 15.5px; font-weight: 600; }
.person-card .pc-role { font-size: 13px; margin-top: 2px; }
.person-card .pc-ok { color: var(--success); font-size: 12.5px; margin: 6px 0 14px; display: inline-flex; gap: 5px; align-items: center; }
.person-card .pc-ok svg { width: 14px; height: 14px; }
.person-card .pc-stats { display: flex; justify-content: center; gap: 18px; font-size: 12px; color: var(--text-2); margin-bottom: 14px; }
.person-card .pc-stats b { display: block; color: var(--text); font-size: 15px; }

/* Ticket/actividad (ref. 2) */
.ticket { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.ticket .t-main { flex: 1; min-width: 0; }
.ticket .t-title { font-weight: 500; font-size: 14px; }
.ticket .t-sub { color: var(--text-2); font-size: 12.3px; }
.ticket .t-end { font-size: 12px; color: var(--text); text-align: right; }

/* Selector de roles */
.role-grid { gap: 12px; }
.role-opt { border: 1.5px solid var(--border); background: var(--card); border-radius: 12px; padding: 18px 14px; display: grid; justify-items: center; gap: 4px; text-align: center; transition: border-color .15s, box-shadow .15s; }
.role-opt:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.role-opt.active { border-color: var(--primary); background: var(--primary-soft-2); }
.role-opt b { font-size: 14px; margin-top: 6px; }
.role-opt span { font-size: 12.5px; }
.role-opt small { color: var(--text-2); font-size: 11.5px; }

/* Pie de página: aviso y créditos */
.app-foot { margin: 0 var(--pad) 22px; padding: 14px 18px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); font-size: 12px; color: var(--text-2); display: grid; gap: 6px; max-width: 1672px; }
@media (min-width: 1768px) { .app-foot { margin-left: auto; margin-right: auto; } }
.foot-notice { display: flex; gap: 8px; align-items: flex-start; color: #8C5A00; background: var(--warning-soft); border-radius: 7px; padding: 8px 11px; }
[data-theme="dark"] .foot-notice { color: #F5D08A; }
.foot-notice svg { flex: 0 0 15px; margin-top: 2px; }
.foot-credits { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.foot-credits a { font-weight: 600; }
.kpi-card .kpi-trend { padding-right: 56px; }
.ticket .t-end { flex: 0 0 auto; white-space: nowrap; }
