:root {
  --ink: #102f34;
  --ink-2: #1e464b;
  --cream: #f4efe6;
  --paper: #fffdf8;
  --sand: #dfc49a;
  --terracotta: #e58913;
  --teal: #28737a;
  --mint: #b8d9ce;
  --gold: #d59b3f;
  --line: rgba(16, 47, 52, .16);
  --muted: #5b6b6d;
  --shadow: 0 20px 60px rgba(11, 43, 47, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; scroll-margin-top: 88px; }
.skip-link { position: fixed; left: 12px; top: -80px; background: white; padding: 10px 14px; z-index: 100; }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  min-height: 68px; padding: 10px max(20px, calc((100vw - 1180px)/2));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(244, 239, 230, .92); border-bottom: 1px solid rgba(16,47,52,.12);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; }
.brand b, .brand small { display: block; }
.brand b { font-size: 14px; letter-spacing: .01em; }
.brand small { color: var(--muted); font-size: 11px; }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 750; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--terracotta); }
.print-btn { border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.nav-toggle { display: none; border: 0; background: var(--ink); color: white; padding: 9px 13px; border-radius: 999px; }

.hero { min-height: 820px; height: min(96vh, 920px); position: relative; display: flex; align-items: end; overflow: hidden; background: var(--ink); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,36,41,.88) 0%, rgba(10,36,41,.48) 48%, rgba(10,36,41,.05) 78%), linear-gradient(0deg, rgba(10,36,41,.8) 0%, transparent 55%); }
.hero-content { position: relative; color: white; padding-bottom: 62px; }
.eyebrow { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .19em; font-size: 11px; font-weight: 850; color: #f0c27d; }
.eyebrow.dark { color: var(--terracotta); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h1 { max-width: 900px; font-size: clamp(50px, 8vw, 104px); line-height: .93; margin-bottom: 25px; }
h1 em { color: #f0c27d; font-style: italic; }
.hero-lead { max-width: 690px; font-size: clamp(17px, 2vw, 23px); line-height: 1.45; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 11px 18px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 850; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--terracotta); color: white; }
.button.ghost { border: 1px solid rgba(255,255,255,.65); color: white; }
.image-note { margin: 0; font-size: 11px; color: rgba(255,255,255,.72); }

.section-heading { margin-bottom: 42px; }
.split-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: end; }
.section-heading h2 { font-size: clamp(38px, 5vw, 65px); line-height: 1.02; margin-bottom: 0; }
.section-heading > p, .split-heading > p { color: var(--muted); font-size: 16px; }
.executive { background: var(--paper); }
.executive-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.callout { min-height: 220px; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; background: white; }
.callout.featured { background: var(--ink); color: white; box-shadow: var(--shadow); }
.callout-number { font-family: Georgia, serif; font-size: 50px; color: var(--terracotta); line-height: 1; }
.callout.featured .callout-number { color: #f0c27d; }
.callout small, .metric small { display: block; color: var(--muted); font-weight: 750; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.callout.featured small, .callout.featured p { color: rgba(255,255,255,.72); }
.callout strong { display: block; margin: 5px 0 7px; font-size: 18px; }
.callout p { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.comparison { background: var(--cream); }
.scenario-control { justify-self: end; display: grid; grid-template-columns: auto auto; gap: 3px 10px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.55); }
.scenario-control span { font-size: 12px; font-weight: 850; }
.scenario-control strong { color: var(--terracotta); font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 600; }
.scenario-control small { grid-column: 1/-1; color: var(--muted); font-size: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 10px 35px rgba(16,47,52,.06); }
table { width: 100%; min-width: 1080px; border-collapse: collapse; font-size: 12px; }
th, td { padding: 16px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--ink); color: white; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
th:first-child, td:first-child, th:last-child, td:last-child { text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f5faf8; }
.rank-pill { display: inline-block; margin-left: 7px; background: var(--mint); color: var(--ink); border-radius: 999px; padding: 4px 8px; font-size: 9px; font-weight: 900; }
.table-note { color: var(--muted); font-size: 11px; margin: 15px 0 0; }

.alternatives { padding-bottom: 30px; }
.lede { max-width: 820px; font-size: 17px !important; }
.option-tabs { position: sticky; top: 74px; z-index: 20; width: max-content; max-width: 100%; display: flex; gap: 6px; margin: -12px 0 32px auto; padding: 7px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,248,.94); backdrop-filter: blur(12px); }
.option-tabs a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; font-size: 12px; font-weight: 900; }
.option-tabs a:hover { background: var(--terracotta); color: white; }
.project { padding: 56px 0 92px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.project:first-child { border-top: 0; }
.project-head { display: grid; grid-template-columns: 100px 1fr auto; gap: 24px; align-items: start; margin-bottom: 30px; }
.project-index { font-family: Georgia, serif; font-size: 78px; line-height: .82; color: var(--terracotta); }
.project-kicker { color: var(--teal); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.project h3 { font-family: Georgia, serif; font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1; margin: 4px 0 10px; letter-spacing: -.025em; }
.project-subtitle { color: var(--muted); max-width: 750px; margin: 0; }
.score { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; border: 7px solid var(--mint); background: white; box-shadow: 0 8px 25px rgba(16,47,52,.08); text-align: center; }
.score b { font-size: 24px; line-height: .9; }
.score small { font-size: 8px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.project-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.plan-card, .location-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #edf4ef; min-height: 410px; }
.plan-card { position: relative; }
.plan-card svg { width: 100%; height: 100%; min-height: 410px; display: block; }
.plan-label { position: absolute; left: 16px; bottom: 16px; padding: 9px 11px; border-radius: 10px; background: rgba(16,47,52,.88); color: white; font-size: 10px; }
.location-card { background: var(--ink); color: white; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.location-card .pin { width: 46px; height: 58px; margin-bottom: 22px; position: relative; background: var(--terracotta); border-radius: 55% 55% 55% 0; transform: rotate(-45deg); }
.location-card .pin::after { content:""; position:absolute; width:16px; height:16px; left:15px; top:15px; border-radius:50%; background:var(--cream); }
.location-card h4 { font-family: Georgia, serif; font-weight: 500; font-size: 29px; line-height: 1.05; margin: 0 0 10px; }
.location-card p { font-size: 13px; color: rgba(255,255,255,.72); }
.coordinate { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #f0c27d !important; }
.location-actions { display: grid; gap: 9px; }
.location-actions .button { width: 100%; }
.location-actions .button.ghost { color: white; }

.metrics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 18px 0; }
.metric { min-height: 110px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: white; display: flex; flex-direction: column; justify-content: space-between; }
.metric strong { font-size: 19px; line-height: 1.05; }
.project-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: white; }
.panel h4 { font-size: 16px; margin: 0 0 18px; }
.area-layout { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; }
.area-donut { width: 180px; aspect-ratio: 1; border-radius: 50%; position: relative; }
.area-donut::after { content:"Programa\A de suelo"; white-space: pre; position:absolute; inset:31%; display:grid; place-items:center; text-align:center; border-radius:50%; background:white; font-size:11px; font-weight:850; line-height:1.2; }
.legend { display: grid; gap: 8px; }
.legend-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-row span:nth-child(2) { color: var(--muted); }
.finance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.finance-item { padding: 14px; background: var(--cream); border-radius: 13px; }
.finance-item small { color: var(--muted); display: block; font-size: 10px; }
.finance-item strong { display: block; margin-top: 3px; font-size: 17px; }
.finance-note { margin: 14px 0 0; font-size: 11px; color: var(--muted); }
.project-analysis { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.check-list li { position: relative; padding-left: 24px; font-size: 13px; color: var(--muted); }
.check-list li::before { content:""; position:absolute; left:0; top:.5em; width:10px; height:10px; border-radius:50%; background: var(--mint); border: 3px solid white; box-shadow:0 0 0 1px var(--teal); }
.risk-list li::before { background: #f0c27d; box-shadow: 0 0 0 1px var(--terracotta); }
.project-verdict { margin-top: 18px; padding: 22px 26px; border-left: 5px solid var(--terracotta); background: #f8f1e8; border-radius: 0 16px 16px 0; }
.project-verdict b { display: block; margin-bottom: 5px; }
.project-verdict p { margin: 0; color: var(--muted); font-size: 13px; }

.method { background: var(--ink); color: white; }
.method .split-heading > p { color: rgba(255,255,255,.68); }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.method-grid article { min-height: 240px; padding: 24px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.method-grid span { display: block; margin-bottom: 36px; font-family: Georgia, serif; font-size: 42px; color: #f0c27d; }
.method-grid h3 { font-size: 15px; }
.method-grid p { color: rgba(255,255,255,.65); font-size: 12px; }
.method-notes { margin-top: 18px; padding: 28px; border-radius: var(--radius); background: white; color: var(--ink); }
.method-notes ol { columns: 2; column-gap: 50px; padding-left: 20px; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.method-notes li { margin-bottom: 10px; break-inside: avoid; }
.decision-card { padding: 50px; border-radius: 30px; background: var(--terracotta); color: white; display: grid; grid-template-columns: 1fr .75fr; gap: 50px; align-items: center; box-shadow: var(--shadow); }
.decision-card h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1; margin: 0; }
.decision-card p { color: rgba(255,255,255,.8); margin: 0; }

footer { background: #09282d; color: white; padding: 46px 0 30px; }
.footer-brand { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; }
.footer-identity { display: flex; align-items: center; gap: 22px; }
.footer-identity img { width: 112px; height: 112px; object-fit: contain; }
.footer-brand b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #f0c27d; }
.footer-brand p { margin: 8px 0 0; font-size: 11px; color: rgba(255,255,255,.68); }
.footer-control { text-align: right; }
.footer-legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.footer-legal p { margin: 0; font-size: 10px; color: rgba(255,255,255,.5); }

@media (max-width: 900px) {
  .shell { width: min(100% - 28px, 760px); }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 14px; right: 14px; top: 70px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .main-nav a, .print-btn { text-align: center; padding: 10px; }
  .hero { height: 780px; min-height: 680px; }
  .hero-image { object-position: 58% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(10,36,41,.92) 0%, rgba(10,36,41,.58) 62%, rgba(10,36,41,.12) 100%); }
  .hero-content { padding-bottom: 42px; }
  .split-heading, .executive-grid, .project-hero-grid, .project-detail, .project-analysis, .footer-brand { grid-template-columns: 1fr; }
  .split-heading { gap: 18px; }
  .executive-grid { gap: 10px; }
  .callout { min-height: 180px; }
  .scenario-control { justify-self: stretch; }
  .footer-control { text-align: left; }
  .project-head { grid-template-columns: 62px 1fr; }
  .project-index { font-size: 58px; }
  .score { grid-column: 2; width: 72px; height: 72px; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .option-tabs { margin-left: 0; }
}

@media (max-width: 560px) {
  .site-header { min-height: 62px; padding: 9px 14px; }
  .brand small { display: none; }
  .brand-logo { width: 42px; height: 42px; }
  .section { padding: 66px 0; }
  .hero { height: 740px; }
  h1 { font-size: 50px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .section-heading h2 { font-size: 40px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 95px; }
  .area-layout { grid-template-columns: 1fr; }
  .area-donut { width: 160px; margin-inline: auto; }
  .finance-grid { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: 190px; }
  .method-notes ol { columns: 1; }
  .decision-card { padding: 30px; }
  .option-tabs { top: 67px; }
  .plan-card, .plan-card svg, .location-card { min-height: 330px; }
}

@media print {
  .site-header, .hero-actions, .option-tabs, .print-btn, .nav-toggle { display: none !important; }
  body { background: white; color: #111; }
  .hero { min-height: 640px; height: 640px; break-after: page; }
  .section { padding: 42px 0; }
  .project { break-before: page; padding-top: 30px; }
  .method { break-before: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .comparison, .callout.featured, .location-card, .decision-card, th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .button { border: 1px solid #555; }
  a { text-decoration: none; }
}
