/* =========================================================
   DENUNCIA / CONSOLIDADO OS
   Recursos exclusivos de la sección, centralizados en /assets
   ========================================================= */
.denuncia-hero{
  background:
    radial-gradient(circle at 88% 18%,rgba(255,175,0,.18),transparent 26%),
    radial-gradient(circle at 78% 84%,rgba(0,165,165,.24),transparent 28%),
    linear-gradient(135deg,#2d3d3a 0%,#3D4B49 58%,#283c39 100%);
}
.denuncia-hero .accent{color:#FFCA46}
.denuncia-hero .hero-actions{align-items:center}

.matrix-section{margin-top:26px}
.matrix-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 10px 28px rgba(28,47,43,.055);
  overflow:hidden;
}
.matrix-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px 16px;
  border-bottom:1px solid var(--line);
}
.matrix-card-head h2{margin:3px 0 5px;font-size:clamp(22px,1.45vw,31px)}
.matrix-card-head p{margin:0;color:var(--muted);font-size:13px;line-height:1.55;max-width:1200px}
.matrix-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.matrix-actions .btn{white-space:nowrap}
.btn-sheet{background:#107C41;color:#fff}
.btn-sheet:hover{background:#0b6736}
.btn-outline-sheet{background:#fff;color:#107C41;border:1px solid #107C41}
.btn-outline-sheet:hover{background:#eef8f2}

.matrix-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  padding:16px 22px 0;
}
.matrix-kpi{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fbfdfd;
}
.matrix-kpi .ico{
  width:42px;height:42px;flex:0 0 42px;border-radius:11px;
  display:grid;place-items:center;font-size:17px;
  color:#fff;background:var(--sunarp-teal);
}
.matrix-kpi.red .ico{background:var(--sunarp-red)}
.matrix-kpi.yellow .ico{background:var(--sunarp-yellow);color:#594000}
.matrix-kpi.lime .ico{background:var(--sunarp-lime);color:#315300}
.matrix-kpi strong{display:block;font-size:22px;line-height:1.05;color:var(--sunarp-charcoal)}
.matrix-kpi span{display:block;margin-top:4px;color:var(--muted);font-size:11px;font-weight:760;text-transform:uppercase;letter-spacing:.04em}

.matrix-tools{padding:16px 22px 18px}
.filter-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(170px,1fr));
  gap:10px;
  margin-bottom:10px;
}
.search-grid{
  display:grid;
  grid-template-columns:220px minmax(260px,1fr) 140px 150px;
  gap:10px;
  align-items:center;
}
.matrix-control{
  width:100%;height:42px;
  border:1px solid #cfdad8;
  border-radius:9px;
  padding:0 11px;
  background:#fff;
  color:#273432;
  font-size:12px;
  font-weight:680;
  outline:none;
}
.matrix-control:focus{border-color:var(--sunarp-teal);box-shadow:0 0 0 3px rgba(0,165,165,.10)}
.search-box{position:relative}
.search-box i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#82908e;font-size:12px}
.search-box .matrix-control{padding-left:35px}
.matrix-clear{
  height:42px;border:0;border-radius:9px;background:var(--sunarp-charcoal);color:#fff;
  font-size:12px;font-weight:850;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;
}
.matrix-clear:hover{filter:brightness(.94)}
.page-size-wrap{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;font-weight:750}
.page-size-wrap .matrix-control{width:78px;padding:0 8px}

.matrix-meta{
  display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;
  padding:0 22px 12px;color:var(--muted);font-size:11.5px;
}
.matrix-status{font-weight:780;color:#41504e}
.source-status{display:flex;align-items:center;gap:7px}
.source-status i{color:var(--sunarp-teal)}
.source-status.fallback i{color:var(--sunarp-yellow)}
.source-status.error i{color:var(--sunarp-red)}

.os-table-scroll{
  width:100%;overflow:auto;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  max-height:68vh;
  scrollbar-color:#9ca9a7 #edf2f1;
  scrollbar-width:thin;
}
.os-table{
  border-collapse:separate;
  border-spacing:0;
  width:max-content;
  min-width:100%;
  background:#fff;
  font-size:12px;
}
.os-table th{
  position:sticky;top:0;z-index:4;
  background:#edf3f2;
  color:#263431;
  border-right:1px solid #d9e3e1;
  border-bottom:1px solid #cfdad8;
  padding:10px 9px;
  text-align:left;
  vertical-align:bottom;
  font-size:11px;
  line-height:1.35;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.018em;
  cursor:pointer;
}
.os-table th:hover{background:#e5eeec}
.os-table th .sort-mark{margin-left:5px;color:#9ba8a6;font-size:9px}
.os-table th.sorted .sort-mark{color:var(--sunarp-teal)}
.os-table td{
  border-right:1px solid #edf1f0;
  border-bottom:1px solid #edf1f0;
  padding:10px 9px;
  vertical-align:top;
  color:#2d3937;
  line-height:1.48;
  white-space:normal;
  overflow-wrap:anywhere;
}
.os-table tbody tr:nth-child(even) td{background:#fbfcfc}
.os-table tbody tr:hover td{background:#fffbea}
.os-table th:last-child,.os-table td:last-child{border-right:0}
.os-table .cell-code{font-family:Consolas,"Courier New",monospace;font-weight:700;color:#233d3a}
.os-table .cell-money{font-weight:850;white-space:nowrap;color:#2b4a45}
.os-table .cell-date{white-space:nowrap}
.os-table .cell-center{text-align:center}
.os-table .cell-badge{text-align:center;vertical-align:middle;white-space:nowrap}
.os-table .cell-provider{font-weight:720}
.os-table .cell-long{min-width:300px;max-width:440px}
.os-table .cell-xlong{min-width:390px;max-width:520px}
.os-table .cell-medium{min-width:220px;max-width:310px}

/* Anchuras por columna: las tres columnas de clasificación se mantienen compactas
   y el texto de sustento queda en la columna inmediatamente contigua. */
.os-table th:nth-child(1),.os-table td:nth-child(1){min-width:108px}
.os-table th:nth-child(2),.os-table td:nth-child(2){min-width:360px;max-width:430px}
.os-table th:nth-child(3),.os-table td:nth-child(3){min-width:135px}
.os-table th:nth-child(4),.os-table td:nth-child(4){min-width:155px}
.os-table th:nth-child(5),.os-table td:nth-child(5){min-width:360px;max-width:430px}
.os-table th:nth-child(6),.os-table td:nth-child(6){min-width:105px;max-width:120px;text-align:center}
.os-table th:nth-child(7),.os-table td:nth-child(7){min-width:300px;max-width:380px}
.os-table th:nth-child(8),.os-table td:nth-child(8),
.os-table th:nth-child(9),.os-table td:nth-child(9){min-width:125px}
.os-table th:nth-child(10),.os-table td:nth-child(10){min-width:130px}
.os-table th:nth-child(11),.os-table td:nth-child(11){min-width:230px;max-width:270px}
.os-table th:nth-child(12),.os-table td:nth-child(12){min-width:430px;max-width:520px}
.os-table th:nth-child(13),.os-table td:nth-child(13){min-width:350px;max-width:430px}
.os-table th:nth-child(14),.os-table td:nth-child(14){min-width:360px;max-width:450px}
.os-table th:nth-child(15),.os-table td:nth-child(15){min-width:390px;max-width:470px}
.os-table th:nth-child(16),.os-table td:nth-child(16){min-width:115px;max-width:135px;text-align:center}
.os-table th:nth-child(17),.os-table td:nth-child(17){min-width:370px;max-width:450px}
.os-table th:nth-child(18),.os-table td:nth-child(18){min-width:145px;max-width:165px;text-align:center}
.os-table th:nth-child(19),.os-table td:nth-child(19){min-width:430px;max-width:520px}
.os-table th:nth-child(20),.os-table td:nth-child(20){min-width:460px;max-width:560px}
.os-table th:nth-child(21),.os-table td:nth-child(21){min-width:270px;max-width:340px}
.os-table th:nth-child(22),.os-table td:nth-child(22){min-width:390px;max-width:470px}
.os-table th:nth-child(23),.os-table td:nth-child(23){min-width:440px;max-width:540px}
.os-table th:nth-child(24),.os-table td:nth-child(24){min-width:440px;max-width:540px}
.os-table th:nth-child(25),.os-table td:nth-child(25){min-width:500px;max-width:620px}
.os-table th:nth-child(26),.os-table td:nth-child(26){min-width:390px;max-width:500px}
.os-table th:nth-child(27),.os-table td:nth-child(27){min-width:120px;text-align:center}

.os-badge{
  display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;
  font-size:10px;font-weight:850;line-height:1.25;border:1px solid transparent;white-space:nowrap;
}
.os-badge.teal{background:#e4f7f6;border-color:#a7dcda;color:#006f6f}
.os-badge.red{background:#fde9e5;border-color:#f2b4aa;color:#a92a18}
.os-badge.yellow{background:#fff3d7;border-color:#f0d58b;color:#7c5908}
.os-badge.lime{background:#eff8dd;border-color:#cfe79b;color:#52750c}
.os-badge.gray{background:#eef2f1;border-color:#d8e0de;color:#4f5d5a}
.folder-link{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  text-decoration:none;color:#fff;background:var(--sunarp-teal);border-radius:8px;
  padding:8px 10px;font-weight:850;font-size:11px;white-space:nowrap;
}
.folder-link:hover{background:#008d8d}
.folder-empty{color:#a5b0ae;font-size:18px}

.pagination-bar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:13px 22px 17px;
}
.pagination-buttons{display:flex;align-items:center;gap:6px}
.page-btn{
  min-width:34px;height:34px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#34423f;
  cursor:pointer;font-weight:800;font-size:11px;
}
.page-btn:hover:not(:disabled){background:#eef5f3;border-color:#b8cbc7}
.page-btn.active{background:var(--sunarp-teal);border-color:var(--sunarp-teal);color:#fff}
.page-btn:disabled{opacity:.45;cursor:not-allowed}

.matrix-note{
  margin:14px 22px 20px;
  border-left:4px solid var(--sunarp-yellow);
  padding:11px 13px;
  background:#fff9e9;
  color:#6e5a24;
  border-radius:0 10px 10px 0;
  font-size:11.5px;
  line-height:1.55;
}

@media (min-width:2200px){
  .matrix-tools,.matrix-card-head,.matrix-meta,.matrix-kpis,.pagination-bar{padding-left:26px;padding-right:26px}
  .os-table{font-size:12px}
  .os-table th{font-size:11px}
  .os-table-scroll{max-height:72vh}
}
@media (max-width:1450px){
  .filter-grid{grid-template-columns:repeat(3,minmax(170px,1fr))}
  .search-grid{grid-template-columns:200px minmax(240px,1fr) 120px 145px}
  .matrix-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .matrix-card-head{flex-direction:column}
  .matrix-actions{justify-content:flex-start}
  .filter-grid{grid-template-columns:1fr 1fr}
  .search-grid{grid-template-columns:1fr 1fr}
  .search-box{grid-column:1/-1;grid-row:1}
  .matrix-kpis{grid-template-columns:1fr 1fr}
  .os-table-scroll{max-height:62vh}
}
@media (max-width:620px){
  .filter-grid,.search-grid,.matrix-kpis{grid-template-columns:1fr}
  .search-box{grid-column:auto;grid-row:auto}
  .matrix-tools,.matrix-card-head,.matrix-meta,.matrix-kpis,.pagination-bar{padding-left:14px;padding-right:14px}
  .matrix-actions{width:100%}
  .matrix-actions .btn{flex:1 1 100%}
  .matrix-note{margin-left:14px;margin-right:14px}
}
.filter-label{display:block;margin:0 0 5px;color:#52615e;font-size:10px;font-weight:880;text-transform:uppercase;letter-spacing:.055em}

/* =========================================================
   02. GUÍA DE LECTURA / DICCIONARIO DE CAMPOS
   ========================================================= */
.dictionary-section{margin-top:26px}
.dictionary-card{overflow:hidden}
.dictionary-meta{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding:13px 22px;border-bottom:1px solid var(--line);background:#fbfdfd;
  color:var(--muted);font-size:11.5px;
}
.dictionary-count{
  display:flex;align-items:baseline;gap:6px;color:#52615e;font-size:11px;font-weight:800;
  text-transform:uppercase;letter-spacing:.04em;
}
.dictionary-count strong{font-size:18px;color:var(--sunarp-charcoal);letter-spacing:0}
.field-guide-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  padding:0;
  background:#fff;
}
.field-guide-column{
  min-width:0;
  border-right:1px solid var(--line);
}
.field-guide-column:last-child{border-right:0}
.field-guide-item{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:11px;
  min-height:103px;
  padding:15px 17px;
  border-bottom:1px solid #edf1f0;
  background:#fff;
}
.field-guide-item:last-child{border-bottom:0}
.field-guide-item:hover{background:#fbfdfd}
.field-guide-number{
  width:38px;height:38px;border-radius:10px;
  display:grid;place-items:center;
  background:#e5f6f5;color:#007f7f;
  border:1px solid #b8dfdc;
  font-size:12px;font-weight:900;letter-spacing:.04em;
}
.field-guide-copy{min-width:0}
.field-guide-copy h3{
  margin:1px 0 6px;color:var(--sunarp-charcoal);
  font-size:12px;line-height:1.3;font-weight:900;text-transform:uppercase;letter-spacing:.015em;
}
.field-guide-copy p{
  margin:0;color:#5a6865;font-size:11.5px;line-height:1.52;
}
.field-guide-empty{
  grid-column:1/-1;padding:30px;text-align:center;color:var(--muted);font-size:12px;
}

/* =========================================================
   03. VISTA PREVIA DEL INFORME OCI
   ========================================================= */
.report-preview-section{margin-top:26px}
.report-preview-card{
  display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr);
  gap:0;background:#fff;border:1px solid var(--line);border-radius:18px;
  box-shadow:0 10px 28px rgba(28,47,43,.055);overflow:hidden;
}
.report-preview-main{padding:24px 26px}
.report-preview-meta{
  margin:9px 0 8px;color:#52615e;font-size:11px;font-weight:850;
  text-transform:uppercase;letter-spacing:.045em;
}
.report-preview-main h2{
  margin:0 0 10px;max-width:1120px;color:var(--sunarp-charcoal);
  font-size:clamp(23px,1.55vw,32px);line-height:1.18;
}
.report-date{
  display:flex;align-items:center;gap:7px;margin:0 0 14px;
  color:#3f5b57;font-size:12px;font-weight:800;
}
.report-date i{color:var(--sunarp-teal)}
.report-preview-main p{
  margin:0;max-width:1080px;color:var(--muted);font-size:13px;line-height:1.62;
}
.report-preview-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.report-preview-index{
  display:grid;align-content:center;gap:8px;padding:22px;
  border-left:1px solid var(--line);
  background:linear-gradient(145deg,#f5f9f8,#edf4f2);
}
.report-preview-index span{
  display:flex;align-items:center;gap:10px;padding:10px 11px;
  border:1px solid #dce6e3;border-radius:10px;background:#fff;
  color:#455451;font-size:11.5px;font-weight:760;
}
.report-preview-index b{
  width:27px;height:27px;flex:0 0 27px;border-radius:8px;display:grid;place-items:center;
  background:var(--sunarp-charcoal);color:#fff;font-size:10px;
}

/* =========================================================
   INFORME OCI /denuncia/informe.html
   ========================================================= */
.report-page-hero{
  background:
    radial-gradient(circle at 88% 16%,rgba(255,175,0,.16),transparent 25%),
    radial-gradient(circle at 76% 85%,rgba(0,165,165,.22),transparent 30%),
    linear-gradient(135deg,#2d3d3a 0%,#3D4B49 58%,#283c39 100%);
}
.report-page-hero .accent{color:#FFCA46}
.report-hero-number{
  margin-top:12px;color:#dce9e6;font-size:12px;font-weight:800;letter-spacing:.045em;text-transform:uppercase;
}
.report-hero-date{
  display:flex;align-items:center;gap:8px;margin-top:12px;color:#fff;font-size:13px;font-weight:760;
}
.report-shell{
  display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px;margin-top:26px;align-items:start;
}
.report-document{
  min-width:0;background:#fff;border:1px solid var(--line);border-radius:18px;
  box-shadow:0 10px 28px rgba(28,47,43,.055);overflow:hidden;
}
.report-document-head{
  padding:22px 25px 18px;border-bottom:1px solid var(--line);background:#fbfdfd;
}
.report-document-head h2{margin:3px 0 6px;font-size:clamp(21px,1.4vw,29px)}
.report-document-head p{margin:0;color:var(--muted);font-size:12.5px;line-height:1.58}
.report-integrity-note{
  margin-top:13px;padding:11px 13px;border-left:4px solid var(--sunarp-teal);
  background:#edf8f7;border-radius:0 9px 9px 0;color:#49615d;font-size:11.5px;line-height:1.5;
}
.report-section{padding:25px;border-bottom:1px solid var(--line);scroll-margin-top:84px}
.report-section:last-child{border-bottom:0}
.report-section-title{
  display:flex;align-items:flex-start;gap:13px;margin-bottom:14px;
}
.report-roman{
  min-width:42px;height:42px;padding:0 9px;border-radius:10px;display:grid;place-items:center;
  background:var(--sunarp-charcoal);color:#fff;font-size:12px;font-weight:900;
}
.report-section-title h2{margin:0;color:var(--sunarp-charcoal);font-size:clamp(20px,1.25vw,27px);line-height:1.2}
.report-section p,.report-section li{
  color:#384642;font-size:13px;line-height:1.68;
}
.report-section p{margin:0 0 12px}
.report-section ol,.report-section ul{margin:10px 0 0;padding-left:22px}
.report-section li{margin-bottom:10px}
.report-section strong{color:#273532}
.report-source-grid{
  display:grid;grid-template-columns:minmax(210px,.42fr) minmax(0,1fr);border:1px solid var(--line);border-radius:12px;overflow:hidden;
}
.report-source-label,.report-source-value{padding:12px 13px;border-bottom:1px solid var(--line)}
.report-source-label{background:#f2f6f5;font-size:11.5px;font-weight:850;color:#34423f}
.report-source-value{font-size:11.5px;overflow-wrap:anywhere}
.report-source-label:nth-last-child(-n+2),.report-source-value:last-child{border-bottom:0}
.report-source-value a{color:#007d7d;font-weight:750;text-decoration:none}
.report-source-value a:hover{text-decoration:underline}
.report-footnote{
  margin-top:15px;padding:11px 13px;background:#f7f9f8;border:1px solid var(--line);border-radius:10px;
  color:#5e6b68;font-size:11px;line-height:1.55;
}
.report-toc{
  position:sticky;top:88px;background:#fff;border:1px solid var(--line);border-radius:16px;
  box-shadow:0 8px 24px rgba(28,47,43,.045);overflow:hidden;
}
.report-toc-head{padding:15px 16px 11px;border-bottom:1px solid var(--line);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#53625f}
.report-toc a{
  display:flex;align-items:center;gap:9px;padding:10px 14px;border-bottom:1px solid #edf1f0;
  color:#40504c;text-decoration:none;font-size:11.5px;font-weight:720;
}
.report-toc a:last-child{border-bottom:0}
.report-toc a:hover{background:#f1f7f5;color:#006f6f}
.report-toc b{
  width:25px;height:25px;flex:0 0 25px;display:grid;place-items:center;border-radius:7px;
  background:#edf3f2;color:#3d4b49;font-size:9px;
}
.report-related-note{
  margin:20px 0 0;padding:14px 16px;border:1px dashed #bdcbc8;border-radius:12px;
  color:#5f6d6a;background:#fbfdfd;font-size:11.5px;line-height:1.55;
}

@media (max-width:1200px){
  .field-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .field-guide-column:nth-child(2){border-right:0}
  .field-guide-column:nth-child(3){border-top:1px solid var(--line)}
  .report-shell{grid-template-columns:1fr}
  .report-toc{position:static;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
  .report-toc-head{grid-column:1/-1}
  .report-toc a{border-right:1px solid #edf1f0}
}
@media (max-width:900px){
  .report-preview-card{grid-template-columns:1fr}
  .report-preview-index{grid-template-columns:repeat(2,minmax(0,1fr));border-left:0;border-top:1px solid var(--line)}
  .report-source-grid{grid-template-columns:1fr}
  .report-source-label{border-bottom:0;padding-bottom:5px}
  .report-source-value{padding-top:5px}
  .report-toc{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:680px){
  .field-guide-grid{grid-template-columns:1fr}
  .field-guide-column{border-right:0;border-top:1px solid var(--line)}
  .field-guide-column:first-child{border-top:0}
  .field-guide-item{grid-template-columns:42px minmax(0,1fr);padding:13px 14px;min-height:auto}
  .dictionary-meta{padding-left:14px;padding-right:14px}
  .report-preview-main{padding:20px 18px}
  .report-preview-index{grid-template-columns:1fr;padding:16px}
  .report-section,.report-document-head{padding:20px 17px}
  .report-section-title{gap:10px}
  .report-toc{grid-template-columns:1fr}
}
.report-reference-list{
  margin-top:14px;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden;
}
.report-reference-list summary{
  cursor:pointer;padding:11px 13px;background:#f4f8f7;color:#40504c;font-size:11.5px;font-weight:850;
}
.report-reference-list ol{margin:0;padding:12px 18px 12px 34px}
.report-reference-list li{margin:0 0 6px;color:#566461;font-size:11.5px;line-height:1.5}
.report-reference-list li:last-child{margin-bottom:0}
