/* Estilo institucional FPAD para el sistema de compras */

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f3f5f8;
    color: #222;
}

a {
    color: #005a9e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    background: #002b5c; /* azul institucional */
    color: white;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-logo {
    height: 40px;
    width: auto;
}

.topbar-title {
    display: flex;
    flex-direction: column;
}

.topbar-title span:first-child {
    font-weight: 600;
    font-size: 18px;
}

.topbar-title span:last-child {
    font-size: 12px;
    opacity: 0.9;
}

.topbar-right {
    font-size: 12px;
    opacity: 0.9;
}

.page-wrapper {
    max-width: 1100px;
    margin: 30px auto 40px auto;
    padding: 0 16px;
    background: transparent;
}

.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #002b5c;
}

.page-header p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.notice-box {
    border-left: 4px solid #1e88e5;
    background: #e3f2fd;
    padding: 10px 14px;
    margin-bottom: 24px;
    font-size: 13px;
}

.nav-secondary {
    margin-bottom: 16px;
    font-size: 13px;
}

.nav-secondary a {
    margin-right: 12px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 18px 20px;
    margin-bottom: 18px;
    border-top: 3px solid #005a9e;
}

.card h2 {
    margin: 0 0 6px 0;
    font-size: 18px;
    color: #003366;
}

.card-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #777;
    margin-bottom: 8px;
}

.card p {
    font-size: 13px;
    margin: 0 0 10px 0;
    color: #444;
}

.btn {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #005a9e;
    color: white;
}

.btn-secondary {
    background: #ffffff;
    color: #005a9e;
    border: 1px solid #005a9e;
}

.btn-danger {
    background: #c62828;
    color: #fff;
}

.btn + .btn {
    margin-left: 8px;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

th, td {
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #e3eaf3;
    text-align: left;
    font-weight: 600;
    color: #333;
}

tr:nth-child(even) {
    background: #fafafa;
}

form div {
    margin-bottom: 10px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="password"],
textarea,
select {
    width: 100%;
    max-width: 500px;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #bcc3d0;
    font-size: 13px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

.footer {
    margin-top: 30px;
    font-size: 11px;
    color: #777;
    text-align: right;
}

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .page-wrapper {
        margin-top: 20px;
    }
}
/* === Landing institucional (no afecta backoffice) === */
.hero {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border-radius: 12px;
    padding: 22px 22px;
    border-top: 3px solid #005a9e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #002b5c;
}

.hero p {
    margin: 0 0 14px 0;
    font-size: 14px;
    color: #555;
    max-width: 80ch;
}

.kpi-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.kpi {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 220px;
    flex: 1;
}

.kpi strong {
    display: block;
    font-size: 13px;
    color: #003366;
}

.kpi span {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.grid-2, .grid-3 {
    display: grid;
    gap: 14px;
}

.grid-2 { grid-template-colum
