:root {
  color-scheme: light;
  --paper:#f5f5ee;
  --white:#fefef9;
  --ink:#111929;
  --muted:#495363;
  --line:#c8ccce;
  --accent:#233de0;
  --accent-dark:#1a2e9d;
  --accent-text:#fff;
  --lavender:#e5e9ff;
  --mint:#d8f77a;
  --dark:#121b35;
  --dark-line:#526080;
  --dark-text:#f7f8ff;
  --dark-muted:#ced5ec;
  --preview-surface:#1c2848;
  --feedback-ink:#22380d;
  --warning:#f9ebbf;
  --warning-ink:#53390b;
  --focus:#126850;
  --font:'Avenir Next',Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  --display:var(--font);
  --mono:ui-monospace,SFMono-Regular,Consolas,monospace;
  --title-weight:780;
  --tracking:-.068em;
  --radius:15px;
  --width:1240px;
}
*,*::before,*::after { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; color:var(--ink); background:var(--paper); font:1rem/1.57 var(--font); }
h1,h2,h3,p,ol,ul,dl,dd { margin:0; }
a { color:inherit; text-underline-offset:.2em; }
button,textarea,select,input { font:inherit; }
button,summary,select { cursor:pointer; }
button,select,textarea { color:inherit; }
abbr[title] { text-underline-offset:.15em; }
:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.wrap { width:min(var(--width),calc(100% - 88px)); margin-inline:auto; }
.sr { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip { position:fixed; z-index:10; top:14px; left:-1000px; padding:12px; color:#101929; background:#fff; font-weight:750; }
.skip:focus { left:14px; }

.mast { border-top:5px solid var(--accent); border-bottom:1px solid var(--line); }
.mast-row { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:71px; }
.brand { display:inline-flex; min-height:44px; align-items:center; gap:7px; font-size:1.35rem; font-weight:790; letter-spacing:-.05em; text-decoration:none; white-space:nowrap; }
.brand > span:last-child { color:var(--accent-dark); font:750 .67rem/1 var(--mono); letter-spacing:.07em; }
.brand-mark { display:grid; grid-template-columns:repeat(3,3px); align-items:end; justify-content:center; gap:2px; width:31px; height:31px; padding-bottom:8px; border-radius:7px; background:var(--accent); }
.brand-mark i { width:3px; height:7px; border-radius:2px; background:var(--accent-text); }
.brand-mark i:nth-child(2) { height:11px; }
.brand-mark i:nth-child(3) { height:15px; background:var(--mint); }
.mast nav { display:flex; align-items:center; gap:8px; }
.mast nav a { display:inline-flex; align-items:center; min-height:44px; border-radius:7px; padding:4px 11px; text-decoration:none; font-size:.91rem; font-weight:720; white-space:nowrap; }
.mast nav a:hover,.mast nav a[aria-current] { color:var(--accent-dark); background:var(--lavender); }
.storage-banner { margin:0; padding:10px max(16px,calc((100% - var(--width))/2)); color:var(--warning-ink); background:var(--warning); }

h1,h2 { font-family:var(--display); font-weight:var(--title-weight); line-height:1.01; letter-spacing:var(--tracking); }
h1 { font-size:clamp(2.9rem,6.8vw,6.65rem); text-wrap:balance; }
h1 em { color:var(--accent-dark); font-style:normal; }
h2 { font-size:clamp(1.42rem,3vw,2.44rem); }
h3 { font-size:1.1rem; line-height:1.21; letter-spacing:-.023em; }
.kicker { margin-bottom:14px; color:var(--accent-dark); font:700 .75rem/1.3 var(--mono); letter-spacing:.077em; text-transform:uppercase; }
.hero { display:grid; grid-template-columns:minmax(0,.98fr) minmax(0,1.02fr); align-items:center; gap:clamp(28px,5.8vw,92px); padding-block:clamp(58px,7.4vw,110px); min-height:560px; }
.hero-copy { min-width:0; }
.hero-copy .compact { margin-top:16px; }
.lede { margin-block:18px 8px; max-width:54ch; color:var(--muted); font-size:clamp(1rem,1.63vw,1.21rem); }
.compact { font-size:.85rem; }
.muted { color:var(--muted); }
.actions { display:flex; flex-wrap:wrap; gap:9px 16px; align-items:center; margin:18px 0 10px; }
.button,.subtle-link { display:inline-flex; max-width:100%; min-height:46px; justify-content:center; align-items:center; gap:8px; font-weight:740; text-align:center; }
.button { padding:8px 15px; border:1px solid var(--line); border-radius:8px; background:var(--white); color:var(--accent-dark); text-decoration:none; line-height:1.25; }
.button:hover { background:var(--lavender); }
.button.primary { border-color:var(--accent); background:var(--accent); color:var(--accent-text); }
.button.primary:hover { border-color:var(--accent-dark); background:var(--accent-dark); }
.button:disabled { cursor:default; opacity:.64; }
.subtle-link { color:var(--accent-dark); }

.preview { position:relative; min-width:0; padding:clamp(14px,2.8vw,28px); border:1px solid var(--dark-line); border-radius:var(--radius); background:var(--dark); color:var(--dark-text); box-shadow:8px 9px 0 var(--accent); }
.preview::before { content:""; display:block; width:42px; height:4px; margin-bottom:8px; background:var(--mint); }
.preview :focus-visible,.notes :focus-visible { outline-color:var(--mint); }
.preview-top,.preview-bottom { display:flex; gap:10px; align-items:center; justify-content:space-between; padding:9px 0; }
.preview-top strong { font-size:clamp(1rem,1.7vw,1.26rem); line-height:1.2; letter-spacing:-.028em; }
.badge { max-width:100%; padding:4px 8px; border-radius:4px; background:var(--mint); color:var(--feedback-ink); font:750 .68rem/1.2 var(--mono); text-align:center; }
.preview-tabs,.proof-nav { display:flex; flex-wrap:wrap; gap:5px; margin:9px 0; }
.preview-tabs button,.proof-nav button { min-height:44px; padding:6px 9px; border:1px solid var(--dark-line); border-radius:5px; background:var(--preview-surface); color:var(--dark-text); font-size:.8rem; font-weight:715; line-height:1.25; text-align:start; }
.preview-tabs button[aria-pressed="true"],.proof-nav button[aria-pressed="true"],.proof-nav button[aria-selected="true"] { border-color:var(--mint); background:var(--mint); color:var(--feedback-ink); }
.preview-value,.proof-pane { min-width:0; min-height:116px; padding:clamp(13px,2vw,20px); border:1px solid var(--dark-line); border-radius:8px; background:var(--preview-surface); color:var(--dark-text); overflow-wrap:anywhere; }
.preview-value span,.preview-bottom small,.proof-pane small { display:block; color:var(--dark-muted); font:.76rem/1.35 var(--mono); }
.preview-value p,.proof-pane p { margin-top:8px; line-height:1.44; }
.preview-value strong,.proof-pane strong { color:var(--mint); }
.preview-bottom { padding:14px 0 0; }
.preview-bottom strong { display:block; margin-top:2px; font-size:.89rem; }
progress { width:min(100%,165px); height:11px; accent-color:var(--accent); vertical-align:middle; }
.preview progress { accent-color:var(--mint); }
.proof-rail { min-width:0; }
.proof-nav button { flex:1 0 auto; }
.proof-pane h2,.proof-pane h3 { margin:0 0 8px; }
.proof-pane [data-source],.preview .source-hit { color:var(--mint); }
.proof-pane dl div { display:grid; grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr); gap:5px 12px; padding-block:5px; }
.proof-pane dt { font-weight:720; }
.proof-pane dd { min-width:0; }
.proof-pane pre,.proof-pane code { font:inherit; white-space:pre-wrap; }
.proof-pane > :first-child { margin-top:0; }
.intro-band { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.8fr); align-items:center; gap:24px; padding-block:29px 35px; border-top:4px solid var(--ink); border-bottom:1px solid var(--line); }
.intro-band p:not(.kicker) { max-width:46ch; color:var(--muted); }

