/* SIMPLE Docs — menú lateral en árbol + área de trabajo */
.sdo-main { max-width: 1400px; margin: 30px auto 60px; padding: 0 16px; }
.sdo-wrap { display: flex; gap: 24px; align-items: flex-start; }
.sdo-side {
    flex: 0 0 290px; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.03); font-size: .93em;
}
.sdo-work {
    flex: 1 1 auto; min-width: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 32px 40px; box-shadow: 0 4px 12px rgba(0,0,0,.03); color: #2c3e50; line-height: 1.75;
}
.sdo-buscar {
    width: 100%; box-sizing: border-box; padding: 8px 10px; margin-bottom: 10px;
    border: 1px solid #cbd5e1; border-radius: 8px; outline: none; font-size: .95em;
}
.sdo-buscar:focus { border-color: #f59e0b; }

.sdo-arbol ul { list-style: none; margin: 0; padding: 0; }
.sdo-arbol ul ul { padding-left: 14px; display: none; }
.sdo-arbol li.sdo-abierto > ul { display: block; }
.sdo-item { display: flex; align-items: center; gap: 2px; border-radius: 6px; }
.sdo-item:hover { background: #f1f5f9; }
.sdo-item a { flex: 1; padding: 5px 6px; color: #334155; text-decoration: none; }
.sdo-n0 > li > .sdo-item a { font-weight: 800; color: #001d3d; }
.sdo-actual > .sdo-item { background: #e0ecff; }
.sdo-actual > .sdo-item a { color: #1d4ed8; font-weight: 700; }
.sdo-tg, .sdo-tg0 { flex: 0 0 20px; width: 20px; height: 22px; }
.sdo-tg { border: 0; background: none; cursor: pointer; padding: 0; color: #64748b; }
.sdo-tg::before { content: "\25B8"; display: inline-block; transition: transform .15s; }
.sdo-abierto > .sdo-item .sdo-tg::before { transform: rotate(90deg); }
.sdo-oculto { display: none !important; }

.sdo-migas { font-size: .85em; color: #64748b; margin-bottom: 8px; }
.sdo-migas a { color: #1d95ba; text-decoration: none; }
.sdo-titulo { color: #001d3d; font-size: 2em; font-weight: 900; line-height: 1.2; margin: 0 0 20px; }
.sdo-contenido img { max-width: 100%; height: auto; }
.sdo-subtemas { margin-top: 30px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.sdo-subtemas h3 { font-size: 1.1em; color: #001d3d; }
.sdo-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.sdo-nav a { color: #1d95ba; text-decoration: none; font-weight: 700; }

.sdo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.sdo-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 18px; background: #f8fafc; }
.sdo-card h3 { margin: 0 0 8px; font-size: 1.1em; }
.sdo-card h3 a { color: #001d3d; text-decoration: none; }
.sdo-card ul { margin: 0; padding-left: 18px; font-size: .93em; }
.sdo-card li a { color: #1d95ba; text-decoration: none; }

.sdo-menu-btn {
    display: none; width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #cbd5e1;
    border-radius: 8px; background: #fff; font-weight: 700; color: #001d3d; cursor: pointer;
}
@media (max-width: 860px) {
    .sdo-wrap { flex-direction: column; gap: 0; }
    .sdo-menu-btn { display: block; }
    .sdo-side { display: none; position: static; max-height: none; width: 100%; box-sizing: border-box; margin-bottom: 14px; flex: none; }
    .sdo-wrap.sdo-menu-abierto .sdo-side { display: block; }
    .sdo-work { padding: 20px 16px; width: 100%; box-sizing: border-box; }
}
