/* Portadas */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- La portada (objeto impreso: igual en tema claro y oscuro) --- */
.cv-art { --cv-paper: #f7f4ee; --cv-ink: #14171c; --cv-rule: #d1342b; container-type: inline-size; position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 4px; background: #1b2230; box-shadow: 0 1px 2px rgba(10, 14, 22, .18), 0 10px 28px -12px rgba(10, 14, 22, .45); isolation: isolate; }
.cv-art.cv-yearly { --cv-rule: #b8892c; }
.cv-mast { position: absolute; z-index: 2; inset: 0 0 auto 0; height: 12.5%; display: flex; align-items: center; justify-content: space-between; gap: 4cqw; padding: 0 6cqw; background: var(--cv-paper); color: var(--cv-ink); border-bottom: 1.2cqw solid var(--cv-rule); }
.cv-mast .wordmark { font-size: 8.2cqw; letter-spacing: -.02em; }
.cv-mast .wm-a { color: var(--cv-ink); }
.cv-mast .wm-b { color: var(--cv-rule); }
.cv-art.cv-yearly .cv-mast .wm-b { color: #d1342b; }
.cv-mast .brand-logo { height: auto !important; max-height: 7.2cqw; max-width: 52cqw; }
.cv-mast .brand-logo.logo-dark { display: none !important; }
.cv-mast .brand-logo.logo-light, .cv-mast .brand-logo.logo-any, .cv-mast .brand-logo.logo-auto-invert { display: block !important; filter: none !important; }
.cv-date { font-size: 3.3cqw; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--cv-ink); }
.cv-pic { position: absolute; z-index: 0; inset: 12.5% 0 0 0; }
.cv-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.cv-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(120% 80% at 30% 20%, #2f4a7a 0%, #172238 55%, #0d1320 100%); }
.cv-yearly .cv-fallback { background: radial-gradient(120% 80% at 30% 20%, #6b4a1c 0%, #2a2014 55%, #120d08 100%); }
.cv-fallback span { font-size: 60cqw; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .08); font-stretch: 120%; }
.cv-cap { position: absolute; z-index: 1; inset: auto 0 0 0; padding: 22cqw 6cqw 6cqw; display: grid; gap: 1.6cqw; color: #fff; background: linear-gradient(to bottom, rgba(8, 10, 16, 0) 0%, rgba(8, 10, 16, .72) 45%, rgba(8, 10, 16, .9) 100%); }
.cv-cap-k { font-size: 3cqw; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffd9a8; }
.cv-cap strong { font-size: 7.4cqw; line-height: 1.04; font-weight: 800; font-stretch: 108%; letter-spacing: -.01em; text-wrap: balance; }

/* --- Catálogo tipo mural --- */
.cv-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cv-filters select { height: 36px; padding: 0 30px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background-color: var(--panel); color: var(--ink); font: inherit; font-size: 14px; }
.cv-grid { columns: 4 240px; column-gap: 20px; }
.cv-card { break-inside: avoid; display: block; margin: 0 0 20px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--panel); color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.cv-card:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-pop); }
.cv-card.is-yearly { border: 2px solid #b8892c; background: linear-gradient(var(--panel), var(--panel)) padding-box; }
.cv-card-body { padding: 12px 4px 4px; }
.cv-card h2 { font-size: 18px; line-height: 1.25; font-weight: 700; margin: 4px 0 6px; text-wrap: balance; }
.cv-card p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.cv-card-topics { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; list-style: none; }
.cv-card-topics li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.cv-card-topics li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.cv-kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.cv-card.is-yearly .cv-kicker { color: #a67a22; }
.cv-note { margin-top: 8px; font-size: 12.5px; color: var(--faint); }
.cv-empty { display: grid; justify-items: start; gap: 6px; }
.cv-empty svg { color: var(--faint); }

/* --- Edición --- */
.cv-admin-note { margin-bottom: 12px; padding: 10px 14px; border-radius: var(--r-item); background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; }
.cv-edition { max-width: 1120px; }
.cv-hero { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 36px; align-items: start; margin-bottom: 34px; }
.cv-hero-art { position: sticky; top: 84px; display: grid; gap: 10px; }
.cv-hero-dl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); justify-self: start; }
.cv-hero-dl:hover { color: var(--accent); }
.cv-hero-text h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; font-weight: 800; font-stretch: 108%; letter-spacing: -.015em; margin: 8px 0 14px; text-wrap: balance; }
.cv-lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.cv-basis { margin-top: 10px; font-size: 13px; color: var(--faint); }
.cv-index { margin: 22px 0; padding: 0; list-style: none; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.cv-index a { display: flex; gap: 12px; align-items: baseline; padding: 11px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.cv-index a:hover { color: var(--accent); }
.cv-index span { flex: none; font-size: 13px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; width: 18px; }
.cv-disclaimer { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-item); background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }
.cv-disclaimer svg { flex: none; margin-top: 2px; }

.cv-topic { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.cv-topic-head { display: flex; gap: 16px; align-items: flex-start; }
.cv-topic-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--on-navy); font-weight: 800; font-size: 17px; }
.cv-topic h2 { font-size: 24px; line-height: 1.2; font-weight: 750; text-wrap: balance; }
.cv-topic-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.cv-term { color: var(--ink-2); font-weight: 600; }
.cv-growth { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.cv-growth.is-down { color: var(--muted); }
.cv-flags { display: inline-flex; gap: 4px; }
.cv-flags img { border-radius: 2px; display: block; }
.cv-spark { color: var(--accent); }
.cv-why { margin: 14px 0 0 56px; font-size: 16px; line-height: 1.65; color: var(--ink); max-width: 72ch; }
.cv-sub { margin: 20px 0 10px 56px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.cv-scenarios { margin-left: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cv-sc { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-item); background: var(--panel); display: grid; gap: 8px; align-content: start; }
.cv-sc-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cv-sc-top strong { font-size: 15px; line-height: 1.3; }
.cv-pct { flex: none; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.cv-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cv-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.cv-sc:first-child .cv-bar i { background: var(--brand); }
.cv-sc p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cv-sc-sig { font-size: 12px; color: var(--faint); }
.cv-cite { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 2px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 2px; text-decoration: none; font-variant-numeric: tabular-nums; }
.cv-cite:hover { background: var(--accent); color: #fff; }

.cv-sources { margin: 18px 0 0 56px; }
.cv-sources summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); padding: 4px 0; width: max-content; }
.cv-sources ol { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 2px; }
.cv-sources li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 6px; border-radius: var(--r-ctl); scroll-margin-top: 90px; }
.cv-sources li:target { background: var(--accent-soft); }
.cv-src-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel-2); font-size: 11.5px; font-weight: 700; color: var(--muted); }
.cv-sources li > div > a { color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.4; }
.cv-sources li > div > a:hover { color: var(--accent); text-decoration: underline; }
.cv-src-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.cv-src-meta b { color: var(--ink-2); font-weight: 600; }
.cv-src-meta a { color: var(--accent); font-weight: 600; }

.cv-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 22px 0 8px; border-top: 1px solid var(--line); }
.cv-pager a:not(.cv-pager-all) { display: grid; gap: 2px; color: var(--ink); }
.cv-pager a span { font-size: 12.5px; color: var(--muted); }
.cv-pager a.is-next { text-align: right; }
.cv-pager-all { font-weight: 600; color: var(--accent); }

