/* ── Layout Components ── */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    border: 1px solid #f3f4f6;
    padding: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.kpi-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    border: 1px solid #f3f4f6;
    padding: 1.5rem;
    transition: all .2s;
}
.kpi-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* ── Navigation ── */
.nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem .75rem;
    border-radius: .75rem;
    color: #9ca3af;
    font-size: .875rem;
    font-weight: 500;
    transition: all .2s;
    text-decoration: none;
}
.nav-link:hover {
    color: white;
    background: rgba(255,255,255,.1);
}
.nav-link.active {
    color: white;
    background: rgba(255,255,255,.15);
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    background: #111111;
    color: white;
    border-radius: .75rem;
    font-weight: 500;
    font-size: .875rem;
    border: none;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    text-decoration: none;
}
.btn-primary:hover {
    background: #000000;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    font-weight: 500;
    font-size: .875rem;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .375rem .75rem;
    color: #6b7280;
    border-radius: .5rem;
    font-weight: 500;
    font-size: .875rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all .2s;
}
.btn-ghost:hover {
    background: #f3f4f6;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    background: white;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: .75rem;
    font-weight: 500;
    font-size: .875rem;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.btn-danger:hover {
    background: #fef2f2;
    border-color: #f87171;
}

/* ── Form ── */
.input-field {
    padding: .625rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    font-size: .875rem;
    outline: none;
    transition: all .2s;
    background: white;
}
.input-field:focus {
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}

/* ── Zone Badges ── */
.zone-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .75rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.zone-verde {
    background: #dcfce7;
    color: #166534;
}
.zone-amarilla {
    background: #fef3c7;
    color: #92400e;
}
.zone-naranja {
    background: #fed7aa;
    color: #9a3412;
}
.zone-roja {
    background: #fee2e2;
    color: #991b1b;
}

/* ── Data Table ── */
.data-table {
    width: 100%;
    font-size: .875rem;
}
.data-table thead {
    border-bottom: 2px solid #f3f4f6;
}
.data-table th {
    padding: .75rem 1rem;
    text-align: left;
    font-size: .75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.data-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid #f9fafb;
}
.data-table tbody tr {
    transition: background .15s;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
