/* Tokens compartidos por todas las páginas del sitio */
:root {
  color-scheme: light dark;
  --bg: #f6f5f2;
  --fg: #201f1c;
  --muted: #706c64;
  --line: #ddd9cf;
  --accent: #2f5d50;
  --accent-tint: #e8efec;
  --font-display: ui-serif, Charter, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-label: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181a;
    --fg: #eceae5;
    --muted: #9a978f;
    --line: #2b2e2f;
    --accent: #6fa593;
    --accent-tint: #1c2624;
  }
}
:root[data-theme="dark"] {
  --bg: #16181a;
  --fg: #eceae5;
  --muted: #9a978f;
  --line: #2b2e2f;
  --accent: #6fa593;
  --accent-tint: #1c2624;
}
:root[data-theme="light"] {
  --bg: #f6f5f2;
  --fg: #201f1c;
  --muted: #706c64;
  --line: #ddd9cf;
  --accent: #2f5d50;
  --accent-tint: #e8efec;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.lang-switch {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}
.lang-switch button {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
}
.lang-switch button[aria-current="true"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lang-switch button:hover { color: var(--fg); }
.lang-switch button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.1rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 10px;
}

p.lead {
  color: var(--muted);
  max-width: 50ch;
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.updated {
  font-family: var(--font-label);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 18px 0 0;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.contact {
  background: var(--accent-tint);
  border-radius: 10px;
  padding: 22px 24px;
  margin-top: 16px;
}
.contact p {
  margin: 0;
  font-size: 0.95rem;
}
.contact a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

footer {
  margin-top: 64px;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer a { color: var(--muted); }

/* --- Página "Soporte" (index.html) --- */

.page-support h2 {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.page-support section + section { margin-top: 48px; }

.app-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.app-row:last-child { border-bottom: 1px solid var(--line); }

.marker {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
}

.app-row h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0 0 3px;
}
.app-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 48ch;
}

details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
details:last-child { border-bottom: 1px solid var(--line); }

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 0.98rem;
}
summary::-webkit-details-marker { display: none; }

summary .toggle {
  font-family: var(--font-label);
  color: var(--accent);
  flex: none;
}
details[open] summary .toggle::before { content: "–"; }
summary .toggle::before { content: "+"; }

details p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 50ch;
  margin: 12px 0 0;
}

/* --- Página "Privacidad" (privacidad.html) --- */

.page-privacy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 12px;
}

.page-privacy section + section {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.page-privacy section p,
.page-privacy section li {
  max-width: 58ch;
  font-size: 0.98rem;
}

.page-privacy section p + p { margin-top: 12px; }

.page-privacy ul {
  margin: 0;
  padding-left: 1.1em;
}
.page-privacy li { margin-bottom: 8px; }
.page-privacy li:last-child { margin-bottom: 0; }
