/* Estilos de las páginas legales de K'priletto (mismos tokens que index.html) */
:root {
  --bg: #F7F1EA; --surface: #FFFDFA; --surface-2: #F1E7DC; --ink: #2E241F; --ink-soft: #6B5B52; --line: #E6D9CB;
  --brand: #B4583A; --brand-soft: #F4DED3; --sage: #7E9A7E; --sage-soft: #E2EBDF;
  --shadow: 0 1px 2px rgba(46,36,31,.06), 0 12px 32px -12px rgba(46,36,31,.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1714; --surface: #251F1B; --surface-2: #2E2622; --ink: #F3EAE2; --ink-soft: #BFAEA3; --line: #3A302A;
    --brand: #D9785A; --brand-soft: #3C2A23; --sage-soft: #26302A; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --bg: #1C1714; --surface: #251F1B; --surface-2: #2E2622; --ink: #F3EAE2; --ink-soft: #BFAEA3; --line: #3A302A;
  --brand: #D9785A; --brand-soft: #3C2A23; --sage-soft: #26302A; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 "Nunito Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.lnav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.lnav .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 22px "Fraunces", serif; color: var(--ink); text-decoration: none; }
.logo img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; color: var(--ink); text-decoration: none; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }

.lhero { padding: 56px 0 24px; }
.lhero .eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.lhero h1 { font-size: clamp(34px, 5vw, 52px); margin: 10px 0 12px; }
.lhero p { color: var(--ink-soft); margin: 0; max-width: 680px; }

.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding: 24px 0 80px; align-items: start; }
.toc { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; font-size: 14.5px; }
.toc b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--brand); }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px 48px; box-shadow: var(--shadow); }
.doc h2 { font-size: 26px; margin: 40px 0 12px; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--surface-2); font-weight: 800; }
.table-wrap { overflow-x: auto; }
.note { background: var(--sage-soft); border-radius: 14px; padding: 14px 18px; margin: 16px 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 800; border: 0; border-radius: 999px; padding: 12px 22px; font-size: 15px; cursor: pointer; font-family: inherit; }
/* Datos por completar antes de publicar (se ven resaltados a propósito) */
.pc { background: #FFE58A; color: #4A3A00; padding: 0 5px; border-radius: 4px; font-weight: 800; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; }
  .doc { padding: 28px 22px; border-radius: 20px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .lhero { padding: 36px 0 12px; }
  .back span { display: none; }
}
@media print {
  .lnav, .toc, footer, .kc-banner { display: none !important; }
  .layout { display: block; } .doc { border: 0; box-shadow: none; padding: 0; }
}
