/* ── Tokens ────────────────────────────────────────────────
   Paleta tomada del algodón y la tierra. Nada de rojo bandera. */
:root {
  --hueso: #F7F4EF;
  --hueso-2: #EFE9E0;
  --tinta: #16130F;
  --tinta-2: #4A443C;
  --tierra: #A0522D;
  --linea: #DCD4C8;
  --blanco: #FFFFFF;

  --bg: var(--hueso);
  --fg: var(--tinta);
  --fg-soft: var(--tinta-2);
  --acento: var(--tierra);
  --surface: var(--blanco);
  --border: var(--linea);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 68rem;
  --wrap-narrow: 42rem;
  --gap: clamp(3.5rem, 9vw, 8rem);
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --fg: #F2EEE8;
    --fg-soft: #A9A196;
    --surface: #1C1A18;
    --border: #302C28;
    --acento: #C8794D;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 0.35vw + 1rem, 1.1875rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--fg); color: var(--bg);
  padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Cabecera ── */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.4rem clamp(1.25rem, 4vw, 3rem);
  max-width: var(--wrap); margin: 0 auto;
}
.site-head__brand {
  font-family: var(--serif); font-size: 1.0625rem; font-weight: 600;
  letter-spacing: .01em; text-decoration: none;
}
.site-head__cta {
  font-size: .9375rem; color: var(--fg-soft); text-decoration: none;
  border-bottom: 1px solid var(--border); padding-bottom: 2px;
}
.site-head__cta:hover { color: var(--fg); border-color: var(--acento); }

/* ── Hero: una idea, mucho aire ── */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3rem, 11vw, 9rem) clamp(1.25rem, 4vw, 3rem) var(--gap);
}
.hero__kicker {
  font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--acento); margin-bottom: 1.5rem; font-weight: 500;
}
.hero__title {
  font-size: clamp(2.5rem, 6.2vw, 5.5rem);
  max-width: 16ch;
  margin-bottom: .5em;
}
.hero__lead {
  font-size: clamp(1.125rem, 1vw + .9rem, 1.5rem);
  color: var(--fg-soft); max-width: 46ch; margin-bottom: 2.25rem;
}

/* ── Bandas ── */
.band { padding: var(--gap) clamp(1.25rem, 4vw, 3rem); }
.band--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band--form { background: var(--surface); border-top: 1px solid var(--border); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.wrap.narrow { max-width: var(--wrap-narrow); }
.band h2 { font-size: clamp(1.875rem, 3.2vw, 3rem); max-width: 20ch; }
.lead { font-size: 1.125rem; color: var(--fg-soft); max-width: 58ch; }

/* Detalle andino: una línea fina, nada más. */
.band h2::after {
  content: ""; display: block; width: 3.5rem; height: 2px;
  margin: 1.1rem 0 1.6rem;
  background: repeating-linear-gradient(90deg, var(--acento) 0 6px, transparent 6px 10px);
}

/* ── Tabla de datos ── */
.table-scroll { overflow-x: auto; margin-top: 2rem; }
.data { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 34rem; }
.data th, .data td { text-align: left; padding: .95rem 1rem; border-bottom: 1px solid var(--border); }
.data th { font-weight: 600; font-size: .8125rem; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-soft); }
.data tbody tr:last-child td { border-bottom: 0; }

/* ── Columnas ── */
.cols { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 2.5rem; }
.cols h3 { font-size: 1.25rem; }
.cols p:last-child { margin-bottom: 0; color: var(--fg-soft); font-size: 1rem; }
.num { font-family: var(--serif); font-size: 2rem; color: var(--acento); margin-bottom: .35rem; line-height: 1; }

/* ── FAQ ── */
.faq { margin: 2rem 0 0; }
.faq dt { font-weight: 600; font-size: 1.0625rem; margin-top: 1.9rem; }
.faq dd { margin: .5rem 0 0; color: var(--fg-soft); }

/* ── Formulario ── */
.form { margin-top: 2.5rem; display: grid; gap: 1.35rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .9375rem; font-weight: 500; }
.hint { color: var(--fg-soft); font-weight: 400; }
.field input, .field select {
  font: inherit; font-size: 1rem; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .8rem .9rem; width: 100%;
  min-height: 48px;
}
.field input:focus, .field select:focus { border-color: var(--acento); }

.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .75rem; }
.field--check input { width: 1.15rem; height: 1.15rem; min-height: 0; margin-top: .3rem; accent-color: var(--acento); }
.field--check label { font-size: .9375rem; font-weight: 400; color: var(--fg-soft); line-height: 1.55; }
.field--check a { color: var(--fg); }

/* Honeypot: fuera de pantalla, nunca display:none (algunos bots lo detectan). */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-block; font: inherit; font-size: 1rem; font-weight: 500;
  background: var(--fg); color: var(--bg);
  border: 0; border-radius: 999px; padding: .95rem 2rem;
  cursor: pointer; text-decoration: none; min-height: 48px;
  transition: opacity .15s ease, transform .15s ease;
  justify-self: start;
}
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: progress; }

.form__status { margin: 0; font-size: .9375rem; min-height: 1.5em; }
.form__status[data-state="error"] { color: #C0392B; }
.form__status[data-state="ok"] { color: var(--acento); font-weight: 500; }
@media (prefers-color-scheme: dark) { .form__status[data-state="error"] { color: #F09080; } }

/* ── Pie ── */
.site-foot {
  max-width: var(--wrap); margin: 0 auto;
  padding: var(--gap) clamp(1.25rem, 4vw, 3rem) 3.5rem;
  font-size: .9375rem; color: var(--fg-soft);
}
.site-foot__brand { font-family: var(--serif); color: var(--fg); margin-bottom: .8rem; }
.site-foot__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.2rem; }
.site-foot__nav a { text-decoration: none; border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.site-foot__nav a:hover { border-color: var(--acento); }
.site-foot__note { margin: 0; }

/* ── Páginas de texto legal ── */
.prose { max-width: var(--wrap-narrow); margin: 0 auto; padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem) var(--gap); }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); }
.prose h2 { font-size: 1.375rem; margin-top: 2.5rem; }
.prose ul { padding-left: 1.2rem; color: var(--fg-soft); }
.prose li { margin-bottom: .5rem; }