.page { padding-block:clamp(33px,5.6vw,75px); }
.page h1 { max-width:24ch; font-size:clamp(2.3rem,5.4vw,5.25rem); }
.page > p:not([class]) { max-width:62ch; }
.stage-nav { display:flex; flex-wrap:wrap; align-items:center; gap:3px 8px; margin-bottom:28px; border-bottom:1px solid var(--line); }
.stage-nav a { display:inline-flex; min-height:44px; align-items:center; padding:5px 8px; border-bottom:3px solid transparent; border-radius:4px 4px 0 0; font-size:.84rem; font-weight:700; text-decoration:none; line-height:1.25; }
.stage-nav a:hover { text-decoration:underline; }
.stage-nav a[aria-current] { border-color:var(--accent); background:var(--lavender); color:var(--accent-dark); }

.step-list { max-width:960px; margin-block:26px; padding:0; border-top:2px solid var(--ink); list-style:none; }
.step-list a { display:grid; grid-template-columns:42px minmax(0,1fr) auto 18px; align-items:center; gap:11px; padding:14px 7px; border-bottom:1px solid var(--line); text-decoration:none; }
.step-list a:hover { background:var(--lavender); }
.step-index { display:grid; width:36px; height:36px; align-items:center; color:var(--accent-dark); font:750 .81rem/1 var(--mono); }
.step-list small { display:block; color:var(--muted); }
.step-meta { color:var(--accent-dark); text-align:right; font-size:.83rem; font-weight:710; }
.step-arrow { color:var(--accent-dark); }
.callout { max-width:900px; padding:16px; border-left:4px solid var(--accent); background:var(--lavender); }
.callout p { max-width:69ch; }

