[data-theme="light"] {
    --bg-color: #e8eaee;
    --bg-grid: rgba(60, 72, 90, 0.06);
    --card-bg: rgba(255, 255, 255, 0.92);
    --section-bg: #ffffff;
    --card-border: rgba(100, 116, 139, 0.28);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #0891b2;
    --primary-hover: #0e7490;
    --primary-glow: rgba(8, 145, 178, 0.2);
    --accent-magenta: #db2777;
    --accent-purple: #7c3aed;
    --accent-amber: #d97706;
    --accent-green: #059669;
    --accent-emerald: #059669;
    --primary-gradient: linear-gradient(135deg, #0891b2 0%, #7c3aed 55%, #db2777 100%);
    --success: #059669;
    --error: #dc2626;
    --warning: #d97706;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
    /* Light surfaces — all cards, inputs, pills use these */
    --surface-elevated: #ffffff;
    --surface-muted: #f8fafc;
    --surface-subtle: #f1f5f9;
    --surface-input: #ffffff;
    --surface-input-hover: #f1f5f9;
    --surface-pill: #f1f5f9;
    --surface-active-text: #ffffff;
    --surface-overlay: #f8fafc;
    --surface-border-subtle: rgba(100, 116, 139, 0.22);
    --surface-border-faint: rgba(100, 116, 139, 0.18);
    --surface-border-light: rgba(100, 116, 139, 0.25);
    --surface-border-medium: rgba(100, 116, 139, 0.3);
    --surface-hover: rgba(241, 245, 249, 0.95);
    --surface-hover-strong: rgba(226, 232, 240, 0.95);
    --surface-dashed-bg: rgba(241, 245, 249, 0.9);
    --surface-row-hover: rgba(241, 245, 249, 0.95);
    --chart-tick: #475569;
    --chart-grid: rgba(100, 116, 139, 0.22);
    --chart-bar-bg: rgba(8, 145, 178, 0.55);
    --chart-bar-border: rgba(8, 145, 178, 1);
    --chart-bar-fill: rgba(8, 145, 178, 0.15);
    --chart-line: rgba(5, 150, 105, 0.9);
    --chart-line-fill: rgba(5, 150, 105, 0.14);
    --chart-line-point: rgba(5, 150, 105, 1);
    --chart-line-point-dim: rgba(5, 150, 105, 0.35);
    --chart-line-point-border-dim: rgba(5, 150, 105, 0.45);
    --chart-focus-tick: #0891b2;
    --chart-focus-tick-muted: #64748b;
    --person-publicador: #64748b;
    --person-siervo: #c2410c;
    --person-anciano: #a16207;
    --person-sup: #0f766e;
    --person-sup-bg: rgba(13, 148, 136, 0.12);
    --person-sup-border: rgba(13, 148, 136, 0.35);
    --person-aux: #0d9488;
    --person-aux-bg: rgba(13, 148, 136, 0.08);
    --person-aux-border: rgba(13, 148, 136, 0.28);
    --heading-section-color: #1e293b;
    --heading-subsection-color: #1e293b;
    --heading-panel-color: #475569;
}

[data-theme="light"] body {
    background-image:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(8, 145, 178, 0.08), transparent);
    background-size: 48px 48px, 48px 48px, auto;
}

[data-theme="light"] body::before {
    opacity: 0;
}

[data-theme="light"] h1,
[data-theme="light"] .dashboard-header h1 {
    filter: none;
}

[data-theme="light"] .dashboard-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

[data-theme="light"] .grupos-matrix-name-col,
[data-theme="light"] .grupos-matrix-name,
[data-theme="light"] .grupos-matrix-table thead th {
    background: #f8fafc;
}

[data-theme="light"] .datos-panel-sheet,
[data-theme="light"] .datos-modal-card {
    color: var(--text-main);
}

[data-theme="light"] .dashboard-nav--bottom {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(100, 116, 139, 0.2);
}

[data-theme="light"] .dashboard-app-header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(100, 116, 139, 0.22);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .dashboard-header-btn:hover,
[data-theme="light"] .dashboard-header-btn:focus-visible {
    background: #f1f5f9;
}

