/**
 * Modo alto contraste — activar con html[data-banchy-contrast="high"]
 * Mejora lectura con luz ambiente fuerte o pantalla con brillo bajo.
 */
html[data-banchy-contrast='high'] {
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #475569;
  --text-muted: #64748b;
  --border-color: #64748b;
  --border-dark: #475569;
  --border-light: rgba(100, 116, 139, 0.45);
  --surface: #ffffff;
  --surface-50: #f1f5f9;
  --surface-100: #e2e8f0;
  --surface-200: #cbd5e1;
  --bg-page: #e2e8f0;
  --bg-primary: #e2e8f0;
  --warning: #b45309;
  --warning-light: #fef3c7;
  --success: #047857;
  --error: #b91c1c;
}

html[data-banchy-contrast='high'] body {
  background: var(--bg-page) !important;
  color: var(--text-primary) !important;
}

html[data-banchy-contrast='comfort'] body.has-presentation-bar {
  background: #cfd8e3 !important;
}

html[data-banchy-contrast='comfort'] body.has-presentation-bar .page-wrapper,
html[data-banchy-contrast='comfort'] body.has-presentation-bar .main-content,
html[data-banchy-contrast='comfort'] body.has-presentation-bar .content-body-compact,
html[data-banchy-contrast='comfort'] body.has-presentation-bar .card-content-area,
html[data-banchy-contrast='comfort'] body.has-presentation-bar .main-content-card {
  background: #d8e2ec !important;
}

html[data-banchy-contrast='high'] .presentation-bar-bancolombia {
  background: #e2e8f0 !important;
  border-bottom: 2px solid #334155 !important;
}

html[data-banchy-contrast='high'] .main-content-card,
html[data-banchy-contrast='high'] .card,
html[data-banchy-contrast='high'] .modal-content {
  border: 1px solid #64748b !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12) !important;
}

html[data-banchy-contrast='high'] .tab-button,
html[data-banchy-contrast='high'] .tabs .tab {
  color: #334155 !important;
  border-color: #64748b !important;
}

html[data-banchy-contrast='high'] .tab-button.active,
html[data-banchy-contrast='high'] .tabs .tab.active {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html[data-banchy-contrast='high'] .status-PENDING {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #b45309;
}

html[data-banchy-contrast='high'] .response-card-state,
html[data-banchy-contrast='high'] .response-card-state-text {
  color: #334155 !important;
}

html[data-banchy-contrast='high'] .response-card-state-icon {
  opacity: 1 !important;
}

html[data-banchy-contrast='high'] th,
html[data-banchy-contrast='high'] .table thead th {
  color: #0f172a !important;
  border-bottom: 2px solid #64748b !important;
}

html[data-banchy-contrast='high'] td {
  border-bottom: 1px solid #94a3b8 !important;
  color: #0f172a !important;
}

html[data-banchy-contrast='high'] .table-striped tbody tr:nth-child(odd) {
  background: #f1f5f9 !important;
}

html[data-banchy-contrast='high'] .modal-backdrop {
  background: rgba(15, 23, 42, 0.72) !important;
}

html[data-banchy-contrast='high'] input::placeholder,
html[data-banchy-contrast='high'] textarea::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}

html[data-banchy-contrast='high'] .sidebar-in-card .sidebar-section-title {
  color: #475569 !important;
}

html[data-banchy-contrast='high'] [data-banchy-contrast-toggle][aria-pressed='true'] {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-radius: 8px;
}
