/* canta — sitio de soporte y políticas.
   Una sola hoja para todas las páginas. Sin fuentes ni recursos externos:
   la página carga igual de rápido en una conexión mala y no filtra visitas
   a terceros, que sería contradictorio en un sitio que promete no rastrear. */

:root {
  --bg: #ffffff;
  --bg-elevated: #f0f0f3;
  --border: #e0e1e6;
  --text: #11181c;
  --text-secondary: #60646c;
  --accent: #208aef;
  --accent-quiet: #e8f2fd;
  --tuned: #12a150;
  --radius: 14px;
  --measure: 42rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elevated: #17181a;
    --border: #2e3135;
    --text: #f4f5f6;
    --text-secondary: #b0b4ba;
    --accent: #4da3f5;
    --accent-quiet: #10243a;
    --tuned: #3dd68c;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0 1.5rem 5rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
}

/* --- Cabecera --- */

header.site {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 2rem 0 0;
}

header.site img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: block;
}

header.site .name {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

header.site .spacer {
  flex: 1;
}

header.site .lang {
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
}

header.site .lang:hover {
  text-decoration: underline;
}

/* --- Portada --- */

.hero {
  padding: 3.5rem 0 1rem;
}

.hero img.mark {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
  margin-bottom: 1.75rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 34rem;
}

h2 {
  font-size: 1.3125rem;
  letter-spacing: -0.015em;
  font-weight: 650;
  margin: 2.75rem 0 0.75rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  margin: 1.75rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

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

strong {
  font-weight: 650;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-elevated);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.updated {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 0 2rem;
}

/* --- Resumen destacado --- */

.callout {
  background: var(--accent-quiet);
  border-radius: var(--radius);
  padding: 1.25rem 1.375rem;
  margin: 0 0 2rem;
}

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

/* --- Rejilla de puntos --- */

.facts {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.facts li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 0.875rem 1.125rem;
  margin: 0;
}

.facts .tick {
  color: var(--tuned);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Tarjetas de enlace --- */

.cards {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.cards a {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  text-decoration: none;
  color: inherit;
}

.cards a:hover {
  border-color: var(--accent);
}

.cards .title {
  font-weight: 650;
  display: block;
  margin-bottom: 0.15rem;
}

.cards .sub {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  display: block;
}

/* --- Pie --- */

footer.site {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

footer.site a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border);
}

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

footer.site .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
  margin-bottom: 0.75rem;
}