.panel { min-width:0; border:1px solid var(--line); border-radius:var(--radius); background:var(--white); }
.reveal { max-width:960px; margin-top:20px; padding:4px 15px; }
summary { min-height:44px; padding:10px 0; color:var(--accent-dark); font-weight:730; }
summary:hover { text-decoration:underline; }
.side-by-side,.draft-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:9px 0 13px; }
.side-by-side > div,.draft-grid > * { min-width:0; padding:13px; border-top:3px solid var(--accent); border-radius:6px; background:var(--paper); overflow-wrap:anywhere; }
.draft-grid > :nth-child(2) { border-top-color:var(--focus); background:var(--lavender); }
.work-grid { display:grid; grid-template-columns:minmax(0,.68fr) minmax(0,1.32fr); align-items:start; gap:clamp(14px,2.5vw,34px); margin-top:25px; }
.notes { min-width:0; padding:clamp(14px,2.5vw,27px); border:1px solid var(--dark-line); border-radius:var(--radius); background:var(--dark); color:var(--dark-text); }
.notes h2 { font-size:clamp(1.4rem,2.4vw,2.03rem); }
.notes .muted { color:var(--dark-muted); }
.notes dl { margin-top:9px; }
.notes dl div { display:grid; grid-template-columns:32px minmax(0,1fr); gap:9px; align-items:baseline; padding-block:12px; }
.notes dl div + div { border-top:1px solid var(--dark-line); }
.notes dt { color:var(--mint); font:750 .82rem/1.3 var(--mono); }
.notes dd { overflow-wrap:anywhere; }
.notes .source-hit { outline:2px solid var(--mint); outline-offset:-2px; border-radius:5px; padding:7px; background:var(--preview-surface); }
.work { padding:clamp(14px,2.8vw,29px); }
.work h2 { margin-bottom:10px; }
.work p { margin-bottom:8px; overflow-wrap:anywhere; }
.decision,#transfer-checks fieldset { min-width:0; margin:14px 0; padding:8px 10px 11px; border:1px solid var(--line); border-radius:8px; }
legend { max-width:100%; padding-inline:4px; font-weight:740; }
.fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.75fr); gap:8px; }
.fields label { min-width:0; font-size:.88rem; font-weight:650; }
.fields select { display:block; width:100%; min-height:44px; margin-top:4px; padding:4px 6px; border:1px solid var(--muted); border-radius:6px; background:var(--white); color:var(--ink); font-weight:520; }
.hint { border-top:1px solid var(--line); }
.feedback:not(:empty),.result-artifact { margin:10px 0; padding:14px; border-left:4px solid var(--accent); background:var(--lavender); }
.explanation { margin-top:7px; padding-left:1.25em; }
.explanation li + li { margin-top:7px; }
.explanation span { display:block; }
.saved-chip { display:block; padding:9px 11px; border-radius:5px; background:var(--mint); color:var(--feedback-ink); }
.saved-chip .button { margin:4px 0 0; }
textarea { width:100%; min-width:0; min-height:130px; margin:5px 0; padding:9px; resize:vertical; border:1px solid var(--muted); border-radius:8px; background:var(--paper); color:var(--ink); }
.transfer-editor { min-width:0; }
.transfer-editor > label { display:block; font-weight:720; }
.check { display:flex; min-height:44px; align-items:center; gap:8px; cursor:pointer; }
.check input { flex:none; width:19px; height:19px; accent-color:var(--accent); }
.next { margin-top:15px; }
.banner { max-width:60ch; padding:9px 12px; border-radius:5px; background:var(--warning); color:var(--warning-ink); }

