/* ===== Reset mínimo ===== */
html, body {
  height: 100%;
  margin: 0;
}

/* ===== Base ===== */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.65;
  color: #1f2937;
  background: #f3f4f6;
}

/* ===== Layout vertical ===== */
.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

header,
main,
footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

main {
  flex: 1;
  background: #ffffff;
}

/* ===== Header ===== */
header h1 {
  margin: 0;
  font-size: 2rem;
}

header p {
  margin-top: 0.5rem;
  max-width: 60ch;
  color: #6b7280;
}

header a {
  color: inherit;
  text-decoration: none;
}

/* ===== Typography ===== */
h1, h2, h3 {
  line-height: 1.3;
  margin-top: 3rem;
}

h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.4rem;
}

p {
  margin: 1.2rem 0;
  max-width: 72ch;
}

/* ===== Links ===== */
a {
  color: #2563eb;
}

a:hover {
  text-decoration: underline;
}

/* ===== Code ===== */
pre {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
}

code {
  background: #eef2ff;
  padding: 0.2em 0.4em;
  font-size: 0.95em;
}

pre code {
  background: none;
  padding: 0;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  header,
  main,
  footer {
    padding: 1.5rem 1.2rem;
  }
}
