*{box-sizing:border-box}
body{margin:0;background:#f8fafc;font-family:Inter,system-ui,-apple-system,sans-serif;color:#0f172a;font-size:15px}
a{color:#1d4ed8}a:hover{color:#1e3a8a}
header.top{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;padding:12px 28px;background:#0f172a;color:#fff}
header.top .marca{font-weight:700}header.top .marca span{font-weight:400;color:#cbd5e1}
header.top nav{display:flex;flex-wrap:wrap;gap:4px;flex:1}
header.top nav a{padding:10px 14px;border-radius:8px;color:#cbd5e1;text-decoration:none;font-size:14px}
header.top nav a.activo{background:#1e293b;color:#fff;font-weight:600}
header.top .usuario{font-size:13px;color:#cbd5e1}header.top .usuario a{color:#cbd5e1}
main{max-width:1200px;margin:0 auto;padding:28px 20px 48px}
h1{margin:0 0 4px;font-size:26px}h2{margin:0 0 12px;font-size:17px}
.sub{margin:0 0 22px;color:#475569}
.card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px;margin-bottom:20px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin-bottom:20px}
.kpi{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px}
.kpi .l{font-size:13px;color:#475569}.kpi .v{font-size:26px;font-weight:700}
.campo{display:flex;flex-direction:column;gap:6px}
.campo label{font-size:13px;font-weight:600;color:#334155}
input[type=text],input[type=number],input[type=date],input[type=search],select,textarea{height:44px;padding:0 12px;border:1px solid #cbd5e1;border-radius:8px;font-size:14px;font-family:inherit;background:#fff;width:100%}
textarea{height:auto;padding:10px 12px}
.ayuda{font-size:12px;color:#475569}
.errorlist{margin:0;padding:0;list-style:none;color:#991b1b;font-size:13px}
.btn{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 18px;border-radius:10px;border:0;background:#1d4ed8;color:#fff;font-size:14px;font-weight:600;font-family:inherit;cursor:pointer;text-decoration:none}
.btn:hover{background:#1e40af;color:#fff}
.btn.sec{background:#fff;color:#0f172a;border:1px solid #cbd5e1}.btn.sec:hover{background:#f1f5f9}
.btn.ok{background:#166534}.btn.no{background:#fff;color:#991b1b;border:1px solid #cbd5e1}
.btn.chico{height:38px;padding:0 12px;font-size:13px}
.tabla{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px;min-width:760px}
th{text-align:left;color:#475569;font-size:12px;text-transform:uppercase;letter-spacing:.4px;padding:10px 8px;border-bottom:1px solid #e2e8f0}
td{padding:12px 8px;border-bottom:1px solid #f1f5f9;vertical-align:top}
.chip{display:inline-block;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:600;background:#f1f5f9;color:#334155}
.chip.verde{background:#dcfce7;color:#166534}.chip.ambar{background:#fef3c7;color:#92400e}
.chip.rojo{background:#fee2e2;color:#991b1b}.chip.azul{background:#dbeafe;color:#1e40af}
.aviso{padding:12px 14px;border-radius:10px;font-size:14px;line-height:1.5;margin-bottom:16px}
.aviso.info{background:#eff6ff;color:#1e40af}.aviso.warn{background:#fffbeb;border:1px solid #fde68a;color:#78350f}
.aviso.ok{background:#f0fdf4;border:1px solid #bbf7d0;color:#14532d}.aviso.error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
.tipos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tipos label{display:block;padding:14px;border:1px solid #cbd5e1;border-radius:10px;cursor:pointer;background:#fff}
.tipos input{margin-right:6px}.tipos label:has(input:checked){border:2px solid #1d4ed8;background:#eff6ff}
.tipos .d{display:block;font-size:13px;color:#475569;margin-top:4px;font-weight:400}
.folio{padding:14px;border-radius:10px;background:#0f172a;color:#fff}
.folio .n{font-size:22px;font-weight:700}
.fila{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.der{margin-left:auto}
@media (max-width:700px){.grid2,.tipos{grid-template-columns:1fr}main{padding:20px 14px}}
