@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
    /* Brand palette — extraído del logo */
    --blue:        #0968aa;
    --blue-dark:   #064f84;
    --blue-light:  #e7f2fb;
    --green:       #2f7d2d;
    --green-dark:  #1e5c1c;
    --green-light: #eaf5e8;
    --orange:      #ff9714;
    --orange-dark: #d97c08;
    --orange-light:#fff4df;

    /* Superficies */
    --sidebar-bg:  #0d1b2a;
    --sidebar-w:   260px;
    --topbar-h:    58px;

    --bg:          #f0f4f8;
    --surface:     #ffffff;
    --surface-2:   #f7fafc;

    /* Texto */
    --text:        #0f1923;
    --text-2:      #445566;
    --text-inv:    #e8f0f8;
    --text-inv-2:  #8faabf;

    /* Bordes */
    --line:        #dce5ef;
    --line-strong: #b0c4d8;

    /* Semánticos */
    --danger:      #c0392b;
    --ok:          #27ae60;

    /* Sombras */
    --shadow-sm:   0 1px 3px rgba(9,40,80,0.08), 0 1px 2px rgba(9,40,80,0.06);
    --shadow-md:   0 4px 16px rgba(9,40,80,0.10), 0 2px 4px rgba(9,40,80,0.06);
    --shadow-lg:   0 12px 40px rgba(9,40,80,0.14), 0 4px 8px rgba(9,40,80,0.06);

    /* Tipografía */
    --font-head:   'Sora', sans-serif;
    --font-body:   'DM Sans', sans-serif;

    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;

    --transition:  all 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; }

p { line-height: 1.65; }

/* ── Layout principal con sidebar ───────────────────── */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    border-right: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(9,104,170,0.28) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar::after {
    content: '';
    position: absolute;
    bottom: 60px;
    left: -60px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(47,125,45,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.sidebar-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.sidebar-brand-sub {
    font-size: 11px;
    color: var(--text-inv-2);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-inv-2);
    padding: 0 10px;
    margin-bottom: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-inv-2);
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.sidebar-link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.07);
    color: #ffffff;
    text-decoration: none;
}

.sidebar-link:hover svg { opacity: 1; }

.sidebar-link.active {
    background: rgba(9,104,170,0.25);
    color: #ffffff;
    font-weight: 500;
}

.sidebar-link.active svg { opacity: 1; }

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 3px;
    background: var(--orange);
    border-radius: 0 3px 3px 0;
}

.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 14px 12px;
    position: relative;
    z-index: 1;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-user:hover {
    background: rgba(255,255,255,0.06);
}

.sidebar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }

.sidebar-user-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 11px;
    color: var(--text-inv-2);
}

.sidebar-logout {
    margin-top: 6px;
    padding: 0 10px;
}

.sidebar-logout .btn.ghost {
    border-color: rgba(255,255,255,0.42);
    color: #dce9f4;
    font-size: 13px;
    min-height: 34px;
    width: 100%;
}

.sidebar-logout .btn.ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.72);
    color: #ffffff;
}

/* ── Main content area ───────────────────────────────── */
.main-area {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Topbar (dentro del main) ────────────────────────── */
.topbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--topbar-h);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 0 28px;
    justify-content: space-between;
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-2);
}

.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--text); text-decoration: none; }
.breadcrumb-sep { color: var(--line-strong); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Contenido principal ─────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 28px 64px;
    width: 100%;
}

/* Layout de dos columnas en la home */
.layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 280px;
}

/* ── Hero banner ─────────────────────────────────────── */
.wiki-hero {
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, #1a3a5c 100%);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-end;
    box-shadow: var(--shadow-lg);
}

.wiki-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255,151,20,0.22) 0%, transparent 65%);
    pointer-events: none;
}

.wiki-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(9,104,170,0.3) 0%, transparent 65%);
    pointer-events: none;
}

.wiki-hero > * { position: relative; z-index: 1; }

