
  :root {
    --orange:   #5e982b;
    --orange-d: #477620;
    --orange-l: #74b636;
    --celeste:  #007430;
    --celeste-l:#00963e;
    --ink:      #2b2b2b;
    --bg-dark:  #141820;
    --bg-mid:   #1e2535;
    --bg-card:  #ffffff;
    --bg-alt:   #f4f6f8;
    --gold:     #C9A84C;
    --green-pos:#1a7a4e;
    --red-neg:  #c0392b;
    --sidebar-w:200px;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; overflow: hidden; background: var(--bg-dark); font-family: 'Roboto', sans-serif; color: var(--ink); }
  #app { display: flex; height: 100vh; width: 100vw; overflow: hidden; }
  #sidebar {
    width: var(--sidebar-w); min-width: var(--sidebar-w);
    background: var(--bg-mid); display: flex; flex-direction: column;
    padding: 0; border-right: 1px solid rgba(255,255,255,0.07);
    overflow-y: auto; overflow-x: hidden;
  }
  #sidebar .brand {
    padding: 18px 14px 12px; border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
  }
  #sidebar .brand img { width: 120px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
  #sidebar .brand .period {
    font-size: 10px; color: rgba(255,255,255,0.45);
    letter-spacing: 0.05em; text-align: center; font-weight: 500;
  }
  #sidebar nav { flex: 1; padding: 10px 0; }
  #sidebar nav button {
    display: block; width: 100%; background: none; border: none; cursor: pointer;
    text-align: left; padding: 9px 14px 9px 16px;
    font-size: 11px; font-family: 'Roboto', sans-serif;
    color: rgba(255,255,255,0.55); line-height: 1.35;
    transition: all .18s; border-left: 3px solid transparent;
  }
  #sidebar nav button:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
  #sidebar nav button.active {
    background: rgba(94,152,43,0.14); border-left-color: var(--orange);
    color: #fff; font-weight: 700;
  }
  #sidebar nav button .num {
    display: inline-block; width: 18px; font-size: 9px;
    font-weight: 900; opacity: 0.5; margin-right: 4px;
  }
  #sidebar .footer {
    padding: 10px 14px; font-size: 9px;
    color: rgba(255,255,255,0.25); text-align: center;
    border-top: 1px solid rgba(255,255,255,0.07);
  }
  #stage {
    flex: 1; display: flex; flex-direction: column;
    align-items: stretch; justify-content: center;
    overflow: hidden; background: var(--bg-dark); padding: 5vh 12px; position: relative;
  }
  .slide {
    display: none; width: 100%; height: 100%;
    background: var(--bg-card);
    border-radius: 10px; box-shadow: 0 20px 60px -15px rgba(0,0,0,0.7);
    overflow: hidden; position: relative; flex-direction: column;
  }
  .slide.active { display: flex; }
  .slide-title-bar {
    flex-shrink: 0; padding: 5px 12px 3px;
    border-bottom: 2px solid var(--celeste);
    display: flex; align-items: center;
  }
  .slide-title-bar span {
    font-family: 'Roboto Slab', serif;
    font-size: clamp(10px, 1.1vw, 14px);
    font-weight: 700; color: var(--celeste); letter-spacing: 0.02em;
  }
  .slide-body {
    flex: 1; overflow: hidden; display: flex;
    flex-direction: column; padding: 8px 12px; gap: 6px;
  }
  .kpis { display: flex; gap: 6px; flex-shrink: 0; }
  .kpi {
    flex: 1; background: var(--celeste); border-radius: 6px;
    padding: 6px 10px; color: #fff; display: flex; flex-direction: column; gap: 2px;
  }
  .kpi .kpi-label {
    font-size: clamp(8px, 0.7vw, 10px); font-weight: 500; opacity: 0.8;
    line-height: 1.2; text-transform: uppercase; letter-spacing: 0.03em;
  }
  .kpi .kpi-val {
    font-family: 'Roboto Slab', serif;
    font-size: clamp(11px, 1.1vw, 15px); font-weight: 700;
    font-variant-numeric: tabular-nums; line-height: 1.1;
  }
  .kpi .kpi-sub { font-size: clamp(7px, 0.6vw, 9px); opacity: 0.65; }
  .kpi.orange { background: linear-gradient(135deg, var(--orange-l), var(--orange) 60%, var(--orange-d)); }
  .kpi.dark   { background: linear-gradient(135deg, #2d3748, #1a202c); }
  .kpi.gold   { background: linear-gradient(135deg, #d4a017, var(--gold) 60%, #9a7b1c); }
  .kpi.green  { background: linear-gradient(135deg, #1d6b46, var(--green-pos)); }
  .tbl-wrap {
    flex: 1; overflow: auto; border-radius: 5px; border: 1px solid #e0e4ea;
  }
  .tbl {
    width: 100%; border-collapse: collapse;
    font-size: clamp(8px, 0.75vw, 11px); font-variant-numeric: tabular-nums;
  }
  .tbl thead th {
    background: linear-gradient(135deg, var(--bg-mid), var(--celeste));
    color: #fff; font-weight: 700; padding: 5px 7px; text-align: left;
    position: sticky; top: 0; z-index: 2;
    font-size: clamp(7px, 0.7vw, 10px); white-space: nowrap;
  }
  .tbl thead th.num { text-align: right; }
  .tbl tbody tr.z0 { background: #fff; }
  .tbl tbody tr.z1 { background: var(--bg-alt); }
  .tbl tbody td {
    padding: 4px 7px; color: var(--ink);
    vertical-align: middle; white-space: nowrap; border-bottom: 1px solid #eaedf0;
  }
  .tbl tbody td.num { text-align: right; }
  .tbl tbody tr.r-celeste td {
    background: var(--celeste) !important; color: #fff; font-weight: 700;
  }
  .tbl tbody tr.r-orange td {
    background: linear-gradient(135deg, var(--orange-l), var(--orange) 55%, var(--orange-d)) !important;
    color: #fff; font-weight: 700;
  }
  .tbl tbody tr.r-dark td {
    background: var(--bg-mid) !important; color: rgba(255,255,255,0.9); font-weight: 600;
  }
  .tbl tbody td.indented { padding-left: 16px; }
  #nav-bar {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 8px;
    background: rgba(0,0,0,0.5); padding: 5px 12px; border-radius: 20px;
    backdrop-filter: blur(6px);
  }
  #nav-bar button {
    background: none; border: 1px solid rgba(255,255,255,0.3); color: #fff;
    font-size: 13px; width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
    transition: all .15s; display: flex; align-items: center; justify-content: center; line-height: 1;
  }
  #nav-bar button:hover { background: var(--orange); border-color: var(--orange); }
  #slide-counter { color: rgba(255,255,255,0.7); font-size: 11px; min-width: 50px; text-align: center; }
  .cover {
    background: linear-gradient(135deg, #0d1520 0%, #1a2a40 40%, #0d1520 100%);
    flex-direction: column; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
  }
  .cover::before {
    content: ''; position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(94,152,43,0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(94,152,43,0.08) 1px, transparent 1px);
    background-size: 36px 36px;
  }
  .cover::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(0,116,48,0.25) 0%, transparent 65%);
  }
  .cover .inner {
    position: relative; z-index: 2; display: flex; flex-direction: column;
    align-items: center; gap: 12px; text-align: center;
  }
  .cover img { width: clamp(160px, 18vw, 220px); filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6)); }
  .cover h1 {
    font-family: 'Roboto Slab', serif; font-size: clamp(16px, 2vw, 28px);
    font-weight: 700; color: #fff; letter-spacing: 0.04em;
  }
  .cover .subtitle {
    font-size: clamp(10px, 1.1vw, 15px); color: rgba(255,255,255,0.65);
    font-weight: 300; letter-spacing: 0.15em; text-transform: uppercase;
  }
  .cover .period-badge {
    background: linear-gradient(135deg, var(--orange-l), var(--orange) 60%, var(--orange-d));
    color: #fff; font-weight: 700; font-size: clamp(11px, 1.1vw, 14px);
    padding: 6px 22px; border-radius: 20px; letter-spacing: 0.08em;
    box-shadow: 0 4px 16px rgba(94,152,43,0.45);
  }
  .cover .tagline {
    font-size: clamp(8px, 0.8vw, 11px); color: rgba(255,255,255,0.35);
    letter-spacing: 0.06em; margin-top: 4px;
  }
  .two-col { display: flex; gap: 8px; flex: 1; overflow: hidden; }
  .col { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
  .col-title {
    font-size: clamp(8px, 0.75vw, 11px); font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--celeste);
    border-bottom: 2px solid var(--celeste); padding-bottom: 3px; flex-shrink: 0;
  }
  .ct-grid { display: flex; gap: 8px; flex: 1; overflow: hidden; }
  .ct-col { flex: 1; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
  .ct-col h3 { font-size: clamp(9px, 0.85vw, 12px); font-weight: 700; color: #fff; padding: 5px 10px; border-radius: 5px 5px 0 0; }
  .ct-col.activo h3 { background: var(--celeste); }
  .ct-col.pasivo h3 { background: var(--orange); }
  .ct-col .items { flex: 1; overflow: auto; }
  .ct-item {
    display: flex; justify-content: space-between; padding: 5px 10px;
    font-size: clamp(8px, 0.75vw, 11px); border-bottom: 1px solid #eaedf0;
  }
  .ct-item:nth-child(even) { background: var(--bg-alt); }
  .ct-item.sub { padding-left: 18px; color: #555; }
  .ct-item .v { font-variant-numeric: tabular-nums; font-weight: 600; }
  .ct-total {
    display: flex; justify-content: space-between; padding: 5px 10px;
    font-size: clamp(9px, 0.85vw, 12px); font-weight: 700; color: #fff; flex-shrink: 0;
  }
  .ct-col.activo .ct-total { background: var(--celeste); }
  .ct-col.pasivo .ct-total { background: var(--orange); }
  .ct-neto {
    background: linear-gradient(135deg, #1d6b46, #27ae60);
    border-radius: 7px; padding: 10px 18px;
    display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
  }
  .ct-neto .label { font-size: clamp(10px, 1vw, 13px); font-weight: 600; color: rgba(255,255,255,0.9); }
  .ct-neto .val { font-family:'Roboto Slab',serif; font-size: clamp(14px, 1.5vw, 20px); font-weight: 700; color: #fff; }
  .tbl-wrap::-webkit-scrollbar, #sidebar::-webkit-scrollbar { width: 4px; height: 4px; }
  .tbl-wrap::-webkit-scrollbar-track, #sidebar::-webkit-scrollbar-track { background: transparent; }
  .tbl-wrap::-webkit-scrollbar-thumb, #sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
