/* Páginas legales y 404: mismas fuentes, colores y cabecera que la portada */
:root {
  --ink: #17150F;
  --ink-line: #36322A;
  --cera: #F3F2EE;
  --cera-line: #D6D3C9;
  --honey: #E8A317;
  --honey-text: #8F6200;
  --muted-on-ink: #A49F92;
  --muted-on-cera: #615D54;
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cera); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 2px; }
.inner { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }

.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink-line); color: var(--cera); }
.nav .inner { display: flex; align-items: center; gap: 28px; height: 68px; line-height: 1.6; }
.nav .logo img { height: 30px; width: auto; display: block; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0 0 0 auto; padding: 0; font-size: 15px; }
.nav ul li { margin: 0; }
.nav ul a { text-decoration: none; color: var(--muted-on-ink); transition: color .15s; }
.nav ul a:hover { color: var(--cera); }
.lang { display: flex; border: 1px solid var(--ink-line); border-radius: 999px; padding: 2px; font-family: var(--f-mono); font-size: 12px; }
.lang a { padding: 4px 10px; border-radius: 999px; color: var(--muted-on-ink); text-decoration: none; }
.lang a[href]:hover { color: var(--cera); }
.lang a[aria-current] { background: var(--cera); color: var(--ink); }
.nav .btn.small { padding: 10px 16px; font-size: 14px; background: var(--honey); color: var(--ink); border: 1px solid transparent; }
.nav .btn.small:hover { background: #F2B32A; }

.doc { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(64px, 10vw, 120px); }
.eyebrow { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; color: var(--muted-on-cera); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--honey); flex: none; }
h1 { font-family: var(--f-display); font-weight: 780; font-stretch: 92%; font-size: clamp(36px, 5.5vw, 56px); line-height: 1.05; margin: 16px 0 12px; text-wrap: balance; }
.updated { font-family: var(--f-mono); font-size: 13px; color: var(--muted-on-cera); margin: 0 0 40px; }
h2 { font-family: var(--f-display); font-weight: 700; font-stretch: 92%; font-size: 23px; line-height: 1.25; margin: 48px 0 12px; padding-top: 20px; border-top: 1px solid var(--cera-line); }
h3 { font-family: var(--f-display); font-weight: 650; font-size: 18px; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.summary { background: #FAF9F6; border: 1px solid var(--cera-line); border-left: 3px solid var(--honey); border-radius: 4px; padding: 20px 24px; margin-bottom: 8px; }
.summary p:last-child { margin-bottom: 0; }
dl.data { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 0 0 16px; }
dl.data dt { font-family: var(--f-mono); font-size: 13px; color: var(--muted-on-cera); padding-top: 3px; }
dl.data dd { margin: 0; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--cera-line); }
th { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-on-cera); font-weight: 500; }
code { font-family: var(--f-mono); font-size: 0.9em; background: #FAF9F6; border: 1px solid var(--cera-line); border-radius: 3px; padding: 1px 5px; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; font: 600 15px/1 var(--f-body); padding: 13px 18px; border-radius: 4px; border: 0; background: var(--ink); color: var(--cera); }
.btn:hover { background: #2B2820; }
.done { font-family: var(--f-mono); font-size: 13px; color: var(--honey-text); margin-left: 12px; }

/* Datos pendientes de completar: muy visibles a propósito. Eliminar la clase cuando estén rellenos. */
mark.pendiente { background: #FFE38A; color: var(--ink); padding: 0 4px; border-radius: 2px; font-family: var(--f-mono); font-size: 0.88em; }

footer { background: var(--ink); color: var(--muted-on-ink); padding-block: 40px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
footer .inner { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; }
footer img { height: 26px; width: auto; display: block; }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; }
footer a { text-decoration: none; }
footer a:hover, footer a[aria-current="page"] { color: var(--cera); }

@media (max-width: 980px) {
  .nav ul { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 560px) {
  .nav .btn.small { display: none; }
  dl.data { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  dl.data dd { margin-bottom: 10px; }
  .nav .logo img { height: 26px; }
}
