:root {
  color-scheme: light;
  --ink: #15221d;
  --muted: #59645f;
  --green: #173b30;
  --green-soft: #e4eee7;
  --paper: #f4f1e9;
  --surface: #fffefa;
  --gold: #876321;
  --gold-soft: #f1ead9;
  --line: #ccd4cf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}
.brand { display: grid; gap: 0; text-decoration: none; }
.brand span { font-family: Georgia, serif; font-size: 20px; line-height: 1; letter-spacing: 0; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.site-header nav { display: flex; align-items: center; gap: 18px; }
.text-link { color: var(--green); font-size: 14px; font-weight: 800; text-decoration: none; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 0 22px;
  background: var(--green);
  color: white;
  font-weight: 850;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}
.button:hover { background: #0f2c23; }
.button.is-secondary { background: rgba(255,255,255,.75); color: var(--green); }
.button.is-secondary:hover { background: white; }

.comparison-hero {
  position: relative;
  isolation: isolate;
  min-height: 510px;
  overflow: hidden;
  background: #d9e1dc;
}
.comparison-hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("/distribucion/santiago-sencilla-hero-v28.jpg") center 45% / cover no-repeat;
}
.comparison-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(244,241,233,.98) 0%, rgba(244,241,233,.91) 56%, rgba(23,59,48,.2) 100%);
  content: "";
}
.hero-inner {
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 510px;
  margin: 0 auto;
  padding: 64px 0 70px;
}
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.comparison-hero h1 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}
.hero-copy { max-width: 720px; margin: 20px 0 0; color: #3f5048; font-size: clamp(18px, 2vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.research-date { margin: 16px 0 0; color: #5b6862; font-size: 12px; font-weight: 700; }

.section { padding: 88px 20px; }
.section-inner { width: min(1180px, 100%); margin: 0 auto; }
.intro-section { background: var(--surface); }
.intro-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(40px, 8vw, 110px); }
.intro-grid h2, .section-heading h2, .sources-grid h2, .final-cta h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}
.intro-copy { display: grid; gap: 18px; }
.intro-copy p { margin: 0; color: var(--muted); font-size: 18px; }

.table-section { background: var(--paper); }
.section-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.58fr); gap: 40px; align-items: end; margin-bottom: 34px; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 14px; }
.section-heading.compact { grid-template-columns: minmax(0,760px); }
.mobile-scroll-hint { display: none; margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 750; }
.comparison-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 52px rgba(25,55,45,.08);
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--gold) #e1e4df;
}
table { width: 100%; min-width: 1120px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
th, td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 18px 16px; text-align: left; vertical-align: top; }
thead th { height: 90px; background: #eff1ed; color: var(--ink); font-size: 17px; vertical-align: bottom; }
thead th:first-child, tbody th { width: 168px; }
thead th:not(:first-child) { width: 190px; }
th:last-child, td:last-child { border-right: 0; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f2f0e9;
  color: #37453f;
  font-size: 13px;
  font-weight: 850;
}
thead th:first-child { position: sticky; left: 0; z-index: 4; }
th.is-goxpel { border-top: 4px solid var(--gold); background: var(--green); color: white; }
td.is-goxpel { background: #edf4ef; }
td strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.3; }
td small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.provider-label { display: block; margin-bottom: 4px; color: #65716b; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
th.is-goxpel .provider-label { color: #d8c697; }
.ownership-note { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-top: 18px; border-left: 3px solid var(--gold); padding: 18px 20px; background: var(--gold-soft); }
.ownership-note strong { font-size: 15px; }
.ownership-note p { margin: 0; color: #5c5b50; font-size: 13px; }

.fit-section { background: var(--surface); }
.fit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.fit-card { display: grid; align-content: start; min-height: 260px; border: 1px solid var(--line); border-radius: 8px; padding: 28px; background: #f5f3ed; }
.fit-card.is-goxpel { border-color: #89a093; background: var(--green); color: white; }
.fit-card p { margin: 0 0 34px; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.fit-card h3 { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 500; line-height: 1.1; }
.fit-card span { margin-top: 18px; color: var(--muted); font-size: 13px; }
.fit-card.is-goxpel span { color: #d7e2dc; }

.sources-section { border-top: 1px solid var(--line); background: #e9ece7; }
.sources-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 70px; }
.sources-grid > div > p:last-child { max-width: 520px; color: var(--muted); font-size: 14px; }
.source-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.source-list li { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #c7ceca; padding: 14px 0; }
.source-list li:first-child { border-top: 1px solid #c7ceca; }
.source-list a { color: var(--green); font-size: 13px; font-weight: 850; text-underline-offset: 3px; }
.source-list span { color: var(--muted); font-size: 11px; text-align: right; }

.final-cta { display: grid; place-items: center; min-height: 470px; padding: 80px 20px; background: var(--green); color: white; text-align: center; }
.final-cta > div { width: min(760px,100%); }
.final-cta .eyebrow { color: #d7bd7c; }
.final-cta p:not(.eyebrow) { max-width: 650px; margin: 18px auto 28px; color: #d2ded8; font-size: 17px; }
.final-cta .button { border-color: white; background: white; color: var(--green); }

.site-footer { display: grid; grid-template-columns: minmax(190px,.8fr) 1fr minmax(360px,1.4fr); align-items: start; gap: 26px; width: min(1180px,calc(100% - 40px)); margin: 0 auto; padding: 32px 0 44px; color: var(--muted); font-size: 11px; }
.site-footer p { margin: 0; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 750; }

:focus-visible { outline: 3px solid #b68a32; outline-offset: 3px; }

@media (max-width: 860px) {
  .intro-grid, .sources-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .fit-grid { grid-template-columns: 1fr; }
  .fit-card { min-height: 0; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer .brand { justify-self: center; }
  .site-footer nav { justify-content: center; }
}

@media (max-width: 650px) {
  .site-header { width: calc(100% - 28px); min-height: 68px; }
  .site-header .brand small, .site-header .text-link { display: none; }
  .site-header .button { min-height: 44px; padding: 0 16px; font-size: 13px; }
  .comparison-hero, .hero-inner { min-height: 500px; }
  .comparison-hero-media { background-position: 62% center; opacity: .58; }
  .comparison-hero::after { background: linear-gradient(90deg, rgba(244,241,233,.98) 0%, rgba(244,241,233,.92) 76%, rgba(244,241,233,.58) 100%); }
  .hero-inner { width: calc(100% - 28px); padding: 54px 0 62px; }
  .comparison-hero h1 { font-size: clamp(44px,12vw,58px); }
  .hero-copy { font-size: 17px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .section { padding: 64px 14px; }
  .intro-copy p { font-size: 16px; }
  .mobile-scroll-hint { display: block; }
  .comparison-table-scroll { scroll-snap-type: x proximity; }
  table { min-width: 1070px; }
  thead th:first-child, tbody th { width: 126px; }
  thead th:not(:first-child) { width: 188px; scroll-snap-align: start; }
  th, td { padding: 16px 12px; }
  tbody th { font-size: 12px; }
  .ownership-note { grid-template-columns: 1fr; gap: 6px; }
  .fit-card { padding: 24px; }
  .source-list li { display: grid; gap: 5px; }
  .source-list span { text-align: left; }
  .final-cta { min-height: 440px; }
  .site-footer { width: calc(100% - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