/* --- Bloque en el inicio --- */
.cv-home { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; padding: 18px; align-items: start; }
.cv-home-art { display: block; }
.cv-home-text h2 { font-size: 24px; line-height: 1.15; font-weight: 800; margin: 6px 0 8px; text-wrap: balance; }
.cv-home-text h2 a { color: var(--ink); }
.cv-home-text h2 a:hover { color: var(--accent); }
.cv-home-text > p { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 80ch; }
.cv-home-topics { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; counter-reset: cvt; }
.cv-home-topics li { counter-increment: cvt; }
.cv-home-topics a { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; color: var(--ink); }
.cv-home-topics a::before { content: counter(cvt); grid-row: span 2; font-weight: 800; color: var(--brand); font-size: 14px; }
.cv-home-topics strong { font-size: 14.5px; line-height: 1.3; }
.cv-home-topics span { font-size: 12.5px; color: var(--muted); }
.cv-home-topics a:hover strong { color: var(--accent); }
.cv-home-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1000px) {
    .cv-hero { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; }
    .cv-scenarios { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .cv-hero { grid-template-columns: 1fr; }
    .cv-hero-art { position: static; max-width: 340px; margin: 0 auto; width: 100%; }
    .cv-why, .cv-sub, .cv-scenarios, .cv-sources { margin-left: 0; }
    .cv-topic h2 { font-size: 20px; }
    .cv-grid { columns: 2 150px; column-gap: 12px; }
    .cv-card { padding: 8px; margin-bottom: 12px; }
    .cv-card h2 { font-size: 15.5px; }
    .cv-card p { font-size: 13px; }
    .cv-home { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 14px; }
    .cv-home-text h2 { font-size: 19px; }
    .cv-home-text > p { display: none; }
    .cv-home-topics { grid-template-columns: 1fr; }
    .cv-pager { grid-template-columns: 1fr 1fr; }
    .cv-pager-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { .cv-card { transition: none; } }
