/* Didakta — páginas legales.
   Sin CDN ni terceros a propósito: la tipografía se sirve desde didakta.es
   (/estatico/tipografia.css). Mismas familias y paleta que la landing:
   Hanken Grotesk en titulares, Inter en texto, JetBrains Mono en datos. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #f9f9f9;
  color: #1a1c1c;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------ estructura */
.envoltura { max-width: 820px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .envoltura { padding: 0 40px; } }

header.barra {
  border-bottom: 1px solid #c4c7c7;
  background: #f9f9f9;
}
header.barra .envoltura {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 20px; padding-bottom: 20px;
}
.marca {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Hanken Grotesk", Inter, system-ui, sans-serif;
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #1a1c1d; text-decoration: none;
}
.marca svg { height: 22px; width: auto; display: block; }
.volver {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #5e5e5e; text-decoration: none;
}
.volver:hover { color: #000; text-decoration: underline; }

main { padding: 48px 0 24px; }

/* ------------------------------------------------------------ tipografía */
.rotulo {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #000; margin: 0 0 8px;
}
h1 { font-family: "Hanken Grotesk", Inter, system-ui, sans-serif; font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 8px; }
h2 {
  font-family: "Hanken Grotesk", Inter, system-ui, sans-serif;
  font-size: 20px; line-height: 1.3; font-weight: 700; margin: 40px 0 12px;
  padding-top: 16px; border-top: 1px solid #c4c7c7;
}
h3 { font-family: "Hanken Grotesk", Inter, system-ui, sans-serif; font-size: 17px; font-weight: 700; margin: 24px 0 6px; }
p, li { color: #3c3f3f; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: #000; }
strong { color: #1a1c1c; }
.fecha {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: #5e5e5e;
  margin-bottom: 32px;
}
.entradilla { font-size: 17px; color: #1a1c1c; }

/* ------------------------------------------------------------ bloques */
.ficha {
  border: 1px solid #c4c7c7; background: #f3f3f3;
  padding: 16px 20px; margin: 0 0 24px;
}
.ficha dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px 24px; }
@media (min-width: 640px) { .ficha dl { grid-template-columns: 190px 1fr; } }
.ficha dt {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #5e5e5e; padding-top: 6px;
}
.ficha dd { margin: 0; padding-top: 4px; padding-bottom: 6px; }

.aviso {
  border-left: 4px solid #000; background: #eeeeee;
  padding: 12px 16px; margin: 0 0 20px;
}
.aviso p:last-child { margin-bottom: 0; }

/* dato que aún falta por rellenar: imposible que pase inadvertido */
.pendiente {
  background: #ffe9c7; border: 1px dashed #c05000; color: #7a3600;
  padding: 1px 6px; font-weight: 700; font-size: 13px;
}

/* ------------------------------------------------------------ tablas */
.tabla-envoltura { overflow-x: auto; margin: 0 0 20px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
th, td { border: 1px solid #c4c7c7; padding: 8px 10px; text-align: left; vertical-align: top; }
th {
  background: #eeeeee; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
td code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px; background: #f3f3f3; padding: 1px 4px;
}

/* ------------------------------------------------------------ índice */
.indice { border: 1px solid #c4c7c7; padding: 16px 20px; margin: 0 0 32px; background: #fff; }
.indice p { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #000; }
.indice ol { margin: 0; padding-left: 20px; font-size: 14px; }
.indice li { margin-bottom: 3px; }

/* ------------------------------------------------------------ pie */
footer.pie { border-top: 1px solid #c4c7c7; margin-top: 48px; }
footer.pie .envoltura {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  padding-top: 32px; padding-bottom: 32px;
}
footer.pie a, footer.pie span {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #5e5e5e; text-decoration: none;
}
footer.pie a:hover { color: #000; text-decoration: underline; }
.enlaces-pie { display: flex; flex-wrap: wrap; gap: 16px; }
