:root {
  /* ── Paleta Nexum Institucional Clásico ──────────────── */
  --primary:        #0D2B55;   /* Azul Marino — color marca */
  --primary-dark:   #091E3E;   /* Azul noche                */
  --primary-light:  #1A4A8A;   /* Azul medio                */
  --accent:         #C9A84C;   /* Dorado — acento marca     */
  --accent-dark:    #A8862E;   /* Dorado oscuro             */
  --accent-light:   #E8CA7A;   /* Dorado claro              */
  --burgdy:         #7F1D1D;   /* Burdeos — X / detalle     */
  --burgdy-light:   #FEE2E2;   /* Burdeos claro (alertas)   */
  --green:          #065628;   /* Verde institucional       */
  --green-dark:     #043D1C;
  --green-light:    #D1FAE5;
  --ink:            #1F2937;   /* Tinta — texto cuerpo      */
  --gray-mid:       #6B7280;   /* Gris medio                */
  --gray-light:     #F3F4F6;   /* Fondo suave               */
  --sidebar-w:      248px;
  --sidebar-col:    58px;
  --topbar-h:       60px;
}

/* ── Reset & base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Calibri', 'Segoe UI', system-ui, sans-serif;
  background: var(--gray-light);
  color: var(--ink);
}

/* ── Sidebar ─────────────────────────────────────── */
#sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 70%, #163C70 100%);
  border-right: 3px solid var(--accent);
  transition: width .25s ease;
  overflow: hidden;
  z-index: 1050;
  display: flex;
  flex-direction: column;
}
#sidebar.collapsed { width: var(--sidebar-col); }

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 14px 13px;
  color: #fff;
  white-space: nowrap;
  border-bottom: 1px solid rgba(201,168,76,.3);
  text-decoration: none;
  background: rgba(0,0,0,.2);
  overflow: hidden;
  min-height: 72px;
}
/* Logotipo completo — expandido */
.sidebar-brand .brand-wordmark {
  height: 52px;
  width: auto;
  object-fit: contain;
  opacity: 1;
  transition: opacity .2s, width .2s;
  flex-shrink: 0;
}
/* Escudo — solo colapsado */
.sidebar-brand .brand-shield {
  height: 38px;
  width: 0;
  object-fit: contain;
  opacity: 0;
  transition: opacity .2s, width .2s;
  flex-shrink: 0;
}
#sidebar.collapsed .sidebar-brand .brand-wordmark {
  width: 0;
  opacity: 0;
  overflow: hidden;
}
#sidebar.collapsed .sidebar-brand .brand-shield {
  width: 34px;
  opacity: 1;
}

/* Marca Nexum en sidebar */
.brand-nexum  { color: #fff; font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; font-family: 'Georgia', serif; }
.brand-suite  { color: var(--accent); font-size: .7rem; font-weight: 600; letter-spacing: .14em; display: block; margin-top: 1px; }

.nav-section-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.45);
  padding: 16px 18px 4px;
  white-space: nowrap;
  overflow: hidden;
}
#sidebar.collapsed .nav-section-label { visibility: hidden; }

/* Botón de sección colapsable */
.nav-section-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.45);
  padding: 16px 18px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
  transition: color .15s;
}
.nav-section-toggle:hover { color: rgba(255,255,255,.75); }
.nav-section-toggle .nav-toggle-chevron {
  font-size: .6rem;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.nav-section-toggle.collapsed .nav-toggle-chevron { transform: rotate(-90deg); }
#sidebar.collapsed .nav-section-toggle { visibility: hidden; }

/* Espacio entre Dashboard y la primera sección colapsable */
#sidebar .nav-section-toggle:first-of-type { margin-top: 2.8rem; }

.sidebar-nav { list-style: none; margin: 0; padding: 0 8px; flex: 1; overflow-y: auto; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .9rem;
  transition: background .15s;
  white-space: nowrap;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.sidebar-nav a.active {
  background: rgba(201,168,76,.18) !important;
  border-left: 3px solid var(--accent);
  padding-left: 7px;
  color: var(--accent-light) !important;
}
.sidebar-nav a .bi { font-size: 1.1rem; flex-shrink: 0; }
.sidebar-nav span.label { overflow: hidden; transition: opacity .2s; }
#sidebar.collapsed .sidebar-nav span.label { opacity: 0; }

/* ── Topbar ──────────────────────────────────────── */
#topbar {
  position: fixed;
  top: 0; left: var(--sidebar-w);
  right: 0; height: var(--topbar-h);
  background: #fff;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(13,43,85,.08);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1040;
  transition: left .25s ease;
}
#topbar.expanded { left: var(--sidebar-col); }

#topbar .page-title { font-size: 1rem; font-weight: 700; color: var(--primary); flex: 1; font-family: 'Georgia', serif; letter-spacing: .01em; }

.btn-toggle-sidebar {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 8px;
  margin-right: 12px;
  border-radius: 6px;
}
.btn-toggle-sidebar:hover { background: #f0f2f5; }

.topbar-user { display: flex; align-items: center; gap: 8px; }
.topbar-user .avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,76,.2);
}

