/* Ensayo de lectura larga: una columna de texto a ~66 caracteres, índice fijo a la izquierda en pantallas anchas. */
@font-face { font-family: "Bricolage"; src: url("/ensayo/fuentes/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/ensayo/fuentes/plex-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/ensayo/fuentes/plex-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/ensayo/fuentes/plex-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PlexMono"; src: url("/ensayo/fuentes/mono.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root {
  --papel: #F7F6F2; --tinta: #16201C; --tinta-2: #46524D; --tinta-3: #66726C;
  --pino: #1F6B52; --linea: #DAD8CF;
  --display: "Bricolage", "Avenir Next", system-ui, sans-serif;
  --texto: "Plex", "Helvetica Neue", Arial, sans-serif;
  --mono: "PlexMono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --papel: #121816; --tinta: #E9EEEB; --tinta-2: #B9C4BF; --tinta-3: #8B9893;
  --pino: #6FC3A0; --linea: #2A3330; color-scheme: dark; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--papel); color: var(--tinta); font-family: var(--texto); font-size: 18.5px; line-height: 1.7; margin: 0; padding: 0 20px; }
.marco { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-block: 64px 96px; }
.indice { position: sticky; top: 32px; align-self: start; font-family: var(--display); font-size: 14px; }
.indice .marca { display: block; font-weight: 800; font-size: 18px; color: var(--tinta); text-decoration: none; margin-bottom: 28px; }
.indice p { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tinta-3); }
.indice ol { margin: 0 0 28px; padding-left: 20px; display: grid; gap: 8px; color: var(--tinta-3); }
.indice a { color: var(--tinta-2); text-decoration: none; }
.indice a:hover, .indice a:focus-visible { color: var(--pino); text-decoration: underline; }
.idioma { font-family: var(--display); font-size: 14px; }
article { max-width: 66ch; min-width: 0; }
.cejilla { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--pino); margin: 0 0 18px; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6vw, 62px); line-height: 1.03; letter-spacing: -0.02em; margin: 0 0 22px; text-wrap: balance; }
.firma { font-family: var(--display); font-size: 16px; color: var(--tinta-2); margin: 0 0 40px; padding-bottom: 28px; border-bottom: 1px solid var(--linea); }
.firma strong { color: var(--tinta); }
h2 { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.15; margin: 64px 0 16px; text-wrap: balance; scroll-margin-top: 24px; }
h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 36px 0 8px; }
p { margin: 0 0 18px; }
ul, ol { padding-left: 24px; margin: 0 0 18px; }
li { margin-bottom: 8px; }
strong { font-weight: 600; }
em { color: var(--tinta-2); }
a { color: var(--pino); }
.anecdota { font-size: 1.06em; }
.diagrama { margin: 36px 0 40px; }
.diagrama img { display: block; width: 100%; height: auto; border: 1px solid var(--linea); border-radius: 10px; background: #F6F4EE; }
.diagrama figcaption { font-family: var(--display); font-size: 15px; color: var(--tinta-3); margin-top: 10px; }
.tabla { overflow-x: auto; margin: 8px 0 24px; }
table { border-collapse: collapse; width: 100%; font-family: var(--display); font-size: 16px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--linea); }
th { font-weight: 600; color: var(--tinta-2); font-size: 14px; letter-spacing: 0.04em; }
article ol li::marker { font-family: var(--display); font-weight: 700; color: var(--pino); }
.lema { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--pino); }
.cierre { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--linea); font-family: var(--display); font-size: 15px; color: var(--tinta-3); }
:focus-visible { outline: 2px solid var(--pino); outline-offset: 2px; border-radius: 2px; }
@media (max-width: 860px) {
  .marco { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 36px 72px; }
  .indice { position: static; margin-bottom: 28px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  .indice .marca { margin-bottom: 0; }
  .indice p, .indice ol { display: none; }
  body { font-size: 17.5px; padding: 0 16px; }
  h2 { font-size: 26px; margin-top: 48px; }
}
