/* ==========================================================================
   VISCOFORM · ARTÍCULO POR BLOQUES (portado de Oniric, tema claro)
   ========================================================================== */

.vf-article-layout {
    --vfa-text: #333333;
    --vfa-muted: #7a7a7a;
    --vfa-line: #e5e5e5;
    --vfa-soft: #f7f7f7;
    --vfa-accent: #00aeef;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: 2.5rem;
    align-items: start;
}

.vf-article-layout--plain {
    display: block;
}

.vf-article-toc {
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem 0 1rem 1rem;
    border-left: 1px solid var(--vfa-line);
}

.vf-article-toc__title {
    margin: 0 0 .75rem;
    color: var(--vfa-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09rem;
    text-transform: uppercase;
}

.vf-article-toc__nav {
    display: grid;
    gap: .2rem;
}

.vf-article-toc__nav a {
    padding: .25rem 0 .25rem .65rem;
    color: var(--vfa-muted);
    border-left: 2px solid transparent;
    font-size: .85rem;
    line-height: 1.35;
    text-decoration: none;
}

.vf-article-toc__nav a:hover,
.vf-article-toc__nav a:focus {
    color: var(--vfa-text);
    border-left-color: var(--vfa-accent);
}

.vf-article-toc__nav a[data-level="3"] {
    padding-left: 1.2rem;
    font-size: .8rem;
}

.vf-article-blocks {
    color: var(--vfa-text, #333333);
    line-height: 1.75;
}

.vf-article-block {
    margin: 0 0 2.25rem;
}

.vf-article-block h2 {
    margin: 0 0 1rem;
    font-size: 1.6rem;
    line-height: 1.25;
}

.vf-article-block h3 {
    margin: 1.5rem 0 .75rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.vf-article-block h2[id],
.vf-article-block h3[id] {
    scroll-margin-top: 7rem;
}

.vf-article-block--rich ul,
.vf-article-block--rich ol {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
    list-style: revert;
}

.vf-article-block--rich li {
    margin-bottom: .4rem;
    list-style: inherit;
}

.vf-article-block--rich a,
.vf-article-links a {
    color: var(--vfa-accent, #00aeef);
    text-decoration: underline;
}

.vf-article-block--rich blockquote {
    margin: 1.5rem 0;
    padding: .5rem 0 .5rem 1.25rem;
    border-left: 3px solid var(--vfa-accent, #00aeef);
    color: var(--vfa-muted, #7a7a7a);
    font-style: italic;
}

.vf-article-summary {
    padding: clamp(1.3rem, 3vw, 2rem);
    border: 1px solid rgba(0, 174, 239, .3);
    border-radius: .75rem;
    background: rgba(0, 174, 239, .06);
}

.vf-article-summary h2,
.vf-article-summary ul {
    margin-top: 0;
}

.vf-article-summary ul {
    display: grid;
    gap: .7rem;
    margin-bottom: 0;
    padding-left: 1.15rem;
    list-style: disc;
}

.vf-article-summary li {
    list-style: inherit;
}

.vf-article-inline-media {
    margin: clamp(2rem, 4vw, 3.5rem) 0;
}

.vf-article-inline-media img {
    display: block;
    width: 100%;
    max-height: 36rem;
    object-fit: cover;
    border-radius: .75rem;
}

.vf-article-inline-media figcaption {
    margin-top: .6rem;
    color: var(--vfa-muted, #7a7a7a);
    font-size: .85rem;
    line-height: 1.4;
}

.vf-article-cta {
    padding: clamp(1.4rem, 4vw, 2.4rem);
    border: 1px solid var(--vfa-line, #e5e5e5);
    border-radius: .75rem;
    background: var(--vfa-soft, #f7f7f7);
}

.vf-article-cta__eyebrow {
    margin: 0 0 .65rem;
    color: var(--vfa-accent, #00aeef);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.vf-article-cta h2 {
    margin-top: 0;
}

.vf-article-cta__text {
    max-width: 40rem;
}

.vf-article-cta__button,
.vf-article-cta__button:hover,
.vf-article-cta__button:focus {
    display: inline-flex;
    margin-top: .4rem;
    padding: .75rem 1.2rem;
    color: #ffffff;
    border-radius: .4rem;
    background: var(--vfa-accent, #00aeef);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.vf-article-cta__button:hover,
.vf-article-cta__button:focus {
    background: #0095cc;
}

.vf-article-table__caption {
    margin-bottom: .8rem;
    color: var(--vfa-muted, #7a7a7a);
    font-size: .9rem;
}

.vf-article-table__scroll {
    overflow-x: auto;
    border: 1px solid var(--vfa-line, #e5e5e5);
    border-radius: .6rem;
}

.vf-article-table table {
    width: 100%;
    min-width: 34rem;
    margin: 0;
    border-collapse: collapse;
    font-size: .95em;
}

.vf-article-table th,
.vf-article-table td {
    padding: .8rem;
    border-bottom: 1px solid var(--vfa-line, #e5e5e5);
    text-align: left;
    vertical-align: top;
}

.vf-article-table th {
    background: var(--vfa-soft, #f7f7f7);
    font-size: .9em;
}

.vf-article-table tr:last-child td {
    border-bottom: 0;
}

.vf-article-faq__item {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--vfa-line, #e5e5e5);
}

.vf-article-faq__item h3 {
    margin-top: 0;
}

.vf-article-faq__item p {
    margin-bottom: 0;
}

.vf-article-links ul {
    display: grid;
    gap: .6rem;
    margin-bottom: 0;
    padding-left: 1.15rem;
    list-style: disc;
}

.vf-article-links li {
    list-style: inherit;
}

@media (max-width: 991.98px) {
    .vf-article-layout {
        display: flex;
        flex-direction: column-reverse;
        gap: 1.5rem;
    }

    .vf-article-toc {
        position: static;
        max-height: none;
        width: 100%;
        padding: 1rem;
        border: 1px solid var(--vfa-line);
        border-radius: .6rem;
    }
}
