/* Solución Rural — Sitio público
   Hoja de estilos · estática · sin frameworks
   ============================================ */

:root {
  /* Brand */
  --sr-green-900: #0E3A24;
  --sr-green-800: #144A2E;
  --sr-green-700: #1A5C3A;
  --sr-green-600: #2C7A4F;
  --sr-green-500: #4F9B73;
  --sr-green-100: #D6E4DA;
  --sr-green-050: #ECF3EE;

  --sr-cream: #F5EDD8;
  --sr-cream-soft: #FBF7E9;
  --sr-cream-deep: #ECE2C5;
  --sr-cream-line: #E1D5B0;

  --sr-gold-700: #A4720A;
  --sr-gold-600: #C8860A;
  --sr-gold-500: #D9A23E;
  --sr-gold-100: #F4E3B8;

  --sr-terra-700: #8E3F22;
  --sr-terra-600: #B85C38;
  --sr-terra-100: #F1D6C9;

  --sr-ink-900: #1B1A14;
  --sr-ink-700: #3A372C;
  --sr-ink-500: #6D6857;
  --sr-ink-300: #9D9784;

  --sr-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sr-sans:  'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sr-mono:  'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --max-w: 1320px;
  --pad-x: clamp(20px, 4vw, 56px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

body {
  background: var(--sr-cream);
  color: var(--sr-ink-900);
  font-family: var(--sr-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "kern";
}

h1, h2, h3, h4, h5 {
  font-family: var(--sr-serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
  line-height: 1.05;
}

p { margin: 0; text-wrap: pretty; }
em { font-style: italic; color: var(--sr-gold-700); }

/* Helpers */
.eyebrow {
  font-family: var(--sr-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sr-ink-500);
}
.mono { font-family: var(--sr-mono); font-feature-settings: "tnum"; letter-spacing: 0.02em; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.sr-link { color: var(--sr-green-700); text-decoration: underline; text-underline-offset: 4px; }
.sr-link:hover { color: var(--sr-green-800); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; white-space: nowrap;
  font-family: var(--sr-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  min-height: 56px;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--sr-green-700); color: var(--sr-cream-soft); }
.btn--primary:hover { background: var(--sr-green-800); }
.btn--ghost { background: transparent; color: var(--sr-green-700); border-color: var(--sr-green-700); }
.btn--ghost:hover { background: var(--sr-green-050); }
.btn--gold { background: var(--sr-gold-600); color: #1B1408; }
.btn--gold:hover { background: var(--sr-gold-700); color: var(--sr-cream-soft); }
.btn--on-green {
  background: transparent; color: var(--sr-cream-soft);
  border: 1px solid rgba(245,237,216,0.35);
}
.btn--on-green:hover { background: rgba(245,237,216,0.08); }

/* Tag */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sr-green-050);
  color: var(--sr-green-800);
  border: 1px solid var(--sr-green-100);
}
.tag--gold {
  background: rgba(244,227,184,0.18);
  color: var(--sr-gold-500);
  border-color: rgba(244,227,184,0.3);
}

/* Logo */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sr-serif); font-weight: 500;
  text-decoration: none; color: inherit;
}
.logo svg { display: block; }
.logo__type { font-size: 18px; letter-spacing: -0.005em; }
.logo__type em { color: var(--sr-gold-600); }
.logo--on-green { color: var(--sr-cream-soft); }
.logo--on-green em { color: var(--sr-gold-500); }

/* Header / nav */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad-x);
  border-bottom: 1px solid var(--sr-cream-line);
  background: var(--sr-cream);
  position: sticky; top: 0; z-index: 50;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-nav {
  display: flex; gap: 32px;
}
.site-nav a {
  text-decoration: none;
  color: var(--sr-ink-700);
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--sr-green-800); }
.header-cta {
  display: flex; gap: 12px; align-items: center;
}
.header-cta a {
  color: var(--sr-green-700);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.menu-btn {
  display: none;
  background: transparent; border: 0;
  color: var(--sr-ink-700);
  padding: 8px; border-radius: 8px;
}
.menu-btn:hover { background: rgba(0,0,0,0.05); }

/* ─── Hero ─────────────────────────────────── */
.hero {
  padding: clamp(48px, 8vw, 96px) 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: end;
}
.hero h1 {
  font-size: clamp(48px, 7.5vw, 96px);
  letter-spacing: -0.02em;
  line-height: 0.96;
}
.hero p.lede {
  margin-top: 28px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--sr-ink-700);
  max-width: 560px;
}
.hero__cta {
  display: flex; gap: 12px;
  margin-top: clamp(28px, 4vw, 36px);
  flex-wrap: wrap;
}

