/* Documentación — estilo GitBook / Fiveguard Docs */
:root {
    --docs-bg: #0f1117;
    --docs-sidebar: #161b22;
    --docs-border: rgba(255, 255, 255, 0.08);
    --docs-text: #e6edf3;
    --docs-muted: #8b949e;
    --docs-accent: #6c5ce7;
    --docs-accent-2: #00cec9;
    --docs-sidebar-w: 280px;
    --docs-code-bg: #0d1117;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.docs-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--docs-bg);
    color: var(--docs-text);
    line-height: 1.65;
    font-size: 15px;
}

.docs-shell {
    display: flex;
    min-height: 100vh;
}

.docs-sidebar {
    width: var(--docs-sidebar-w);
    flex-shrink: 0;
    background: var(--docs-sidebar);
    border-right: 1px solid var(--docs-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.docs-sidebar-head {
    padding: 20px 18px 14px;
    border-bottom: 1px solid var(--docs-border);
}

.docs-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--docs-text);
    font-weight: 700;
    font-size: 1rem;
}

.docs-brand small {
    font-weight: 500;
    color: var(--docs-muted);
}

.docs-brand-mark { font-size: 1.25rem; }

.docs-lang {
    display: flex;
    gap: 6px;
    margin-top: 14px;
}

.docs-lang-btn {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    color: var(--docs-muted);
    border: 1px solid var(--docs-border);
}

.docs-lang-btn.is-on {
    background: var(--docs-accent);
    border-color: var(--docs-accent);
    color: #fff;
}

.docs-nav {
    padding: 12px 10px;
    flex: 1;
}

.docs-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--docs-muted);
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s;
}

.docs-nav-link i { font-size: 18px; width: 20px; text-align: center; }

.docs-nav-link:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--docs-text);
}

.docs-nav-link.is-active {
    background: rgba(108, 92, 231, 0.15);
    color: var(--docs-text);
    border-left-color: var(--docs-accent);
}

.docs-sidebar-foot {
    padding: 14px;
    border-top: 1px solid var(--docs-border);
}

.docs-panel-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 206, 201, 0.1);
    border: 1px solid rgba(0, 206, 201, 0.25);
    color: var(--docs-accent-2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.docs-main {
    flex: 1;
    min-width: 0;
    max-width: 900px;
    padding: 40px clamp(20px, 5vw, 48px) 60px;
}

.docs-breadcrumb {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--docs-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.docs-page-head h1 {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.docs-page-head .docs-lead {
    margin: 0 0 28px;
    font-size: 1.05rem;
    color: var(--docs-muted);
}

.docs-content h2 {
    margin: 2.2rem 0 0.85rem;
    font-size: 1.35rem;
    font-weight: 700;
    padding-top: 0.5rem;
    border-top: 1px solid var(--docs-border);
}

.docs-content h2:first-child { border-top: none; margin-top: 0; }

.docs-content h3 {
    margin: 1.5rem 0 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--docs-text);
}

.docs-block-lead {
    font-size: 1.05rem;
    color: var(--docs-muted);
    margin-bottom: 1.5rem;
}

.docs-list {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
}

.docs-list li { margin-bottom: 0.45rem; }

.docs-steps {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.docs-steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--docs-border);
}

.docs-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--docs-accent), var(--docs-accent-2));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.docs-hint {
    padding: 14px 16px;
    border-radius: 10px;
    margin: 1.25rem 0;
    font-size: 14px;
    border-left: 4px solid;
}

.docs-hint-info {
    background: rgba(29, 199, 234, 0.1);
    border-color: #1DC7EA;
    color: #b8e8f5;
}

.docs-hint-warning {
    background: rgba(243, 156, 18, 0.12);
    border-color: #f39c12;
    color: #f5d89a;
}

.docs-hint-danger {
    background: rgba(231, 76, 60, 0.12);
    border-color: #e74c3c;
    color: #f5b4ad;
}

.docs-code, .docs-diagram {
    background: var(--docs-code-bg);
    border: 1px solid var(--docs-border);
    border-radius: 10px;
    padding: 16px 18px;
    overflow-x: auto;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    margin: 1rem 0 1.5rem;
    white-space: pre;
}

.docs-code code,
.docs-diagram code {
    display: block;
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    color: inherit;
}

.docs-diagram {
    color: var(--docs-accent-2);
    white-space: pre;
}

.docs-table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }

.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.docs-table th,
.docs-table td {
    padding: 10px 14px;
    border: 1px solid var(--docs-border);
    text-align: left;
}

.docs-table th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    color: var(--docs-muted);
}

.docs-table code {
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--docs-accent-2);
}

.docs-content code {
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--docs-accent-2);
}

.docs-content a {
    color: var(--docs-accent-2);
}

.docs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 1.25rem 0 1.75rem;
}

.docs-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--docs-border);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: var(--docs-text);
    transition: border-color 0.2s, transform 0.15s;
}

.docs-card:hover {
    border-color: var(--docs-accent);
    transform: translateY(-2px);
}

.docs-card strong { font-size: 15px; }
.docs-card span { font-size: 13px; color: var(--docs-muted); }

.docs-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--docs-border);
    font-size: 13px;
    color: var(--docs-muted);
}

@media (max-width: 900px) {
    .docs-shell { flex-direction: column; }
    .docs-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .docs-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .docs-nav-link {
        flex: 1 1 auto;
        min-width: 140px;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    .docs-nav-link.is-active { border-bottom-color: var(--docs-accent); }
}
