/* Noticias: lectura sobre papel, con la identidad del sitio público. */
.page-noticia .main {
    width: min(1180px, calc(100% - 2 * var(--site-gutter)));
    margin: 0 auto;
    padding-bottom: 56px;
    min-height: 65vh;
}
.page-noticia .nav-link[data-section="noticias"]::after { width: 100%; }
.page-noticia .nav-link[data-section="noticias"] small { font-weight: 700; }
.news-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 0; font-size: 12px; color: var(--muted); }
.news-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.news-breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.news-breadcrumb > span[aria-hidden] { color: var(--line); }
.news-article {
    display: grid;
    grid-template-columns: 260px minmax(0, 760px);
    grid-template-areas: "cover heading" "cover reading";
    column-gap: 64px;
    align-items: start;
    background: rgba(255,255,255,.96);
}
.news-heading { grid-area: heading; min-width: 0; }
.news-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; font-size: 11px; color: var(--muted); }
.news-category { display: inline-block; padding: 5px 10px; color: var(--ink); background: var(--primary-color); font-weight: 600; }
.news-featured { display: inline-flex; align-items: center; gap: 5px; }
.news-featured i { font-size: 10px; }
.news-eyebrow [lang] { letter-spacing: 2px; }
.news-title { font-size: clamp(30px, 3.3vw, 44px); font-weight: 700; line-height: 1.16; letter-spacing: -1.3px; overflow-wrap: anywhere; text-wrap: balance; }
.news-metadata { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.news-metadata > span { display: inline-flex; align-items: center; gap: 7px; }
.news-metadata i { font-size: 11px; }
.news-intro { margin-top: 24px; font-size: 18px; line-height: 1.75; color: var(--muted); overflow-wrap: anywhere; }
.news-cover { grid-area: cover; margin: 0; min-width: 0; }
.news-cover img { width: 100%; height: auto; max-height: 540px; object-fit: contain; object-position: top; }
.news-cover-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; aspect-ratio: 2 / 3; background: #f5f4f0; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.news-cover-placeholder i { font-size: 32px; }
.news-reading { grid-area: reading; min-width: 0; padding-top: 24px; }
.news-body { color: #454440; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.news-body :is(p, ul, ol, blockquote, table, figure, pre) { margin: 0 0 22px; }
.news-body > :last-child, .news-body .contenido_noticia_generada > :last-child { margin-bottom: 0; }
.news-body > p:first-child, .news-body .contenido_noticia_generada > p:first-child { font-size: 18px; line-height: 1.75; color: var(--ink); }
.news-body :is(h2, h3, h4) { color: var(--ink); margin: 32px 0 14px; font-weight: 600; line-height: 1.35; letter-spacing: -.4px; }
.news-body h2 { font-size: 25px; }
.news-body h3 { font-size: 21px; }
.news-body h4 { font-size: 18px; }
.news-body strong { color: var(--ink); font-weight: 600; }
.news-body :is(ul, ol) { padding-left: 24px; }
.news-body li { margin: 6px 0; padding-left: 3px; }
.news-body li::marker { color: var(--muted); }
.news-body a { color: var(--ink); text-decoration-thickness: 1px; text-decoration-color: var(--primary-color); text-underline-offset: 4px; }
.news-body a:hover { text-decoration-color: var(--ink); }
.news-body img { max-width: 100%; height: auto; margin: 24px auto; }
.news-body :is(iframe, video) { max-width: 100%; }
.news-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.news-body blockquote { padding: 4px 0 4px 24px; border-left: 3px solid var(--primary-color); color: var(--muted); }
.news-body blockquote p:last-child { margin-bottom: 0; }
.news-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.news-body :is(th, td) { padding: 12px; border: 1px solid var(--line); text-align: left; }
.news-body pre { max-width: 100%; overflow-x: auto; padding: 16px; background: #f5f4f0; font-size: 13px; }
/* Las noticias generadas usan la misma tipografía, sin cargar sus marcos viejos. */
.news-body .contenido_noticia_generada { min-width: 0; }
.news-body .contenido_noticia_generada ul { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.news-body .contenido_noticia_generada li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-share { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.news-share-label { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 600; }
.news-share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.news-share-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-size: 12px; font-weight: 500; text-decoration: none; transition: background .2s, border-color .2s; }
.news-share-link i { font-size: 15px; }
.news-share-link:hover { background: #f5f4f0; border-color: var(--ink); }
.news-copy { background: var(--primary-color); border-color: var(--primary-color); font-weight: 600; }
.news-copy:hover { border-color: var(--ink); background: var(--primary-color); }
.news-share-link:disabled { cursor: wait; }
.news-share-status { display: block; font-size: 12px; margin-top: 10px; }
.news-share-status:empty { display: none; }
.news-manual-copy { margin-top: 16px; }
.news-manual-copy label { display: block; font-size: 12px; margin-bottom: 8px; }
.news-manual-copy input { width: 100%; min-width: 0; padding: 12px; font: inherit; font-size: 16px; color: var(--ink); border: 1px solid var(--line); background: var(--paper); }
.news-manual-copy input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.news-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 16px; font-size: 12px; text-decoration: none; color: var(--muted); }
.news-back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.news-related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink); background: rgba(255,255,255,.96); }
.news-related-heading { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.news-related-heading::before { content: ''; position: absolute; left: 0; top: -25px; width: 48px; height: 3px; background: var(--primary-color); }
.news-related-heading h2 { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -.6px; }
.news-related-heading > a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex-shrink: 0; font-size: 12px; text-decoration: none; }
.news-related-heading > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.news-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.news-related-card { min-width: 0; border-bottom: 1px solid var(--line); }
.news-related-link { display: flex; flex-direction: column; height: 100%; padding-bottom: 20px; text-decoration: none; }
.news-related-image { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: #f5f4f0; overflow: hidden; color: var(--muted); }
.news-related-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.news-related-image > i { font-size: 28px; }
.news-related-copy { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; flex: 1; }
.news-related-category { font-size: 10px; font-weight: 600; color: var(--muted); }
.news-related-copy h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.4px; overflow-wrap: anywhere; }
.news-related-link:hover h3 { text-decoration: underline; text-decoration-color: var(--primary-color); text-underline-offset: 4px; }
.news-related-copy p { font-size: 13px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.news-related-copy time { margin-top: auto; padding-top: 6px; font-size: 11px; color: var(--muted); }
@media (max-width: 1000px) {
    .news-article { grid-template-columns: 220px minmax(0, 1fr); column-gap: 36px; }
    .news-title { font-size: 36px; }
    .news-related-grid { gap: 24px; }
}
@media (max-width: 700px) {
    .news-article { grid-template-columns: 1fr; grid-template-areas: "heading" "cover" "reading"; gap: 24px; }
    .news-cover { width: min(240px, 100%); justify-self: center; }
    .news-cover img { max-height: 380px; }
    .news-reading { padding-top: 0; }
    .news-title { font-size: 32px; letter-spacing: -.8px; }
    .news-metadata { padding-bottom: 18px; margin-top: 16px; }
    .news-related-grid { grid-template-columns: 1fr; }
    .news-related-link { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 18px; }
    .news-related-image { aspect-ratio: 2 / 3; align-self: start; }
    .news-related-copy { padding-top: 0; }
    .news-related-copy h3 { font-size: 17px; }
}
@media (max-width: 420px) {
    .news-breadcrumb { padding: 10px 0 18px; }
    .news-eyebrow { margin-bottom: 14px; }
    .news-title { font-size: 30px; }
    .news-share-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-related { margin-top: 36px; }
    .news-related-heading h2 { font-size: 21px; }
    .news-related-heading > a { font-size: 11px; gap: 6px; }
    .news-related-link { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
}
