/* Marco Content Publisher — páginas legales.
   Sin fuentes externas, sin JavaScript, sin cookies, sin analítica. */

:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --text: #1c1f23;
  --muted: #5b6470;
  --line: #dfe3e8;
  --accent: #1d4ed8;
  --accent-soft: #eef2ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1c2024;
    --text: #e8eaed;
    --muted: #9aa4b0;
    --line: #2c3238;
    --accent: #8ab4f8;
    --accent-soft: #1e2733;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- cabecera y navegación ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

header.site .wrap {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.brand a { color: var(--text); text-decoration: none; }
.brand a:hover { color: var(--accent); }

nav.site ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}

nav.site a:hover { color: var(--accent); }

nav.site a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* ---------- contenido ---------- */

main { padding: 2.5rem 0 3rem; }

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  margin: 2.2rem 0 0.6rem;
  padding-top: 0.4rem;
}

h3 {
  font-size: 1.02rem;
  margin: 1.4rem 0 0.4rem;
}

p, ul, ol { margin: 0 0 1rem; }

ul, ol { padding-left: 1.35rem; }

li { margin-bottom: 0.35rem; }

a { color: var(--accent); }

.lead {
  font-size: 1.06rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.dates {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.5rem;
}

.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.5rem;
}

.note p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  margin: 0.25rem 0 1rem;
}

@media (prefers-color-scheme: dark) {
  .btn { color: #14171a; }
}

.btn:hover { filter: brightness(1.08); }

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-bottom: 1.5rem;
}

.cards .card { margin: 0; }

.cards h2 { margin-top: 0; font-size: 1.05rem; }

.table-scroll { overflow-x: auto; margin: 0 0 1.5rem; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.94rem;
  min-width: 30rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
  background: var(--surface);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

/* ---------- pie ---------- */

footer.site {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}

footer.site p { margin: 0 0 0.35rem; }
footer.site p:last-child { margin-bottom: 0; }

@media (max-width: 30rem) {
  body { font-size: 16px; }
  h1 { font-size: 1.5rem; }
  main { padding: 2rem 0 2.5rem; }
}
