/* Paleta Turquesa de la app (Color.kt). Claro por defecto; oscuro con prefers-color-scheme. Sin recursos externos. */
@font-face { font-family: "Rubik"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/rubik-400.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/rubik-600.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #f5faf9;
  --surface: #e9f0ee;
  --text: #151d1c;
  --text-muted: #3e4947;
  --primary: #006e63;
  --outline: #bec9c6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1214;
    --surface: #131c1f;
    --text: #e2eeec;
    --text-muted: #a7bbb8;
    --primary: #3fd8c4;
    --outline: #33433f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 1.5rem 1rem 3rem;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 "Rubik", system-ui, sans-serif;
  overflow-wrap: break-word;
}
main, header, footer { max-width: 70ch; margin-inline: auto; }
h1, h2, h3 { font-weight: 600; line-height: 1.25; }
h1 { font-size: 1.75rem; margin: 1.5rem 0 0.75rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-inline-start: 1.25rem; }
a { color: var(--primary); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
.muted { color: var(--text-muted); }
.brand { display: flex; align-items: center; gap: 1rem; }
.brand img { width: 4rem; height: 4rem; border-radius: 1rem; flex: none; border: 1px solid var(--outline); }
.brand h1 { margin: 0; }
.lang { margin: 0 0 1rem; text-align: end; }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin: 0; }
.topbar a:first-child { font-weight: 600; }
footer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--outline); }
section[id] { scroll-margin-top: 1rem; }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: 0.75rem; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1rem; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--outline); padding: 0.5rem 0.75rem; text-align: start; vertical-align: top; }