/* ── Main content ────────────────────────────────── */
#main {
  margin-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  min-height: 100vh;
  transition: margin-left .25s ease;
}
#main.expanded { margin-left: var(--sidebar-col); }

.content-wrapper { padding: 24px; }

/* ── Cards ───────────────────────────────────────── */
.card { border: none; border-radius: 10px; box-shadow: 0 1px 6px rgba(13,43,85,.08); }
.card-header {
  background: #fff;
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
  font-family: 'Georgia', serif;
  color: var(--primary);
  border-radius: 10px 10px 0 0 !important;
  letter-spacing: .01em;
}

.kpi-card {
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
}
.kpi-card .kpi-icon { font-size: 2rem; opacity: .85; }
.kpi-card .kpi-value { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.kpi-card .kpi-label { font-size: .8rem; opacity: .9; margin-top: 2px; }

.kpi-blue   { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); border-left: 4px solid var(--accent); }
.kpi-orange { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%); }
.kpi-teal   { background: linear-gradient(135deg, #0E7490 0%, #14B8A6 100%); }
.kpi-green  { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%); }
.kpi-red    { background: linear-gradient(135deg, var(--burgdy) 0%, #B91C1C 100%); }

/* ── Tables ──────────────────────────────────────── */
.table-hover tbody tr:hover { background: #EEF2F8; }
.table th {
  background: var(--primary);
  color: #fff;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-top: none;
  font-weight: 600;
}
.table td { vertical-align: middle; color: var(--ink); }

/* ── Badges & status ─────────────────────────────── */
.badge-estatus-1  { background: #cfe2ff; color: #084298; }
.badge-estatus-2  { background: #fff3cd; color: #664d03; }
.badge-estatus-3  { background: #d1e7dd; color: #0a3622; }
.badge-estatus-4  { background: #f8d7da; color: #842029; }
.badge-estatus-azul { background: var(--primary); color: #fff; }

/* ── Forms ───────────────────────────────────────── */
.form-label { font-weight: 600; font-size: .875rem; color: var(--ink); }
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(201,168,76,.25);
}
.section-divider {
  font-size: .72rem;
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  margin: 22px 0 14px;
}

/* ── Login page ──────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background:
    linear-gradient(155deg, var(--primary-dark) 0%, var(--primary) 55%, #1A4A8A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Patrón de fondo sutil */
.login-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(201,168,76,.04) 0px, rgba(201,168,76,.04) 1px,
    transparent 1px, transparent 28px
  );
  pointer-events: none;
}
.login-card {
  width: 440px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  position: relative;
  z-index: 1;
}
.login-card .login-header {
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 36px 28px 26px;
  text-align: center;
  color: #fff;
  border-bottom: 4px solid var(--accent);
  position: relative;
}
.login-header-logo {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.5));
}
.login-tagline {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .05em;
  margin-top: 6px;
  font-style: italic;
  text-align: center;
}
.login-card .login-body { padding: 28px; background: #fff; }

/* ── Utilities ───────────────────────────────────── */
.text-primary-fin { color: var(--primary) !important; }
.bg-primary-fin   { background-color: var(--primary) !important; }
/* Botón primario — Azul Marino Nexum */
.btn-primary-fin  {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-color: var(--primary);
  color: #fff !important;
  font-weight: 600;
}
.btn-primary-fin:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-color: var(--primary-dark);
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(13,43,85,.3);
}
.btn-primary-fin i, .btn-primary-fin:hover i { color: #fff !important; }
/* Botón acento — Dorado Nexum */
.btn-accent-fin {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  border-color: var(--accent-dark);
  color: var(--primary);
  font-weight: 700;
}
.btn-accent-fin:hover {
  background: linear-gradient(135deg, #8A6E1E 0%, var(--accent-dark) 100%);
  border-color: #8A6E1E;
  color: var(--primary);
  box-shadow: 0 3px 12px rgba(201,168,76,.35);
}
.breadcrumb { background: transparent; padding: 0; margin-bottom: 16px; }

/* ── Pagination ──────────────────────────────────── */
.pagination .page-link { color: var(--primary); }
.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ── Wizard tabs anidados en .card-body: Bootstrap usa selector hijo directo ── */
/* Los tab-pane son nietos de .tab-content (hay .card-body intermedio),        */
/* por eso el CSS nativo de Bootstrap no oculta los paneles inactivos.         */
/* Este override aplica display:none/block con la ruta correcta.               */
.tab-content > .card-body > .tab-pane              { display: none !important; }
.tab-content > .card-body > .tab-pane.active       { display: block !important; }
.tab-content > .card-body > .tab-pane.show.active  { display: block !important; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  #sidebar { width: var(--sidebar-col); }
  #topbar { left: var(--sidebar-col); }
  #main { margin-left: var(--sidebar-col); }
}

/* ═══════════════════════════════════════════════════════════════════
   WIZARD STEPPER — producto-form
   ═══════════════════════════════════════════════════════════════════ */

/* ── Stepper bar ── */
.stepper-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: .875rem 1rem .75rem;
  background: #fff;
  border-radius: .625rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.09);
  margin-bottom: 0; /* gestionado por el wrapper flex */
}

/* ── Botones circulares de navegación del stepper ── */
.btn-step-nav {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid #343a40;
  background: #fff;
  color: #343a40;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  padding: 0;
}
.btn-step-nav:hover:not(:disabled) {
  background: #343a40;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
}
.btn-step-nav:disabled {
  border-color: #ced4da;
  color: #ced4da;
  cursor: not-allowed;
  box-shadow: none;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 58px;
  position: relative;
  cursor: default;
  user-select: none;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  left: calc(50% + 19px);
  width: calc(100% - 38px);
  height: 2px;
  background: #dee2e6;
  z-index: 0;
  transition: background .35s;
}
.step-item:not(:last-child).done::after { background: var(--green); }
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  z-index: 1;
  position: relative;
  border: 2px solid #dee2e6;
  background: #fff;
  color: #9ca3af;
  transition: all .25s;
}
.step-item.active .step-circle {
  border-color: var(--accent);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(201,168,76,.22);
}
.step-item.done .step-circle {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.step-item.error .step-circle {
  border-color: #dc3545;
  background: #dc3545;
  color: #fff;
  animation: step-shake .3s;
}
@keyframes step-shake {
  0%, 100% { transform: translateX(0); }
  25%  { transform: translateX(-3px); }
  75%  { transform: translateX(3px); }
}
.step-label {
  font-size: .63rem;
  text-align: center;
  margin-top: 5px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 68px;
  transition: color .2s;
}
.step-item.active .step-label { color: var(--primary); font-weight: 700; }
.step-item.done  .step-label  { color: var(--green); }
.step-item.error .step-label  { color: var(--burgdy); }

/* ── Step banner ── */
.step-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-left: 4px solid var(--accent);
  border-radius: .625rem;
  padding: .875rem 1.35rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  color: #fff;
  box-shadow: 0 2px 10px rgba(13,43,85,.28);
}
.step-banner-icon {
  font-size: 1.9rem;
  opacity: .85;
  flex-shrink: 0;
}
.step-banner-body { flex: 1; }
.step-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border-radius: .3rem;
  padding: .1rem .5rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.step-title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
}
.step-desc {
  font-size: .78rem;
  opacity: .82;
  margin-top: .15rem;
}

/* ── Step panels ── */
.step-section { display: none; }
.step-section.active { display: block; }

/* ── Step cards ── */
.step-card {
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: .625rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
  transition: box-shadow .2s;
}
.step-card:focus-within {
  box-shadow: 0 2px 14px rgba(27,60,154,.11);
}
.step-card-header {
  background: linear-gradient(90deg, #EEF2F8 0%, #fff 100%);
  border-bottom: 2px solid var(--accent);
  padding: .65rem 1.15rem;
  font-weight: 700;
  font-size: .875rem;
  font-family: 'Georgia', serif;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--primary);
}
.step-card-header .bi {
  color: var(--accent);
  font-size: 1rem;
}
.step-card-body { padding: 1.15rem 1.25rem; }

/* ── Dynamic tables ── */
.dyn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.dyn-table th {
  background: var(--primary);
  padding: 7px 8px;
  font-weight: 600;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid var(--accent);
  color: #fff;
  white-space: nowrap;
}
.dyn-table td {
  padding: 5px 7px;
  vertical-align: middle;
  border-bottom: 1px solid #f0f2f7;
}
.dyn-table tr:last-child td { border-bottom: none; }
.dyn-table tr:hover td { background: #f4f7ff; }

/* ── Empty state ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 2.75rem 1rem;
  color: #b0b8cc;
  text-align: center;
}
.empty-state i { font-size: 2.5rem; }
.empty-state strong { font-size: .9rem; color: #6c757d; }
.empty-state p { margin: 0; font-size: .8rem; max-width: 340px; line-height: 1.5; }

/* ── Step navigation bar ── */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .875rem 1.1rem;
  background: #fff;
  border-top: 1px solid #e3e8f0;
  border-radius: 0 0 .625rem .625rem;
  margin-top: .25rem;
  box-shadow: 0 -1px 5px rgba(0,0,0,.05);
}
.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.step-dots {
  display: flex;
  gap: 5px;
}
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dee2e6;
  transition: background .2s, transform .2s;
}
.step-dot.active { background: var(--primary); transform: scale(1.45); }
.step-dot.done   { background: var(--green); }

/* ── Summary section ── */
.summary-section-title {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: .2rem;
  margin: .9rem 0 .4rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 2px;
  border-bottom: 1px solid #f0f2f5;
  font-size: .835rem;
}
.summary-label { color: #6c757d; flex: 0 0 46%; }
.summary-val { font-weight: 500; flex: 0 0 54%; text-align: right; color: #212529; }

/* ── Radio tiles ── */
.radio-tiles { display: flex; flex-wrap: wrap; gap: .4rem; }
.radio-tile   { position: relative; }
.radio-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.radio-tile label {
  display: flex;
  align-items: center;
  gap: .3rem;
  border: 1.5px solid #d0d7e2;
  border-radius: .45rem;
  padding: .38rem .9rem;
  cursor: pointer;
  font-size: .83rem;
  color: #4b5563;
  background: #fff;
  transition: all .15s;
  white-space: nowrap;
}
.radio-tile label:hover {
  border-color: var(--primary-light);
  background: #f0f4ff;
  color: var(--primary);
}
.radio-tile input:checked + label {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27,60,154,.25);
}

/* ── Cond blocks ── */
.cond-block { display: none; }

/* ── Wizard focus ring ── */
.step-section .form-control:focus,
.step-section .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 .2rem rgba(27,60,154,.17);
}

/* Checkbox state (garantias, docs, canales) */
.step-section .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ── Wizard form-label ── */
.step-section .form-label {
  font-size: .83rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: .3rem;
}
.step-section .form-text { font-size: .76rem; }

/* ── Responsive wizard ── */
@media (max-width: 991px) {
  .stepper-wrap  { padding: .625rem .75rem; }
  .step-label    { max-width: 54px; font-size: .6rem; }
}
@media (max-width: 767px) {
  .step-banner   { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .step-banner-icon { display: none; }
  .step-indicator { display: none; }
}

/* ── Paso 2 — panel de datos del expediente ────────────────────── */
.p2-body {
  background: var(--gray-light);
  padding: 1rem 1.25rem;
}

/* Grid de 12 columnas — alineación consistente en todas las filas */
.data-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: .65rem 1rem;
  padding: .65rem 0;
  border-bottom: 1px dashed #d1d5db;
}
.data-row:last-of-type { border-bottom: none; }

/* Anchos de campo por clase — igual que columnas Bootstrap */
.data-field        { grid-column: span 2;  display: flex; flex-direction: column; }
.data-field.df-sm  { grid-column: span 1; }
.data-field.df-lg  { grid-column: span 3; }
.data-field.df-xl  { grid-column: span 4; }

/* Etiqueta descriptiva del campo */
.data-lbl {
  font-size: .75rem;
  font-family: inherit;
  color: var(--gray-mid);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.4;
  margin-bottom: .2rem;
}
.data-lbl .req { color: #dc3545; font-weight: 700; }

/* Valor del campo — tipografía alineada con el sistema */
.data-val {
  font-size: .925rem;
  font-family: inherit;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

/* Sub-encabezado de sección dentro del bloque */
.data-section-lbl {
  display: block;
  grid-column: 1 / -1;
  font-size: .72rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: .6rem 0 .2rem;
  padding-bottom: .3rem;
  border-bottom: 2px solid var(--accent);
}

/* Responsive — pantallas menores a 992px (sidebar colapsado) */
@media (max-width: 991px) {
  .data-field        { grid-column: span 4; }
  .data-field.df-lg  { grid-column: span 4; }
  .data-field.df-xl  { grid-column: span 6; }
}
/* Responsive — móvil */
@media (max-width: 575px) {
  .data-row { grid-template-columns: 1fr 1fr; }
  .data-field, .data-field.df-lg { grid-column: span 1; }
  .data-field.df-xl              { grid-column: span 2; }
}