.evidence-card {
  background: var(--sr-green-800);
  color: var(--sr-cream-soft);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  overflow: hidden;
}
.evidence-card__head {
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 500;
  color: rgba(245,237,216,0.6);
}
.evidence-grid {
  margin-top: 18px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; row-gap: 36px;
}
.evidence-num {
  font-family: var(--sr-serif);
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.evidence-num span {
  font-size: 0.4em;
  margin-left: 6px;
  color: var(--sr-gold-500);
}
.evidence-label {
  font-size: 13px;
  color: rgba(245,237,216,0.65);
  margin-top: 8px;
  line-height: 1.4;
}
.evidence-source {
  border-top: 1px solid rgba(245,237,216,0.15);
  margin-top: 32px; padding-top: 18px;
  font-size: 12px;
  color: rgba(245,237,216,0.55);
}

/* ─── Diagnosis ─────────────────────────────── */
.diagnosis {
  background: var(--sr-cream-deep);
  padding: clamp(48px, 6vw, 64px) 0;
}
.diagnosis__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 5vw, 56px);
}
.diagnosis h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  margin-top: 14px;
}
.diagnosis__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.diagnosis__item {
  border-top: 1px solid var(--sr-cream-line);
  padding-top: 20px;
}
.diagnosis__item h3 {
  font-family: var(--sr-serif);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.diagnosis__item p {
  font-size: 14px;
  color: var(--sr-ink-700);
}

.terra { color: var(--sr-terra-700); }

/* ─── Method ───────────────────────────────── */
.method {
  padding: clamp(56px, 8vw, 88px) 0;
}
.method__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
}
.method__head h2 {
  font-size: clamp(36px, 4.4vw, 54px);
  max-width: 720px;
  margin-top: 12px;
}
.method__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.method-card {
  background: var(--sr-cream-soft);
  border: 1px solid var(--sr-cream-line);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.method-card--featured {
  background: var(--sr-green-800);
  color: var(--sr-cream-soft);
  border: none;
}
.method-card__top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.method-card .num {
  font-family: var(--sr-mono);
  font-size: 11px;
  opacity: 0.5;
}
.method-card h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
  margin-top: 18px;
}
.method-card p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--sr-ink-700);
}
.method-card--featured p { color: rgba(245,237,216,0.85); }
.method-card__foot {
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--sr-mono);
  font-size: 12px;
  opacity: 0.6;
}