[data-theme="light"] .theme-choice-btn.is-active,
[data-theme="light"] .theme-choice-group .theme-choice-btn.is-active {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.12);
    border-color: rgba(8, 145, 178, 0.35);
    box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.25);
}

/* KPI — stronger label weight for small caps */
[data-theme="light"] .kpi-card-icon {
    color: #0e7490;
}

[data-theme="light"] .kpi-card--inactivos .kpi-card-icon {
    color: #64748b;
}

[data-theme="light"] .kpi-label {
    color: #334155;
    font-weight: 600;
}

[data-theme="light"] .kpi-value {
    color: #0e7490;
}

[data-theme="light"] .kpi-hint {
    color: #64748b;
}

[data-theme="light"] .btn-settings-header {
    border-color: rgba(100, 116, 139, 0.35);
    background: rgba(255, 255, 255, 0.85);
    color: #475569;
}

[data-theme="light"] .btn-settings-header:hover,
[data-theme="light"] .btn-settings-header:focus-visible {
    color: #1e293b;
    border-color: rgba(100, 116, 139, 0.5);
    background: #ffffff;
}

[data-theme="light"] .dashboard-header-btn[aria-pressed="true"] {
    color: #0891b2;
    border-color: rgba(8, 145, 178, 0.45);
    background: rgba(8, 145, 178, 0.1);
}

[data-theme="light"] .settings-tab.active {
    background: rgba(8, 145, 178, 0.1);
}

[data-theme="light"] .dataset-card.is-active {
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.4);
}

[data-theme="light"] .dataset-card-main:hover,
[data-theme="light"] .dataset-card-main:focus-visible {
    background: var(--surface-hover-strong);
}

[data-theme="light"] .grupos-roles-accordion,
[data-theme="light"] .grupos-role-card,
[data-theme="light"] .grupos-group-card {
    background: #ffffff;
    border-color: rgba(100, 116, 139, 0.28);
}

[data-theme="light"] .grupos-role-input {
    background: #ffffff;
    color: #1e293b;
    border-color: rgba(100, 116, 139, 0.35);
}

[data-theme="light"] .grupos-role-input::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .grupos-role-input:focus {
    border-color: rgba(5, 150, 105, 0.5);
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.12);
}

[data-theme="light"] .grupos-role-clear {
    border-color: rgba(100, 116, 139, 0.35);
    background: #f1f5f9;
    color: #64748b;
}

[data-theme="light"] .grupos-role-clear:hover {
    color: #1e293b;
    border-color: rgba(100, 116, 139, 0.5);
    background: #e2e8f0;
}

[data-theme="light"] .grupos-role-dropdown {
    background: #ffffff;
    border-color: rgba(100, 116, 139, 0.35);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .grupos-role-option:hover,
[data-theme="light"] .grupos-role-option:focus {
    background: rgba(5, 150, 105, 0.08);
}

[data-theme="light"] .grupos-publisher-name-btn {
    color: #0891b2;
}

[data-theme="light"] .grupos-publisher-name-btn--assign {
    color: #059669;
}

[data-theme="light"] .grupos-publisher-name-btn:hover,
[data-theme="light"] .grupos-publisher-name-btn:focus-visible {
    color: #0f766e;
}

[data-theme="light"] .grupos-member-check:hover {
    background: rgba(241, 245, 249, 0.95);
}

[data-theme="light"] .grupos-others-details {
    background: rgba(241, 245, 249, 0.65);
    border-color: rgba(100, 116, 139, 0.28);
}

[data-theme="light"] .filter-chip-exclude.on {
    color: #b91c1c;
}

[data-theme="light"] .chart-card h3 {
    color: #475569;
}

[data-theme="light"] .charts-exclude-label,
[data-theme="light"] .chart-profile-toggles-label {
    color: #475569;
}

[data-theme="light"] .chart-profile-toggle {
    color: #64748b;
}

[data-theme="light"] .chart-profile-toggle:hover {
    color: #1e293b;
}

[data-theme="light"] .data-table th {
    color: #475569;
}

[data-theme="light"] .load-status {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.28);
}

[data-theme="light"] .publisher-list-wrap {
    scrollbar-color: rgba(100, 116, 139, 0.55) #f1f5f9;
}

[data-theme="light"] .publisher-list-wrap::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.55);
    border-color: #f1f5f9;
}