.result-artifact { min-width:0; margin:16px 0; border:1px solid var(--line); border-left:5px solid var(--focus); border-radius:7px; background:var(--white); color:var(--ink); overflow-wrap:anywhere; }
.result-artifact h3 { margin:9px 0 7px; }
.result-artifact :is(ol,ul) { padding-inline-start:1.15em; }
.result-artifact > :first-child { margin-top:0; }
.artifact-table { width:100%; min-width:0; border-collapse:collapse; font-size:.86rem; line-height:1.42; }
.artifact-table :is(th,td) { min-width:0; padding:7px 5px; border-bottom:1px solid var(--line); text-align:start; vertical-align:top; overflow-wrap:anywhere; }
.artifact-table th { font-weight:760; }
.artifact-table caption { padding:6px 0; font-weight:750; text-align:left; }
.revision-strip { display:flex; min-width:0; flex-wrap:wrap; gap:5px 12px; align-items:center; margin:12px 0; padding:10px 12px; border-left:4px solid var(--focus); background:var(--lavender); color:var(--ink); }
.revision-strip > * { min-width:0; overflow-wrap:anywhere; }

.space-top { display:grid; grid-template-columns:minmax(0,1fr) auto; justify-content:space-between; align-items:center; gap:15px; margin-top:25px; padding:clamp(14px,2.5vw,27px); border:0; border-radius:var(--radius); background:var(--lavender); }
.space-top b { display:block; font-size:clamp(1.25rem,2.75vw,2.24rem); line-height:1.12; letter-spacing:-.05em; }
.space-top progress { display:block; width:min(100%,245px); margin:9px 0; }
.resource-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); gap:clamp(12px,2.3vw,22px); margin-top:16px; }
.resource-grid > :last-child { background:transparent; }
.history { padding-left:1.2em; }
.history li { margin:7px 0; }
.history span { display:block; color:var(--muted); font-size:.87rem; }
.history details { border-bottom:1px solid var(--line); }
.history details dl,.history details .explanation { padding-bottom:10px; }
.history details dl div { margin-bottom:4px; }
.history details dt { font-weight:740; }
.saved-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.resource-actions { display:flex; flex-wrap:wrap; gap:7px; margin-block:14px; }
#import-file { width:100%; min-width:0; margin:8px 0; }
#import-file::file-selector-button { min-height:40px; margin-right:6px; border:1px solid var(--line); border-radius:5px; background:var(--lavender); color:var(--accent-dark); font:inherit; }
#transfer-status { min-height:1.4em; }
.kit { max-width:880px; margin-block:22px; }
.kit > div { padding-block:8px; }
.kit > div + div { border-top:1px solid var(--line); }
.kit dt { font-weight:750; }
.kit-compare { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-block:18px; }
.kit-compare > * { min-width:0; padding:14px; border-top:3px solid var(--accent); background:var(--lavender); }
.kit-compare > :first-child { border-color:var(--focus); background:var(--white); }
.footer { display:flex; align-items:center; flex-wrap:wrap; gap:5px 14px; padding-block:18px; border-top:1px solid var(--line); color:var(--muted); font-size:.85rem; }
.footer a { display:inline-flex; min-height:44px; align-items:center; }

