:root {
  --bg: #f2f2f5;
  --surface: #ffffff;
  --stroke: #e3e3e8;
  --text: #212121;
  --text-2: #5f6368;
  --text-3: #9e9e9e;
  --accent: #0b57d0;
  --positive: #1da75a;
  --warning: #ff6d00;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101114;
    --surface: #1a1c20;
    --stroke: #2c2f36;
    --text: #f1f1f1;
    --text-2: #b6b8bd;
    --text-3: #8a8d93;
    --accent: #00e5ff;
    --positive: #4ade80;
    --warning: #ffa726;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 16px 64px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

main { max-width: 720px; margin: 0 auto; }

header { text-align: center; margin: 24px 0 32px; }

.icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: block;
  fill: var(--accent);
}

h1 { font-size: 1.7rem; margin: 0 0 6px; line-height: 1.25; }

.updated { color: var(--text-3); font-size: .85rem; margin: 0; }

.resumen {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
  font-weight: 600;
}

section {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.num {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.body-col { flex: 1; min-width: 0; }

h2 { font-size: 1.05rem; margin: 0 0 8px; line-height: 1.35; }

p { margin: 0 0 12px; color: var(--text-2); }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 12px; padding-left: 20px; color: var(--text-2); }
li { margin-bottom: 6px; }

strong { color: var(--text); }

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

.destacado {
  border-left: 3px solid var(--warning);
  padding-left: 14px;
  margin: 14px 0;
}

.pasos { counter-reset: paso; list-style: none; padding-left: 0; }
.pasos li {
  counter-increment: paso;
  margin-bottom: 14px;
  padding-left: 34px;
  position: relative;
}
.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--positive);
  color: var(--bg);
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.nav a {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: .9rem;
  color: var(--text-2);
}
.nav a:hover { border-color: var(--accent); color: var(--accent); }

footer {
  text-align: center;
  color: var(--text-3);
  font-size: .82rem;
  margin-top: 36px;
}

table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--stroke); vertical-align: top; }
th { color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
td { color: var(--text-2); }
.tabla-wrap { overflow-x: auto; }