.wiki-hero h1 {
    color: #fff;
    margin-bottom: 10px;
    font-size: clamp(24px, 3vw, 34px);
}

.wiki-hero p {
    color: rgba(255,255,255,0.75);
    margin: 0;
    max-width: 620px;
    font-size: 15px;
}

.wiki-hero .page-kicker {
    color: var(--orange);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-family: var(--font-head);
}

.wiki-hero .btn {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--sidebar-bg);
    flex-shrink: 0;
    font-weight: 600;
}

.wiki-hero .btn:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    box-shadow: 0 8px 20px rgba(255,151,20,0.35);
}

/* ── Cards y paneles ─────────────────────────────────── */
.panel, .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.panel { padding: 24px; }

.card {
    padding: 18px 20px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stack { display: grid; gap: 14px; }

.split {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* ── Tipografía ──────────────────────────────────────── */
.muted { color: var(--text-2); }

.meta {
    color: var(--text-2);
    font-size: 13px;
}

.page-kicker {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-head);
    margin-bottom: 8px;
}

.page-head {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.article-title { margin-bottom: 6px; }

/* ── Botones ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #fff;
    font: 500 14px/1 var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    box-shadow: 0 6px 18px rgba(9,104,170,0.28);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}

.btn:active { transform: translateY(0); box-shadow: none; }

.btn.secondary {
    background: var(--blue-light);
    border-color: #b9d8ee;
    color: var(--blue-dark);
}

.btn.secondary:hover {
    background: #d2eaf8;
    color: var(--blue-dark);
    box-shadow: 0 4px 12px rgba(9,104,170,0.14);
}

.btn.danger {
    background: var(--danger);
    border-color: var(--danger);
}

.btn.danger:hover {
    background: #a93226;
    border-color: #a93226;
    box-shadow: 0 6px 18px rgba(192,57,43,0.28);
}

.btn.ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text-2);
}

.btn.ghost:hover {
    background: var(--surface-2);
    border-color: var(--line-strong);
    color: var(--text);
    box-shadow: none;
}

.btn.link {
    background: transparent;
    border: 0;
    color: var(--blue);
    padding: 0;
    min-height: auto;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Formularios ─────────────────────────────────────── */
label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-head);
}

input, select, textarea {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
    font: 14px/1.5 var(--font-body);
    outline: none;
    padding: 10px 13px;
    width: 100%;
    background: var(--surface);
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(9,104,170,0.12);
}

input:disabled {
    background: var(--surface-2);
    color: var(--text-2);
    cursor: not-allowed;
}

textarea {
    min-height: 320px;
    resize: vertical;
    line-height: 1.6;
}

.editor {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
}

.editor:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(9,104,170,0.12);
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}

.editor-button {
    min-width: 32px;
    height: 30px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    font: 600 13px/1 var(--font-body);
    cursor: pointer;
}

.editor-button:hover {
    border-color: var(--line-strong);
    background: var(--surface);
}

.editor textarea {
    display: block;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.editor-content {
    min-height: 320px;
    padding: 14px 16px;
    outline: 0;
    line-height: 1.6;
    white-space: pre-wrap;
}

.editor-content:focus {
    box-shadow: none;
}

.editor-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px 0;
}

.editor-select {
    min-height: 30px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: 500 13px/1 var(--font-body);
}

.editor textarea:focus {
    box-shadow: none;
}

.article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: var(--radius-sm);
}

.article-body ul {
    margin: 0 0 16px;
    padding-left: 24px;
}