/* Cuaderno de campo. La variante conserva el contenido y cambia la jerarquía espacial. */
body.art-b {
  color-scheme:dark;
  --paper:#112d29;
  --white:#183b36;
  --ink:#fcf3dd;
  --muted:#d2d8c2;
  --line:#65827a;
  --accent:#ffc65f;
  --accent-dark:#ffda92;
  --accent-text:#29200c;
  --lavender:#294f47;
  --mint:#f5c878;
  --dark:#0b211e;
  --dark-line:#68877e;
  --dark-text:#fff3db;
  --dark-muted:#dbe0c2;
  --preview-surface:#1c3d35;
  --feedback-ink:#33240b;
  --warning:#f3d8a1;
  --warning-ink:#3d2a10;
  --focus:#ffd987;
  --display:Georgia,'Times New Roman',serif;
  --tracking:-.043em;
  --title-weight:500;
  --radius:1px;
}
body.art-b .brand { font-family:var(--display); font-weight:700; letter-spacing:-.03em; }
body.art-b .brand-mark { border-radius:50%; }
body.art-b .brand-mark i:last-child { background:var(--accent-text); }
body.art-b .mast { border-top:0; border-bottom:1px solid var(--line); background:var(--dark); }
body.art-b .mast-row { min-height:69px; }
body.art-b .mast nav a { border-radius:0; }
body.art-b :is(h1,h2) em { font-style:italic; }
body.art-b .hero { grid-template-columns:minmax(0,1fr); justify-items:center; gap:26px; min-height:0; padding-block:clamp(43px,7vw,88px) 44px; text-align:center; }
body.art-b .hero-copy { width:min(100%,840px); }
body.art-b .hero .lede { margin-inline:auto; }
body.art-b .hero .actions { justify-content:center; }
body.art-b .hero .preview { width:min(100%,925px); color:var(--dark-text); text-align:left; box-shadow:none; }
body.art-b .preview::before { position:absolute; inset:16px 20px auto auto; width:10px; height:10px; border-radius:50%; }
body.art-b .preview-top { padding-right:23px; }
body.art-b .preview-value,body.art-b .proof-pane { min-height:93px; border-radius:0; }
body.art-b .intro-band { grid-template-columns:minmax(0,1fr); gap:9px; width:min(100%,925px); text-align:center; border-top:1px solid var(--line); }
body.art-b .intro-band p { margin-inline:auto; }
body.art-b .button { border-radius:3px; }
body.art-b .button.primary:hover { color:var(--accent-text); }
body.art-b .page { width:min(100%,960px); }
body.art-b .stage-nav { margin-bottom:25px; }
body.art-b .work-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
body.art-b .notes { padding:clamp(16px,2.5vw,24px); }
body.art-b .notes dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 17px; }
body.art-b .notes dl div { display:block; padding-block:10px; border-top:1px solid var(--dark-line); }
body.art-b .notes dt { margin-bottom:5px; }
body.art-b .work-grid > .work { padding:clamp(18px,5vw,52px); }
body.art-b .field,body.art-b .decision { border-radius:2px; }
body.art-b .space-top { width:min(100%,740px); justify-self:center; grid-template-columns:minmax(0,1fr); gap:12px; margin:25px auto 0; text-align:center; }
body.art-b .space-top progress { margin-inline:auto; }
body.art-b .space-top .button { justify-self:center; }
body.art-b .resource-grid { grid-template-columns:minmax(0,1fr); width:min(100%,740px); margin-inline:auto; }
body.art-b .resource-grid > :first-child { border-width:1px 0; }
body.art-b .resource-grid > :last-child { border-width:0 0 1px; }
body.art-b .result-artifact,body.art-b .revision-strip,body.art-b .kit-compare > * { border-color:#bd9d59; }

@media (max-width:1000px) {
  body.art-b :is(.page,.intro-band) { width:calc(100% - 88px); }
}
@media (max-width:790px) {
  .wrap,body.art-b :is(.page,.intro-band) { width:calc(100% - 38px); }
  .hero { grid-template-columns:minmax(0,1fr); gap:25px; min-height:0; padding-block:38px; }
  .hero h1 { font-size:clamp(2.7rem,8.1vw,4.8rem); }
  .work-grid { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:520px) {
  .wrap,body.art-b :is(.page,.intro-band) { width:calc(100% - 30px); }
  .mast-row { gap:4px; min-height:62px; }
  .brand { gap:4px; font-size:1.15rem; }
  .brand-mark { width:24px; height:24px; padding-bottom:5px; border-radius:5px; }
  .brand-mark i:nth-child(3) { height:13px; }
  .mast nav { gap:1px; }
  .mast nav a { padding-inline:6px; font-size:.79rem; }
  .hero { gap:21px; padding-block:33px 39px; }
  h1,.hero h1 { letter-spacing:-.056em; }
  .hero-copy .compact { margin-top:12px; }
  .intro-band,.resource-grid,.side-by-side,.draft-grid,.kit-compare { grid-template-columns:minmax(0,1fr); gap:11px; }
  .intro-band { padding-block:20px 25px; }
  .preview { padding:12px; box-shadow:4px 5px 0 var(--accent); }
  .preview-bottom { flex-wrap:wrap; }
  .proof-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .proof-nav button { min-width:0; overflow-wrap:anywhere; }
  .step-list a { grid-template-columns:25px minmax(0,1fr) 14px; gap:4px 9px; }
  .step-index { width:25px; height:31px; }
  .step-meta { grid-column:2; grid-row:2; text-align:left; }
  .step-arrow { grid-column:3; grid-row:1; }
  .fields,.space-top { grid-template-columns:minmax(0,1fr); }
  .space-top .button { justify-self:start; }
  .artifact-table { font-size:.76rem; }
  .artifact-table :is(th,td) { padding-inline:2px; }
  body.art-b .hero { gap:19px; padding-block:36px; }
  body.art-b .notes dl { grid-template-columns:minmax(0,1fr); }
  body.art-b .notes dl div { display:grid; grid-template-columns:33px minmax(0,1fr); align-items:baseline; }
  body.art-b .notes dt { margin-bottom:0; }
}
@media (prefers-reduced-motion:no-preference) {
  .proof-pane,.result-artifact { animation:proof-appearance 200ms ease-out; }
  @keyframes proof-appearance {
    from { opacity:.75; transform:translateY(3px); }
    to { opacity:1; transform:translateY(0); }
  }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
/* Controls shared by the example, the source notes and the editable exercise. */
.proof-pane .proof-tag { color:var(--mint); font:720 .77rem/1.32 var(--mono); letter-spacing:.035em; text-transform:uppercase; }
.proof-pane .muted { color:var(--dark-muted); }
.proof-pane textarea { margin-block:7px; }
.proof-pane label { display:block; font-size:.94rem; font-weight:710; }
.proof-add { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 7px; }
.proof-pane .button { margin-top:4px; }
.proof-pane #proof-status { min-height:1.25em; }
.artifact-table table { width:100%; border-collapse:collapse; table-layout:fixed; }
button.source-hit { display:inline-grid; min-width:42px; min-height:44px; place-items:center; padding:3px 5px; border:1px solid var(--accent-dark); border-radius:4px; background:var(--lavender); color:var(--accent-dark); font:750 .78rem/1.2 var(--mono); }
button.source-hit:hover { border-color:var(--focus); text-decoration:underline; }
.preview button.source-hit { color:var(--accent-dark); }
.proof-pane .result-artifact :focus-visible { outline-color:var(--focus); }
.draft-grid fieldset { margin:0; border:1px solid var(--line); border-top-width:3px; }
.draft-grid label { display:block; margin:6px 0 2px; font-size:.84rem; font-weight:660; }
.draft-grid input { width:100%; min-width:0; min-height:44px; padding:5px 7px; border:1px solid var(--muted); border-radius:5px; background:var(--white); color:var(--ink); }
.draft-grid input[readonly] { background:transparent; }
.revision-strip { display:block; }
.revision-strip details + details { border-top:1px solid var(--line); }
@media (max-width:520px) {
  .preview .result-artifact,.work .result-artifact { padding:8px; }
  .preview .proof-pane { padding:8px; }
  .artifact-table th:last-child { width:48px; }
}

.notes dl > div.source-active { padding-inline:8px; outline:2px solid var(--mint); outline-offset:0; background:var(--preview-surface); }
.decision button.source-hit { margin-top:8px; padding-inline:8px; }
.proof-pane dl div { grid-template-columns:28px minmax(0,1fr); }

/* Plataforma integral · portada, catálogo y laboratorios */
:root {
  --paper: #f8f9ff;
  --ink: #11204a;
  --violet: #3b32c6;
  --iris: #e8eaff;
  --ice: #bcf4f1;
  --navy: #0c1544;
}
body { background: var(--paper); }
.mast { background: #fcfcff; }
.brand-mark { background: var(--violet); }
.hero-int {
  display: grid;
  grid-template-columns: .91fr 1.09fr;
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding-top: clamp(30px, 5vw, 78px);
  padding-bottom: clamp(42px, 6vw, 94px);
}
.hero-lead h1 {
  margin: .1em 0 .24em;
  font-size: clamp(48px, 7.1vw, 102px);
  font-weight: 780;
  letter-spacing: -.083em;
  line-height: .98;
  color: var(--ink);
}
.hero-lead .lede { max-width: 32rem; }
.section-label {
  color: var(--violet);
  font-size: .79rem;
  font-weight: 770;
  letter-spacing: .035em;
}
.hero-scene {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: clamp(345px, 41vw, 510px);
  padding: clamp(18px, 3vw, 38px);
  border-radius: 32px;
  color: #ffffff;
  background: linear-gradient(0deg, #080f32 0%, #08102c22 80%), #0b1546 url("media/prisma.jpg") center 43% / cover;
  box-shadow: 0 26px 54px #252b8c20;
}
.hero-scene-label {
  margin-bottom: auto;
  padding: 8px 12px;
  border-radius: 99px;
  background: #081237;
  color: #edf6ff;
  font-size: .84rem;
  font-weight: 710;
}
.hero-pipeline {
  display: flex;
  gap: 7px;
  width: 100%;
  margin-bottom: 8px;
}
.hero-pipeline button {
  flex: 1;
  min-height: 44px;
  min-width: 0;
  padding: 6px 3px;
  color: #fff;
  background: #152154;
  border: 1px solid #6c80b3;
  border-radius: 10px;
  font: inherit;
  font-size: .83rem;
  font-weight: 720;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.hero-pipeline button[aria-pressed="true"] { background: var(--ice); color: #122449; border-color: var(--ice); }
.hero-stage { box-sizing: border-box; width: 100%; min-height: 95px; padding: 13px 15px; background: #0c1749; border-left: 3px solid var(--ice); border-radius: 4px 12px 12px 4px; }
.hero-stage p { margin: 5px 0 0; color: #e4eaff; font-size: .9rem; }
.hero-scene .button { margin-top: 11px; background: #fff; border-color: #fff; color: var(--navy); }
.hero-scene :is(button, a):focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }
.editorial { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px; margin-block: 30px 22px; }
.editorial h2, .continuation h2 { margin: 0; font-size: clamp(27px, 4vw, 48px); letter-spacing: -.045em; line-height: 1.06; }
.editorial p { margin-bottom: 0; max-width: 35rem; }
.editor-head { max-width: 52rem; margin-bottom: 30px; }
.editor-head h1 { max-width: 18ch; font-size: clamp(36px, 6.5vw, 76px); letter-spacing: -.058em; }
.catalog-list article { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: clamp(17px, 3vw, 34px) 0; border-top: 1px solid #c2c9df; }
.catalog-list article:last-child { border-bottom: 1px solid #c2c9df; }
.catalog-list h2 { margin: 4px 0; letter-spacing: -.027em; }
.catalog-list p { margin: 5px 0; }
.continuation { display: flex; align-items: center; justify-content: space-between; gap: 22px; box-sizing: border-box; margin-block: 52px; padding: clamp(22px, 4vw, 46px); border-radius: 23px; background: var(--iris); }
.continuation p { margin-bottom: 0; }
.lab-grid, .kit-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tool-form { display: grid; gap: 16px; max-width: 42rem; margin-bottom: 22px; }
.tool-form label { display: grid; gap: 6px; font-weight: 700; }
.tool-form :is(input,select,textarea) { box-sizing: border-box; width: 100%; min-height: 46px; padding: 8px 11px; border: 1px solid #6878a1; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-weight: 500; }
.tool-form fieldset { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 12px; border: 1px solid #828dac; border-radius: 12px; }
.tool-form legend { font-size: .88rem; }
.tool-form .button { justify-self: start; }
.lab-result, .kit-compare > div { box-sizing: border-box; padding: clamp(17px,3vw,30px); border-radius: 16px; background: var(--iris); }
.lab-result:empty { display: none; }
.lab-result pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.lab-result ul { margin: 16px 0; padding: 0; list-style: none; }
.lab-result li { display: grid; padding: 9px 0; border-bottom: 1px solid #a8b4d5; overflow-wrap: anywhere; }
.lab-result h2, .kit-compare h2 { margin-top: 0; }
.kit-compare > div { min-height: 100%; }
.kit-compare > div:first-child { background: #edf6f6; }
.page .editorial { margin-top: 48px; }
.hero-int-b { grid-template-columns: 1fr; gap: 35px; }
.hero-int-b .hero-lead { text-align: center; }
.hero-int-b .hero-lead br { display: none; }
.hero-int-b .hero-lead .lede { margin-inline: auto; }
.hero-int-b .hero-lead .actions { justify-content: center; }
.hero-int-b .hero-scene {
  min-height: 430px;
  background-position: center 50%;
  align-items: flex-end;
  border-radius: 8px;
}
.hero-int-b .hero-scene-label { align-self: flex-start; }
.hero-int-b .hero-scene :is(.hero-pipeline,.hero-stage) { max-width: 365px; }
@media (max-width: 760px) {
  .hero-int { grid-template-columns: 1fr; padding-top: 30px; gap: 26px; }
  .hero-int .hero-scene { min-height: 365px; border-radius: 22px; }
  .editorial, .lab-grid, .kit-compare { grid-template-columns: 1fr; gap: 12px; }
  .continuation { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 450px) {
  .mast-row { display: flex; flex-wrap: wrap; justify-content: flex-start; column-gap: 0; row-gap: 4px; }
  .mast-row nav { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px; }
  .mast-row nav a { font-size: .78rem; padding-inline: 3px; min-height: 44px; display: inline-flex; align-items: center; }
  .catalog-list article { grid-template-columns: 1fr; gap: 10px; }
  .catalog-list article .button { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pipeline button { transition: none; }
}
.lab-result:empty {
  position: absolute;
  display: block;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.offer-faq { max-width: 48rem; margin-block: 45px; }
.offer-faq details { border-top: 1px solid #c2c9df; }
.offer-faq summary { cursor: pointer; padding-block: 12px; min-height: 44px; box-sizing: border-box; font-weight: 720; }
.offer-faq p { margin: 0 0 18px; }
