:root{
  --bg: #0b1220;            /* Navy profundo */
  --bg2:#0a1020;
  --card:#0f1a2f;           /* panel */
  --card2:#0e172a;
  --line: rgba(255,255,255,.08);
  --text:#e7edf7;
  --muted: rgba(231,237,247,.72);
  --silver:#c7ceda;
  --ibm:#0F62FE;            /* IBM Blue (aprox) */
  --ibm2:#003A86;
  --ok:#15c39a;
  --warn:#f2c94c;
  --bad:#ff5a6a;
  --shadow: 0 18px 45px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 24px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Modo claro (blanco corporativo) */
body.light{
  --bg: #ffffff;
  --bg2:#f6f8fc;
  --card:#ffffff;
  --card2:#ffffff;
  --line: rgba(10,16,32,.10);
  --text:#0b1220;
  --muted: rgba(11,18,32,.65);
  --shadow: 0 18px 45px rgba(10,16,32,.10);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 700px at 20% -10%, rgba(15,98,254,.18), transparent 60%),
              radial-gradient(900px 500px at 100% 10%, rgba(199,206,218,.10), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  font-family:var(--sans);
}

.wrap{width:min(1160px, 92vw); margin:0 auto}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(10,16,32,.55);
  border-bottom:1px solid var(--line);
}
body.light .topbar{background: rgba(255,255,255,.70)}

.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:18px;
}

.brand{display:flex; align-items:center; gap:12px}
.brand__mark{
  width:42px; height:42px; border-radius:14px;
  background:
    radial-gradient(14px 14px at 70% 30%, rgba(15,98,254,.95), rgba(15,98,254,.25) 55%, transparent 60%),
    linear-gradient(145deg, rgba(199,206,218,.75), rgba(199,206,218,.15));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}
.brand__name{font-weight:800; letter-spacing:.6px}
.brand__name .ibm{color:var(--ibm)}
.brand__name .dot{opacity:.72}
.brand__tag{font-size:12px; color:var(--muted); margin-top:2px}

.nav{display:flex; gap:14px; flex-wrap:wrap; justify-content:center}
.nav a{
  color:var(--muted);
  text-decoration:none;
  font-size:13px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
}
.nav a:hover{
  color:var(--text);
  border-color:var(--line);
  background: rgba(255,255,255,.04);
}
body.light .nav a:hover{background: rgba(10,16,32,.03)}

.btn{
  appearance:none; border:none; cursor:pointer;
  background: linear-gradient(180deg, var(--ibm), var(--ibm2));
  color:white; font-weight:700;
  padding:10px 14px;
  border-radius:12px;
  box-shadow: 0 12px 28px rgba(15,98,254,.22);
  transition: transform .08s ease, filter .15s ease;
  text-decoration:none; display:inline-flex; align-items:center; justify-content:center;
}
.btn:hover{filter:brightness(1.04)}
.btn:active{transform: translateY(1px)}
.btn--ghost{
  background: transparent;
  color: var(--text);
  border:1px solid var(--line);
  box-shadow:none;
}
body.light .btn--ghost{background: rgba(255,255,255,.55)}

.hero{padding:42px 0 26px}
.hero__grid{display:grid; grid-template-columns: 1.15fr .85fr; gap:22px; align-items:stretch}
@media (max-width: 960px){
  .hero__grid{grid-template-columns:1fr}
  .nav{display:none}
}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  background: rgba(255,255,255,.03);
  font-size:12px;
}
body.light .badge{background: rgba(10,16,32,.03)}

h1{margin:14px 0 10px; font-size:40px; line-height:1.08}
@media (max-width: 520px){h1{font-size:32px}}
.lead{color:var(--muted); font-size:16px; line-height:1.55; max-width: 60ch}

.hero__cta{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}

.kpis{display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; margin-top:18px}
.kpi{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:12px;
  background: rgba(255,255,255,.03);
}
body.light .kpi{background: rgba(10,16,32,.02)}
.kpi__v{font-size:20px; font-weight:850}
.kpi__l{font-size:12px; color:var(--muted); margin-top:3px}

.section{padding:22px 0}
.section__head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:14px; margin-bottom:12px;
}
.section__head h2{margin:0; font-size:22px}
.muted{color:var(--muted)}
.small{font-size:12px}
.actions{display:flex; gap:10px; flex-wrap:wrap}

.card{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  padding:16px;
}
body.light .card{background: #fff}

.glass{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
}

.card__h{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px}
.card__t{font-weight:850}
.card__s{font-size:12px; color:var(--muted); margin-top:2px}

.pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--silver);
  background: rgba(255,255,255,.03);
  white-space:nowrap;
}

.grid2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width: 960px){.grid2{grid-template-columns:1fr}}

.mini{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:12px;
  background: rgba(255,255,255,.03);
}
.mini__k{font-size:12px; color:var(--muted)}
.mini__v{font-size:20px; font-weight:900; margin-top:6px}

.note{
  margin-top:12px;
  padding:10px 12px;
  border-radius: var(--radius);
  border:1px dashed var(--line);
  color:var(--muted);
}
.note code{font-family:var(--mono)}

.tableWrap{overflow:auto; border-radius:14px; border:1px solid var(--line)}
.table{width:100%; border-collapse:collapse; min-width: 780px}
.table th,.table td{
  text-align:left;
  padding:12px 12px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
  font-size:13px;
}
.table th{color:var(--silver); font-weight:800; background: rgba(255,255,255,.03)}
body.light .table th{background: rgba(10,16,32,.02)}
.foot{margin-top:10px; font-size:12px; color:var(--muted)}

.form{display:grid; gap:10px}
.lbl{font-size:12px; color:var(--muted); font-weight:700}
.inp{
  width:100%;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}
body.light .inp{background: rgba(10,16,32,.02)}
.inp:focus{border-color: rgba(15,98,254,.45); box-shadow: 0 0 0 4px rgba(15,98,254,.10)}

.code{
  font-family: var(--mono);
  font-size:12px;
  padding:12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.20);
  color: var(--text);
  overflow:auto;
  max-height: 340px;
}
body.light .code{background: rgba(10,16,32,.03)}

.divider{height:1px; background: var(--line); margin:14px 0}

.posts{display:grid; gap:10px}
.post{
  padding:12px;
  border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  cursor:pointer;
}
.post:hover{border-color: rgba(15,98,254,.40)}
.post__t{font-weight:850}
.post__m{font-size:12px; color:var(--muted); margin-top:3px}
.post__b{font-size:13px; color:var(--muted); margin-top:8px; line-height:1.45}

.postDetail{line-height:1.6}
.footer{padding:20px 0 34px; border-top:1px solid var(--line); margin-top:18px}
.footer__inner{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap}

.modal{border:none; padding:0; background: transparent}
.modal::backdrop{background: rgba(0,0,0,.55)}
.modal__panel{
  width:min(720px, 92vw);
  border-radius: 22px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(15,26,47,.98), rgba(14,23,42,.98));
  color: var(--text);
  padding:16px;
  box-shadow: var(--shadow);
}
body.light .modal__panel{
  background: #fff;
  color: #0b1220;
}
.modal__h{display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin-bottom:10px}
.modal__t{font-weight:900}
.modal__f{display:flex; justify-content:flex-end; margin-top:8px}