/* Tokens y cascarón visual, alineados con NAF, Acción Social y Gestión. */
:root {
    --primary: #5f7a52;
    --primary-dark: #2f3a2c;
    --primary-light: #e2ebd9;
    --primary-mid: #7a956c;
    --sage: #5a6e69;
    --jade-light: #bac8b1;
    --accent-clay: #a66b4a;
    --accent-slate: #4d6f8c;
    --accent-gold: #b8872f;
    --bg: #d8ddd4;
    --card: #ffffff;
    --surface-alt: #eef1f4;
    --surface-tint: #eef3e8;
    --text: #1f261d;
    --text-muted: #556055;
    --border: #b7c0b4;
    --border-strong: #6f7b6a;
    --border-soft: #d5dcd0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-lift: 0 2px 6px rgba(42, 51, 40, .1), 0 10px 24px rgba(42, 51, 40, .16);
    --sidebar-width: 282px;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; }
body {
    margin: 0;
    font-family: "Nunito", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: clip;
}
button { font: inherit; cursor: pointer; }

.pc-app { min-height: 100vh; width: 100%; display: flex; }
.pc-sidebar {
    background: var(--primary-dark);
    color: #fff;
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}
.brand {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 20px 12px;
    text-align: center;
}
.brand-logo { display: block; height: auto; max-width: 148px; width: 72%; object-fit: contain; }
.brand h1 { color: #fff; font-size: 18px; line-height: 1.15; letter-spacing: .02em; margin: 0 0 4px; }
.brand p { color: var(--jade-light); margin: 0; font-size: 13px; }
.sidebar-brand-divider {
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    margin: 0 20px 14px;
}
.side-nav {
    display: grid;
    gap: 5px;
    padding: 4px 12px 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.nav-link {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: #e9efe3;
    display: flex;
    gap: 12px;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    width: 100%;
}
.nav-link:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nav-link.active {
    background: rgba(255, 255, 255, .18);
    box-shadow: inset 3px 0 #fff;
    color: #fff;
    font-weight: 800;
}
.nav-icon { width: 24px; text-align: center; font-size: 17px; }
.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, .16);
    color: var(--jade-light);
    font-size: 13px;
    padding: 14px 20px max(14px, env(safe-area-inset-bottom));
}
.sidebar-footer strong { color: #fff; display: block; }

.pc-main {
    background: var(--bg);
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    width: calc(100% - var(--sidebar-width));
    position: relative;
}
.topbar {
    align-items: center;
    background: linear-gradient(180deg, #fff, #f7f9f4);
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 16px;
    padding: 15px 28px;
    position: sticky;
    top: 0;
    z-index: 40;
}
.topbar h2 { font-size: 24px; line-height: 1.15; margin: 0; }
.topbar-context {
    align-items: center;
    color: var(--text-muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
    margin: 0 0 3px;
}
.menu-btn { background: transparent; border: 0; color: var(--text); display: none; font-size: 24px; }
.topbar-actions { align-items: center; display: flex; gap: 14px; margin-left: auto; }
.datetime { font-size: 12px; line-height: 1.35; color: var(--text-muted); text-align: right; }
.datetime strong { color: var(--text); font-size: 14px; }
.page-content { padding: 24px 28px 40px; width: 100%; line-height: 1.45; }
.drawer-overlay { display: none; }
.bottom-nav { display: none; }

.seccion[hidden] { display: none !important; }
