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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: var(--t-base);
  line-height: 1.5;
  color: var(--tinta);
  background: var(--papel);
  font-feature-settings: 'tnum' 1;   /* cifras tabulares: las columnas alinean */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--fuente-titulo);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
}

h1 { font-size: var(--t-xl); }
h2 { font-size: var(--t-lg); }
h3 { font-size: var(--t-md); }
h4 { font-size: var(--t-base); }

p { margin: 0 0 var(--e3); }
a { color: var(--verde); text-decoration: none; }
a:hover { text-decoration: underline; }

/* El foco siempre visible: mucha de esta captura se hace con teclado. */
:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 2px;
}

button, input, select, textarea { font: inherit; color: inherit; }

.dato { font-family: var(--fuente-dato); font-size: 0.9em; letter-spacing: -0.02em; }

.silencio { color: var(--tinta-tenue); }
.pequeno  { font-size: var(--t-sm); }

/* Etiqueta de sección: versalita ancha, el único gesto tipográfico repetido */
.eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tinta-tenue);
}

.visualmente-oculto {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

::selection { background: var(--verde-tenue); }

/* Barras de desplazamiento discretas en listas densas */
.desplazable { overflow-y: auto; scrollbar-width: thin; }
.desplazable::-webkit-scrollbar { width: 9px; }
.desplazable::-webkit-scrollbar-thumb {
  background: var(--linea-fuerte); border-radius: 5px;
  border: 2px solid transparent; background-clip: content-box;
}

/* UPDATE 133 — base visual premium */
html { background: #f6f3ee; }
body {
  background:
    radial-gradient(circle at top right, rgba(184,149,84,0.10), transparent 28%),
    linear-gradient(180deg, #f9f7f3 0%, #f5f2ec 100%);
  color: var(--tinta);
}

h1 { font-size: clamp(2rem, 3.3vw, 3.1rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
h3 { font-size: 1.15rem; }

a { color: var(--zive-dorado-oscuro); }
a:hover { color: var(--tinta); }

button, input, select, textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

::selection { background: rgba(184, 149, 84, 0.22); }
