:root {
  color-scheme: light;
  --ink: #172d3b;
  --navy: #142a39;
  --muted: #53646c;
  --paper: #f7f7f2;
  --white: #fff;
  --line: #dce3dd;
  --green: #5c806c;
  --sage: #dce9df;
  --sage-dark: #284e3d;
  --red: #8d473c;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Avenir Next', Avenir, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--sans); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #527b65; outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.14; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.65rem); }
h3 { font-size: 1.16rem; font-weight: 650; letter-spacing: -.025em; }
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.top { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.top-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmarks { display: flex; align-items: center; gap: .85rem; font-size: .83rem; font-weight: 800; letter-spacing: .15em; white-space: nowrap; }
.wordmark-rule { width: 1px; height: 24px; background: #b6c6bb; }
.wordmarks span:last-child { color: var(--sage-dark); }
nav { display: flex; gap: 1.6rem; color: var(--muted); font-size: .92rem; font-weight: 600; }
nav a { padding-block: .35rem; }
nav a:hover { color: var(--sage-dark); text-decoration: underline; text-underline-offset: .3rem; }
.button { border: 0; border-radius: 8px; padding: .7rem 1rem; font-weight: 650; white-space: nowrap; }
.primary { background: var(--navy); color: var(--white); }
.primary:hover { background: var(--sage-dark); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 2; padding: .6rem; background: #fff; }
.skip:focus { top: 8px; }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; margin-block: 32px 38px; padding: clamp(1.6rem, 4vw, 3.5rem); border-radius: 22px; background: radial-gradient(ellipse at 0% 100%, #264a45 0%, transparent 60%), var(--navy); }
.intro { color: white; }
.eyebrow { color: var(--sage-dark); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 750; }
.intro .eyebrow { color: #c1d9cb; }
.intro h1 { font-size: clamp(2rem, 3.55vw, 3.375rem); letter-spacing: -.045em; margin-bottom: .95rem; }
.intro > p:last-child { color: #dce9e6; max-width: 33rem; font-size: 1.03rem; }
.setup { min-width: 0; padding: 1.2rem 1.3rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.setup-heading, .setup-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .75rem; align-items: center; }
.setup-heading { margin-bottom: .85rem; }
.setup-heading h2 { font: 680 1.15rem/1.2 var(--sans); letter-spacing: -.02em; }
.setup-foot { margin-top: .85rem; }
#data-status { color: var(--sage-dark); font-size: .8rem; font-weight: 650; }
.text-button { border: 0; background: transparent; padding: .2rem 0; color: var(--sage-dark); font-size: .81rem; font-weight: 690; text-decoration: underline; text-underline-offset: .2rem; }
.fields { display: grid; gap: .85rem 1rem; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.setup > .field { margin-bottom: .85rem; }
.field { display: flex; flex-direction: column; gap: .32rem; min-width: 0; font-size: .88rem; font-weight: 650; }
.field small { color: var(--muted); font-weight: 500; font-size: .77rem; line-height: 1.35; }
.field > input, .input-box { width: 100%; min-width: 0; border: 1px solid #cbd6ce; background: #fafcf9; border-radius: 8px; }
.field > input { padding: .53rem .65rem; font-size: 1rem; font-weight: 550; }
.input-box { display: flex; align-items: center; }
.input-box input { border: 0; border-radius: 8px; background: transparent; flex: 1 1 0; width: 0; min-width: 0; padding: .53rem .65rem; font-size: 1rem; font-variant-numeric: tabular-nums; }
.input-box input::-webkit-outer-spin-button, .input-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-box input[type=number] { appearance: textfield; }
.input-box span { padding-right: .62rem; color: var(--muted); text-align: right; font-weight: 550; font-size: .75rem; max-width: 58%; line-height: 1.1; }
.input-box:has(input[aria-invalid=true]) { border-color: #a34637; background: #fff5f3; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.section-heading .eyebrow, .method-heading .eyebrow { margin-bottom: .4rem; }
.scenario-picker { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: .25rem; border: 1px solid var(--line); border-radius: 10px; background: #ecf0eb; }
.scenario-picker label { position: relative; cursor: pointer; }
.scenario-picker input { opacity: 0; position: absolute; width: 1px; height: 1px; }
.scenario-picker span { display: block; border-radius: 7px; padding: .47rem .75rem; color: var(--muted); font-weight: 680; font-size: .87rem; }
.scenario-picker input:checked + span { background: var(--white); color: var(--navy); box-shadow: 0 1px 3px #172d3b21; }
.scenario-picker input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.scenario-context { font-size: .91rem; color: var(--muted); margin-bottom: .85rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-bottom: .85rem; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 13px; padding: 1rem 1.12rem; display: flex; flex-direction: column; justify-content: space-between; align-items: baseline; min-width: 0; }
.kpi > span { font-weight: 650; font-size: .9rem; }
.kpi strong { display: block; margin-block: .3rem; font: 400 clamp(1.75rem, 3vw, 2.58rem)/1.05 var(--serif); letter-spacing: -.045em; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.kpi small { color: var(--muted); font-size: .79rem; line-height: 1.35; }
.kpi.highlight { background: var(--sage); border-color: #cdded0; color: #153a2a; }
.kpi.theoretical { background: #edf1f2; border-color: #dce5e8; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.card { min-width: 0; padding: 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
.muted { color: var(--muted); font-size: .93rem; margin-top: .35rem; }
.breakdown { margin-top: .72rem; }
.breakdown dl > div { display: flex; gap: .6rem; justify-content: space-between; align-items: baseline; padding: .35rem 0; border-bottom: 1px solid #e8ede9; font-size: .91rem; }
.breakdown dd { font-variant-numeric: tabular-nums; font-weight: 670; white-space: nowrap; }
.breakdown dl > div.total { border: 0; padding: .56rem .62rem; margin-top: .4rem; background: #eaf2eb; border-radius: 6px; font-weight: 680; }
.chart { margin-top: .8rem; }
.chart-figure h4 { margin-bottom: .65rem; font-size: .9rem; }
.bar-row + .bar-row { margin-top: .68rem; }
.bar-label { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; font-size: .86rem; margin-bottom: .23rem; }
.bar-label strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.active-row .bar-label { color: var(--sage-dark); font-weight: 680; }
.bar-track { position: relative; height: .58rem; background: #eaf0eb; border-radius: 1rem; }
.bar { position: absolute; top: 0; height: 100%; border-radius: inherit; background: #6b927a; }
.bar.neutral { background: #a3b5ac; }
.bar.selected { background: #406e54; }
.bar.negative { background: #af675a; }
.bar.navy { background: #35586a; }
.axis { position: absolute; top: -2px; bottom: -2px; width: 1px; background: #52615a; }
.chart-note { margin-top: 1.1rem; font-size: .86rem; color: var(--sage-dark); }

#calculadoras { margin-top: 2.25rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .32rem; margin-block: .8rem .75rem; }
.tabs button { border: 1px solid #d6dfd7; border-radius: 8px; background: var(--white); padding: .52rem .85rem; font-size: .88rem; font-weight: 630; }
.tabs button:hover { border-color: #7d9f8b; }
.tabs button[aria-selected=true] { background: var(--navy); border-color: var(--navy); color: white; }
.module { display: grid; grid-template-columns: 1fr 1fr; padding: 1.45rem; gap: 1.55rem; }
.module h3 { margin-top: .32rem; font: 400 1.85rem/1.15 var(--serif); }
.module-fields { margin-block: 1rem; }
details { border-top: 1px solid var(--line); padding-top: .65rem; font-size: .9rem; }
summary { cursor: pointer; font-weight: 650; color: var(--sage-dark); }
details p { margin-top: .5rem; }
.module-result { border-radius: 10px; padding: 1rem; background: #f0f5f0; }
.module-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem 1rem; margin: .65rem 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid #cfdcd0; }
.module-metrics > div:first-child { grid-column: 1 / -1; }
.module-metrics dt { font-size: .86rem; color: var(--muted); }
.module-metrics dd { font: 400 1.45rem/1.16 var(--serif); margin-top: .14rem; overflow-wrap: anywhere; }
.module-metrics > div:first-child dd { font-size: 2.35rem; letter-spacing: -.04em; }
.invalid-note { color: var(--red); font-weight: 640; font-size: .88rem; margin-top: .6rem; }

.methodology { margin-top: 2.25rem; }
.method-heading > p:last-child { color: var(--muted); margin-top: .4rem; }
.method-body { display: grid; grid-template-columns: 2fr 1fr; gap: 1.45rem; align-items: start; margin-top: 1rem; }
#method-text ul { margin: 0; padding-left: 1.25rem; font-size: .91rem; }
#method-text li + li { margin-top: .55rem; }
.adjustment { background: #edf4ee; border-radius: 8px; padding: .95rem; }
.adjustment p { margin: .45rem 0 .75rem; font-size: .9rem; }
.status-line { font-size: .9rem; color: var(--sage-dark); margin-block: .8rem; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .8rem; padding-block: .9rem 1.4rem; color: var(--muted); font-size: .8rem; }
#report { display: none; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 44px); }
  .hero { gap: 1.3rem; }
  nav { gap: .8rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 30px); }
  .top-inner { flex-wrap: wrap; min-height: auto; padding-block: .65rem; gap: .45rem .6rem; }
  .wordmarks { font-size: .72rem; gap: .52rem; letter-spacing: .09em; }
  nav { order: 1; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .26rem; }
  .button { padding: .48rem .6rem; font-size: .88rem; }
  .hero { grid-template-columns: 1fr; margin-block: 18px 26px; padding: 1.14rem; border-radius: 14px; }
  .intro > p:last-child { font-size: .96rem; }
  .section-heading { display: grid; align-items: start; gap: .65rem; }
  .scenario-picker { justify-self: start; }
  .dashboard-grid, .module, .method-body { grid-template-columns: 1fr; }
  .card, .setup, .kpi { padding: .9rem; }
  .module { gap: .95rem; }
}
@media (max-width: 375px) {
  .fields.two { grid-template-columns: 1fr; }
  .scenario-picker span { padding-inline: .48rem; }
}
@page { size: A4; margin: 13mm; }
@media print {
  body { background: white; font-size: 9.5pt; line-height: 1.32; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body > :not(#report) { display: none !important; }
  #report { display: block; }
  .report-head { padding: 7mm; border-radius: 3mm; color: #fff; background: var(--navy); margin-bottom: 5mm; overflow-wrap: anywhere; }
  .report-head .eyebrow { color: #cce2d4; }
  .report-head h1 { font-size: 28pt; margin-block: 2mm 3mm; }
  .report-hotel { font-size: 15pt; font-weight: 650; }
  .print-demo { color: #dbe8e0; margin-top: 2mm; }
  #report h2 { font-size: 17pt; margin-block: 3.5mm 1.6mm; }
  #report h3 { font-size: 10.5pt; }
  #report .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2mm; }
  #report .kpi { padding: 2.5mm; border-radius: 2mm; }
  #report .kpi > span, #report .kpi small { font-size: 8.2pt; }
  #report .kpi strong { font-size: 16pt; }
  #report .breakdown { margin-block: 0 2mm; }
  #report .breakdown dl > div { font-size: 9.5pt; padding: 1.2mm; }
  #report table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
  #report th, #report td { padding: 1.6mm 1.7mm; text-align: right; border-bottom: 1px solid var(--line); }
  #report th:first-child { text-align: left; }
  #report .chosen { background: #eaf2eb; }
  .report-footnote { border-top: 1px solid var(--line); margin-top: 6mm; padding-top: 2mm; color: var(--muted); font-size: 8pt; }
  .report-warnings { color: var(--red); margin-block: 1.5mm; padding-left: 5mm; }
  .report-detail { break-before: page; }
  .report-subtitle { margin-bottom: 2mm; overflow-wrap: anywhere; }
  .report-module { display: grid; grid-template-columns: 1.17fr 1fr; gap: 4mm; break-inside: avoid; border-top: 1px solid var(--line); padding-block: 2mm; }
  .report-inputs { font-size: 8.3pt; margin-top: 1mm; }
  .report-inputs > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1mm; }
  .report-inputs dd { text-align: right; }
  .report-metric { font-size: 8.3pt; margin-top: 1mm; }
  #report .chart-figure h4 { font-size: 8.5pt; margin-bottom: .6mm; }
  #report .bar-row + .bar-row { margin-top: .5mm; }
  #report .bar-label { font-size: 8pt; margin-bottom: 0; }
  #report .bar-track { height: 1.25mm; }
  .report-assumptions { font-size: 8.3pt; padding-left: 4mm; margin-block: 1mm 0; }
  .report-assumptions li + li { margin-top: .75mm; }
}
