:root {
  --bg-a: #f2f4f7;
  --bg-b: #eaedf1;
  --ink-900: #1f2937;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --line: #d5dde7;
  --brand: #4f6f8d;
  --brand-700: #3f5d79;
  --brand-soft: #e7eef5;
  --ok: #15803d;
  --danger: #b42318;
}

.portal-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% -10%, #dbe3ec 0%, transparent 35%),
    radial-gradient(circle at 100% 0%, #dce3ea 0%, transparent 30%),
    linear-gradient(180deg, var(--bg-a) 0%, var(--bg-b) 100%);
  color: var(--ink-900);
}

#loginSection {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;
  transform: scale(1.55);
  transform-origin: center;
}

.login-logo-panel {
  background: rgba(250, 252, 254, 0.92);
  border: 1px solid rgba(214, 222, 231, 0.95);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(44, 58, 74, 0.1);
  padding: 10px 14px;
  margin-bottom: 10px;
}

.login-logo-wrap {
  width: 100%;
  height: 120px;
  line-height: 0;
  border-radius: 10px;
  margin: 0;
  overflow: hidden;
}

.login-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin-bottom: 18px;
}

.login-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 2px;
}

.login-sub {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-bottom: 18px;
}

.login-card .form-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.input-wrap .form-control {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px 11px 38px;
  font-size: 0.9rem;
  color: var(--ink-900);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 106, 165, 0.15);
}

.input-wrap .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa6b5;
  font-size: 0.82rem;
  pointer-events: none;
}

.input-wrap .toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa6b5;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  cursor: pointer;
}

.input-wrap .toggle-pass:hover {
  color: var(--ink-700);
}

.form-hint {
  font-size: 0.72rem;
  color: var(--ink-500);
  margin-top: -8px;
  margin-bottom: 14px;
  padding-left: 2px;
}

.btn-login {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--brand) 0%, #6d88a4 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.15s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(63, 93, 121, 0.24);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login:disabled {
  opacity: 0.65;
  pointer-events: none;
}

.login-footer {
  font-size: 0.72rem;
  color: #90a0b3;
  text-align: center;
  margin-top: 18px;
}

.login-footer i {
  margin-right: 4px;
}

.portal-main {
  max-width: 1200px;
}

.dashboard-hero {
  background: linear-gradient(120deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 18px rgba(46, 63, 81, 0.1);
}

.dashboard-hero h2 {
  font-weight: 800;
  color: #243446;
}

.card {
  border-radius: 16px;
  border: 1px solid #d8e0e9;
  box-shadow: 0 8px 18px rgba(46, 63, 81, 0.08);
  background: #f8fafc;
}

.card-header {
  border-bottom: 1px solid #e0e7ef;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
}

.header-soft-blue {
  background: #2A3F54 !important;
  border-bottom-color: #223445;
}

.header-soft-blue strong {
  color: #ffffff;
}

.header-soft-blue small,
.header-soft-blue .text-secondary {
  color: #d5e2ef !important;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed #e3eaf3;
  padding: 7px 0;
}

.kv span {
  color: var(--ink-500);
}

.kv strong {
  color: var(--ink-900);
  text-align: right;
}

#datoEstado.badge {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
}

#datoEstado.bg-danger,
#datoEstado.bg-success,
#datoEstado.bg-secondary {
  color: #ffffff !important;
  font-weight: 700;
}

.nav-tabs .nav-link {
  color: var(--ink-700);
  font-weight: 600;
}

.nav-tabs .nav-link.active {
  color: var(--brand-700);
  border-color: #d5dde7 #d5dde7 #f8fafc;
  background: #f8fafc;
}

.table thead th {
  background: #edf3fa;
  color: #2b4663;
  font-weight: 700;
  border-bottom: 1px solid #d7e2ef;
}

.table tbody td {
  color: #1f2937;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: #f5f8fc;
}

.modal-content {
  border-radius: 14px;
  border: 1px solid #d8e0e9;
  background: #f8fafc;
}

#listaCuentas {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}

#listaCuentas .medio-item {
  background: #ffffff;
  border: 1px solid #d8e3ee;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(33, 52, 74, 0.06);
}

#listaCuentas .medio-head {
  color: #28445f;
  margin-bottom: 5px;
}

#listaCuentas .medio-line {
  color: #44576b;
  font-size: 0.92rem;
  line-height: 1.5;
}

#listaCuentas .medio-line span {
  font-weight: 700;
  color: #33495f;
}

pre {
  max-height: 360px;
  overflow: auto;
}

@media (max-width: 768px) {
  .dashboard-hero {
    padding: 14px;
  }
}