/* ─── Cases ───────────────────────────────── */
.cases {
  background: var(--sr-green-900);
  color: var(--sr-cream-soft);
  padding: clamp(56px, 8vw, 88px) 0;
}
.cases__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.cases h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  margin-top: 14px;
}
.cases p.lede {
  margin-top: 20px;
  font-size: 15px;
  color: rgba(245,237,216,0.7);
  line-height: 1.6;
  max-width: 360px;
}
.cases__list {
  display: flex; flex-direction: column;
}
.case-row {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1.6fr 1.5fr;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(245,237,216,0.12);
}
.case-row__title {
  font-family: var(--sr-serif);
  font-size: 22px;
  font-weight: 500;
}
.case-row__place {
  font-size: 13px;
  color: rgba(245,237,216,0.7);
}
.case-row__meta {
  font-family: var(--sr-mono);
  font-size: 12px;
  color: rgba(245,237,216,0.55);
}
.case-row__outcome {
  font-size: 13px;
  color: var(--sr-gold-500);
}
.case-more {
  padding: 24px 0;
  border-top: 1px solid rgba(245,237,216,0.12);
  font-size: 13px;
  color: rgba(245,237,216,0.55);
}
.cases__list .sr-link {
  color: var(--sr-gold-500);
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ─── Quote ───────────────────────────────── */
.quote {
  padding: clamp(56px, 8vw, 88px) 0;
}
.quote__grid {
  display: grid;
  grid-template-columns: 0.6fr 2fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.placeholder {
  position: relative;
  background-color: var(--sr-cream-deep);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    rgba(27,26,20,0.04) 14px 15px
  );
  color: var(--sr-ink-500);
  font-family: var(--sr-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  min-height: 280px;
}
.placeholder::after {
  content: ''; position: absolute; inset: 6px;
  border: 1px dashed rgba(27,26,20,0.18);
  border-radius: inherit;
  pointer-events: none;
}
.placeholder span { position: relative; z-index: 1; padding: 8px 12px; }

.quote blockquote {
  margin: 0;
  font-family: var(--sr-serif);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  font-weight: 400;
}
.quote figcaption {
  margin-top: 28px;
  font-size: 14px;
  color: var(--sr-ink-500);
}
.quote__head {
  margin-bottom: 16px;
}

/* ─── CTAs ─────────────────────────────────── */
.cta-block {
  padding: 0 0 clamp(56px, 8vw, 96px);
}
.cta-block__head {
  margin-bottom: 24px;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.cta-card {
  border-radius: 20px;
  padding: clamp(28px, 3.5vw, 40px);
}
.cta-card--light {
  background: var(--sr-cream-soft);
  border: 1px solid var(--sr-cream-line);
}
.cta-card--dark {
  background: var(--sr-green-800);
  color: var(--sr-cream-soft);
}
.cta-card h3 {
  font-size: clamp(28px, 3vw, 40px);
  margin-top: 16px;
  line-height: 1.05;
}
.cta-card p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
}
.cta-card--light p { color: var(--sr-ink-700); }
.cta-card--dark p { color: rgba(245,237,216,0.75); }
.cta-card__buttons {
  display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap;
}

/* ─── Footer ───────────────────────────────── */
.site-footer {
  background: var(--sr-green-900);
  color: rgba(245,237,216,0.65);
  padding: 40px var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer__nav {
  display: flex; gap: 32px; font-size: 13px;
}
.site-footer__nav a { color: inherit; text-decoration: none; }
.site-footer__nav a:hover { color: var(--sr-cream-soft); }
.site-footer__meta {
  font-family: var(--sr-mono);
  font-size: 11px;
  opacity: 0.6;
}

/* ─── Responsive ───────────────────────────── */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .header-cta { display: none; }
  .menu-btn { display: inline-flex; }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 40px;
  }
  .hero h1 { font-size: clamp(40px, 11vw, 52px); }

  .diagnosis__grid { grid-template-columns: 1fr; }
  .diagnosis__items { grid-template-columns: 1fr; }

  .method__head { flex-direction: column; align-items: flex-start; }
  .method__cards { grid-template-columns: 1fr; }
  .method-card { min-height: auto; }

  .cases__grid { grid-template-columns: 1fr; }
  .case-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 20px 0;
  }
  .case-row__title { font-size: 20px; }
  .case-row__outcome { margin-top: 6px; }

  .quote__grid { grid-template-columns: 1fr; }
  .placeholder { min-height: 220px; }

  .cta-grid { grid-template-columns: 1fr; }
  .cta-card__buttons .btn { width: 100%; }

  .site-footer { flex-direction: column; align-items: flex-start; }
}

/* Focus styles for keyboard users */
:focus-visible {
  outline: 2px solid var(--sr-green-700);
  outline-offset: 3px;
  border-radius: 6px;
}
