:root{--ink:#153c43;--muted:#53676b;--teal:#126c70;--line:#d6e2e4;--paper:#f3f7f8;--gold:#f4c85d;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-size:16px}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,.button{min-height:46px;cursor:pointer;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);padding:11px 17px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover,.button:hover{border-color:var(--teal);background:#eaf5f4}button:disabled{cursor:default;opacity:.55}.primary{background:var(--ink);color:white;border-color:var(--ink)}.primary:hover{background:var(--teal);color:white}:focus-visible{outline:3px solid #ae5800;outline-offset:4px}.skip{position:absolute;top:-100px}.skip:focus{top:10px;z-index:100;background:white;padding:15px}header{display:flex;align-items:center;gap:20px;padding:20px 4%;background:white;border-bottom:1px solid var(--line)}.brand{display:flex;gap:6px;align-items:center;font-size:24px;text-decoration:none;letter-spacing:-1px}.logo{letter-spacing:-4px;background:var(--ink);color:white;border-radius:9px;width:44px;height:44px;padding:7px 6px;margin-right:6px;font-weight:800}.logo span{color:var(--gold)}.edition{font-size:12px;letter-spacing:2px;margin-left:24px;color:var(--muted)}.progress-link{margin-left:auto;font-weight:600;text-underline-offset:5px}.shell{display:grid;grid-template-columns:230px minmax(0,1fr);max-width:1440px;margin:auto;min-height:80vh}aside{padding:32px 24px;border-right:1px solid var(--line)}nav{display:grid;gap:7px}nav a{padding:13px 15px;border-radius:9px;text-decoration:none;font-weight:600}nav a[aria-current=page]{background:var(--ink);color:white}.eyebrow{letter-spacing:2px;font-size:12px;font-weight:700;color:var(--muted)}.aside-note{margin-top:40px;border-top:1px solid var(--line);padding-top:24px;font-size:14px;line-height:1.6}.support{font-size:14px;display:flex;gap:8px;align-items:center;margin-top:24px}.support input{width:22px;height:22px}main{padding:38px 5%;min-width:0}h1{font-size:clamp(29px,3.5vw,44px);letter-spacing:-1.5px;line-height:1.12;margin:15px 0 18px}h2{font-size:24px;letter-spacing:-.5px}h3{font-size:19px}p{line-height:1.65}.lead{color:var(--muted);max-width:660px;margin-bottom:28px}.crumb{font-size:14px;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.card{background:white;border:1px solid var(--line);border-radius:16px;padding:24px}.card h2,.card h3{margin:12px 0}.card p{color:var(--muted)}.unit{background:var(--ink);color:white;position:relative;padding:30px;border-radius:18px;margin:20px 0 26px}.unit p{color:#d0e7e8}.unit .eyebrow{color:var(--gold)}.unit h2{font-size:32px;margin:10px 0}.pill{display:inline-block;font-size:13px;border:1px solid currentColor;border-radius:30px;padding:5px 10px}.unit .button{background:var(--gold);border-color:var(--gold)}.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.number{font-size:32px;color:var(--teal);font-weight:700}.subtle{color:var(--muted);font-size:14px}.tag{font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--teal);font-weight:700}.task{max-width:850px}.taskhead{display:flex;align-items:center;justify-content:space-between;gap:12px}.taskbody{padding:25px 0}.item{border:1px solid var(--line);border-radius:12px;padding:16px;margin:12px 0;background:white}.item label{display:block;font-weight:600;line-height:1.6;margin-bottom:10px}select,input[type=number]{border:1px solid #8fa9ad;border-radius:8px;padding:12px;width:100%;min-height:46px;background:white;color:var(--ink)}.choices{display:grid;gap:12px}.choices button{justify-content:flex-start;text-align:left;line-height:1.5}.choices button[aria-pressed=true]{background:#dcefed;border:2px solid var(--teal)}.feedback{border-left:4px solid var(--teal);padding:18px 22px;background:#e3f2ef;border-radius:8px;margin:18px 0;line-height:1.6}.feedback.error{background:#fff0d9;border-color:#ad6000}.feedback p{margin:5px 0}.orderitem{display:flex;gap:12px;align-items:center}.orderitem span{flex:1;line-height:1.5}.orderitem .row{flex-wrap:nowrap;gap:5px}.orderitem button{padding:8px 10px;font-size:14px}.divider{border:0;border-top:1px solid var(--line);margin:28px 0}table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:12px 8px;text-align:left;border-bottom:1px solid var(--line);overflow-wrap:anywhere}caption{text-align:left;margin:10px 0;font-weight:700}.chart{margin:20px 0;display:grid;gap:12px}.barrow{display:grid;grid-template-columns:60px 1fr 65px;gap:10px;align-items:center}.bar{background:var(--teal);height:28px;border-radius:4px;min-width:1px}.chartkey{font-size:14px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.stat{padding:20px;background:white;border:1px solid var(--line);border-radius:12px}.stat strong{font-size:30px;display:block}.concept{display:flex;justify-content:space-between;gap:15px;padding:16px 0;border-bottom:1px solid var(--line)}.empty{padding:24px;border:1px dashed #91adb1;border-radius:12px}.disabled{background:#eaf0f2}.disabled h3{color:var(--muted)}.notice{background:#e6eff8;color:#22435c;padding:14px 18px;border-radius:9px;font-size:14px}.learn-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.learn-grid article{border-top:4px solid var(--teal)}.learn-grid article:nth-child(2n){border-top-color:#b87d16}details{margin-top:10px}summary{cursor:pointer;padding:10px 0;font-weight:600;min-height:44px}footer{display:flex;gap:20px;justify-content:space-between;padding:22px 4%;border-top:1px solid var(--line);color:var(--muted);font-size:13px}.reading{max-width:850px}.scrolltable{overflow-x:auto}progress{width:100%;accent-color:var(--teal);height:9px}.step{font-size:14px;color:var(--muted)}@media(max-width:850px){.edition{display:none}.shell{grid-template-columns:1fr}aside{border-right:0;border-bottom:1px solid var(--line);padding:12px 4%}aside .eyebrow,.aside-note{display:none}nav{display:flex;overflow:auto;gap:5px}nav a{white-space:nowrap;font-size:14px;padding:11px}.support{margin:12px 0 0}main{padding:25px 4%}.unit h2{font-size:28px}}@media(max-width:520px){.grid,.learn-grid{grid-template-columns:1fr}header{padding:15px 4%;gap:10px}.brand{font-size:21px}.progress-link{font-size:14px}.card{padding:20px}.stats{gap:8px}.stat{padding:12px}.stat strong{font-size:25px}.stat span{font-size:12px}.unit{padding:22px}.orderitem{flex-wrap:wrap}.orderitem span{flex-basis:65%}.orderitem .row{margin-left:auto}footer{display:block}.concept{flex-direction:column;gap:4px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* v0.2: interfaces de manipulación y foco por control */
html,body{max-width:100%;overflow-wrap:break-word}aside,nav,main,.shell,.card,.grid>*{min-width:0}main:focus{outline:none}button,.button{white-space:normal;overflow-wrap:anywhere;max-width:100%}.crumb a{text-underline-offset:4px}.taskhead{flex-wrap:wrap}.taskbody{padding:8px 0 20px}.task-prompt{font-size:18px;font-weight:600;max-width:65ch}.assigned,button[aria-pressed=true]{background:#dcefed;border:2px solid var(--teal)}.experiment-entry{border:2px solid var(--teal);background:#e8f4f3}.experiment-entry .tag{color:#125b60}.sorting-card{border:2px solid #9ebcbf;border-radius:16px;padding:24px;background:#f4fafb;min-height:160px;display:grid;align-content:center}.sorting-card h2{font-size:24px;line-height:1.45;margin:10px 0}.category-controls{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.category-controls button{flex:1;min-width:140px;border:2px solid var(--teal);font-size:17px;min-height:60px}.bins{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:12px}.bin{background:#f1f6f7;border:1px dashed #7b9da2;border-radius:12px;padding:16px;min-width:0}.bin h3{margin:0}.bin .subtle{margin:5px 0 12px}.placed-card{width:100%;text-align:left;justify-content:flex-start;font-weight:400;font-size:15px;margin:5px 0;border-left:4px solid var(--teal)}.association{display:grid;grid-template-columns:1fr 1.4fr;gap:24px}.association section{min-width:0}.concept-buttons,.definition-buttons,.evidence-board{display:grid;gap:10px}.concept-buttons button,.definition-buttons button,.evidence-board button{justify-content:flex-start;text-align:left;line-height:1.5}.definition-buttons .paired{border-left:5px solid var(--teal)}.selection-label{min-height:50px;line-height:1.5}.pair-summary{border-top:1px solid var(--line);margin-top:22px;padding-top:12px}.connection{display:flex;align-items:center;gap:12px;background:#eaf4f3;border-radius:9px;margin:10px 0;padding:14px;font-size:15px}.connection strong{flex:0 0 34%}.order-board{list-style:none;padding:0}.step-number{flex:0 0 32px!important;font-weight:700;font-size:22px;color:var(--teal)}.orderitem{border-left:4px solid var(--teal)}.orderitem .row{margin-left:auto}.orderitem span{flex-basis:auto}.dossier{border:1px solid #a4b5be;background:#e9f0f6;padding:22px;border-radius:12px;margin-bottom:22px}.dossier h2{font-size:23px}.dossier p{margin-bottom:0}.evidence-board button{min-height:66px}.experiment-steps{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 8px}.experiment-steps li{border:1px solid var(--line);padding:8px 11px;border-radius:8px;font-size:14px}.experiment-steps [aria-current=step]{background:var(--ink);color:white;border-color:var(--ink)}.vessels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.vessel-card{border:1px solid #a5bdc2;background:#f5fafb;border-radius:14px;padding:16px;min-width:0;text-align:center}.vessel-card h3{margin:0}.beaker{width:100%;max-width:250px;height:180px;display:block;margin:8px auto}.vessel-controls{display:grid;gap:15px;text-align:left}.stepper label{font-size:14px;font-weight:600}.stepper>div{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:5px}.stepper button{padding:8px;min-width:46px;min-height:46px;font-size:21px}.stepper output{text-align:center;flex:1;min-width:0;font-size:16px;font-weight:600}.compact .beaker{height:130px}.compact .vessel-card{padding:10px}.compact .subtle{margin:0}.measurement,.role-group{border:1px solid var(--line);padding:16px;border-radius:12px;margin:22px 0;min-width:0}.measurement legend,.role-group legend{font-weight:700;padding:0 5px;max-width:100%}.role-choices{display:flex;gap:8px;flex-wrap:wrap}.role-choices button{flex:1;min-width:130px}.sentence{border-left:4px solid var(--teal);padding:14px 18px;background:#edf6f3;border-radius:8px}.result-table{overflow-x:auto}.result-table table{font-size:16px}.task-actions{border-top:1px solid var(--line);padding-top:18px}.solution{border:1px solid var(--line);padding:10px 16px;border-radius:12px;margin:20px 0}.solution li{margin:12px 0;line-height:1.6}.learn-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.learn-tabs button{font-size:14px}.microcontent{max-width:900px;border-top:5px solid var(--teal)}.microcontent .idea{font-size:20px;line-height:1.55;max-width:65ch}.idea-map{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px;margin:22px 0}.idea-map div{border:1px solid var(--line);border-radius:10px;background:#f1f6f7;padding:15px;display:grid;gap:10px}.idea-map strong{color:var(--teal);font-size:16px}.idea-map span{font-size:16px;line-height:1.5}.learn-next{margin-top:24px}.progress-details{margin:24px 0}.concept{align-items:center}.concept p{margin:6px 0 0;max-width:50ch}.learning-state{white-space:nowrap;padding:8px 12px;border-radius:9px;font-weight:700;font-size:14px}.mastered{background:#d8eee1;color:#1b5736}.growing{background:#fff0cc;color:#78540d}.practice{background:#dfedf8;color:#234d73}.training ol li{padding:12px 0;line-height:1.5}.stats .stat span{font-size:14px}footer span{max-width:75ch}.notice{line-height:1.65}.connection,.feedback,.dossier{overflow-wrap:anywhere}.choice-note{font-size:14px;color:var(--muted)}@media(max-width:850px){nav{width:100%;max-width:100%;overscroll-behavior-x:contain}nav a{flex-shrink:0}.shell{grid-template-columns:minmax(0,1fr)}.support{min-height:44px}.association{grid-template-columns:1fr}.concept-buttons{display:flex;flex-wrap:wrap}.concept-buttons button{flex:1;min-width:135px}.concept{align-items:flex-start;flex-direction:column}.learning-state{align-self:flex-start}}@media(max-width:520px){.vessels:not(.compact){grid-template-columns:1fr}.compact{gap:8px}.compact .beaker{height:110px}.compact .vessel-card p{font-size:13px}.card{padding:16px}.taskhead .tag{font-size:11px}.sorting-card{padding:18px}.sorting-card h2{font-size:21px}.orderitem{flex-wrap:wrap}.orderitem>span:not(.step-number){flex:1 1 70%}.orderitem .row{margin-left:44px;flex-wrap:wrap}.orderitem button{font-size:14px}.connection{display:grid;grid-template-columns:1fr;gap:6px}.connection span[aria-hidden]{display:none}.experiment-steps li{font-size:13px;padding:8px}.role-choices{display:grid}.stats{grid-template-columns:1fr}.stat{display:flex;align-items:center;gap:14px;padding:14px}.stat strong{min-width:55px}.stats .stat span{font-size:14px}.task-actions>a,.task-actions>button{flex:1 1 130px}.lead{margin-bottom:20px}.unit h2{font-size:26px}header .progress-link{min-height:44px;display:flex;align-items:center}.microcontent .idea{font-size:18px}.learn-tabs button{flex:1 1 130px}}@media(prefers-reduced-motion:no-preference){.assigned,.placed-card,.connection{transition:background-color .15s ease,border-color .15s ease}}
.active-editor{margin:16px 0;max-width:600px}.active-editor .vessel-card{text-align:left}.active-editor .vessel-controls{margin-top:16px;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.cup-selector button{flex:1}.stepper{min-width:0}.active-editor .stepper output{font-size:15px}.active-editor .vessel-card h3{font-size:17px}@media(max-width:600px){.active-editor .vessel-controls{grid-template-columns:1fr}.concept-buttons button{min-width:180px;flex-basis:100%}.compact .vessel-card .subtle{font-size:14px}.vessels.compact{gap:8px}}
.vessel-caption{font-size:14px;line-height:1.5;margin:4px 0 0}.compact .vessel-caption{font-size:14px}.compact .beaker{height:100px}.vessel-controls label{display:block}@media(max-width:850px){nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;overflow:visible}nav a{white-space:normal;text-align:center;min-height:44px;display:flex;align-items:center;justify-content:center;padding:8px 4px}.support{margin:10px 0 0}.vessel-caption{overflow-wrap:normal}}@media(max-width:520px){.compact .beaker{height:90px}}
/* v0.3: visual teaching, explicit vocabulary and manipulation patterns. */
.term{display:inline;padding:0 .15em;min-height:0;line-height:inherit;border:0;border-bottom:2px dotted #176473;border-radius:0;color:#115563;background:transparent;font-size:inherit;font-weight:700}.term:hover{background:#e0f0f3}.term-list,.language{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.term-chip{font-size:.875rem}.lesson-copy{font-size:1.125rem;line-height:1.65}.teaching-image{margin:.6rem 0 1.1rem}.teaching-image img{display:block;width:100%;height:auto;max-height:330px;object-fit:contain;border-radius:12px;background:white}.teaching-image figcaption{font-size:1rem;padding:.7rem 0;line-height:1.6}.visual-lesson{max-width:780px}.visual-model{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:.6rem;margin:1rem 0}.visual-model>div{padding:.85rem;background:#eaf3f6;border-left:3px solid #176473;display:flex;gap:.65rem;align-items:flex-start}.visual-model span{font-weight:bold;color:#176473}.cycle-model{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}.translation{display:block;margin-top:.5rem;color:#3e5560;font-size:1rem}.lesson-selector{margin:1rem 0}.lesson-menu{display:grid;gap:.6rem}.language{border:1px solid #bdcfd5;padding:.6rem;border-radius:8px}.language legend{font-size:.875rem;font-weight:bold}dialog{border:2px solid #153c43;border-radius:14px;padding:1.5rem;width:min(92vw,520px);max-height:80vh;color:#153c43;overflow:auto}dialog::backdrop{background:#102c37b3}dialog p{line-height:1.6}dialog button{margin-top:1rem}.pattern fieldset{border:1px solid #bdcfd5;border-radius:10px;padding:.8rem;margin:1rem 0}.pattern legend{font-weight:700}.pattern textarea,#dictionary-search{display:block;width:100%;font:inherit;padding:.8rem;border:1px solid #78949e;border-radius:8px;margin:.7rem 0}.pattern .choices button[aria-pressed=true]{border:2px solid #176473;background:#dff1f3}.hazard-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.hazard-buttons button[aria-pressed=true]{border:2px solid #176473}.repair{padding:.8rem;background:#eff5f7;border-radius:10px;margin:1rem 0}.tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.8rem}.tool-grid button{display:flex;flex-direction:column;align-items:center;padding:.75rem;gap:.5rem}.tool-grid button[aria-pressed=true]{border:2px solid #176473;background:#dff1f3}.tool-grid span{font-size:.875rem}.tool-diagram{width:90px;height:90px}.cylinder{display:block;width:160px;height:220px;margin:1rem auto}.raw-records{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}.record{border:1px dashed #176473;padding:.8rem;background:#f0f7f9}.data-graph{display:block;width:100%;max-width:420px;margin:1rem auto}.coordinate-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}.microscope-panel{display:flex;flex-wrap:wrap;justify-content:center;gap:1.5rem;align-items:center;margin:1rem 0}.lens-view{width:190px;height:190px;border:8px solid #183f48;border-radius:50%;background:#132b34;overflow:hidden;display:grid;place-items:center}.lens-view.lit{background:#e2f3ed}.sample-cells{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;width:130px;height:130px}.sample-cells span{border:3px solid #426e53;border-radius:16px;background:#c6e1c6}.microscope-panel dl{display:grid;grid-template-columns:auto auto;gap:.4rem .7rem;font-size:.875rem}.microscope-panel dd{margin:0;font-weight:700}.gate-done{border-top:4px solid #176473}.clue{font-weight:700}.mission-intro .button{margin:.4rem .4rem .4rem 0}.missions h2{font-size:1.3rem}.escape-entry{background:#173e48;color:#fff}.escape-entry h2{color:inherit}.pattern table{width:100%;table-layout:fixed}.pattern table button{padding:.4rem;font-size:.875rem}h2:focus{outline:3px solid #c57c00;outline-offset:4px}h2[tabindex]{scroll-margin-top:1rem}
@media(max-width:480px){.coordinate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hazard-buttons{grid-template-columns:1fr}.pattern table th,.pattern table td{padding:.4rem}.pattern table .row{gap:.35rem}.pattern table .row button{width:100%}.visual-model{grid-template-columns:1fr}.teaching-image img{max-height:none}.visual-lesson{padding:1rem}.language button{flex:1}.lesson-copy{font-size:1rem}.lens-view{width:170px;height:170px}}

.science-comic{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.science-comic section{border:2px solid var(--line,#cadcde);border-radius:14px;padding:16px;background:#f4fafc}.science-comic svg{display:block;width:100%;max-width:180px;margin:auto}.speech{padding:12px;background:white;border:1px solid #cadcde;border-radius:16px;font-weight:600}.science-comic p{line-height:1.5}@media(max-width:650px){.science-comic{grid-template-columns:1fr}.science-comic svg{max-width:140px}}
.escape-entry .tag,.escape-entry p{color:#f4fafc}.science-comic svg{max-height:110px}

/* 2.º Bach: scientific dossiers, without points or reward animations. */
main[data-tone="advanced"]{--accent:#285c5c;}
.g-block{margin:2rem 0}.g-case-card h3{font-size:1.25rem}.g-modes{margin:1.5rem 0;border:1px solid #a1b2ae;border-radius:12px;padding:1rem}.g-modes button{margin:.25rem}.g-document{border:1px solid #a1b2ae;border-radius:12px;padding:1rem;margin:1rem 0;background:#f5f7f3}.g-document summary{font-weight:700;cursor:pointer;min-height:44px}.g-visual{display:block;margin:1rem 0;overflow:auto}.g-visual svg{display:block;width:100%;height:auto;min-width:265px;max-width:800px;margin:auto;color:#203c33;background:white}.g-visual svg text{font-family:system-ui,sans-serif;font-size:18px;fill:#203c33}.g-step{padding:1rem 0}.g-decisions{display:grid;gap:.75rem}.g-decisions button{width:100%;text-align:left;line-height:1.5;padding:1rem;white-space:normal}.g-decisions button[aria-pressed="true"],.g-projection button[aria-pressed="true"]{outline:3px solid #285c5c;outline-offset:1px}.g-order{list-style:none;padding:0;display:grid;gap:.6rem;counter-reset:gorder}.g-order li{display:flex;gap:.5rem;align-items:center;justify-content:space-between;padding:.75rem;background:#edf2ec;border:1px solid #a1b2ae;border-radius:10px;counter-increment:gorder}.g-order li>span{flex:1}.g-order li>span:before{content:counter(gorder) ". ";font-weight:700}.g-order li>div{display:flex;gap:.35rem}.g-order button{min-width:44px;min-height:44px;padding:.5rem}.g-isotopes{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.g-isotopes meter{display:block;width:100%;height:40px}.g-projection{display:flex;flex-wrap:wrap;gap:.5rem}.g-open textarea{width:100%;box-sizing:border-box;font:inherit;padding:1rem;line-height:1.6;resize:vertical;margin:.5rem 0}.g-self{display:flex;align-items:center;gap:.75rem;min-height:48px}.g-self input{width:22px;height:22px;flex-shrink:0}.g-model dt{font-weight:750;margin-top:1rem}.g-model dd{margin:.4rem 0;line-height:1.6}.g-sources{margin-top:1.5rem;font-size:.95rem}.g-glossary{display:grid;gap:.75rem}.g-glossary summary{font-weight:700;min-height:44px;cursor:pointer}.g-chain{line-height:2}.g-task{max-width:980px;margin:auto}.g-profile{border:1px solid #a1b2ae;padding:1rem}.g-model:focus{outline:3px solid #285c5c}main[data-tone="advanced"] .g-document p{max-width:75ch}@media(max-width:430px){.g-order li{flex-wrap:wrap}.g-order li>span{flex-basis:100%}.g-order li>div{margin-left:auto}.g-task,.g-document{padding:.8rem}.g-isotopes{grid-template-columns:1fr}.g-visual svg text{font-size:19px}}

.g-visual.expanded svg{min-width:800px}.g-visual:focus-visible{outline:3px solid #285c5c;outline-offset:2px}

label.support[hidden]{display:none}
.g-open-matrix>fieldset{margin:1rem 0;padding:1rem;border:1px solid #809791;border-radius:10px}.g-open-matrix legend{font-weight:700;max-width:100%}.g-self{align-items:flex-start;padding:.4rem 0}.g-self input{margin-top:.3rem}.g-document dt{font-weight:700}.g-document dd{margin:.3rem 0 1rem}.g-decisions button .g-visual{pointer-events:none}#g-open-feedback:focus{outline:3px solid #285c5c}.g-open textarea{white-space:pre-wrap}
.g-decisions{grid-template-columns:minmax(0,1fr)}.g-decisions button{min-width:0;box-sizing:border-box}.g-decisions button .g-visual svg{min-width:0;width:100%;max-width:100%}
/* Diagram choices: text above the scientific figure, caption below. */
.g-decisions button{display:block}.g-decisions button>.g-visual,.g-decisions button>.subtle{display:block;width:100%}
.g-gym-entry{margin:1.5rem 0;border-top:4px solid #285c5c}.gym-tracks{grid-template-columns:repeat(3,minmax(0,1fr))}.gym-tracks h2{font-size:1.45rem}.gym-tracks .button{width:100%}@media(max-width:850px){.gym-tracks{grid-template-columns:1fr}}

/* U1 editorial: concept navigation and explanatory figures, independent of engines. */
[hidden] { display:none !important; }
.g-theory-layout{display:grid;grid-template-columns:minmax(210px, .75fr) minmax(0,2fr);gap:1.25rem;align-items:start}
.g-theory-index{display:grid;gap:.25rem;position:sticky;top:1rem;background:#fff;border:1px solid var(--line,#cedade);border-radius:12px;padding:.75rem}
.g-theory-index a{display:block;padding:.65rem;line-height:1.45;border-radius:6px;min-height:44px;font-size:.95rem}
.g-theory-index a[aria-current]{background:#e6f1f4;font-weight:700;color:#075768}
.g-theory-lesson figure{margin:1rem 0}.g-theory-visual{max-width:520px;margin:1rem auto;background:white;border:1px solid #cedade;border-radius:8px}
.g-theory-visual svg{display:block;width:100%;height:auto}.g-theory-visual.expanded{max-width:none}
.g-theory-lesson figcaption{font-size:.875rem;color:#46606b;line-height:1.5}
.g-theory-explanation{max-width:70ch;line-height:1.75}.g-theory-explanation p{margin-bottom:1rem}
.g-key{padding:1rem;background:#edf5f7;border-left:4px solid #075768;line-height:1.6}
.g-example,.g-history,.g-local{border-top:1px solid #d5e0e4;margin-top:1rem;padding-top:1rem;line-height:1.65}
.g-history dt{font-weight:700}.g-history dd{margin:0 0 .7rem}.g-connection{font-weight:600}
.g-unit-entry{margin-bottom:1.5rem}.g-permanent{margin-top:1.25rem}.g-post-response{border-top:2px solid #cadce2;margin-top:1.5rem;padding-top:1rem}
.g-task .g-visual svg[viewBox="0 0 340 275"]{max-width:480px;width:100%;height:auto;display:block;margin:auto}
.g-theory-index a:focus-visible{outline:3px solid #b05c00;outline-offset:2px}
@media(max-width:760px){.g-theory-layout{grid-template-columns:1fr}.g-theory-index{position:static;grid-template-columns:1fr 1fr}.g-theory-index a{font-size:.875rem;padding:.55rem}.g-theory-lesson{padding:1rem}.g-theory-lesson h2{font-size:1.4rem}.g-theory-explanation{line-height:1.65}}
@media(max-width:400px){.g-theory-index{grid-template-columns:1fr}.g-theory-lesson{padding:.8rem}.g-theory-layout{gap:.75rem}}
@media(prefers-reduced-motion:reduce){.g-theory-layout *{scroll-behavior:auto;transition:none}}

.g-theory-index summary{cursor:pointer;min-height:44px;font-weight:700}.g-theory-index nav{display:grid;grid-template-columns:1fr;gap:.25rem;background:transparent;padding:0;position:static;overflow:visible}.g-theory-index nav a{white-space:normal}
.g-visual svg[viewBox="0 0 340 275"] text{font-size:14px;fill:#183a48}.g-visual svg[viewBox="0 0 340 275"] text[fill="white"]{fill:white}
@media(max-width:760px){.g-theory-index nav{grid-template-columns:1fr 1fr}.g-theory-index{display:block}.g-theory-index nav a{font-size:.875rem}}
@media(max-width:400px){.g-theory-index nav{grid-template-columns:1fr}}

/* Aprende U1 atlas: scoped to the lesson; activity and Gym figures are untouched. */
.g-theory-lesson .g-theory-visual{max-width:none;border:0;background:transparent}
.atlas{color:#253d40}.atlas-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem}.atlas-panel{margin:0!important;min-width:0;background:#faf8f2;border-bottom:2px solid #a4967b;padding:.8rem}.atlas-panel h3{font-size:1rem;margin:0 0 .7rem}.atlas-panel svg{width:100%;height:auto;display:block}.atlas-panel img{width:100%;height:auto;max-height:340px;object-fit:contain;display:block;background:#e6e2d7}.atlas-panel figcaption{font-size:.95rem;line-height:1.55;margin-top:.6rem}.atlas-credit{display:block;font-size:.75rem;line-height:1.5;margin-top:.45rem}.atlas-credit a{color:#275b67}.atlas-interpretation{margin:1rem 0;border:1px solid #9caead;padding:1rem;border-radius:6px}.atlas-interpretation summary{font-weight:650;cursor:pointer}.atlas-limit{border-left:4px solid #94672c;padding:.8rem 1rem;background:#f8f1e5}.g-theory-visual.expanded .atlas-panel svg{min-width:500px}.g-theory-visual.expanded .atlas-panel{overflow-x:auto}.g-theory-visual.expanded .atlas-grid{grid-template-columns:1fr}.g-theory-lesson .atlas svg text{font-size:revert-layer}
@media(max-width:1050px){.atlas-grid{grid-template-columns:1fr}.atlas-panel img{max-height:360px}}
/* Scoped PAU document and estimate additions; no changes to Gym or ESO layouts. */
.pau-table-wrap{max-width:100%;overflow-x:auto;margin:1rem 0}.pau-table{border-collapse:collapse;width:100%;font-size:.95rem}.pau-table caption{text-align:left;font-weight:650;margin-bottom:.5rem}.pau-table th,.pau-table td{border:1px solid #82968c;padding:.65rem;text-align:left}.pau-table thead{background:#e5ece8}.pau-original{white-space:pre-wrap;overflow-wrap:anywhere}.pau-estimate{border-left:4px solid #386f70;padding:.8rem;background:#edf4ef}.pau-progress .concept{display:flex;flex-wrap:wrap;gap:.5rem}.pau-progress .concept p{flex-basis:100%;margin:0}.g-context-glossary{margin:1rem 0}.selective-panel svg{background:#faf8f2}

/* Integrated unit flow, shared accessible figures and model prose. */
.integrated-figure{max-width:40rem;margin:1rem auto}.integrated-figure svg{width:100%;height:auto}.immediate-practice{margin:1.2rem 0;padding:1rem;border:2px solid var(--line,#b8cdd1);border-radius:1rem}.immediate-practice .row{align-items:stretch}.translation-help{margin:.6rem 0}.integrated-continuation{margin-top:1rem}.pau-model-answer{white-space:pre-line;line-height:1.75}.g-technology h4{font-size:1.1rem}.pau-scaffold li{margin:.7rem 0}dl dd{margin-left:0;margin-bottom:.8rem} .g-technology .grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))} @media(prefers-reduced-motion:reduce){.integrated-figure *{animation:none!important;transition:none!important}}

.integrated-figure.expanded{overflow:auto;max-width:100%}.integrated-figure.expanded svg{min-width:560px}.integrated-figure:focus-visible{outline:3px solid #ae5800;outline-offset:4px}
/* Open learning layer: small disclosures and touch/keyboard controls. */
.learning-context{padding:1rem;border-block:1px solid #c8d8da;margin:1rem 0;background:#f4f8f6}.learning-context p{margin:.4rem 0}.learning-context ul{margin:.4rem 0;padding-left:1.3rem}.learning-curriculum{margin:.8rem 0}.learning-curriculum summary{cursor:pointer;min-height:44px;display:list-item;padding:.6rem}.learning-tabs{display:flex!important;flex-wrap:wrap;gap:.6rem;margin:1rem 0;grid-template-columns:none!important}.learning-tabs a{border:1px solid #b6cbce;border-radius:.6rem;padding:.7rem;min-height:44px}.learning-entry .row{flex-wrap:wrap}.learning-response{white-space:pre-wrap;overflow-wrap:anywhere}.evidence{overflow-wrap:anywhere}#learning-self fieldset{margin:1rem 0;padding:1rem;border:1px solid #b6cbce;border-radius:.6rem}#learning-self legend{max-width:100%;font-weight:700;white-space:normal}#learning-self button{white-space:normal;max-width:100%;text-align:left}#learning-self .row{flex-wrap:wrap}#learning-status{min-height:1.6rem}.learning-context li{line-height:1.5}#learning-evidence{scroll-margin-top:1rem}@media(max-width:400px){.learning-context{padding:.7rem}#learning-self fieldset{padding:.6rem}#learning-self .row{display:grid;grid-template-columns:1fr}}
/* U2 private-development resources reuse the existing responsive atlas. */
.u2-figure{margin:1rem 0}.u2-figure svg,.u2-figure img{display:block;width:100%;height:auto;max-width:720px;margin:auto}.u2-figure figcaption{font-size:.9rem;line-height:1.6;margin:.7rem 0;color:#38484a}.u2-visual.expanded{overflow:auto;max-width:100%}.u2-visual.expanded .u2-figure{min-width:720px}.u2-visual:focus{outline:3px solid #1b6268;outline-offset:3px}.u2-figure a{overflow-wrap:anywhere}

.g-visual .u2-figure svg text{font-size:12px}
/* Private narrative layer. Scientific figures and controls stay readable at 320 px. */
.course-choice .card{border-top:5px solid var(--teal)}.concept-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1rem;margin:1.5rem 0}.concept-list h2{font-size:1.15rem}.experience-index{margin:1rem 0}.experience-index nav{display:grid;gap:.4rem;padding:1rem 0}.experience-index nav a{padding:.65rem;text-decoration:none}.experience-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.25rem 0}.experience-body{max-width:900px}.experience-question{font-size:1.3rem;font-weight:650;line-height:1.4}.experience-explanation,.language-body{max-width:70ch;font-size:1.075rem;line-height:1.85}.experience-figure{margin:1.75rem 0;max-width:660px}.experience-figure figure{margin:0}.experience-figure svg{width:100%;height:auto;max-height:500px}.experience-figure img{width:100%;height:auto}.figure-reading{border-left:4px solid var(--teal);padding:.1rem 1rem}.worked-example{background:#f5f1e8;padding:1rem;border-radius:.65rem;margin:1rem 0}.experience-next{margin:1.5rem 0}.planned{margin:1.5rem 0}.lab-layout{display:grid;grid-template-columns:minmax(200px,1fr) minmax(0,2fr);gap:1.2rem}.lab-controls{display:grid;align-content:start;gap:1.25rem}.lab-controls label{display:grid;gap:.5rem}.lab-controls input,.lab-controls select{width:100%;min-height:44px}.lab-figure{margin:0}.lab-figure svg{width:100%;height:auto}.lab-result{font-weight:650}textarea{font:inherit;line-height:1.6;width:100%;max-width:100%;color:var(--ink);padding:.75rem;border:1px solid var(--line);border-radius:.5rem}#lab-table li{overflow-wrap:anywhere}main nav:not(.learning-tabs){max-width:100%}.language-body{border-left:4px solid var(--teal);padding-left:1rem}[data-tone="academic"] .experience-body{background:#fff}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #9b5820;outline-offset:3px}@media(max-width:760px){.lab-layout{grid-template-columns:1fr}.experience-tabs button{flex:1 1 140px;font-size:.95rem}.experience-body{padding:1rem}.experience-question{font-size:1.15rem}.experience-explanation,.language-body{font-size:1rem;line-height:1.75}.lab-controls{padding:.65rem}.course-choice h2{font-size:1.35rem}aside{padding:1rem}aside>.eyebrow,.aside-note{display:none}aside>nav{gap:.2rem}aside>nav a{padding:.6rem;font-size:.9rem}}

.experience-figure.zoomed{overflow:auto}.experience-figure.zoomed figure{min-width:760px}.experience-figure button{margin-top:.5rem}
.experience-tabs button[aria-pressed="true"]{background:var(--ink);color:white;border-color:var(--ink)}

/* U2 photographs: full geometry, no crop, native image accessible in a separate tab. */
.photo-u2{margin:1.2rem 0;overflow-wrap:anywhere}.photo-u2 img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;background:#e8eeef}.photo-u2 figcaption{line-height:1.5;margin:.6rem 0}.photo-entry{margin:1rem 0;padding:.8rem;border:1px solid #a8bac0;border-radius:.6rem}.photo-entry summary{cursor:pointer;font-weight:600;min-height:44px;padding:.5rem}.photo-reading{max-width:75ch}.u2-photo-atlas{margin-top:2rem}.photo-u2 .row a{min-height:44px}
/* Modelo didáctico compartido: teoría, práctica y laboratorio. */
.didactic-spaces{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0 2rem}.didactic-lesson>section>p,.didactic-lesson>p{max-width:76ch;line-height:1.75;margin:1.2em 0}.didactic-worked{border-left:5px solid #b98543;padding:1rem 1.4rem;background:#f8f4e8;margin:1.5rem 0}.didactic-reading{font-size:1rem}.didactic-visual{max-width:100%;overflow:auto;border-radius:12px}.didactic-visual img,.didactic-visual svg{max-width:100%;height:auto;display:block}.didactic-visual.expanded{max-height:85vh;overflow:auto}.didactic-visual.expanded svg,.didactic-visual.expanded img{min-width:800px;max-width:none;width:100%}.didactic-lesson figure img{max-width:100%;height:auto;max-height:650px;object-fit:contain}.didactic-choice{display:flex;align-items:flex-start;gap:12px;min-height:48px;border:1px solid #b9c9c3;border-radius:10px;padding:12px;margin:9px 0;cursor:pointer}.didactic-choice input{width:20px;height:20px;flex:none;margin-top:4px}.didactic-index li{margin:.9rem 0}.didactic-index a{padding:5px 0;display:inline-block}.didactic-feedback:not(:empty){padding:1rem;border-left:5px solid #4c786c;background:#edf3ec;margin-top:1rem}.didactic-lesson>nav,.didactic-lesson>.row{flex-wrap:wrap}.table-scroll{overflow-x:auto}fieldset.card legend{font-weight:650;max-width:100%;white-space:normal}.didactic-lesson form fieldset{min-width:0}.didactic-lesson figcaption{line-height:1.6;padding:12px 0}.didactic-lesson .lead{font-size:1.15rem}@media(max-width:500px){.didactic-worked{padding:1rem}.didactic-spaces .button{flex:1;justify-content:center}.didactic-choice{padding:10px}fieldset.card{padding:12px}.didactic-lesson figure{margin:1rem 0}}

/* Revisión visual: pestañas de unidad y lista de lecciones */
.didactic-spaces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.didactic-spaces .button{justify-content:center;text-align:center;padding-inline:.4rem;overflow-wrap:normal;word-break:keep-all;hyphens:none}
.didactic-index{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.didactic-index li{margin:0;padding:0}
.didactic-index a.button{display:block;width:100%;box-sizing:border-box;text-align:left;padding:.75rem 1rem;line-height:1.35}
@media (min-width:761px){.didactic-spaces{display:flex;flex-wrap:wrap}}
