/* Senior-friendly: large type, high contrast, big labeled buttons (see style-guide.md). */
:root {
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --border: #7A8499;
  --text: #0B0F17;
  --text-2: #2A3245;
  --primary: #0A5FA8;
  --on-primary: #FFFFFF;
  --accent: #B8430F;
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0F17;
    --surface: #141A26;
    --border: #7A8499;
    --text: #FFFFFF;
    --text-2: #D9DFEA;
    --primary: #4CC9F0;
    --on-primary: #0B0F17;
    --accent: #FF8A4C;
  }
}

* { box-sizing: border-box; }

html { font-size: 20px; }

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

/* Show only the chosen language. */
html[data-lang="es"] [lang="en"],
html[data-lang="en"] [lang="es"] { display: none !important; }

a { color: var(--primary); text-underline-offset: 3px; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

header.top {
  border-bottom: 2px solid var(--border);
  background: var(--surface);
}
header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 48px; height: 48px; border-radius: 12px; }

.lang-switch { display: flex; gap: 12px; }
.lang-switch button {
  min-height: 64px;
  min-width: 120px;
  padding: 0 20px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  border: 4px solid var(--text);
}
.lang-switch button[aria-pressed="true"]::before { content: "✓ "; }

.hero { padding: 48px 0 32px; text-align: center; }
.hero img { width: 140px; height: 140px; border-radius: 32px; }
h1 { font-size: 2.2rem; line-height: 1.2; margin: 24px 0 16px; }
h2 { font-size: 1.5rem; line-height: 1.3; margin: 48px 0 16px; }
.lead { font-size: 1.2rem; color: var(--text-2); max-width: 640px; margin: 0 auto; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 28px;
  margin-top: 32px;
  font-weight: 700;
  color: var(--on-primary);
  background: var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
}

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-2); }

.note {
  border-left: 6px solid var(--accent);
  background: var(--surface);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border: 2px solid var(--border); }
th { font-weight: 700; }

.policy p, .policy li { color: var(--text); }
.policy .updated { color: var(--text-2); }

footer {
  margin-top: 64px;
  border-top: 2px solid var(--border);
  background: var(--surface);
  padding: 24px 0 40px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; }
footer a { display: inline-flex; align-items: center; min-height: 64px; font-weight: 700; }

@media (max-width: 560px) {
  html { font-size: 19px; }
  h1 { font-size: 1.8rem; }
  .lang-switch { width: 100%; }
  .lang-switch button { flex: 1; min-width: 0; }
  th, td { padding: 12px; }
}