/* ── Alertas ─────────────────────────────────────────── */
.alert {
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    padding: 12px 16px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert.error {
    background: #fdf2f2;
    border: 1px solid #f5c6c6;
    color: #8b1a1a;
}

.alert.success {
    background: var(--green-light);
    border: 1px solid #b4dbb2;
    color: #1a5218;
}

/* ── Badges ──────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-head);
    white-space: nowrap;
    background: var(--blue-light);
    color: var(--blue-dark);
}

.badge.green {
    background: var(--green-light);
    color: var(--green-dark);
}

.badge.orange {
    background: var(--orange-light);
    color: var(--orange-dark);
}

/* ── Artículo ────────────────────────────────────────── */
.article-body {
    line-height: 1.75;
    max-width: 72ch;
    font-size: 15.5px;
}

.article-body h2, .article-body h3 {
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

.article-body p { margin-bottom: 1em; }

.article-body code {
    background: #eef3f8;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 13.5px;
    color: var(--blue-dark);
}

.article-body pre {
    background: var(--sidebar-bg);
    border-radius: var(--radius-md);
    color: #e2ebf5;
    overflow-x: auto;
    padding: 18px 20px;
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 1em;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* ── Sidebar del contenido (categorías) ──────────────── */
.sidebar-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.category-row:hover {
    background: var(--surface-2);
}

/* ── Estado vacío ────────────────────────────────────── */
.empty {
    background: rgba(255,255,255,0.6);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
    color: var(--text-2);
    padding: 36px;
    text-align: center;
    font-size: 14px;
}

/* ── Login ───────────────────────────────────────────── */
.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse at top left, rgba(9,104,170,0.14) 0%, transparent 45%),
        radial-gradient(ellipse at bottom right, rgba(47,125,45,0.12) 0%, transparent 45%),
        var(--bg);
    padding: 24px;
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 440px;
    padding: 40px 36px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--green) 50%, var(--orange));
}

.login-logo {
    display: block;
    height: 72px;
    width: 90px;
    object-fit: contain;
    margin-bottom: 20px;
}

.login-card h1 {
    font-size: 26px;
    margin-bottom: 6px;
}

.login-card .muted {
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.5;
}

.login-note {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.55;
    padding: 11px 14px;
    margin: 0;
}

.login-btn-ms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    font: 500 14px/1 var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 16px;
}

.login-btn-ms:hover {
    background: var(--surface-2);
    border-color: var(--blue);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text);
}

.login-btn-ms svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Divisor */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-2);
    font-size: 12px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ── Nav (modo sin sidebar, legado) ──────────────────── */
.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.nav a:not(.btn), .nav .meta {
    border-radius: var(--radius-sm);
    color: var(--text-2);
    display: inline-flex;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 14px;
    align-items: center;
}

.nav a:not(.btn):hover {
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
}

/* ── Marca en topbar (fallback sin sidebar) ──────────── */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    text-decoration: none;
}

.brand img {
    height: 30px;
    width: 38px;
    object-fit: contain;
    display: block;
}

/* ── Divisor decorativo ──────────────────────────────── */
.divider {
    height: 1px;
    background: var(--line);
    margin: 24px 0;
}

/* ── Tags de artículo ────────────────────────────────── */
.article-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

/* ── Stat mini cards ─────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-head);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1;
}

/* Accent bar en stat */
.stat-card.blue  { border-top: 3px solid var(--blue); }
.stat-card.green { border-top: 3px solid var(--green); }
.stat-card.orange{ border-top: 3px solid var(--orange); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
    :root { --sidebar-w: 0px; }

    .sidebar {
        transform: translateX(-260px);
        width: 260px;
        transition: transform 240ms ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-area {
        margin-left: 0;
    }

    .layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container { padding: 20px 16px 48px; }
    .topbar-inner { padding: 0 16px; }
    .wiki-hero { padding: 24px 22px; flex-direction: column; align-items: flex-start; }
    h1 { font-size: 26px; }
    .login-card { padding: 32px 22px; }
}

/* ── Scrollbar personalizada ─────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-2); }

/* Sidebar scrollbar */
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ── Animación de entrada sutil ──────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card, .panel, .wiki-hero {
    animation: fadeUp 300ms ease both;
}

.card:nth-child(2) { animation-delay: 60ms; }
.card:nth-child(3) { animation-delay: 120ms; }
.card:nth-child(4) { animation-delay: 180ms; }
