/* Mejenga · hoja compartida de las páginas secundarias.
   Tokens copiados de src/theme/palette.ts y semanticColors.ts (tema oscuro).
   No inventar valores: colores, tamaños (34/28/22/17/15/13), spacing (4…64) y
   radius (8/12/16/24/999) salen de la escala del design system. */
:root {
  --bg: #111111;
  --surface: #181818;
  --surface-raised: #1E1E1E;
  --surface-secondary: #2B2B2B;
  --text: #FFFFFF;
  --text-secondary: #D1D5DB;
  --text-tertiary: #9CA3AF;
  --border: #2B2B2B;
  --border-strong: #6B7280;
  --action: #009E65;
  --action-pressed: #18B776;
  --action-text: #FFFFFF;
  --brand-logo: #022F26;
  --selected: rgba(0, 158, 101, 0.2);
  --error: #F87171;
  --warning: #FBBF24;
  --warning-bg: rgba(251, 191, 36, 0.16);
  --radius-sm: 8px;
  --radius-control: 12px;
  --radius-card: 16px;
  --radius-sheet: 24px;
  --radius-pill: 999px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 22px;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--action); }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--action-pressed);
  outline-offset: 2px;
}

h1, h2, h3, p, ul, ol { margin: 0; }
h1 { font-size: 28px; line-height: 34px; font-weight: 700; }
h2 { font-size: 22px; line-height: 28px; font-weight: 600; }
h3 { font-size: 17px; line-height: 22px; font-weight: 600; }
p, li { color: var(--text-secondary); }
strong { color: var(--text); font-weight: 600; }

/* ── Encabezado compartido ─────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.site-header__logo { display: inline-flex; align-items: center; min-height: 48px; }
.site-header__logo img { height: 24px; width: auto; display: block; }
.site-header__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  border-radius: var(--radius-control);
}
.site-header__link:hover { color: var(--text); background: var(--surface); }

/* ── Card centrada (deep links) ────────────────────────── */
.centered { display: grid; place-items: center; padding: 24px 16px 48px; }
.card {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sheet);
  padding: 24px;
}
.card h1 { margin-bottom: 8px; }
.card p { margin-bottom: 12px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--action);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--selected);
  margin-bottom: 16px;
}
.actions { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 640px) {
  .actions { grid-template-columns: 1fr 1fr; }
  .actions .btn-primary { grid-column: 1 / -1; }
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.btn-primary { color: var(--action-text); background: var(--action); }
.btn-primary:hover { background: var(--action-pressed); }
.btn-secondary { color: var(--text); background: transparent; border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-raised); }
.btn[aria-disabled="true"] { color: var(--border-strong); background: var(--surface-secondary); pointer-events: none; }
.small { margin-top: 16px; font-size: 13px; line-height: 18px; color: var(--text-tertiary); }
.error { color: var(--error); margin-top: 12px; font-weight: 600; }

/* ── Páginas de texto (privacidad, eliminar cuenta) ────── */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
.prose h1 { margin-bottom: 8px; }
.prose .meta { color: var(--text-tertiary); font-size: 15px; line-height: 20px; margin-bottom: 32px; }
.prose h2 { margin-top: 32px; margin-bottom: 12px; }
.prose p { margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 12px; }
.prose li { margin-bottom: 4px; }
.steps { list-style: none; padding: 0; display: grid; gap: 8px; }
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
}
.steps__num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--action);
  color: var(--action-text);
  font-size: 13px;
  line-height: 24px;
  font-weight: 600;
  text-align: center;
}
.callout {
  background: var(--warning-bg);
  border: 1px solid var(--warning);
  border-radius: var(--radius-card);
  padding: 16px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 20px;
}
.callout strong { color: var(--warning); }

.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-tertiary);
}
.site-footer a { color: var(--text-secondary); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.site-footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
