*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1B3A5C;
  --navy-dark:   #152e4a;
  --navy-light:  #22486e;
  --blue:        #00AEEF;
  --blue-dark:   #008ecb;
  --blue-tint:   #e6f6fd;
  --purple:      #534AB7;
  --purple-dark: #3C3489;

  --bg-primary:   #f4f7fb;
  --bg-secondary: #ffffff;
  --bg-sidebar:   #1B3A5C;

  --border:      #e2eaf3;
  --border-dark: #c5d5e8;

  --text-primary:   #1B3A5C;
  --text-secondary: #4e6a84;
  --text-muted:     #7a95aa;
  --text-disabled:  #b0c4d8;

  /* Estado badges */
  --badge-activa-bg:          #EEEDFE; --badge-activa-text:          #3C3489;
  --badge-revision-bg:        #FAEEDA; --badge-revision-text:        #633806;
  --badge-diagnostico-bg:     #E1F5EE; --badge-diagnostico-text:     #085041;
  --badge-bpmn-bg:            #EAF3DE; --badge-bpmn-text:            #27500A;
  --badge-ganada-bg:          #D1FAE5; --badge-ganada-text:          #065F46;
  --badge-perdida-bg:         #FEE2E2; --badge-perdida-text:         #7F1D1D;

  --sidebar-width:  280px;
  --sidebar-width-collapsed: 68px;
  --header-height:   64px;

  --radius-sm: 4px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --radius-xl: 14px;

  --shadow-sm: 0 1px 4px rgba(27,58,92,.07), 0 0 1px rgba(27,58,92,.04);
  --shadow-md: 0 4px 20px rgba(27,58,92,.10), 0 1px 4px rgba(27,58,92,.06);
  --shadow-lg: 0 8px 32px rgba(27,58,92,.14), 0 2px 6px rgba(27,58,92,.08);
}

html, body {
  height: 100%;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ─── LAYOUT ─── */

#app { display: flex; height: 100%; overflow: hidden; }

.sidebar { width: var(--sidebar-width); flex-shrink: 0; background: var(--bg-sidebar); display: flex; flex-direction: column; overflow: hidden; transition: width .18s ease; }
.sidebar.collapsed { width: var(--sidebar-width-collapsed); }

.main-content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; min-width: 0; }

/* ─── SIDEBAR ─── */

.sidebar-header { padding: 24px 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; position: relative; }

.sidebar-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; gap: 6px; overflow: hidden; }

.sidebar-logo img { width: 100px; height: 100px; object-fit: contain; filter: brightness(0) invert(1); flex-shrink: 0; transition: width .18s ease, height .18s ease; }
.sidebar-platform-name { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.55); letter-spacing: .8px; text-transform: uppercase; text-align: center; white-space: nowrap; }

.btn-sidebar-toggle {
  position: absolute; top: 10px; right: 10px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5; transition: background .15s, color .15s, right .18s ease;
}
.btn-sidebar-toggle:hover { background: var(--navy-light); color: #fff; }
.btn-sidebar-toggle svg { transition: transform .18s ease; }
.sidebar.collapsed .btn-sidebar-toggle svg { transform: rotate(180deg); }

.sidebar.collapsed .sidebar-header { flex-direction: column; gap: 10px; padding: 20px 8px 16px; }
.sidebar.collapsed .btn-sidebar-toggle { position: static; }
.sidebar.collapsed .sidebar-logo img { width: 32px; height: 32px; }
.sidebar.collapsed .sidebar-platform-name { display: none; }

.sidebar-nav {
  flex: 1; padding: 12px 10px; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 10px; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.32); }

.sidebar-nav-label {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.25);
  text-transform: uppercase; letter-spacing: .12em; padding: 12px 8px 5px;
}

.nav-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-md);
  color: rgba(255,255,255,.55); font-size: 13.5px; font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
  margin-bottom: 2px; cursor: pointer; width: 100%; text-align: left;
  border-left: 2px solid transparent;
  overflow: hidden; white-space: nowrap;
}
.nav-item:hover:not(.disabled) { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.12); color: #fff; border-left-color: var(--blue); font-weight: 700; }
.nav-item.active .nav-icon { color: var(--blue); }
.nav-item.disabled { opacity: .28; cursor: not-allowed; pointer-events: none; }
.nav-icon { width: 18px; flex-shrink: 0; text-align: center; display: flex; align-items: center; justify-content: center; padding-top: 2px; }
.nav-icon svg { width: 16px; height: 16px; }
.nav-badge { margin-left: auto; font-size: 9px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.28); padding: 2px 7px; border-radius: 10px; font-weight: 700; letter-spacing: .04em; }

.sidebar.collapsed .sidebar-nav-label { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 10px; gap: 0; }
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-badge { display: none; }

.sidebar-footer { padding: 12px 14px 16px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 8px; }

.sidebar-user { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.sidebar-user-info { min-width: 0; }

.sidebar.collapsed .sidebar-footer { padding: 12px 8px 16px; flex-direction: column; gap: 10px; }
.sidebar.collapsed .sidebar-user-info,
.sidebar.collapsed .sidebar-role-badges { display: none; }

.sidebar-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-avatar-photo { object-fit: cover; display: block; }

.sidebar-user-name { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,.32); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn-sidebar-logout { width: 28px; height: 28px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); flex-shrink: 0; transition: color .15s, background .15s; }
.btn-sidebar-logout:hover { color: #fff; background: rgba(255,255,255,.08); }

.lang-toggle-btn {
  width: 28px; height: 28px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
  color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.15);
  transition: color .15s, background .15s, border-color .15s;
}
.lang-toggle-btn:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }

