* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #F8FAFC;
    color: #1E293B;
    font-size: 14px;
    line-height: 1.5;
}
a { color: #2563EB; text-decoration: none; }
a:hover { text-decoration: underline; }

.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    z-index: 100; padding: 0 16px; height: 56px;
    display: flex; align-items: center; gap: 16px;
}
.navbar .logo { font-weight: 700; font-size: 18px; color: #2563EB; white-space: nowrap; }
.navbar .search-box { flex: 1; max-width: 400px; }
.navbar .search-box input {
    width: 100%; padding: 8px 12px; border: 1px solid #CBD5E1;
    border-radius: 6px; font-size: 14px; outline: none;
}
.navbar .search-box input:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.navbar .nav-links { display: flex; gap: 16px; }
.navbar .nav-links a { color: #475569; font-size: 14px; font-weight: 500; }
.navbar .nav-links a:hover { color: #2563EB; text-decoration: none; }

body { padding-top: 72px; }

.breadcrumbs {
    max-width: 960px; margin: 0 auto 16px; padding: 0 16px;
    color: #64748B; font-size: 13px;
}
.breadcrumbs a { color: #64748B; }
.breadcrumbs a:hover { color: #2563EB; }
.breadcrumbs .sep { margin: 0 6px; color: #94A3B8; }

.card {
    background: #fff; border: 1px solid #E2E8F0;
    border-radius: 8px; padding: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.card-grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.badge {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 11px; font-weight: 600; color: #fff;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-personas { background: #2563EB; }
.badge-judicial { background: #059669; }
.badge-vehiculos { background: #D97706; }
.badge-empresas { background: #7C3AED; }
.badge-externas { background: #64748B; }

.table-wrap { overflow-x: auto; }
table.data {
    width: 100%; border-collapse: collapse; font-size: 13px;
}
table.data th {
    background: #F1F5F9; padding: 10px 12px; text-align: left;
    font-weight: 600; color: #475569; border-bottom: 2px solid #E2E8F0;
    position: sticky; top: 0; white-space: nowrap;
}
table.data th a { color: #475569; display: flex; align-items: center; gap: 4px; }
table.data th a:hover { color: #2563EB; text-decoration: none; }
table.data td { padding: 8px 12px; border-bottom: 1px solid #F1F5F9; }
table.data tr:nth-child(even) { background: #F8FAFC; }
table.data tr:hover { background: #EFF6FF; }

.tabs { display: flex; gap: 0; border-bottom: 2px solid #E2E8F0; margin-bottom: 16px; }
.tabs a {
    padding: 10px 20px; color: #64748B; font-weight: 500; font-size: 14px;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tabs a:hover { color: #2563EB; text-decoration: none; }
.tabs a.active { color: #2563EB; border-bottom-color: #2563EB; }

.stats-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-card {
    background: #fff; border: 1px solid #E2E8F0; border-radius: 8px;
    padding: 16px 24px; flex: 1; min-width: 140px; text-align: center;
}
.stat-card .num { font-size: 28px; font-weight: 700; color: #2563EB; display: block; }
.stat-card .label { font-size: 12px; color: #64748B; text-transform: uppercase; letter-spacing: 0.5px; }

.section-title { font-size: 16px; font-weight: 700; color: #1E293B; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #E2E8F0; }
.info-box {
    background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px;
    padding: 32px; text-align: center; color: #64748B; font-size: 14px;
}
.info-box strong { color: #1E293B; }

@media (max-width: 640px) {
    .navbar { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px; }
    .navbar .search-box { max-width: 100%; order: 3; flex-basis: 100%; }
    body { padding-top: 100px; }
    .card-grid { grid-template-columns: 1fr; }
    .stats-row { flex-direction: column; }
    .tabs { overflow-x: auto; }
    .tabs a { padding: 8px 12px; font-size: 12px; white-space: nowrap; }
}

.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: #64748B; }
.text-sm { font-size: 12px; }
