* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d2433; background: #f3f5f9; }
a { color: #0b63ce; text-decoration: none; }
a:hover { text-decoration: underline; }
.lateral { position: fixed; inset: 0 auto 0 0; width: 210px; background: #0f1b2d; color: #c8d3e6; display: flex; flex-direction: column; }
.marca { padding: 18px 20px; font-size: 18px; letter-spacing: .5px; color: #fff; border-bottom: 1px solid #1f2f49; }
.marca b { color: #29a3ff; }
.lateral nav { flex: 1; padding: 8px 0; overflow-y: auto; }
.lateral nav a { display: block; padding: 9px 20px; color: #c8d3e6; }
.lateral nav a:hover { background: #172842; text-decoration: none; }
.lateral nav a.act { background: #1b3358; color: #fff; border-left: 3px solid #29a3ff; padding-left: 17px; }
.usuario { padding: 14px 20px; font-size: 12px; border-top: 1px solid #1f2f49; }
.usuario a { color: #8cc8ff; }
.contenido { margin-left: 210px; padding: 24px 32px; max-width: 1300px; }
.solo { max-width: 380px; margin: 10vh auto; padding: 0 16px; }
h1 { font-size: 22px; margin: 0 0 18px; }
h2 { font-size: 16px; margin: 24px 0 10px; }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tarjeta { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tarjeta .n { font-size: 26px; font-weight: 600; }
.tarjeta .t { color: #5b6578; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.caja { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.06); margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
th { background: #f8fafc; font-size: 12px; color: #5b6578; text-transform: uppercase; letter-spacing: .3px; }
tr:hover td { background: #fafcff; }
td.num, th.num { text-align: right; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.tag.verde { background: #e2f6e9; color: #146c2e; }
.tag.ambar { background: #fff1d6; color: #8a5300; }
.tag.rojo { background: #fde3e3; color: #a11d1d; }
.tag.gris { background: #eceff3; color: #555f70; }
form.fila { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
label { display: block; font-size: 12px; color: #5b6578; margin: 10px 0 4px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #ccd3de; border-radius: 7px; font: inherit; background: #fff; }
form.fila input, form.fila select { width: auto; }
textarea { min-height: 120px; font-family: ui-monospace, monospace; font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.btn { display: inline-block; padding: 8px 14px; border-radius: 7px; border: 0; background: #0b63ce; color: #fff; font: inherit; cursor: pointer; }
.btn:hover { background: #0954ae; text-decoration: none; }
.btn.sec { background: #e7ecf3; color: #1d2433; }
.btn.rojo { background: #c62828; }
.btn.ambar { background: #e08a00; }
.btn.verde { background: #2e7d32; }
.btn.chico { padding: 4px 9px; font-size: 12px; }
.acciones { display: flex; gap: 6px; flex-wrap: wrap; }
.acciones form { margin: 0; }
.aviso { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.aviso.ok { background: #e2f6e9; color: #146c2e; }
.aviso.error { background: #fde3e3; color: #a11d1d; }
.muted { color: #7a8496; font-size: 12px; }
.logo-mini { width: 40px; height: 28px; object-fit: contain; background: #0f1b2d; border-radius: 4px; }
.checks { columns: 3 220px; }
.checks label { display: flex; gap: 6px; align-items: center; margin: 4px 0; color: #1d2433; font-size: 13px; }
code { background: #eef2f7; padding: 1px 5px; border-radius: 4px; font-size: 12px; word-break: break-all; }
.paginas { margin-top: 12px; display: flex; gap: 6px; }
@media (max-width: 800px) {
  .lateral { position: static; width: auto; }
  .contenido { margin-left: 0; padding: 16px; }
  .grid2 { grid-template-columns: 1fr; }
}
