/* ============================================================
Docsify Theme — Minimalist 
============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
    --font-body: 'EB Garamond', Georgia, serif;

    /* ── Base ── */
    --color-bg:             #F7F3ED;
    --color-text:           #1C1A17;
    --color-text-muted:     #6B6560;
    --color-text-heading:   #2E2118;
    --color-border:         #C9C0B3;
    --color-link:           #9B3030;

    /* ── Sidebar ── */
    --color-sidebar-hover-bg:   #EDE8DF;
    --color-sidebar-hover-text: #1A1A1A;
    --color-sidebar-active:     #9B3030;

    /* ── Callouts ── */
    --color-callout-bg:     #EDE3D5;
    --color-callout-border: #C9C0B3;

    /* ── Acento ── */
    --color-accent-bg:      #F5EAEA;
}

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

/* ── Cuerpo ─────────────────────────────────────────────────── */
body {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100vh;

    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    color: var(--color-text);
    background: var(--color-bg);
}

/* ── Layout principal ───────────────────────────────────────── */
main {
    display: flex;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

/* ── Botón ──────────────────────────────────────────────────── */
button {
    display: none;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
    flex: 0 0 260px;
    align-self: flex-start;
    min-width: 0;
    padding: 10px;
    font-size: 0.95rem;
    color: var(--color-sidebar-hover-text);
    background: var(--color-sidebar-hover-bg);
}

.app-name img {
    width: 240px;
    height: auto;
}

.sidebar-nav li {
    list-style: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-nav li ul {
    margin-left: 20px;
}

.sidebar-nav br {
    display: none; /* hack para ocultar br en el sidebar */
}

.sidebar-nav strong {
    font-weight: 600;
}

.sidebar-nav a {
    color: inherit;
    text-decoration: none;
}

.sidebar-nav a:hover {
    background: var(--color-accent-bg);
    color: var(--color-sidebar-active);
}

/* ── Contenido ──────────────────────────────────────────────── */
section {
    width: 100%;
    padding: 0 30px 30px 30px;
}

/* ── Markdown ───────────────────────────────────────────────── */
.markdown-section :is(h1, h2, h4, h5, h6) a {
    pointer-events: none;
    color: inherit;
    text-decoration: none;
}

.markdown-section h3 {
    text-align: center;
}

.markdown-section h3 a {
    pointer-events: none;
    color: var(--color-link);
    text-decoration: none;
}

.markdown-section :is(h1, h2) {
    text-align: center;
    color: var(--color-text-heading);
}

.markdown-section h1 {
    font-size: 2.6rem;
    font-weight: 600;
    margin: 2rem 0 0.5rem 0;
}

.markdown-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 4rem 0 1rem 0;
}

.markdown-section h3 {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin: 2.5rem 0 0.8rem 0;
}

.markdown-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.8rem 0 0.3rem 0;
}

.markdown-section h5 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin: 1.2rem 0 0.3rem 0;
}

.markdown-section h6 {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin: 1rem 0 0.3rem 0;
}

.markdown-section p {
    line-height: 1.8;
    margin: 0 0 1rem 0;
}

.markdown-section strong {
    font-weight: 600;
}

.markdown-section ul {
    list-style: none;
    margin: 0.5rem 0 1rem 0;
    padding-left: 1.5rem;
}

.markdown-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.markdown-section blockquote {
    width: 75%;
    margin: 1.5rem auto;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    border-left: 2px solid var(--color-link);
    background: var(--color-callout-bg);
}

.markdown-section blockquote p {
    margin: 0 0 0.3rem 0;
    line-height: 1.6;
}

.markdown-section blockquote p:last-child {
    margin: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer strong {
    color: var(--color-link);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    button {
        display: none;
    }

    .sidebar {
        display: none;
    }

    section {
        padding: 0 20px 20px 20px;
    }

    .markdown-section h1 {
        font-size: 2rem;
    }

    .markdown-section h2 {
        font-size: 1.2rem;
    }

    .markdown-section blockquote {
        width: 80%;
    }
}

/* ── Imprimir ─────────────────────────────────────────────── */
@media print {
    .sidebar {
      display: none;
    }
  }