/* Diario Económico · native study modules. Every selector is namespaced so
 * the magazine theme keeps control of the article shell and reading tools. */
.article-copy .table-wrap{max-width:100%;width:100%;min-width:0;overflow-x:auto}
.de-study-root{--de-study-paper:var(--paper,#f7f5f0);--de-study-ink:var(--ink,#202322);--de-study-muted:var(--muted,#65665e);--de-study-wine:var(--wine,#712c3b);--de-study-rule:var(--rule,#cec9bc);--de-study-green:#4e655f;color:var(--de-study-ink);margin-top:44px;border-top:3px double var(--de-study-ink);font-family:var(--sans,Arial,sans-serif)}
.de-study-root *{box-sizing:border-box}
.de-study-root h2,.de-study-root h3{font-family:var(--serif,Georgia,serif);font-weight:550;line-height:1.16;letter-spacing:-.02em}
.de-study-root h2{font-size:clamp(28px,3.2vw,38px);margin:0 0 18px;padding-top:20px}
.de-study-root h3{font-size:clamp(23px,2.7vw,30px);margin:0 0 15px}
.de-study-root p{margin:0 0 16px}
.de-study-root a{color:var(--de-study-wine);text-underline-offset:3px}
.de-study-root button,.de-study-root input,.de-study-root select{font:inherit;border-radius:0}
.de-study-root button{min-height:42px;border:1px solid var(--de-study-rule);background:transparent;color:var(--de-study-ink);padding:9px 13px;cursor:pointer}
.de-study-root button:hover,.de-study-root button:focus-visible{border-color:var(--de-study-wine);color:var(--de-study-wine)}
.de-study-root button:focus-visible,.de-study-root a:focus-visible,.de-study-root input:focus-visible,.de-study-root select:focus-visible{outline:3px solid var(--de-study-wine);outline-offset:3px}
.de-study-root table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.5}
.de-study-root caption{text-align:left;padding:13px 14px;font-weight:600;color:var(--de-study-ink)}
.de-study-root th,.de-study-root td{padding:12px 14px;border-bottom:1px solid var(--de-study-rule);vertical-align:top;text-align:left;overflow-wrap:anywhere}
.de-study-root th{background:#ece8df;font-weight:600}
.de-study-root tbody tr:last-child th,.de-study-root tbody tr:last-child td{border-bottom:0}
.de-study-eyebrow{font-size:10px!important;line-height:1.3!important;font-weight:600;text-transform:uppercase;letter-spacing:.14em;color:var(--de-study-wine);margin-bottom:12px!important}
.de-study-intro{font-size:15px;color:var(--de-study-muted);max-width:740px}
.de-study-takeaways{padding:24px 0 22px;border-bottom:1px solid var(--de-study-rule)}
.de-study-takeaways h2{font-size:27px;padding-top:0}
.de-study-takeaways ul{margin:0;padding-left:22px;font-family:var(--serif,Georgia,serif);font-size:18px;line-height:1.5}
.de-study-takeaways li{margin:0 0 9px}
.de-study-charts,.de-study-tools-section,.de-study-sources,.de-study-method{margin-top:38px}
.de-study-chart{margin:25px 0;padding:23px;background:#fffdf8;border:1px solid var(--de-study-rule)}
.de-study-chart h3{margin-bottom:15px}
.de-study-chart-scroll{overflow-x:auto;max-width:100%;padding:2px 0}
.de-study-chart-svg{display:block;min-width:640px;width:100%;height:auto;font-family:var(--sans,Arial,sans-serif)}
.de-study-chart-legend{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0 0 15px;font-size:12px;color:var(--de-study-muted)}
.de-study-chart-legend span{display:inline-flex;align-items:center;gap:6px}
.de-study-chart-legend i{display:inline-block;width:10px;height:10px}
.de-study-chart figcaption{font-size:12px;line-height:1.55;color:var(--de-study-muted);margin-top:12px}
.de-study-chart-note,.de-study-chart-sources{font-size:12px;line-height:1.55;color:var(--de-study-muted);margin-top:12px!important}
.de-study-chart-controls{display:flex;align-items:flex-start;gap:16px;margin-top:16px;font-size:12px}
.de-study-chart-controls details{flex:1;min-width:0}
.de-study-chart-controls summary{cursor:pointer;padding:11px 0}
.de-study-chart-table{overflow-x:auto;max-width:100%}
.de-study-chart-data,.de-study-data{display:none!important}
.de-study-tools-section{padding-top:2px}
.de-study-tools .study-tool{border:1px solid #bfb8a8;background:#ede9df;padding:25px;margin:24px 0}
.de-study-tools .study-tool h2{font-size:28px;padding:0;margin:0 0 15px}
.de-study-tools .tool-intro{font-size:14px;line-height:1.55;color:var(--de-study-muted)}
.de-study-tools .field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 22px}
.de-study-tools .field{display:grid;gap:7px;font-size:12px;font-weight:600;min-width:0}
.de-study-tools input,.de-study-tools select{width:100%;min-height:44px;border:1px solid #a9a699;background:#fffdf9;padding:9px;color:var(--de-study-ink)}
.de-study-tools .tool-controls{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}
.de-study-tools .primary{background:var(--de-study-wine);border-color:var(--de-study-wine);color:#fff}
.de-study-tools .primary:hover,.de-study-tools .primary:focus-visible{background:#5a2330;border-color:#5a2330;color:#fff}
.de-study-tools .result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
.de-study-tools .result-grid>div{border-top:1px solid #c6bdad;padding-top:13px}
.de-study-tools .result-grid dt{font-size:12px;line-height:1.5}
.de-study-tools .result-grid dd{margin:7px 0 0;font:550 29px/1.1 var(--serif,Georgia,serif);overflow-wrap:anywhere;color:var(--de-study-wine)}
.de-study-tools .tool-visual{margin-top:24px}
.de-study-tools .visual-row{display:grid;gap:5px;margin:13px 0;font-size:11px}
.de-study-tools .visual-bar{display:block;min-height:8px;background:var(--de-study-wine);transition:width .25s}
.de-study-tools .visual-bar.negative{background:var(--de-study-green)}
.de-study-tools .scenario-chart{margin-top:25px}
.de-study-tools .scenario-chart svg{display:block;max-width:100%;height:auto}
.de-study-tools .scenario-table{margin-top:14px}
.de-study-tools .scenario-table .chart-table{overflow-x:auto}
.de-study-tools .method-note,.de-study-tools .check-result{font-size:12px;line-height:1.6;color:var(--de-study-muted);margin-top:20px}
.de-study-tools .error{color:#8a152b;font-size:14px}
.de-study-tools .checklist{border:0;padding:0;margin:0}
.de-study-tools .checklist legend{font-size:13px;margin-bottom:16px;font-weight:600}
.de-study-tools .check-item{display:flex;align-items:center;gap:12px;font-size:14px;margin:12px 0}
.de-study-tools .check-item input{width:20px;min-height:20px;flex:0 0 20px;accent-color:var(--de-study-wine)}
.de-study-sources{padding-top:2px}
.de-study-source-table-wrap{overflow-x:auto;max-width:100%;border:1px solid var(--de-study-rule)}
.de-study-sources table{min-width:680px}
.de-study-sources th:first-child{min-width:210px}
.de-study-sources a{display:block;font-weight:600}
.de-study-source-org{display:block;font-size:11px;color:var(--de-study-muted);font-weight:400;margin-top:6px}
.de-study-method{background:#ece8df;padding:0 22px 20px;margin-bottom:20px}
.de-study-method h2{padding-top:20px}
.de-study-method h3{font-size:22px;margin:22px 0 10px}
.de-study-method ul{padding-left:21px;margin:0}
.de-study-method li{margin-bottom:8px}
.de-study-library{--de-study-paper:var(--paper,#f7f5f0);--de-study-ink:var(--ink,#202322);--de-study-muted:var(--muted,#65665e);--de-study-wine:var(--wine,#712c3b);--de-study-rule:var(--rule,#cec9bc);color:var(--de-study-ink);font-family:var(--sans,Arial,sans-serif)}
.de-study-library *{box-sizing:border-box}
.de-study-library h1,.de-study-library h2{font-family:var(--serif,Georgia,serif);font-weight:550;line-height:1.12;letter-spacing:-.02em}
.de-study-library h1{font-size:clamp(38px,6vw,72px);margin:0 0 16px;max-width:780px}
.de-study-library h2{font-size:clamp(25px,3vw,36px);margin:0 0 13px}
.de-study-library a{color:var(--de-study-wine);text-underline-offset:3px}
.de-study-library a:focus-visible,.de-study-library input:focus-visible,.de-study-library select:focus-visible{outline:3px solid var(--de-study-wine);outline-offset:3px}
.de-study-library-header{padding:30px 0 28px;border-bottom:3px double var(--de-study-ink)}
.de-study-library-intro{font-size:18px;line-height:1.55;color:var(--de-study-muted);max-width:660px;margin:0}
.de-study-library-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(190px,1fr);gap:18px 24px;padding:24px 0;border-bottom:1px solid var(--de-study-rule)}
.de-study-library-filters label{display:grid;gap:7px;font-size:12px;font-weight:600}
.de-study-library-filters input,.de-study-library-filters select{width:100%;min-height:45px;border:1px solid #a9a699;background:#fffdf9;padding:9px;color:var(--de-study-ink);font:inherit;border-radius:0}
.de-study-library-count{font-size:12px;color:var(--de-study-muted);margin:16px 0}
.de-study-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px;border-top:1px solid var(--de-study-rule)}
.de-study-library-card{padding:24px 0 27px;border-bottom:1px solid var(--de-study-rule);min-width:0}
.de-study-library-card--featured{grid-column:span 2;padding-right:30px}
.de-study-library-card p{line-height:1.55;margin:0 0 13px}
.de-study-library-card h2 a{color:inherit;text-decoration:none}
.de-study-library-card h2 a:hover,.de-study-library-card h2 a:focus-visible{color:var(--de-study-wine);text-decoration:underline}
.de-study-library-card-link{font-size:12px;font-weight:600;margin-top:22px!important}
.de-study-library-empty{padding:26px 0;color:var(--de-study-muted)}
.de-study-library-image{display:block;margin-bottom:22px;overflow:hidden}
.de-study-library-image img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.de-study-library-page{font-family:var(--sans,Arial,sans-serif);padding-bottom:45px}
.de-study-library-page>p{max-width:760px;font-size:18px;line-height:1.65;margin-bottom:35px}
.de-study-library-header>h2{font:550 clamp(35px,4vw,54px)/1.12 var(--serif,Georgia,serif);margin:0 0 18px;letter-spacing:-.035em}
@media(max-width:900px){
 .de-study-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .de-study-library-card--featured{grid-column:span 2;padding-right:0}
}
@media(max-width:700px){
 .de-study-root{margin-top:32px}
 .de-study-root h2{font-size:30px}
 .de-study-chart{padding:17px 12px}
 .de-study-chart-controls{display:block}
 .de-study-chart-controls button{font-size:12px;margin-bottom:8px}
 .de-study-tools .study-tool{padding:20px 16px}
 .de-study-tools .field-grid,.de-study-tools .result-grid{grid-template-columns:1fr}
 .de-study-tools .result-grid dd{font-size:30px}
 .de-study-sources table{font-size:12px}
 .de-study-method{padding-left:16px;padding-right:16px}
 .de-study-library h1{font-size:42px}
 .de-study-library-filters{grid-template-columns:1fr}
 .de-study-library-grid{grid-template-columns:1fr}
 .de-study-library-card--featured{grid-column:auto;padding-right:0}
}
@media print{
 .de-study-root{border-top:2px solid #000}
 .de-study-chart-controls,.de-study-tools .tool-controls{display:none!important}
 .de-study-chart,.de-study-tools .study-tool,.de-study-method{break-inside:avoid}
 .de-study-chart-svg{min-width:0}
}
