/* Tipografías autoalojadas — ver fuentes/LICENCIAS.md */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fuentes/bricolage-grotesque-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fuentes/bricolage-grotesque-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fuentes/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fuentes/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fuentes/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fuentes/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fuentes/inter-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fuentes/inter-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/*
 * Estilo de las páginas legales (privacidad y aviso legal).
 *
 * Van en un fichero aparte y no dentro del HTML como index.html, porque son
 * dos páginas que comparten exactamente el mismo aspecto: duplicar el CSS en
 * las dos sería garantizar que acaben diferenciándose.
 *
 * Mismos tokens que la portada. Si allí cambian los colores o las fuentes,
 * hay que traerlos aquí.
 */
:root {
  --papel: #FBFBF9;
  --tinta: #16181D;
  --gris: #5C6470;
  --linea: #E4E4DE;
  --azul: #2438D6;
  --azul-suave: #EEF0FE;
  --ambar: #8A6A00;
  --ambar-suave: #FDF6E3;
  --display: "Bricolage Grotesque", sans-serif;
  --cuerpo: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--cuerpo);
  font-size: 1.0313rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--azul); }
a:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 3px;
  border-radius: 2px;
}

.contenedor { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Cabecera ---------- */
header {
  border-bottom: 1px solid var(--linea);
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--papel) 92%, transparent);
  backdrop-filter: blur(8px);
}
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--tinta);
}
.logo b { color: var(--azul); font-weight: 700; }
.volver {
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gris);
  text-decoration: none;
}
.volver:hover { color: var(--tinta); }

/* ---------- Documento ---------- */
main { padding: 64px 0 80px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 18px;
}
h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.entradilla { margin-top: 18px; color: var(--gris); font-size: 1.08rem; }
.actualizado {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gris);
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  margin: 46px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--linea);
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 24px 0 6px;
}
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
li { padding-left: 18px; position: relative; margin-bottom: 7px; }
li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--linea);
}
li b { font-weight: 600; }

/* Tabla de tratamientos: en móvil se apila, que una tabla de 3 columnas
   en 375 px es ilegible. */
.tratamientos { display: grid; gap: 16px; margin-bottom: 16px; }
.tratamiento {
  border: 1px solid var(--linea);
  border-radius: 6px;
  padding: 16px 18px;
}
.tratamiento h3 { margin: 0 0 8px; }
.tratamiento dl { display: grid; gap: 6px 14px; font-size: 0.94rem; }
@media (min-width: 620px) { .tratamiento dl { grid-template-columns: max-content 1fr; } }
.tratamiento dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gris);
  padding-top: 0.28em;
}
.tratamiento dd { color: var(--tinta); }

/* Aviso de que no hay cookies: es información útil, no letra pequeña. */
.destacado {
  background: var(--azul-suave);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 22px 0;
}
.destacado p { margin-bottom: 8px; }
.destacado p:last-child { margin-bottom: 0; }

/*
 * Datos que Hugo tiene que rellenar cuando se dé de alta. Se marcan en ámbar
 * a propósito: un hueco discreto se publica sin que nadie lo note, y en un
 * documento legal eso es peor que un hueco feo.
 */
.pendiente {
  background: var(--ambar-suave);
  color: var(--ambar);
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px dashed color-mix(in srgb, var(--ambar) 40%, transparent);
  white-space: nowrap;
}
.aviso-borrador {
  background: var(--ambar-suave);
  border: 1px solid color-mix(in srgb, var(--ambar) 30%, transparent);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 34px;
  font-size: 0.94rem;
  color: var(--ambar);
}
.aviso-borrador b { font-weight: 600; }

/* ---------- Pie ---------- */
footer { border-top: 1px solid var(--linea); padding: 26px 0; }
.pie {
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  font-size: 0.86rem; color: var(--gris);
}
.pie a { color: var(--gris); text-decoration: none; font-weight: 500; }
.pie a:hover { color: var(--tinta); }
.pie .hueco { flex: 1; }
