/* Guías de schoolosca.com (/guias/, /sistema-de-gestion-escolar/, …). Mismos tokens que la landing. */
:root {
  --paper: #f6f7fb; --surface: #fff; --surface-2: #eef1f8; --line: #dfe4ee;
  --ink: #0b1230; --text: #151c36; --muted: #5a6486;
  --brand: #3d63f5; --brand-ink: #2246d6; --brand-soft: #e6ecff; --wa: #1a8f4f;
  --ok: #2bb98a; --warn: #e09b2e;
  --r: 16px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a0f24; --surface: #111832; --surface-2: #18213f; --line: #243055;
    --ink: #f4f6fc; --text: #e6eaf6; --muted: #a2acca;
    --brand: #6d8bff; --brand-ink: #a8bcff; --brand-soft: #1b2654; --wa: #25a35f;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.04rem/1.72 "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--line); }
.wrap-top { max-width: 1100px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marca { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.marca b { color: var(--brand); }
.top nav { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: .92rem; }
.top nav a { color: var(--text); text-decoration: none; white-space: nowrap; }
.top nav a.demo { background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 10px; }
@media (max-width: 560px) { .top nav a:not(.demo) { display: none; } }
.migas { margin-top: 28px; font-size: .86rem; color: var(--muted); }
.migas a { color: var(--muted); text-decoration: none; } .migas a:hover { color: var(--text); } .migas span { margin: 0 4px; }
.kicker { margin: 18px 0 0; display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--brand-ink); }
.kicker::before { content: ""; width: 20px; height: 3px; border-radius: 2px; background: var(--brand); }
h1, h2, h3 { font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif; color: var(--ink); text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2rem, 5.4vw, 3rem); line-height: 1.06; letter-spacing: -.035em; margin: 10px 0 8px; }
h2 { font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 1.8rem); line-height: 1.15; letter-spacing: -.03em; margin: 44px 0 10px; }
h3 { font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; margin: 26px 0 6px; }
.fecha { color: var(--muted); font-size: .88rem; margin: 0 0 22px; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--text); }
p { margin: 0 0 14px; } ul, ol { padding-left: 22px; margin: 0 0 16px; } li { margin: 0 0 6px; } li::marker { color: var(--brand); }
strong, b { color: var(--ink); }
.resumen { margin: 22px 0; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.resumen b:first-child { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.02rem; margin-bottom: 6px; }
.resumen ul { margin: 0; }
.nota { margin: 18px 0; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); font-size: .95rem; }
.ok { margin: 18px 0; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); font-size: .95rem; }
.tabla { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { text-align: left; font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 10px 14px; white-space: nowrap; }
td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
code { font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; background: var(--ok); }
details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 0 0 10px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--ink); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--brand); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { padding: 0 16px 14px; margin: 0; }
.cta { margin: 48px 0 10px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 20px; background: linear-gradient(135deg, var(--brand), #6c4be0); color: #fff; }
.cta b { display: block; color: #fff; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; }
.cta span { display: block; margin-top: 6px; opacity: .88; font-size: .95rem; }
.cta-b { display: flex; gap: 8px; flex-wrap: wrap; }
.cta-b a { text-decoration: none; font-weight: 700; padding: 11px 16px; border-radius: 12px; white-space: nowrap; }
.cta-b .b1 { background: #fff; color: #2d3fb8; } .cta-b .b2 { background: var(--wa); color: #fff; }
@media (max-width: 640px) { .cta { grid-template-columns: 1fr; } }
.rel h2 { font-size: 1.3rem; margin-top: 40px; }
.rel div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rel a { display: block; text-decoration: none; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2,.9,.25,1), box-shadow .25s; }
.rel a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(11,18,48,.4); }
.rel b { display: block; color: var(--ink); line-height: 1.3; } .rel span { display: block; margin-top: 4px; font-size: .88rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 640px) { .rel div { grid-template-columns: 1fr; } }
.hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.hub a { display: block; text-decoration: none; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--c, var(--brand)); transition: transform .3s cubic-bezier(.2,.9,.25,1), box-shadow .25s; }
.hub a:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(11,18,48,.45); }
.hub b { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.12rem; color: var(--ink); line-height: 1.25; letter-spacing: -.02em; }
.hub span { display: block; margin-top: 6px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
@media (max-width: 640px) { .hub { grid-template-columns: 1fr; } }
.pie { margin-top: 56px; border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: .86rem; color: var(--muted); }
.pie .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; }
.pie nav { display: flex; gap: 16px; flex-wrap: wrap; } .pie a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rel a, .hub a { transition: none; } .rel a:hover, .hub a:hover { transform: none; } }
