/* Valorunia V2.3 | Estilo de lectura y jerarquia tipografica.
   Solo reduce los encabezados internos H2/H3. No modifica H1, portada, menus ni tablas. */
:root { --vn-story-ink:#071D49; --vn-story-teal:#00B7A5; --vn-story-text:#334155; --vn-story-line:#DFE8EF; --vn-story-soft:#F4F7FA; }
body.single-post { background:#F4F7FA; }
body.single-post .site-content { background:#F4F7FA; }
body.single-post .ast-article-single {
    background:#fff;
    border-radius:18px;
    border:1px solid #e6edf3;
    box-shadow:0 9px 30px rgba(7,29,73,.035);
}
body.single-post .entry-header { position:relative; }
body.single-post .entry-header .entry-meta,
body.single-post .entry-header .entry-meta * { font-feature-settings:"tnum"; }
body.single-post .entry-header .entry-meta { color:#64748b; font-size:13px; letter-spacing:.01em; }
body.single-post .entry-header .entry-meta a { color:#008F82; font-weight:700; text-decoration:none; }
body.single-post .entry-header .entry-meta a:hover { color:#071D49; text-decoration:underline; }
/* Breadcrumb remains light and discreet, without competing with the H1. */
body.single-post .vn2-article-crumb {
    display:flex; align-items:center; flex-wrap:wrap; gap:9px;
    margin:0 0 22px; padding:0; color:#718096;
    font-size:12px; font-weight:650; line-height:1.5;
}
body.single-post .vn2-article-crumb a { color:#60758a; text-decoration:none; }
body.single-post .vn2-article-crumb a:hover { color:#008F82; text-decoration:underline; }
body.single-post .vn2-article-crumb .vn2-article-crumb-cat {
    color:#057E80; background:#E5F7F5; border:1px solid #C8EBE6;
    border-radius:100px; padding:5px 12px; font-weight:800;
}
/* Image appears below title in themes where Astra does not already show it. */
body.single-post .vn2-article-featured {
    margin:4px 0 28px; width:100%; max-width:100%;
    overflow:hidden; border:1px solid #E1EBF2; border-radius:15px;
    box-shadow:0 9px 26px rgba(7,29,73,.07);
}
body.single-post .vn2-article-featured img {
    display:block; width:100%; height:auto; max-height:none;
    object-fit:contain; object-position:center; border-radius:0; margin:0;
}
body.single-post :is(.ast-single-post-featured-section,.post-thumb-img-content) img.wp-post-image {
    border-radius:15px; box-shadow:0 9px 26px rgba(7,29,73,.07);
}
/* Ritmo de lectura: se conserva el tamano del titulo principal H1 de Astra. */
body.single-post .entry-content { color:var(--vn-story-text); font-size:16.5px; line-height:1.82; }
body.single-post .entry-content > p { max-width:100%; margin-bottom:1.35em; }
body.single-post .entry-content > p:first-of-type { color:#243A56; font-weight:480; }
body.single-post .entry-content > :is(h2,h3,h4) { color:var(--vn-story-ink); scroll-margin-top:26px; }
/* Valorunia V2.3: jerarquia editorial. Los subtitulos nunca compiten con el H1.
   Se limita a entradas individuales: no afecta Inicio, Noticias ni las paginas. */
body.single-post .ast-article-single .entry-content h2,
body.single-post .entry-content h2.wp-block-heading {
    font-size:clamp(20px, 1.6vw, 22px) !important;
    line-height:1.33 !important;
    font-weight:750 !important;
    letter-spacing:-.016em;
}
body.single-post .ast-article-single .entry-content h3,
body.single-post .entry-content h3.wp-block-heading {
    font-size:clamp(17px, 1.35vw, 18.5px) !important;
    line-height:1.38 !important;
    font-weight:700 !important;
    letter-spacing:-.008em;
}
body.single-post .entry-content > h2 { margin-top:1.5em; margin-bottom:.6em; }
body.single-post .entry-content > h3 { margin-top:1.3em; margin-bottom:.55em; }
body.single-post .entry-content > :is(ul,ol) { margin:14px 0 27px; padding-left:28px; }
body.single-post .entry-content li { padding-left:3px; margin-bottom:10px; }
body.single-post .entry-content li::marker { color:#008F82; font-weight:700; }
body.single-post .entry-content a:not(.wp-block-button__link) { color:#007E86; text-decoration:underline; text-decoration-color:#98d7d2; text-underline-offset:3px; }
body.single-post .entry-content a:not(.wp-block-button__link):hover { color:#071D49; text-decoration-color:#071D49; }
body.single-post .entry-content :is(.wp-block-quote,blockquote) {
    border-left:4px solid #00B7A5; border-radius:0 12px 12px 0;
    background:#EDF9F8; color:#16395A; padding:18px 22px;
    margin:26px 0; box-shadow:none;
}
body.single-post .entry-content :is(.wp-block-quote,blockquote) p { margin:0; }
body.single-post .entry-content :is(.wp-block-quote,blockquote) p + p { margin-top:12px; }
body.single-post .entry-content figure.wp-block-image { max-width:100%; margin:23px 0 30px; }
body.single-post .entry-content figure.wp-block-image img { border-radius:12px; max-width:100%; height:auto; }
body.single-post .entry-content figure.wp-block-image figcaption { color:#64748b; font-size:12px; margin-top:10px; }
body.single-post .entry-content .wp-block-separator { border-color:#DFE8EF; margin:27px 0; }
body.single-post .entry-content :is(code,pre) { border-radius:7px; }
/* Related articles only appended to public post template, never inserted in Gutenberg content. */
body.single-post .vn2-related {
    border-top:1px solid #DFE8EF; margin:38px 0 7px; padding:26px 0 3px;
    font-family:inherit;
}
body.single-post .vn2-related-top { display:flex; justify-content:space-between; gap:15px; align-items:flex-end; margin-bottom:17px; }
body.single-post .vn2-related-eyebrow { display:block; color:#008F82; font-size:11px; font-weight:850; letter-spacing:.12em; margin-bottom:4px; }
body.single-post .vn2-related h2 { font-size:21px!important; line-height:1.25!important; color:#071D49; font-weight:800; margin:0!important; }
body.single-post .vn2-related-more { color:#007d85; font-size:12px; font-weight:750; text-decoration:none; white-space:nowrap; }
body.single-post .vn2-related-more:hover { text-decoration:underline; }
body.single-post .vn2-related-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
body.single-post .vn2-related-item { display:flex; align-items:stretch; gap:12px; min-width:0; border:1px solid #DDE8EF; border-radius:13px; padding:12px; color:#071D49; text-decoration:none!important; background:#fff; transition:border-color .16s ease,box-shadow .16s ease; }
body.single-post .vn2-related-item:hover { border-color:#80CCC7; box-shadow:0 9px 18px rgba(7,29,73,.08); }
body.single-post .vn2-related-thumb { flex:0 0 108px; max-width:108px; border-radius:8px; overflow:hidden; background:#ECF3F7; }
body.single-post .vn2-related-thumb img { width:100%; height:100%; min-height:90px; object-fit:cover; display:block; }
body.single-post .vn2-related-text { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; min-width:0; }
body.single-post .vn2-related-category { font-size:10px; color:#008F82; font-weight:850; text-transform:uppercase; letter-spacing:.08em; }
body.single-post .vn2-related-item-title { font-size:14px; font-weight:800; color:#071D49; line-height:1.45; margin:5px 0; }
body.single-post .vn2-related-date { font-size:11px; color:#64748b; margin-top:auto; }
body.single-post .post-navigation { margin-top:30px; border-top:1px solid #DFE8EF; padding-top:18px; }
body.single-post .post-navigation a { color:#071D49; font-weight:700; }
body.single-post a:focus-visible { outline:3px solid #00B7A5; outline-offset:3px; }
@media(max-width:760px) {
    body.single-post .ast-article-single { border-radius:12px; }
    body.single-post .entry-content { font-size:15.5px; line-height:1.75; }
    body.single-post .ast-article-single .entry-content h2,
    body.single-post .entry-content h2.wp-block-heading { font-size:19px !important; line-height:1.36 !important; }
    body.single-post .ast-article-single .entry-content h3,
    body.single-post .entry-content h3.wp-block-heading { font-size:17px !important; line-height:1.4 !important; }
    body.single-post .vn2-article-crumb { gap:6px; margin-bottom:16px; font-size:11px; }
    body.single-post .vn2-article-featured { border-radius:12px; margin:7px 0 21px; }
    body.single-post .vn2-related-top { align-items:flex-start; }
    body.single-post .vn2-related-grid { grid-template-columns:1fr; gap:11px; }
    body.single-post .vn2-related h2 { font-size:19px!important; }
    body.single-post .vn2-related-thumb { flex-basis:94px; max-width:94px; }
}
@media(max-width:370px) {
    body.single-post .vn2-related-top { display:block; }
    body.single-post .vn2-related-more { display:inline-block; margin-top:8px; }
    body.single-post .vn2-related-item-title { font-size:13px; }
}
@media print {
    body.single-post .vn2-related {display:none!important;}
    body.single-post .ast-article-single {border:0;box-shadow:none;}
    body.single-post .vn2-article-featured {box-shadow:none;}
}
