/* Tu Dinero con Criterio — article page: header, photo, text, key figure, comparison tables,
 * pull quote, poll, sharing, author and sources. */

.article-header { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-size: 14px; font-weight: 500; color: var(--ink-muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.back-link svg { width: 18px; height: 18px; }
.article-title { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.05; letter-spacing: -0.04em; }
.article-standfirst { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.5; color: var(--ink-soft); }
.article-meta a { color: var(--ink); font-weight: 500; text-decoration: none; }
.article-meta a:hover { text-decoration: underline; }

.article-hero { margin: 0 auto 2.5rem; max-width: 1088px; padding-inline: var(--gutter); }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--brand-tint); }
.article-hero figcaption { margin-top: .6rem; font-size: 13px; color: var(--ink-muted); }
.article-hero figcaption a { color: inherit; }

/* ------------------------------------------------------------- key figure */
.cifra { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin-bottom: 2.25rem; display: flex; flex-direction: column; gap: .5rem; }
.cifra__label { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.cifra__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 2.9rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cifra--gana .cifra__value { color: var(--gain); }
.cifra--pierde .cifra__value { color: var(--loss); }
.cifra__context { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.cifra__source { font-size: 13px; color: var(--ink-muted); }

/* ------------------------------------------------------------------- text */
.prose { font-size: 18px; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.75rem); line-height: 1.15; letter-spacing: -0.03em; margin-top: 2.75rem; }
.prose h3 { font-size: 1.25rem; line-height: 1.25; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .5rem; }
.prose strong { font-weight: 600; }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 3px solid var(--line-strong); color: var(--ink-soft); }
.prose table:not(.comparativa table) { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose table:not(.comparativa table) th, .prose table:not(.comparativa table) td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
sup.note { font-size: .62em; font-weight: 600; color: var(--brand); margin-left: 1px; }

/* ------------------------------------------------------- comparison table */
.comparativa { margin: 2.25rem 0; }
.comparativa__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comparativa table { width: 100%; min-width: 460px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.comparativa caption { caption-side: top; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); padding: 1rem 1rem .75rem; }
.comparativa th, .comparativa td { padding: .75rem 1rem; text-align: right; border-bottom: 1px solid var(--line); }
.comparativa th:first-child { text-align: left; font-weight: 400; color: var(--ink-soft); }
.comparativa thead th { background: var(--surface-sunken); font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.comparativa tbody tr:last-child > * { border-bottom: 0; }
.comparativa tfoot > tr > * { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 600; color: var(--ink); }
.comparativa .is-best { background: var(--brand-tint); color: var(--brand-strong); font-weight: 600; }
.comparativa figcaption { margin-top: .6rem; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.comparativa figcaption strong { color: var(--ink-soft); }

/* ------------------------------------------------------------- pull quote */
.pull-quote { margin: 2.75rem 0; padding: 1.75rem 0; border-block: 1px solid var(--line); }
.pull-quote blockquote { margin: 0; padding: 0; border: 0; }
.pull-quote p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.25; letter-spacing: -0.03em; color: var(--ink); }
.pull-quote__share { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; font-size: 13px; color: var(--ink-muted); }
.icon-share { width: 36px; height: 36px; border-radius: var(--pill); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.icon-share:hover { border-color: var(--ink); color: var(--ink); }
.icon-share svg { width: 16px; height: 16px; }
.icon-share--wa { background: var(--brand); border-color: var(--brand); color: #fff; }
.icon-share--wa:hover { background: var(--brand-strong); color: #fff; }

/* ------------------------------------------------------- disclaimer, author */
.disclaimer { margin-top: 2.5rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface-sunken); font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.article-header + .article-hero + .container-narrow .author-box, .container-narrow > .author-box { margin-top: 1.5rem; }

/* ------------------------------------------------------------------- poll */
.poll { margin-top: 3rem; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--brand-tint); display: flex; flex-direction: column; gap: .9rem; }
.poll__question { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.025em; }
.poll__options { display: flex; flex-wrap: wrap; gap: .6rem; }
.poll__option { font-family: var(--font-display); font-weight: 500; font-size: 15px; padding: .7rem 1.4rem; border-radius: var(--pill); border: 1px solid var(--brand); background: var(--surface); color: var(--brand-strong); cursor: pointer; }
.poll__option:hover { background: var(--brand); color: #fff; }
.poll__results { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.poll__results li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: .75rem; align-items: center; font-size: 15px; }
.poll__results li.is-mine .poll__label { font-weight: 600; }
.poll__bar { height: 10px; border-radius: var(--pill); background: var(--surface); overflow: hidden; }
.poll__bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .6s var(--ease); }
.poll__pct { font-variant-numeric: tabular-nums; font-weight: 600; }
.poll__status { font-size: 14px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ share */
.share { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.share__title { font-size: 1.35rem; letter-spacing: -0.025em; }
.share__lead { color: var(--ink-soft); font-size: 16px; }
.share__main { display: flex; flex-wrap: wrap; gap: .6rem; }
.share__wa svg, .share__native svg { width: 18px; height: 18px; }
.share__more { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.share__more a, .share__more button { display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-size: 14px; color: var(--ink-soft); text-decoration: none; background: none; border: 0; padding: .3rem 0; cursor: pointer; }
.share__more a:hover, .share__more button:hover { color: var(--ink); }
.share__more svg { width: 16px; height: 16px; }

/* --------------------------------------------------------- related, sources */
.related { padding-bottom: 2rem; }
.sources { padding-block: 1rem var(--section-gap); }
.sources h2 { font-size: 1.15rem; margin-bottom: .4rem; }
.sources__lead { font-size: 14px; color: var(--ink-muted); margin-bottom: 1rem; }
.sources ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: .45rem; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.sources a { color: var(--ink-soft); }
