:root{--azul:#0b3d91;--azul2:#071a30;--rojo:#e2241b;--bg:#f4f6fb;--card:#fff;--txt:#14243b;--muted:#5a6a82;--line:#e3e8f2}*{box-sizing:border-box}body,html{margin:0;padding:0;background:var(--bg);color:var(--txt);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-text-size-adjust:100%}a{color:var(--azul)}.wrap{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px 16px}.card{width:100%;max-width:440px;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:28px 24px;box-shadow:0 12px 40px rgba(11,61,145,.08)}.brand{gap:10px;margin-bottom:18px}.brand,.brand .logo{display:flex;align-items:center}.brand .logo{width:40px;height:40px;border-radius:10px;background:var(--azul);color:#fff;font-weight:800;font-size:20px;justify-content:center}.brand b{font-size:18px}h1{font-size:20px;margin:4px 0 6px}p.sub{color:var(--muted);font-size:14px;margin:0 0 20px;line-height:1.5}label{display:block;font-size:13px;font-weight:600;margin:14px 0 6px}input[type=date],input[type=email],select{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;font-size:16px;background:#fff;color:var(--txt)}input:focus,select:focus{outline:2px solid var(--azul);border-color:var(--azul)}.btn{width:100%;margin-top:18px;padding:13px 16px;border:none;border-radius:12px;background:var(--azul);color:#fff;font-size:16px;font-weight:700;cursor:pointer}.btn:hover{background:#0a3480}.btn.rojo{background:var(--rojo)}.btn.rojo:hover{background:#c11d16}.btn.ghost{background:transparent;color:var(--azul);border:1px solid var(--line)}.btn:disabled{opacity:.6;cursor:default}.note{font-size:13px;color:var(--muted);margin-top:14px;line-height:1.5}.ok{color:#0a7d3a}.err{color:var(--rojo)}.pill{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700}.pill.green{background:#e7f6ec;color:#0a7d3a}.pill.red{background:#fdeae9;color:var(--rojo)}.pill.gray{background:#eef1f7;color:var(--muted)}.course-frame{position:fixed;inset:0;width:100vw;height:100dvh;border:0}.topbar{position:fixed;top:0;right:0;z-index:10;display:flex;gap:8px;align-items:center;padding:6px 10px;background:hsla(0,0%,100%,.9);border-bottom-left-radius:12px;border:1px solid var(--line);font-size:12px}.topbar a,.topbar button{font-size:12px;padding:5px 9px;border-radius:8px;border:1px solid var(--line);background:#fff;color:var(--azul);cursor:pointer;text-decoration:none}.admin{max-width:900px;width:100%}table{width:100%;border-collapse:collapse;font-size:14px}td,th{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-weight:600}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.mini{padding:6px 10px;font-size:13px;border-radius:9px;border:1px solid var(--line);background:#fff;cursor:pointer}.mini.green{border-color:#b9e6c9;color:#0a7d3a}.mini.red{border-color:#f4c4c1;color:var(--rojo)}.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));grid-gap:10px;gap:10px;margin:8px 0 18px}.kpi{background:#f8fafe;border:1px solid var(--line);border-radius:14px;padding:12px 14px}.kpi .v{font-size:26px;font-weight:800;color:var(--azul);line-height:1.05}.kpi .l{font-size:12px;color:var(--muted);margin-top:3px}.kpi.alt .v{color:#0a7d3a}.charts{display:grid;grid-template-columns:1fr 1fr;grid-gap:14px;gap:14px;margin-bottom:20px}@media (max-width:720px){.charts{grid-template-columns:1fr}}.chart{background:#f8fafe;border:1px solid var(--line);border-radius:14px;padding:14px 16px}.chart h3{font-size:13px;margin:0 0 12px;color:var(--txt);font-weight:700}.hbar{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:12px}.hbar .lab{width:96px;color:var(--txt);flex:none}.hbar .track{position:relative;flex:1 1 auto;min-width:0;background:#e6ebf5;border-radius:6px;height:15px}.hbar .fill{position:absolute;left:0;top:0;bottom:0;background:var(--azul);border-radius:6px;min-width:2px}.hbar .fill.green{background:#0a7d3a}.hbar .fill.red{background:var(--rojo)}.hbar .fill.gray{background:#9aa8bf}.hbar .val{width:40px;text-align:right;color:var(--muted);flex:none;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.cols{display:flex;align-items:flex-end;gap:6px;height:120px;margin-top:6px}.cols .col{flex:1 1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;height:100%}.cols .col .bar{width:100%;background:var(--azul);border-radius:6px 6px 0 0;min-height:2px}.cols .col .n{font-size:11px;color:var(--txt);font-weight:700}.cols .col .x{font-size:10px;color:var(--muted);text-align:center;line-height:1.1}