/* ─── PAGE HEADER ─── */

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; gap: 16px;
}

.breadcrumb { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.breadcrumb a { color: var(--text-muted); font-weight: 500; padding: 3px 7px; border-radius: var(--radius-sm); transition: color .15s, background .15s; }
.breadcrumb a:hover { color: var(--navy); background: var(--bg-primary); }
.breadcrumb-sep { color: var(--border-dark); font-size: 15px; line-height: 1; padding: 0 2px; user-select: none; }
.breadcrumb-current { color: var(--navy); font-weight: 700; font-size: 14px; padding: 3px 7px 3px 9px; background: var(--blue-tint); border-radius: var(--radius-sm); border-left: 2.5px solid var(--blue); }
.breadcrumb-current-mid { color: var(--text-muted); font-size: 13px; padding: 3px 7px; font-weight: 500; cursor: default; }

.page-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ─── DROPDOWN ─── */

.dropdown { position: relative; display: inline-flex; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 30;
  background: var(--bg-secondary); border: 0.5px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  min-width: 190px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.dropdown-item {
  display: block; width: 100%; text-align: left; padding: 8px 10px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  color: var(--text-primary); background: none; transition: background .15s;
  white-space: nowrap;
}
.dropdown-item:hover { background: var(--bg-primary); }
.dropdown-item:disabled { opacity: .5; cursor: not-allowed; }

/* ─── DETAIL HEADER ─── */

.detail-header {
  position: sticky;
  top: var(--header-height);
  z-index: 19;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  padding: 18px 28px; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px; flex-shrink: 0;
}
.detail-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
.detail-title { font-size: 20px; font-weight: 700; color: var(--text-primary); letter-spacing: -.3px; }
.detail-meta { font-size: 12.5px; color: var(--text-muted); }

/* ─── PAGE BODY ─── */

.page-body { padding: 24px 28px; flex: 1; }

/* ─── BUTTONS ─── */

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius-md);
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap; line-height: 1.2; letter-spacing: .01em;
}
.btn-primary  { background: var(--blue); color: #fff; }
.btn-primary:hover  { background: var(--blue-dark); box-shadow: 0 3px 10px rgba(0,174,239,.28); }
.btn-secondary { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-primary); border-color: var(--border-dark); color: var(--text-primary); }
.btn-navy     { background: var(--navy); color: #fff; }
.btn-danger   { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-navy:hover     { background: var(--navy-dark); box-shadow: 0 3px 10px rgba(27,58,92,.28); }
.btn-purple   { background: var(--purple); color: #fff; }
.btn-purple:hover   { background: var(--purple-dark); box-shadow: 0 3px 10px rgba(83,74,183,.28); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 11px 22px; font-size: 15px; }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

/* ─── STATS ROW ─── */

.stats-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 22px; }

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
}
.stat-card.blue::before   { background: var(--blue); }
.stat-card.green::before  { background: #10B981; }
.stat-card.navy::before   { background: var(--navy); }
.stat-card.purple::before { background: var(--purple); }
.stat-card.orange::before { background: #F59E0B; }

.stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-value.blue   { color: var(--blue); }
.stat-value.green  { color: #10B981; }
.stat-value.navy   { color: var(--navy); }
.stat-value.purple { color: var(--purple); }
.stat-value.orange { color: #F59E0B; }

/* ─── FILTER TABS ─── */

.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

.filter-tabs { display: flex; gap: 2px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 3px; flex-shrink: 0; }

.filter-tab { padding: 6px 14px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.filter-tab:hover { background: var(--bg-primary); color: var(--text-primary); }
.filter-tab.active { background: var(--navy); color: #fff; font-weight: 700; }

.filter-search-group { display: flex; align-items: center; gap: 8px; flex: 1; }
.filter-search { position: relative; flex: 1; min-width: 140px; max-width: 220px; }
.filter-search svg { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.filter-input { width: 100%; height: 31px; box-sizing: border-box; padding: 0 34px 0 10px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 13px; color: var(--text-primary); background: var(--bg-secondary); outline: none; transition: border-color .15s; }
.filter-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,174,239,.10); }
.filter-input::placeholder { color: var(--text-muted); }
.filter-select { appearance: none; -webkit-appearance: none; flex: 1; min-width: 140px; max-width: 220px; height: 31px; box-sizing: border-box; padding: 0 28px 0 10px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 13px; color: var(--text-muted); background: var(--bg-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center; outline: none; cursor: pointer; transition: border-color .15s; }
.filter-select:has(option:not([value=""]):checked) { color: var(--text-primary); }
.filter-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,174,239,.10); }

/* ─── TABLE ─── */

.table-container { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); }

table { width: 100%; border-collapse: collapse; }

thead tr { border-bottom: 1px solid var(--border); }

th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted);
  background: #f8fafd;
  white-space: nowrap;
}

td { padding: 14px 16px; font-size: 14px; color: var(--text-primary); border-bottom: 1px solid var(--border); vertical-align: middle; }

tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: #f0f6fb; cursor: pointer; }

.op-name   { font-weight: 700; font-size: 14px; }
.op-client { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ─── BADGES ─── */

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }

.badge-activa          { background: var(--badge-activa-bg);      color: var(--badge-activa-text); }
.badge-en_revision     { background: var(--badge-revision-bg);    color: var(--badge-revision-text); }
.badge-con_diagnostico { background: var(--badge-diagnostico-bg); color: var(--badge-diagnostico-text); }
.badge-con_bpmn        { background: var(--badge-bpmn-bg);        color: var(--badge-bpmn-text); }
.badge-ganada          { background: var(--badge-ganada-bg);       color: var(--badge-ganada-text); }
.badge-perdida         { background: var(--badge-perdida-bg);      color: var(--badge-perdida-text); }
.badge-ia              { background: #EEEDFE; color: #3C3489; }
.badge-revisado        { background: var(--badge-diagnostico-bg);  color: var(--badge-diagnostico-text); }
.badge-conservado      { background: #F0EDFE; color: #534AB7; font-size: 10px; font-weight: 600; letter-spacing: .3px; }
[data-section-body].filtro-activo > *:not([data-conservado="true"]) { display: none; }
.btn-filter-conservado.activo { background: #F0EDFE; color: #534AB7; border-color: #C5BEFA; }

.badge-tipo { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }

.badge-tipo-automatizacion { background: #e6f4fc; color: #185FA5; }
.badge-tipo-ia             { background: #EEEDFE; color: #3C3489; }
.badge-tipo-power_platform { background: #e0f5ee; color: #0F6E56; }
.badge-tipo-integracion    { background: #FAEEDA; color: #854F0B; }
.badge-tipo-desarrollo     { background: #f0e8fb; color: #6B21A8; }
.badge-tipo-consultoria    { background: #f3f4f6; color: #374151; }

.badge-impacto-alto  { background: #FEE2E2; color: #B91C1C; }
.badge-impacto-medio { background: #FEF3C7; color: #92400E; }
.badge-impacto-bajo  { background: #D1FAE5; color: #065F46; }

/* ─── ENTREGABLES DOTS ─── */

.entregables { display: flex; gap: 12px; align-items: center; }
.entregable-dot { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-ready    { background: #22C55E; }
.dot-progress { background: #F59E0B; }
.dot-pending  { background: #D1D5DB; }

/* ─── CARDS ─── */

.card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.card-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); margin-bottom: 16px; }

.card-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; gap: 12px; }
.card-row:last-child { border-bottom: none; }
.card-row-label { color: var(--text-muted); flex-shrink: 0; }
.card-row-value { color: var(--text-primary); font-weight: 600; text-align: right; word-break: break-word; }

/* ─── DETAIL GRID ─── */

.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-bottom: 18px; }

/* ─── TRANSCRIPCIONES ─── */

/* Transcripciones 2 columnas */
.trans-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .trans-2col { grid-template-columns: 1fr; } }
.trans-form-col { padding-right: 24px; border-right: 1px solid var(--border); }
.trans-list-col { }
.trans-col-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 14px; }

.transcripcion-list { display: flex; flex-direction: column; gap: 8px; }
.transcripcion-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md); transition: border-color .15s; }
.transcripcion-item:hover { border-color: var(--border-dark); }
.transcripcion-icon { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.transcripcion-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.transcripcion-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transcripcion-fecha { font-size: 11.5px; color: var(--text-muted); }
.transcripcion-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ─── UPLOAD / PASTE ZONE ─── */

.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 26px 20px; text-align: center; transition: border-color .2s, background .2s; cursor: pointer; }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--blue); background: var(--blue-tint); }
.upload-icon { font-size: 26px; margin-bottom: 6px; }
.upload-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.upload-sub { font-size: 12.5px; color: var(--text-muted); }

/* ─── DIAGNOSTICO SECTIONS ─── */

.diag-info-bar {
  border-left: 3px solid var(--purple);
  background: #f9f8fe;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--purple-dark);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}

.diag-section { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-xl); margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }

.diag-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: #f8fafd;
}
.diag-section-title { font-size: 13px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; letter-spacing: .01em; }
.diag-section-body { padding: 18px 20px; }

.diag-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.diag-2col .diag-section { margin-bottom: 0; }

/* Proceso card */
.proceso-card { padding: 12px 14px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 8px; }
.proceso-card:last-child { margin-bottom: 0; }
.proceso-nombre { font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.proceso-desc   { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 6px; }
.proceso-meta   { display: flex; gap: 14px; flex-wrap: wrap; }
.proceso-meta-item { font-size: 11.5px; color: var(--text-muted); }

/* Sistema card */
.system-item { padding: 12px 14px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 8px; }
.system-item:last-child { margin-bottom: 0; }
.system-name { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }
.system-tipo { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.system-uso  { font-size: 12.5px; color: var(--text-secondary); margin-top: 5px; line-height: 1.5; }

/* Dolor card */
.pain-item { padding: 14px 16px; background: var(--bg-primary); border: 1px solid var(--border); border-left: 3px solid var(--border-dark); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 8px; }
.pain-item.alto  { border-left-color: #EF4444; }
.pain-item.medio { border-left-color: #F59E0B; }
.pain-item.bajo  { border-left-color: #10B981; }
.pain-top  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pain-desc { font-size: 13.5px; font-weight: 600; color: var(--text-primary); line-height: 1.5; }
.pain-cita { font-size: 12px; color: var(--text-muted); font-style: italic; padding-top: 8px; border-top: 1px solid var(--border); line-height: 1.5; display: flex; gap: 6px; align-items: flex-start; }
.pain-proceso { font-size: 11.5px; color: var(--text-muted); }

.dolores-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Solución card */
.solution-item { padding: 15px 17px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 10px; }
.solution-item:last-child { margin-bottom: 0; }
.solution-item.recomendada { background: #f6f5fe; border-color: #cac7f7; border-left: 3px solid var(--purple); }

.solution-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); margin-bottom: 6px; }
.solution-desc  { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
.solution-just  { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; }

.solution-meta { display: flex; gap: 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.solution-meta-item { font-size: 11.5px; color: var(--text-muted); }
.solution-meta-item strong { color: var(--text-secondary); }

.solution-alt { margin-top: 12px; padding: 11px 13px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.solution-alt-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 4px; }
.solution-alt-desc  { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; }
.solution-alt-when  { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }

/* Faltante item */
.missing-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 8px; }
.missing-item:last-child { margin-bottom: 0; }
.missing-question { font-size: 13.5px; font-weight: 500; color: var(--text-primary); flex: 1; line-height: 1.45; }
.missing-block { display: inline-block; font-size: 10px; font-weight: 700; background: #FEE2E2; color: #B91C1C; padding: 2px 7px; border-radius: 4px; margin-top: 5px; text-transform: uppercase; letter-spacing: .05em; }

/* Pending questions block */
.pending-questions-block { margin-top: 20px; padding: 14px 16px; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: var(--radius-md); }
.pending-questions-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pending-questions-title { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #92400E; text-transform: uppercase; letter-spacing: .06em; }
.pending-q-empty { font-size: 13px; color: var(--text-muted); padding: 4px 0; }
.pending-q-item { padding: 8px 0; }
.pending-q-item + .pending-q-item { border-top: 1px solid #FDE68A; }
.pending-q-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pending-q-text { font-size: 13px; font-weight: 500; color: var(--text-primary); line-height: 1.5; flex: 1; }
.pending-q-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pending-q-tag-respondida { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; color: #065F46; background: #D1FAE5; border: 1px solid #86EFAC; border-radius: 20px; padding: 2px 8px; white-space: nowrap; cursor: pointer; transition: background .15s; }
.pending-q-tag-respondida:hover { background: #A7F3D0; }
.answer-modal-question { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.answer-modal-response { font-size: 14px; color: var(--text-primary); line-height: 1.6; font-weight: 500; }

/* Inline item edit button */
.item-row-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.solution-item-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.btn-item-edit {
  font-size: 11px; font-weight: 600; color: var(--text-muted); background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 2px 8px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: color .15s, border-color .15s, background .15s;
}
.btn-item-edit:hover { color: var(--navy); border-color: var(--blue); background: var(--blue-tint); }
.btn-delete-item {
  font-size: 11.5px; font-weight: 600; color: #b91c1c; background: none; border: 1px solid #fca5a5;
  border-radius: var(--radius-sm); padding: 4px 10px; cursor: pointer; transition: background .15s;
}
.btn-delete-item:hover { background: #fee2e2; }

/* Generating banner */
.diag-generating-banner { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--blue-tint); border: 1px solid var(--blue); border-radius: var(--radius-md); }

/* BPMN preview */
.bpmn-preview { background: var(--bg-primary); border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 32px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bpmn-icon { font-size: 30px; }
.bpmn-text { font-size: 13.5px; color: var(--text-muted); }

/* BPMN canvas (bpmn-js viewer) */
.bpmn-canvas { height: 420px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fafbfd; }
.bpmn-canvas .djs-container { border-radius: var(--radius-lg); }

/* BPMN — instrucciones para regeneración */
.bpmn-instrucciones-wrap { padding: 16px 20px 20px; border-top: 1px solid var(--border); }
.bpmn-instrucciones-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: .3px; text-transform: uppercase; margin-bottom: 8px; }
.bpmn-instrucciones { width: 100%; box-sizing: border-box; min-height: 72px; resize: vertical; font-size: 13px; font-family: inherit; color: var(--text-primary); background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; line-height: 1.6; transition: border-color .15s; }
.bpmn-instrucciones:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(83,74,183,.1); }
.bpmn-instrucciones::placeholder { color: var(--text-muted); opacity: .7; }

/* Resumen */
.resumen-text { font-size: 14.5px; color: var(--text-primary); line-height: 1.8; }

/* Levantamientos — grid de cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card-clickable:hover { border-color: var(--purple); box-shadow: 0 4px 12px rgba(83,74,183,.10); transform: translateY(-1px); transition: all .15s; }
.card-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.card-meta  { font-size: 12px; color: var(--text-muted); }

/* Levantamientos — épica row */
.epica-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--bg-primary); border: 1px solid var(--border); border-left: 3px solid var(--purple); border-radius: var(--radius-md); }
.epica-row-body { flex: 1; min-width: 0; }
.epica-row-nombre { font-size: 13.5px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.epica-row-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.6; }

/* Levantamientos — historia card */
.hu-card { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s; }
.hu-card:hover .btn-item-edit { opacity: 1; }
.hu-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hu-header-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.hu-id { font-size: 11px; font-weight: 800; color: var(--purple); letter-spacing: .4px; background: var(--purple-tint, #EEEDFE); padding: 2px 7px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }
.hu-titulo { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.hu-epica { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.hu-sentence { font-size: 13px; color: var(--text-secondary); line-height: 1.7; padding: 10px 12px; background: var(--bg-secondary); border-radius: var(--radius-md); border-left: 2.5px solid var(--border-dark); }
.hu-criterios-title { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.hu-criterios-list { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.75; }

/* Levantamientos — pantalla card */
.pantalla-card { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.pantalla-card:hover .btn-item-edit { opacity: 1; }
.pantalla-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pantalla-card-header-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; }
.pantalla-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--purple); color: #fff; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.pantalla-nombre { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.pantalla-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; padding: 10px 12px; background: var(--bg-secondary); border-radius: var(--radius-md); border-left: 2.5px solid var(--border-dark); }
.pantalla-meta-grid { display: flex; flex-direction: column; gap: 10px; }
.pantalla-meta-block { display: flex; flex-direction: column; gap: 6px; }
.pantalla-meta-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.pantalla-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pantalla-chip { font-size: 11.5px; padding: 3px 10px; border-radius: 12px; background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-secondary); }
.pantalla-chip-nav { background: #EAF3DE; border-color: #b8dfa0; color: #27500A; }
.pantalla-chip-role { background: var(--purple-tint, #EEEDFE); border-color: #c5c2f8; color: var(--purple); }
.pantalla-notas { font-size: 12px; color: var(--text-muted); font-style: italic; padding-top: 4px; border-top: 1px solid var(--border); }

/* Flujo toggle lista/diagrama */
.flujo-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.flujo-toggle-btn { font-size: 12px; font-weight: 500; padding: 4px 12px; background: none; border: none; cursor: pointer; color: var(--text-muted); transition: background .15s, color .15s; white-space: nowrap; }
.flujo-toggle-btn.active { background: var(--purple); color: #fff; }
.flujo-toggle-btn:not(.active):hover { background: var(--bg-secondary); color: var(--text-primary); }
.flujo-diagrama-wrap { display: flex; gap: 16px; align-items: flex-start; overflow-x: auto; padding: 8px 0; }
.flujo-diagrama-wrap .mermaid { flex: 1; min-width: 0; min-height: 180px; }

/* Leyenda del diagrama */
.flujo-leyenda { flex-shrink: 0; width: 140px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.flujo-leyenda-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 2px; }
.flujo-leyenda-item { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-secondary); }
.flujo-leyenda-shape { display: inline-block; width: 22px; height: 14px; flex-shrink: 0; background: #EEEDFE; border: 1.5px solid #534AB7; }
.shape-rect   { border-radius: 2px; }
.shape-stadium { border-radius: 10px; }
.shape-double { box-shadow: inset 0 0 0 2px #EEEDFE, inset 0 0 0 3.5px #534AB7; border-radius: 2px; }
.shape-para   { border-radius: 2px; transform: skewX(-12deg); }
.shape-circle { border-radius: 50%; width: 14px; height: 14px; }
.shape-asym   { border-radius: 2px 6px 6px 2px; clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%); }

/* Mini stats en cabecera de tabs */
.diag-stat { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 16px; text-align: center; min-width: 80px; }
.diag-stat-val   { font-size: 22px; font-weight: 800; color: var(--purple); }
.diag-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Version badge */
.version-tag { font-size: 11px; font-weight: 700; color: var(--text-muted); background: var(--bg-primary); border: 1px solid var(--border); padding: 2px 9px; border-radius: 10px; }

/* ─── DIAGNOSTIC TABS ─── */

.diag-tabs-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 28px;
  border-bottom: 1.5px solid var(--border);
  background: var(--bg-secondary);
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 18;
}

.diag-tab {
  position: relative;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.diag-tab:hover { color: var(--text-primary); }
.diag-tab.active { color: var(--navy); font-weight: 700; border-bottom-color: var(--blue); }

.tab-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tab-dot-ready   { background: #22c55e; }
.tab-dot-pending { background: var(--border-dark); }

.tab-pane { animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Resumen stats row */
.resumen-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.resumen-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.resumen-stat-num   { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.resumen-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ─── MODAL ─── */

.modal-overlay { position: fixed; inset: 0; background: rgba(10,20,35,.45); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }

.modal { background: var(--bg-secondary); border-radius: var(--radius-xl); width: 100%; max-width: 820px; box-shadow: var(--shadow-lg); overflow: hidden; }

.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.modal-close { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--bg-primary); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: background .15s; }
.modal-close:hover { background: var(--border); color: var(--text-primary); }

.modal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; max-height: 72vh; overflow-y: auto; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ─── FORM ─── */

.form-group { display: flex; flex-direction: column; gap: 5px; }
.req { color: #C0392B; font-weight: 700; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .05em; }

input[type="text"],
input[type="date"],
input[type="email"],
select,
textarea {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 14px; color: var(--text-primary); background: var(--bg-secondary);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,174,239,.10);
}

textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237a95aa'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.idioma-select {
  width: auto; min-width: 64px; padding: 6px 28px 6px 10px;
  font-size: 12px; font-weight: 700;
}

.paste-area { width: 100%; min-height: 100px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 13.5px; color: var(--text-primary); background: var(--bg-secondary); resize: vertical; font-family: inherit; line-height: 1.6; transition: border-color .15s; outline: none; }
.paste-area:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,174,239,.10); }

.upload-zone {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  border: 1.5px dashed var(--border-dark); border-radius: var(--radius-md);
  padding: 18px 20px; background: var(--bg-primary);
  cursor: default; transition: border-color .15s, background .15s;
  margin-bottom: 8px; color: var(--text-muted);
}
.upload-zone.drag-over { border-color: var(--blue); background: var(--blue-tint); }
.upload-zone-text { font-size: 13px; }
.upload-zone-sep  { font-size: 12px; color: var(--text-muted); }
.upload-btn-label { cursor: pointer; }

/* ─── MÓDULOS ─── */

.modulos-intro {
  display: flex; align-items: center; gap: 28px;
  margin-bottom: 28px; padding: 20px 24px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
}
.modulos-intro-left { flex-shrink: 0; text-align: center; min-width: 90px; }
.modulos-intro-tag { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1; }
.modulos-intro-sub { font-size: 11px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }
.modulos-intro-divider { width: 1px; height: 48px; background: var(--border); flex-shrink: 0; }
.modulos-intro-text { font-size: 13.5px; color: var(--text-secondary); line-height: 1.75; margin: 0; }

.modulos-grid { display: flex; flex-direction: column; gap: 16px; }

.modulo-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  opacity: .75;
}
.modulo-card.activo {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), var(--shadow-md);
  opacity: 1;
}
.modulo-card.finalizado {
  border-color: #6EE7B7;
  box-shadow: 0 0 0 1px #6EE7B7, var(--shadow-sm);
  opacity: 1;
}

.modulo-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.modulo-num-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

.modulo-status-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 8px; white-space: nowrap; text-align: center; }
.modulo-status-badge.finalizado { background: #D1FAE5; color: #065F46; }
.modulo-status-badge.activo { background: #dbeafe; color: #1d4ed8; }
.modulo-status-badge.proximo { background: var(--bg-primary); color: var(--text-muted); border: 1px solid var(--border); }

.modulo-card-right { flex: 1; min-width: 0; }
.modulo-nombre { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; letter-spacing: -.1px; }
.modulo-card.activo .modulo-nombre,
.modulo-card.finalizado .modulo-nombre { color: var(--navy); }

.modulo-entregable {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f0effe; border: 1px solid #c8c3f8;
  color: var(--purple); border-radius: 20px;
  padding: 4px 12px 4px 8px; margin-bottom: 14px;
}
.modulo-card:not(.activo):not(.finalizado) .modulo-entregable {
  background: var(--bg-primary); border-color: var(--border);
  color: var(--text-muted);
}
.modulo-entregable svg { flex-shrink: 0; }
.modulo-entregable-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; opacity: .7; }
.modulo-entregable-text { font-size: 12px; font-weight: 600; }

.modulo-sections { display: flex; flex-direction: column; gap: 8px; }
.modulo-section { padding: 12px 14px; background: var(--bg-primary); border-radius: var(--radius-md); }
.modulo-section.objetivo { background: #f6f5fe; border-left: 3px solid var(--purple); }
.modulo-card.proximo .modulo-section.objetivo { background: var(--bg-primary); border-left-color: var(--border-dark); }
.modulo-card.finalizado .modulo-section.objetivo { background: #f0fdf4; border-left-color: #6EE7B7; }

.modulo-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-muted); margin-bottom: 6px;
}
.modulo-card.activo .modulo-section.objetivo .modulo-section-label { color: var(--purple); }
.modulo-card.finalizado .modulo-section.objetivo .modulo-section-label { color: #065F46; }
.modulo-section-text { font-size: 12.5px; color: var(--text-secondary); line-height: 1.65; }

/* ─── EMPTY STATE ─── */

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; text-align: center; }
.empty-icon  { font-size: 34px; margin-bottom: 12px; opacity: .45; }
.empty-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.empty-sub   { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.55; }

/* ─── SPINNER ─── */

.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3); border-top-color: currentColor; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── TOAST ─── */

.toast-container { position: fixed; bottom: 22px; right: 22px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600; animation: slideIn .2s ease; max-width: 320px; }
.toast-success { background: var(--navy); color: #fff; }
.toast-error   { background: #B91C1C; color: #fff; }

/* ─── LOGIN SCREEN ─── */

.login-screen {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg-primary); z-index: 1000;
}
.login-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 48px 44px; width: 380px; text-align: center;
}
.login-logo { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: var(--radius-md); }
.login-title { font-size: 22px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.login-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.55; }

.btn-ms-login {
  display: inline-flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 20px; border-radius: var(--radius-md); border: 1px solid var(--border-dark);
  background: #fff; color: var(--text-primary); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s, box-shadow .15s; justify-content: center;
}
.btn-ms-login:hover { background: var(--bg-primary); box-shadow: var(--shadow-sm); }
.btn-ms-login:disabled { opacity: .6; cursor: not-allowed; }

.login-error {
  margin-top: 16px; font-size: 13px; color: #B91C1C; min-height: 18px;
}

/* ─── VISTA TOGGLE (Lista / Kanban) ─── */

.vista-toggle {
  display: flex; gap: 2px; background: var(--bg-primary);
  border: 1px solid var(--border-dark); border-radius: var(--radius-md); padding: 2px;
}
.vista-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 5px; font-size: 12.5px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer; transition: background .12s, color .12s;
  border: none; background: none;
}
.vista-btn:hover { color: var(--text-primary); background: var(--bg-secondary); }
.vista-btn.active { background: var(--bg-secondary); color: var(--purple); box-shadow: var(--shadow-sm); }

/* ─── BADGE ETAPA ─── */

.badge-etapa-primera_reunion  { background: #EFF6FF; color: #1D4ED8; }
.badge-etapa-creacion_casos   { background: #FFF7ED; color: #C2410C; }
.badge-etapa-revision_proceso { background: #F5F3FF; color: #6D28D9; }
.badge-etapa-propuesta        { background: #ECFDF5; color: #065F46; }
.badge-etapa-cierre           { background: #FEF9C3; color: #854D0E; }

/* ─── KANBAN BOARD ─── */

.kanban-board {
  display: flex; gap: 14px; overflow-x: auto; align-items: flex-start;
  padding-bottom: 12px; min-height: 200px;
}
.kanban-board::-webkit-scrollbar { height: 5px; }
.kanban-board::-webkit-scrollbar-track { background: transparent; }
.kanban-board::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }

.kanban-col {
  flex: 0 0 280px; background: var(--bg-primary);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; overflow: hidden;
}
.kanban-col-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.kanban-col-title  { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.kanban-col-count  {
  min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--border); color: var(--text-secondary); font-size: 11px; font-weight: 700;
  border-radius: 99px; padding: 0 6px;
}
.kanban-col-body   { display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 14px; overflow-y: auto; max-height: 65vh; transition: background-color .12s; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.kanban-col-body::-webkit-scrollbar { width: 4px; }
.kanban-col-body::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
.kanban-col-body.drag-over { background: rgba(0,174,239,.08); outline: 2px dashed var(--blue); outline-offset: -2px; }

.kanban-empty { font-size: 12px; color: var(--text-muted); text-align: center; padding: 16px 0; }

/* ─── KANBAN CARD ─── */

.kanban-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 11px 12px;
  cursor: pointer; transition: box-shadow .13s, border-color .13s;
  position: relative; overflow: hidden;
}
.kanban-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: transparent; border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.kanban-card.stale-amber::before { background: #F59E0B; }
.kanban-card.stale-red::before   { background: #EF4444; }
.kanban-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-dark); }
.kanban-card[draggable] { cursor: grab; }
.kanban-card[draggable]:active { cursor: grabbing; }
.kanban-card.dragging { opacity: .4; }

.kanban-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 6px; margin-bottom: 4px;
}
.kanban-card-name   { font-size: 12.5px; font-weight: 700; color: var(--text-primary); line-height: 1.35; }
.kanban-card-cliente { font-size: 11.5px; color: var(--text-secondary); margin-bottom: 3px; }
.kanban-card-responsable { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); margin-bottom: 5px; }
.kanban-card-closed  { opacity: .75; }

.kanban-proximo {
  display: flex; align-items: flex-start; gap: 5px; margin-top: 7px;
  font-size: 11px; color: var(--text-secondary); line-height: 1.4;
}
.kanban-proximo svg { flex-shrink: 0; margin-top: 1px; color: var(--text-muted); }
.kanban-proximo-vencido { color: #EF4444; }
.kanban-proximo-vencido svg { color: #EF4444; }

.kanban-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; gap: 6px;
}
.kanban-stale {
  font-size: 10.5px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
}
.kanban-stale.stale-amber { color: #D97706; font-weight: 600; }
.kanban-stale.stale-red   { color: #EF4444; font-weight: 600; }

/* ─── KANBAN CERRADAS ─── */

.kanban-closed {
  margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.kanban-closed-summary {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--text-secondary);
  cursor: pointer; user-select: none; background: var(--bg-secondary); list-style: none;
}
.kanban-closed-summary::-webkit-details-marker { display: none; }
.kanban-closed-summary svg { transition: transform .2s; }
details.kanban-closed[open] .kanban-closed-summary svg { transform: rotate(0deg); }
details.kanban-closed:not([open]) .kanban-closed-summary svg { transform: rotate(-90deg); }
.kanban-closed-body {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; background: var(--bg-primary);
}
.kanban-closed-body .kanban-card { flex: 0 0 260px; cursor: pointer; }
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ─── ROLE BADGES (sidebar + tabla usuarios) ─── */

.sidebar-role-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; overflow: hidden; }
.sidebar-user-email  { font-size: 11px; color: rgba(255,255,255,.32); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-badge {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
}
.role-badge-comercial  { background: #EEEDFE; color: #3C3489; }
.role-badge-procesos   { background: #E1F5EE; color: #085041; }
.role-badge-superadmin { background: #1A1A2E; color: #fff; }

/* ─── TIPO DE GESTIÓN BADGE ─── */

.badge-tipo-gestion-comercial { background: #EEEDFE; color: #3C3489; }
.badge-tipo-gestion-procesos  { background: #E1F5EE; color: #085041; }

/* ─── USUARIOS — tabla ─── */

.badge-usuario-activo   { background: #EAF3DE; color: #27500A; }
.badge-usuario-inactivo { background: #F5E0E0; color: #7A1C1C; }

/* ─── CHECKBOX ROL ─── */

.checkbox-rol {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-primary); cursor: pointer; user-select: none;
}
.checkbox-rol input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }

/* ─── USUARIOS CARDS ─── */

.usuarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.usuario-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow .15s, border-color .15s;
}
.usuario-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.usuario-card--inactivo { opacity: .55; }

.usuario-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.usuario-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #534AB7, #7B74D4);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.usuario-card-info { flex: 1; min-width: 0; }

.usuario-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.usuario-card-email {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usuario-card-roles { display: flex; gap: 4px; flex-wrap: wrap; }

.usuario-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.usuario-card-acceso {
  font-size: 11px;
  color: var(--text-muted);
}

.usuario-card-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ─── BIBLIOTECA ─── */

.biblioteca-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.biblioteca-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, box-shadow .15s;
}

.biblioteca-card:hover {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(83,74,183,.08);
}

.biblioteca-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.biblioteca-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.biblioteca-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.biblioteca-card-techs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tech-tag {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}

.tech-tag-purple {
  background: #EEEDFE;
  border-color: #C5C2F5;
  color: #3C3489;
}

.biblioteca-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
  font-size: 12px;
}

.biblioteca-comp {
  font-weight: 600;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
}

.biblioteca-comp.comp-alta   { background: #FEE2E2; color: #B91C1C; }
.biblioteca-comp.comp-media  { background: #FEF3C7; color: #92400E; }
.biblioteca-comp.comp-baja   { background: #D1FAE5; color: #065F46; }

.biblioteca-casos { color: var(--text-muted); }
.biblioteca-tiempo { color: var(--text-muted); margin-left: auto; }

/* Badge "Desde biblioteca" en diagnóstico */
.desde-biblioteca-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EEEDFE;
  color: #3C3489;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid rgba(83,74,183,.2);
  transition: background .15s;
}

.desde-biblioteca-badge:hover {
  background: #dddafc;
}

/* ─── TABS ─── */

.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 16px;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.tab-btn:hover  { color: var(--text-primary); }
.tab-btn.active { color: var(--purple); border-bottom-color: var(--purple); font-weight: 600; }

/* ─── CASO ROWS (detalle biblioteca) ─── */

.caso-row {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.caso-row:last-child { border-bottom: none; }

.caso-row-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.caso-row-titulo {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.caso-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.caso-row-field {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.caso-row-resultado {
  background: #EAF3DE;
  color: #27500A;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ─── TABLE ─── */

.table-container { overflow-x: auto; }

.table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table-container th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}

.table-container td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.table-container tr:last-child td { border-bottom: none; }
.table-container tr:hover td { background: var(--bg-primary); }

/* ── SCOPING (Módulo 5) ──────────────────────────────────────────────────── */

/* Métricas de éxito */
.metrica-grid { display:grid; grid-template-columns:1fr 20px 1fr; gap:8px; align-items:start; }
.metrica-col { display:flex; flex-direction:column; gap:3px; }
.metrica-label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); }
.metrica-hoy .metrica-val { font-size:13px; color:var(--text-muted); line-height:1.5; }
.metrica-objetivo .metrica-val { font-size:13px; color:var(--purple); font-weight:500; line-height:1.5; }
.metrica-arrow { font-size:14px; color:var(--text-muted); padding-top:14px; text-align:center; }

/* RACI tabla */
.raci-table { display:flex; flex-direction:column; border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.raci-header, .raci-row { display:grid; grid-template-columns:1fr 130px 130px 80px; align-items:center; gap:0; }
.raci-header { background:var(--bg-primary); border-bottom:1px solid var(--border); padding:6px 12px; }
.raci-header span { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); }
.raci-row { padding:10px 12px; border-bottom:1px solid var(--border); }
.raci-row:last-child { border-bottom:none; }
.raci-row:hover { background:var(--bg-primary); }
.raci-col-act { font-size:13.5px; color:var(--text-primary); padding-right:12px; }
.raci-col-role { display:flex; align-items:center; }
.raci-col-actions { display:flex; align-items:center; justify-content:flex-end; gap:4px; }
.raci-pill { font-size:12px; font-weight:500; padding:3px 10px; border-radius:20px; border:1px solid; white-space:nowrap; }
.raci-cliente { background:#EFF6FF; border-color:#BFDBFE; color:#1D4ED8; }
.raci-bm      { background:#EEEDFE; border-color:#C5C2F5; color:#3C3489; }

.diag-subsection { padding: 16px 20px; }
.diag-subsection + .diag-subsection { border-top: 1px solid var(--border); }
.diag-subsection-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.diag-subsection-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.diag-text { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin: 0; white-space: pre-wrap; }

.btn-section-edit {
  font-size: 11px; background: none; border: 1px solid var(--border); cursor: pointer;
  color: var(--text-muted); padding: 2px 6px; border-radius: 4px;
  transition: background .15s, border-color .15s;
}
.btn-section-edit:hover { background: var(--bg-primary); border-color: var(--purple); color: var(--purple); }

.btn-item-del {
  font-size: 13px; font-weight: 700; color: var(--text-muted); background: none;
  border: 1px solid transparent; border-radius: 4px; padding: 1px 5px; cursor: pointer;
  line-height: 1; transition: all .15s;
}
.btn-item-del:hover { color: #991B1B; border-color: #FECACA; background: #FEF2F2; }

.item-actions { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }

/* Dolores / lista con cita */
.dolor-list { display: flex; flex-direction: column; gap: 8px; }
.dolor-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md); }
.dolor-desc { font-size: 13.5px; font-weight: 500; color: var(--text-primary); line-height: 1.5; }
.dolor-cite { font-size: 12px; color: var(--text-muted); margin-top: 3px; font-style: italic; }

/* Scope — fases */
.scope-fases { display: flex; flex-direction: column; gap: 8px; }
.scope-fase-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; background: var(--bg-primary);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.scope-fase-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--purple); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.scope-fase-body { flex: 1; }
.scope-fase-nombre { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.scope-fase-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-top: 3px; }
.scope-fase-dur { font-size: 11.5px; color: var(--purple); font-weight: 600; margin-top: 4px; }

/* Scope — listas generales */
.scope-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.scope-list-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 8px 10px; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 13.5px; color: var(--text-secondary); line-height: 1.5;
}
.dep-list .scope-list-item { border-left: 3px solid var(--purple); }

/* Scope — alcance 2 columnas independientes */
.alcance-grid { display:grid; grid-template-columns:1fr 1fr; gap:0; border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.alcance-col { display:flex; flex-direction:column; }
.alcance-col:first-child { border-right:1px solid var(--border); }
.alcance-col-header { padding:8px 12px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; border-bottom:1px solid var(--border); background:var(--bg-primary); }
.alcance-incluye-header { color:#27500A; }
.alcance-noincluye-header { color:#991B1B; }
.alcance-items { display:flex; flex-direction:column; flex:1; }
.alcance-item { display:flex; align-items:flex-start; gap:8px; padding:10px 12px; border-bottom:1px solid var(--border); font-size:13.5px; line-height:1.5; }
.alcance-item:last-child { border-bottom:none; }
.alcance-check { flex-shrink:0; font-size:13px; margin-top:1px; }
.alcance-item-si .alcance-check { color:#27500A; }
.alcance-item-no .alcance-check { color:#991B1B; }
.alcance-text { flex:1; color:var(--text-secondary); }
.alcance-col .btn { margin:10px 12px; width:fit-content; }

