/* Manual de usuario — El Rincón de Pancho */
.manual-page {
    --m-ink: #1e2430;
    --m-muted: #5c6675;
    --m-line: #e4e8ee;
    --m-orange: #e85d04;
    --m-orange-soft: #fff4ec;
    --m-blue: #0d6e8c;
    --m-surface: #fff;
    max-width: 1100px;
    margin: 0 auto;
}

.manual-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding: 22px 24px;
    border-radius: 14px;
    background:
        radial-gradient(ellipse 80% 120% at 100% 0%, rgba(232, 93, 4, 0.18), transparent 55%),
        linear-gradient(135deg, #1e2430 0%, #2c3545 100%);
    color: #fff;
}

.manual-hero-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.manual-hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.35);
    background: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.manual-hero-name {
    margin: 0 0 2px !important;
    font-size: 0.82rem !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9 !important;
    color: #ffb27a;
}

.manual-hero h1 {
    margin: 0 0 6px;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.manual-hero p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95rem;
    max-width: 42ch;
}

.manual-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.manual-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 8px;
    border: 0;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: #1e2430;
    background: #fff;
}

.manual-btn:hover { filter: brightness(0.97); color: #1e2430; }

.manual-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.manual-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.manual-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: start;
}

.manual-toc {
    position: sticky;
    top: 72px;
    padding: 14px;
    border: 1px solid var(--m-line);
    border-radius: 12px;
    background: var(--m-surface);
}

.manual-toc strong {
    display: block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--m-muted);
}

.manual-toc a {
    display: block;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 0.86rem;
    color: var(--m-ink);
    text-decoration: none;
    line-height: 1.3;
}

.manual-toc a:hover {
    background: var(--m-orange-soft);
    color: var(--m-orange);
}

.manual-body {
    min-width: 0;
}

.manual-section {
    margin-bottom: 18px;
    padding: 20px 22px;
    border: 1px solid var(--m-line);
    border-radius: 12px;
    background: var(--m-surface);
    scroll-margin-top: 72px;
}

.manual-section h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    color: var(--m-ink);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--m-orange-soft);
}

.manual-section h3 {
    margin: 18px 0 8px;
    font-size: 1.02rem;
    color: var(--m-blue);
}

.manual-section p,
.manual-section li {
    color: var(--m-ink);
    font-size: 0.94rem;
    line-height: 1.55;
}

.manual-section p { margin: 0 0 10px; }

.manual-section ol,
.manual-section ul {
    margin: 0 0 12px;
    padding-left: 1.25rem;
}

.manual-section li { margin-bottom: 4px; }

.manual-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 14px;
    font-size: 0.88rem;
}

.manual-section th,
.manual-section td {
    border: 1px solid var(--m-line);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.manual-section th {
    background: #f7f8fa;
    font-weight: 600;
    color: var(--m-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.manual-note {
    margin: 12px 0;
    padding: 12px 14px;
    border-left: 3px solid var(--m-orange);
    background: var(--m-orange-soft);
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
}

.manual-routine {
    margin: 10px 0 0;
    padding: 12px 14px;
    background: #f4f6f8;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.55;
    white-space: pre-wrap;
    color: #2a3340;
}

.manual-links a {
    color: var(--m-orange);
    font-weight: 600;
    word-break: break-all;
}

@media (max-width: 900px) {
    .manual-layout { grid-template-columns: 1fr; }
    .manual-toc { position: static; }
}

@media print {
    .manual-hero-actions,
    .manual-toc,
    .rp-sidebar,
    .rp-topbar,
    .rp-footer-bar,
    .rp-overlay { display: none !important; }
    .rp-main { margin-left: 0 !important; }
    .manual-section {
        break-inside: avoid;
        border: none;
        padding: 0 0 16px;
        box-shadow: none;
    }
    .manual-hero {
        background: none;
        color: #000;
        padding: 0 0 12px;
    }
    .manual-hero-logo {
        border-color: #ccc;
        box-shadow: none;
    }
    .manual-hero-name { color: #e85d04 !important; }
    .manual-pub-bar { display: none !important; }
}
