:root {
  --brand: #15803d; --brand-deep: #0f5f2e; --brand-bright: #22a352; --brand-soft: #e8f4ec;
  --ink: #141414; --ink-soft: #4d5150; --ink-mute: #6b706f; --bg: #fbfbf8; --surface: #fff; --line: #e6e7e3;
  --warn-soft: #fff4e5; --warn-ink: #7c3a06;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 17px; line-height: 1.65; font-weight: 500; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(780px, 100% - 32px); margin-inline: auto; }
header.top { position: sticky; top: 0; z-index: 10; background: rgb(251 251 248 / 88%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, var(--brand-bright), var(--brand-deep)); }
.back { text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
main { padding: 56px 0 80px; }
h1 { font-size: clamp(2.1rem, 6vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; margin: 0; font-weight: 800; text-wrap: balance; }
.updated { color: var(--ink-mute); margin-top: 12px; font-size: .95rem; }
.intro { font-size: 1.12rem; color: var(--ink-soft); margin-top: 22px; }
.toc { margin: 32px 0 8px; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.toc b { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
@media (min-width: 700px) { .toc ol { display: block; columns: 2; column-gap: 40px; } .toc li { break-inside: avoid; } }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
h2 { font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.2; margin: 48px 0 12px; scroll-margin-top: 84px; font-weight: 800; }
h3 { font-size: 1.1rem; margin: 26px 0 6px; font-weight: 800; }
p, li { color: var(--ink-soft); }
p { margin: 10px 0; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
strong { color: var(--ink); }
.box { margin: 18px 0; padding: 18px 20px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-deep); }
.box p { color: var(--brand-deep); margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
th { color: var(--ink); font-weight: 800; background: #f6f7f4; }
tr:last-child td { border-bottom: 0; }
/* Dato que el dueño debe llenar antes de publicar */
.falta { background: var(--warn-soft); color: var(--warn-ink); padding: 1px 6px; border-radius: 6px; font-weight: 700; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-mute); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
