:root{
  --bg:#0b1220;
  --panel:#0f1a33;
  --card:#111f3d;
  --muted:#9fb0d0;
  --text:#e8eefc;
  --brand:#4f8cff;
  --brand2:#22c55e;
  --border:rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(1200px 800px at 15% 0%, rgba(79,140,255,.25), transparent 60%),
              radial-gradient(900px 700px at 85% 10%, rgba(34,197,94,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}
a{color:var(--brand); text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1200px; margin:0 auto; padding:28px 18px 80px; padding-top:90px}
.topbar{
  position:fixed; top:0; left:0; right:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.85);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.topbar-inner{
  max-width:1200px; 
  margin:0 auto; 
  padding:14px 18px; 
  display:flex; 
  gap:14px; 
  align-items:center;
  justify-content:space-between;
}
@media(max-width: 900px){
  .topbar-inner{flex-wrap:wrap}
  .search{width:100%; margin-left:0; margin-top:10px}
}
.brand{display:flex; flex-direction:column; line-height:1.1}
.brand b{font-size:14px; letter-spacing:.3px}
.brand small{color:var(--muted); font-size:12px}
.search{
  margin-left:auto; 
  display:flex !important; 
  gap:10px; 
  align-items:center; 
  flex-wrap:nowrap;
  flex-shrink: 0;
  visibility: visible;
}
.search-input-wrapper{
  display: none !important;
}
.select{
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding:10px 12px;
  border-radius:12px;
  outline:none;
  font-size:13px;
  cursor:pointer;
  white-space:nowrap;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239fb0d0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  min-width: 110px;
  width: auto;
  flex-shrink: 0;
  display: inline-block;
  visibility: visible;
}
.select:hover{
  border-color: rgba(79,140,255,.35);
  background-color: rgba(255,255,255,.08);
}
.select:focus{
  border-color: rgba(79,140,255,.55);
  box-shadow: 0 0 0 4px rgba(79,140,255,.12);
  background-color: rgba(255,255,255,.08);
}
.select option{
  background: var(--panel);
  color: var(--text);
  padding: 8px;
}
/* Forzar estilo oscuro en selectores en todos los navegadores */
select.select {
  background-color: rgba(255,255,255,.05) !important;
}
select.select:focus {
  background-color: rgba(255,255,255,.08) !important;
}
select.select option {
  background-color: var(--panel) !important;
  color: var(--text) !important;
}
.search-input-wrapper{
  position: relative;
  display: none !important;
  align-items: center;
}
.search input{
  width: auto;
  min-width: 200px;
  max-width: 300px;
  flex: 0 1 auto;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding:10px 40px 10px 12px;
  border-radius:12px;
  outline:none;
  display: inline-block;
}
.search input:focus{border-color: rgba(79,140,255,.55); box-shadow: 0 0 0 4px rgba(79,140,255,.12)}
.search-icon{
  position: absolute;
  right: 12px;
  font-size: 18px;
  pointer-events: none;
  user-select: none;
}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:12px;
  background: rgba(79,140,255,.15);
  border:1px solid rgba(79,140,255,.25);
  color: var(--text);
  white-space:nowrap;
}
.btn:hover{background: rgba(79,140,255,.22)}
.grid{display:grid; grid-template-columns: 340px 1fr; gap:18px; margin-top:18px}
@media(max-width: 980px){
  .grid{grid-template-columns:1fr}
}
.sidebar{
  background: rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  box-shadow: var(--shadow);
}
.side-title{display:flex; justify-content:space-between; align-items:center; margin-bottom:12px}
.side-title h2{margin:0; font-size:14px; letter-spacing:.25px}
.chip{font-size:12px; color:var(--muted)}
.nav{
  display:flex; flex-direction:column; gap:6px;
}
.nav a{
  padding:10px 10px;
  border-radius:12px;
  border:1px solid transparent;
  color:var(--text);
  white-space:nowrap;
  display:block;
}
.nav a:hover{border-color: var(--border); background: rgba(255,255,255,.03); text-decoration:none}
.nav a.active{
  border-color: rgba(79,140,255,.35);
  background: rgba(79,140,255,.10);
}
.content{
  background: rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:18px;
  padding:22px;
  box-shadow: var(--shadow);
}
.hero{
  display:flex; flex-direction:column; gap:10px;
  padding:18px; border-radius:18px;
  background: linear-gradient(120deg, rgba(79,140,255,.16), rgba(34,197,94,.10));
  border:1px solid rgba(255,255,255,.08);
}
.hero h1{margin:0; font-size:22px}
.hero p{margin:0; color:var(--muted)}
.kpis{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; margin-top:12px}
@media(max-width: 720px){ .kpis{grid-template-columns:1fr} }
.kpi{
  background: rgba(0,0,0,.12);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
}
.kpi b{display:block; font-size:13px}
.kpi span{color:var(--muted); font-size:12px}
h2{margin-top:28px; margin-bottom:10px; font-size:18px}
h3{margin-top:22px; margin-bottom:8px; font-size:15px}
p{color:var(--text); opacity:.97}
.muted{color:var(--muted)}
hr{border:none; border-top:1px solid var(--border); margin:24px 0}
.card{
  background: rgba(0,0,0,.12);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  margin-top:12px;
}
.cols{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media(max-width: 900px){ .cols{grid-template-columns:1fr} }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  font-size:12px;
  color: var(--muted);
}
.list{
  margin:8px 0 0 0; padding-left:18px;
}
.list li{margin:6px 0; color:var(--text); opacity:.96}
.code{
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.18);
  overflow:auto;
  white-space:pre;
}
.table{
  width:100%;
  border-collapse:collapse;
  margin-top:10px;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--border);
}
.table th, .table td{
  padding:10px 10px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}
.table th{background: rgba(255,255,255,.04); text-align:left; font-size:12px; color:var(--muted)}
.table td{font-size:13px}
.footer{
  margin-top:28px;
  color: var(--muted);
  font-size:12px;
}
.highlight{
  border-left: 4px solid var(--brand2);
  padding-left: 12px;
}
.callout{
  border-left: 4px solid var(--brand);
  padding: 12px 12px 12px 14px;
  border-radius: 14px;
  background: rgba(79,140,255,.08);
  border:1px solid rgba(79,140,255,.20);
}
.small{font-size:12px; color:var(--muted)}