/* Curso de Historia: mapas, cómics, canastas, pintura y memorice. */
.hx{--hx-ink:#2f3b33;--hx-line:#c9b892;--hx-paper:#fffaf0;--hx-wrong:#e8711a;--hx-pick:#e3b23c;border:1px solid #e2d6b8;background:#fdf8ec;border-radius:18px;padding:16px}
.hx-tip{margin:0 0 12px}
.hx-bank{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;min-height:64px;margin-top:14px;padding:12px;border:2px dashed #d3c39c;border-radius:14px;background:#f6efdc}
.hx-bank.hx-over{background:#fff3cf;border-color:var(--hx-pick)}
/* In tall activities the word bank stays reachable at the bottom of the screen. */
.hx-ui-comic .hx-bank,.hx-ui-map .hx-bank,.hx-ui-cloze .hx-bank{position:sticky;bottom:8px;z-index:6;background:#f6efdcf2;box-shadow:0 -6px 18px #3b2f2822;backdrop-filter:blur(2px)}
.hx-bank-empty{color:#6b6450;font-size:13px;align-self:center}
.hx-chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:1px solid #b79f6b;border-radius:12px;background:#fffdf6;color:var(--hx-ink);font:inherit;font-weight:750;line-height:1.2;text-align:left;box-shadow:0 4px 0 #dccca4;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;transition:transform .12s,box-shadow .12s}
.hx-chip:active{cursor:grabbing}
.hx-chip.with-art{flex-direction:column;align-items:center;justify-content:flex-start;width:132px;padding:8px;text-align:center}
.hx-chip-art{display:block;width:100%}
.hx-chip-art svg{display:block;width:100%;height:auto;border-radius:8px;pointer-events:none}
.hx-chip-art .hx-icon-svg{width:54px;margin:0 auto}
.hx-chip-art img.hx-img{display:block;width:100%;height:84px;object-fit:cover;border-radius:8px;pointer-events:none}
.hx-chip-text{pointer-events:none}
.hx-chip.picked{transform:translateY(-3px);border-color:var(--hx-pick);box-shadow:0 0 0 3px #f6dd8f,0 7px 0 #dccca4;background:#fff6d6}
.hx-chip.hx-wrong{border-color:var(--hx-wrong);box-shadow:0 0 0 3px #f7c79f,0 4px 0 #e9b98a;animation:hx-shake .5s ease 2}
.hx-dragging{opacity:.3}
.hx-ghost{position:fixed;z-index:10000;transform:translate(-50%,-50%) rotate(-2deg) scale(1.05);pointer-events:none;box-shadow:0 16px 35px #3b2f2855;background:#fff1b9}
@keyframes hx-shake{0%,100%{transform:none}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}

.hx-slot{display:inline-flex;align-items:center;justify-content:center;min-width:120px;min-height:46px;margin:2px 3px;padding:3px;border:2px dashed #b9a679;border-radius:12px;background:#fffdf7;vertical-align:middle;cursor:pointer}
.hx-slot.filled{border-style:solid;border-color:#d6c38f;background:#fff6db}
.hx-slot.filled .hx-chip{box-shadow:none;min-height:38px}
.hx-slot.hx-over,.hx-bin.hx-over{border-color:var(--hx-pick);background:#fff3cf;box-shadow:0 0 0 4px #f6dd8f}
.hx-blank{color:#a69466;font-style:normal;letter-spacing:2px}

.hx-lines{margin:0;padding-left:26px;display:grid;gap:12px;font-size:17px;line-height:2.4}
.hx-lines.plain{list-style:none;padding-left:0}
.hx-lines li{padding:6px 10px;border-radius:12px;background:#fffdf7;border:1px solid #efe4c8}
.hx-lines li::marker{font-weight:850;color:#8a6a3e}
.hx-line-art{display:inline-block;width:46px;vertical-align:middle;margin-right:6px}
.hx-line-art svg{width:46px;height:46px}

.hx-bins{display:grid;grid-template-columns:repeat(var(--bins),minmax(0,1fr));gap:12px}
.hx-bin{display:flex;flex-direction:column;min-height:140px;border:3px solid var(--bin);border-radius:16px;background:#fffdf7;cursor:pointer;overflow:hidden}
.hx-bin-head{display:flex;align-items:center;gap:8px;padding:8px 10px;background:color-mix(in srgb,var(--bin) 22%,#fff);color:#2f3b33}
.hx-bin-head strong{font-size:16px;line-height:1.2}
.hx-bin-art{width:40px;flex:none}
.hx-bin-art svg{width:40px;height:40px;display:block}
.hx-bin-body{display:flex;flex-wrap:wrap;gap:8px;padding:10px;flex:1;align-content:flex-start}
.hx-bin-body .hx-chip.with-art{width:112px}

.hx-comic{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hx-panel{position:relative;display:flex;flex-direction:column;margin:0;border:3px solid #3b2f28;border-radius:14px;background:#fff;overflow:hidden;box-shadow:4px 4px 0 #3b2f2822}
.hx-panel-n{position:absolute;z-index:2;top:6px;left:6px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#3b2f28;color:#fff;font-size:12px;font-weight:850}
.hx-caption{margin:0;padding:8px 12px 8px 36px;background:#f6d37a;border-bottom:2px solid #3b2f28;font-size:14px;font-weight:700;line-height:1.9}
.hx-bubbles{display:flex;flex-direction:column;gap:12px;padding:12px 12px 16px;flex:1;justify-content:flex-end}
.hx-caption+.hx-bubbles{padding-top:10px}
.hx-bubble{position:relative;padding:8px 12px;border:2px solid #3b2f28;border-radius:16px;background:#fff;font-size:15px;line-height:1.9}
.hx-bubble::after{content:'';position:absolute;left:var(--tail);bottom:-11px;width:16px;height:16px;background:#fff;border-right:2px solid #3b2f28;border-bottom:2px solid #3b2f28;transform:translateX(-50%) rotate(45deg) skew(10deg,10deg)}
.hx-bubble.narrator{border-radius:6px;background:#fff8dc}
.hx-bubble.narrator::after{display:none}
.hx-bubble.kusi{background:#fff1ee}.hx-bubble.kusi::after{background:#fff1ee}
.hx-bubble.sofia{background:#eef3ff}.hx-bubble.sofia::after{background:#eef3ff}
.hx-bubble.tomas{background:#eefaf3}.hx-bubble.tomas::after{background:#eefaf3}
.hx-bubble.ayelen{background:#f1f0fb}.hx-bubble.ayelen::after{background:#f1f0fb}
.hx-bubble.tiare{background:#fff1e6}.hx-bubble.tiare::after{background:#fff1e6}
.hx-who{display:block;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#7b5a3a;line-height:1.3}
.hx-panel-art{border-top:2px solid #3b2f28;background:#cfe8f5}
.hx-panel-art svg{display:block;width:100%;height:auto}
.hx-panel-art.photo{background:#f3ead6;display:flex;flex-direction:column;align-items:center}
.hx-panel-art.photo img{display:block;width:100%;height:230px;object-fit:cover}
.hx-panel-art.photo.drawing img{width:auto;max-width:100%;height:300px;object-fit:contain;padding:6px;mix-blend-mode:multiply}
.hx-panel-caption{margin:0;padding:6px 10px 8px;width:100%;background:#fffaf0;border-top:1px solid #e6d8b5;font-size:12px;line-height:1.35;color:#5a4a3a;box-sizing:border-box}
.hx-credit{font-size:10.5px;color:#8a7a62}
.hx-who{display:flex!important;align-items:center;gap:6px}
.hx-avatar{width:30px;height:30px;flex:none}
.hx-comic .hx-slot{min-width:96px;min-height:40px}
.hx-story{margin:16px 0}

.hx-stage{position:relative;width:100%;max-width:600px;margin:0 auto;border-radius:14px;overflow:hidden;border:2px solid #d9c9a0;background:#cfe5f0}
.hx-stage.map-sa{max-width:440px}.hx-stage.map-inca{max-width:420px}.hx-stage.map-chile{max-width:330px}.hx-stage.map-world{max-width:640px}.hx-stage.map-rapanui{max-width:620px}
.hx-stage.scene-compass{max-width:360px;background:#fbf5e6}.hx-stage.scene-pyramid{max-width:520px;background:#fbf5e6}
.hx-stage>svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.hx-pin-wrap{position:absolute;z-index:3;transform:translate(-50%,-50%)}
.hx-pin-wrap.filled{z-index:2}
.hx-pin{min-width:40px;min-height:40px;margin:0;border-radius:22px;border-width:3px;border-color:#7b5a3a;background:#fffdf7ee;box-shadow:0 2px 8px #3b2f2840}
.hx-pin b{font-size:16px;color:#7b5a3a}
.hx-pin.filled{padding:2px;background:#fff6dbee}
.hx-pin .hx-chip{min-height:32px;padding:3px 8px;font-size:12px;line-height:1.15;max-width:112px;text-align:center}
.hx-map-label{position:absolute;z-index:1;transform:translate(-50%,-50%);padding:2px 7px;border-radius:8px;background:#fffdf7cc;color:#3b2f28;font-size:12px;font-weight:800;white-space:nowrap;pointer-events:none}
.hx-map-label.big{font-size:14px;background:#fffdf7ee}
.hx-sea{fill:#cfe5f0}
.hx-land{fill:#f1e6c8;stroke:#8a7a5a;stroke-width:.8}
.hx-land.dim{fill:#e3dccb}
.hx-land.hl{fill:#e8734a}
.hx-line{stroke:#2a6f97;stroke-width:1.4;stroke-dasharray:7 5;fill:none;pointer-events:none}
path.hx-region,.hx-region path,.hx-region rect,.hx-region ellipse{fill:var(--fill);stroke:#5d4a3a;stroke-width:1.4;transition:fill .15s}
.hx-scene-svg .hx-region path,.hx-scene-svg .hx-region rect,.hx-scene-svg .hx-region ellipse{stroke-width:2.2}
.hx-region .hx-wall{fill:none}
.hx-region .hx-leg{fill:none;stroke:#5d4a3a;stroke-width:6;stroke-linecap:round}
.hx-paintable{touch-action:none}
.hx-paintable .hx-region{cursor:pointer}
.hx-paintable .hx-region:focus{outline:none}
.hx-paintable .hx-region:focus-visible path,.hx-paintable path.hx-region:focus-visible{stroke:#e3b23c;stroke-width:4}
path.hx-region.hx-wrong,.hx-region.hx-wrong path,.hx-region.hx-wrong rect,.hx-region.hx-wrong ellipse{stroke:var(--hx-wrong);stroke-width:4;stroke-dasharray:6 4}
.hx-empire{fill:#e7a3c4;opacity:.8}
.hx-suyo{opacity:.85}
.hx-borders path{fill:none;stroke:#4d4033;stroke-width:.8;pointer-events:none}
.hx-paintable .hx-borders path{stroke:#7d6d55;stroke-width:.7;stroke-dasharray:3 3;opacity:.7}
.hx-paintable path.hx-region{stroke-width:2.2}
.hx-peak{fill:#a1866a;pointer-events:none}
.hx-place{fill:#c8463b;stroke:#fff;stroke-width:2;pointer-events:none}

.hx-palette{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.hx-swatch{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 14px 6px 8px;border:2px solid #d9c9a0;border-radius:24px;background:#fffdf7;color:#2f3b33;font:inherit;font-weight:750}
.hx-swatch i{width:26px;height:26px;border-radius:50%;background:var(--swatch);border:2px solid #5d4a3a33}
.hx-swatch.on{border-color:#3b2f28;box-shadow:0 0 0 3px #f6dd8f}
.hx-swatch.eraser i{background:linear-gradient(135deg,#fff 44%,#c8463b 44% 56%,#fff 56%)}
.hx-legend{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin:0 0 12px;padding:10px 12px;border-radius:12px;background:#fffdf7;border:1px solid #e6d8b5;font-size:14px}
.hx-legend strong{width:100%;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#7b5a3a}
.hx-legend span{display:inline-flex;align-items:center;gap:7px}
.hx-legend i{width:18px;height:18px;border-radius:5px;border:1px solid #5d4a3a55}

.hx-memory{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:10px}
.hx-card{position:relative;min-height:108px;padding:0;border:0;border-radius:14px;background:none;perspective:700px;cursor:pointer;font:inherit}
.hx-card>span{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px;border-radius:14px;backface-visibility:hidden;-webkit-backface-visibility:hidden;transition:transform .35s}
.hx-card-back{background:repeating-linear-gradient(45deg,#c8463b 0 10px,#b23a30 10px 20px);border:3px solid #7b2a22}
.hx-card-back svg{width:46px;height:46px}
.hx-card-front{transform:rotateY(180deg);background:#fffdf6;border:3px solid #c8a160;color:#2f3b33;text-align:center;font-size:14px;line-height:1.25}
.hx-card.slot .hx-card-front{background:#eef6fb;border-color:#6b9cc4}
.hx-card-front svg{width:40px;height:40px}
.hx-card-front .hx-img{width:100%;max-width:120px;height:64px;object-fit:cover;border-radius:8px}
.hx-card.up .hx-card-back{transform:rotateY(180deg)}
.hx-card.up .hx-card-front{transform:rotateY(360deg)}
.hx-card.solved .hx-card-front{border-color:#5c9b4e;box-shadow:0 0 0 3px #cfe6c4}
.hx-card:disabled{cursor:default}

.hx-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;color:#6b6450;font-size:13px}

.hx-ficha{border:3px solid var(--ficha);border-radius:18px;background:#fffdf7;overflow:hidden;margin:14px 0}
.hx-ficha header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:color-mix(in srgb,var(--ficha) 16%,#fff)}
.hx-ficha header h3{margin:2px 0 0;font-size:21px}
.hx-ficha-art{width:64px;flex:none}
.hx-ficha-art svg{width:64px;height:auto;display:block}
.hx-ficha ul{margin:12px 16px 4px;padding-left:20px;display:grid;gap:6px;font-size:16px;line-height:1.45}
.hx-truco{margin:10px 16px 16px;padding:10px 14px;border-radius:12px;background:#fff3cf;border:2px dashed #e3b23c}
.hx-truco strong{display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#8a6a1c}
.hx-truco p{margin:6px 0 0;font-size:16px;font-weight:700;line-height:1.45;white-space:pre-line}
.hx-ficha-gallery{display:flex;flex-wrap:wrap;gap:10px;padding:0 16px 16px}
.hx-ficha-gallery figure{margin:0;width:120px;text-align:center;font-size:13px}
.hx-ficha-gallery svg{width:100%;height:auto;border-radius:8px}
.hx-ficha-gallery img.hx-img{display:block;width:100%;height:84px;object-fit:cover;border-radius:8px}
.hx-ficha-gallery figure{width:140px}
.hx-fichas{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.hx-ficha-wrap .hx-ficha{margin:0 0 4px}

.hx-source{margin:14px 0;padding:16px 20px;border-radius:6px;background:#fbf3df;border-left:6px solid #b58b4c;box-shadow:0 2px 0 #e7d7b3}
.hx-source blockquote{margin:8px 0;font-size:17px;line-height:1.55;font-style:italic}
.hx-source-ref{margin:0;font-size:13px;color:#6b5a3a}
.hx-figure{margin:14px 0}
.hx-figure figcaption{margin-top:6px;color:#6b6450;font-size:13px;text-align:center}
.hx-art-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.hx-art-row>div{width:150px;text-align:center;font-size:13px;font-weight:700}
.hx-art-row svg{width:100%;height:auto;border-radius:10px}
.hx-art-row>div{display:flex;flex-direction:column;gap:4px;width:200px}
.hx-art-row img.hx-img{display:block;width:100%;height:auto;max-height:280px;object-fit:contain;border-radius:8px;background:#f3ead6}
.hx-photo img.hx-img{display:block;width:100%;max-width:640px;height:auto;margin:0 auto;border-radius:14px}
.hx-credits{margin:20px 0;font-size:13px}.hx-credits ul{padding-left:18px;display:grid;gap:4px}.hx-credits a{color:#245d49}

.course-art-historia{background:linear-gradient(135deg,#f6d37a,#e7a3c4 55%,#c8463b)}
.course-art-lenguaje{background:linear-gradient(135deg,#9fd3e6,#6fb35a 55%,#e8734a)}.course-art-medicion{background:linear-gradient(135deg,#f3e3a1,#e3b23c 50%,#4a7fc1);background-image:linear-gradient(135deg,#f3e3a1cc,#e3b23ccc 50%,#4a7fc1cc),repeating-linear-gradient(0deg,#fff6 0 1px,transparent 1px 22px),repeating-linear-gradient(90deg,#fff6 0 1px,transparent 1px 22px)}

.hx-read{margin:14px 0;padding:18px 20px;border-radius:16px;background:#fffdf7;border:2px solid #d9c9a0}
.hx-read h3{margin:4px 0 10px;font-size:23px}
.hx-read h4{margin:16px 0 6px;font-size:18px;color:#245d49}
.hx-read p{margin:8px 0;font-size:17px;line-height:1.6}
.hx-read mark{background:#d8eef7;color:#1f4e6b;font-weight:700;padding:0 3px;border-radius:4px}
.hx-par-n{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:8px;border-radius:50%;background:#e3b23c;color:#3b2f28;font-size:13px;font-weight:800;vertical-align:2px}
.hx-read-img{margin:6px 0 12px}
.hx-read-img img.hx-img{display:block;width:100%;max-width:560px;height:auto;margin:0 auto;border-radius:12px}
.hx-read-img figcaption{margin-top:6px;color:#6b6450;font-size:13px;text-align:center}
.hx-glossary{margin:14px 0 4px;padding:10px 14px;border-radius:12px;background:#eef6f1;border:2px dashed #5c9b4e}
.hx-glossary strong{display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#3b6e3a}
.hx-glossary p{margin:4px 0;font-size:16px}
.hx-info{margin:14px 0;border-radius:16px;overflow:hidden;background:var(--info);color:#fff}
.hx-info header{padding:14px 18px 4px}
.hx-info header .eyebrow{color:#f2c94c}
.hx-info header h3{margin:4px 0;font-size:24px;color:#fff}
.hx-info header p{margin:4px 0 0;font-size:14px;opacity:.9}
.hx-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;padding:12px 16px 16px}
.hx-info-block{background:rgba(255,255,255,.1);border-radius:12px;padding:12px 14px}
.hx-info-block h4{margin:0 0 8px;font-size:15px;letter-spacing:.04em;text-transform:uppercase;color:#f2c94c}
.hx-info-block.photo{padding:8px}
.hx-info-block.photo img.hx-img{display:block;width:100%;height:auto;max-height:240px;object-fit:cover;border-radius:8px}
.hx-info-block .hx-credit{color:#d9e6ee}
.hx-info-note{margin:8px 0 0;font-size:13px;opacity:.9}
.hx-bars{display:grid;gap:8px}
.hx-bar{display:grid;grid-template-columns:minmax(90px,38%) 1fr auto;align-items:center;gap:8px;font-size:15px}
.hx-bar-track{height:16px;border-radius:8px;background:rgba(255,255,255,.85);overflow:hidden}
.hx-bar-track i{display:block;height:100%;border-radius:8px}
.hx-bar b{min-width:48px;text-align:right}
.hx-facts{margin:0;display:grid;gap:6px}
.hx-facts div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid rgba(255,255,255,.18);padding-bottom:4px}
.hx-facts dt{opacity:.85}.hx-facts dd{margin:0;font-weight:700;text-align:right}
.hx-info>figcaption{padding:0 16px 12px;font-size:12px;opacity:.8}

@media (max-width:700px){
  .hx{padding:12px}
  .hx-comic{grid-template-columns:1fr}
  .hx-bins{grid-template-columns:repeat(min(var(--bins),2),minmax(0,1fr))}
  .hx-lines{font-size:16px;padding-left:20px}
  .hx-slot{min-width:96px}
  .hx-chip.with-art{width:112px}
}
@media (max-width:420px){.hx-bins{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.hx-chip.hx-wrong{animation:none}.hx-card>span{transition:none}}

/* The toast only informs; it must never swallow a tap on the pieces underneath. */
#toast{pointer-events:none}
/* Long stage titles must wrap next to the stage selector (WebKit would not shrink either). */
.activity-top>div{min-width:0;flex:1 1 auto}
.activity-top .page-jump{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
/* WebKit counts a select's widest option as page overflow; clip it inside the header. */
.activity-top{overflow:hidden}

/* Decimales: the place-value table (U , d c) of «coma con coma» and the dashed «ghost» zeros. */
.course-art-decimales{background:linear-gradient(135deg,#bfe3d0,#5c9b4e 45%,#7a5bb5);background-image:linear-gradient(135deg,#bfe3d0cc,#5c9b4ecc 45%,#7a5bb5cc),repeating-linear-gradient(90deg,#fff7 0 2px,transparent 2px 24px)}
.decimal-input{width:150px;letter-spacing:.04em}
.hx-place-row{display:flex;flex-wrap:wrap;gap:14px;justify-content:center}
.hx-place-box{background:#fffdf7;border:2px solid #d9cfb8;border-radius:14px;padding:10px 14px 12px;min-width:0}
.hx-place-box.tone-bad{border-color:#e08a7a;background:#fff4f1}
.hx-place-box.tone-good{border-color:#7db36f;background:#f4fbef}
.hx-place-label{margin:0 0 6px;font-weight:800;font-size:15px;text-align:center}
.tone-bad .hx-place-label{color:#b3402e}.tone-good .hx-place-label{color:#3f7a33}
.hx-place-table{border-collapse:collapse;margin:0 auto;font-size:28px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.15}
.hx-place-table th{font-size:13px;font-weight:800;color:#fff;background:#4a7fc1;padding:3px 0;width:1.45em;border:1px solid #fff}
.hx-place-table th.hx-place-comma{background:#7a5bb5;width:.7em}
.hx-place-table td{width:1.45em;height:1.4em;text-align:center;border:1px solid #e6dcc7;padding:0}
.hx-place-table td.hx-place-comma{width:.7em;color:#7a5bb5}
.hx-place-table td.hx-place-comma.bad{color:#c8463b;background:#ffd9d2}
.hx-place-table td.hx-place-sign{border:none;width:1em;color:#5d6b57}
.hx-place-table td.ghost{color:#9b86c9;border:2px dashed #9b86c9;font-style:italic}
.hx-place-table td.hx-place-comma.ghost{border:1px solid #e6dcc7}
.hx-place-table td.hx-place-q{color:#b9ad93}
.hx-place-table tr.hx-place-res td{border-top:3px solid #3b4a36}
.hx-place-table tr.hx-place-res td.hx-place-sign{border-top:none}
.hx-place-note{margin:6px 0 0;font-size:14px;text-align:center;color:#5d6b57;max-width:22em}
@media (max-width:480px){.hx-place-table{font-size:22px}}
/* Evaluations: no «Comprobar», hand-in, adult release and the explanations the child reads afterwards. */
.evaluation-note{display:flex;gap:10px;flex-wrap:wrap;align-items:baseline;margin-top:18px;padding:13px 16px;border-radius:14px;background:#fff6e0;border:1px dashed #d6a93c;color:#6b5320;font-size:14px;line-height:1.5}
.evaluation-note strong{color:#8a5d00}
.evaluation-status{padding:20px 22px;border-radius:16px;background:#eef6ea;border:1px solid #b9d6ad;margin:0 0 20px}
.evaluation-status h3{margin:0 0 6px;font-size:20px;color:#2f6a3a}
.evaluation-status p{margin:0 0 12px;line-height:1.6;color:#4d5f48}
.evaluation-status.released{background:#f0ebf8;border-color:#c9b6e4}
.evaluation-status.released h3{color:#5e3f8f}
.evaluation-status.prereq-lock{background:#fff4e0;border-color:#efc77e}
.evaluation-status.prereq-lock h3{color:#8a5a12}
.fix-list{padding:16px 20px;border-radius:14px;background:#fff1ee;border:1px solid #f0b9ac;margin:0 0 18px}
.fix-list h3{margin:0 0 8px;font-size:18px;color:#a2402b}
.fix-list ul{margin:0 0 8px;padding-left:4px;list-style:none;font-weight:700;color:#7a3324;line-height:1.7}
.fix-list p{margin:0;color:#6b4c44;font-size:14px}
.result-card.review-seen header::after{content:'✓ leído';margin-left:8px;font-size:12px;font-weight:700;color:#2f6a3a;background:#e4f2dd;border-radius:999px;padding:2px 8px}
.review-confirm{padding:18px 20px;border-radius:16px;background:#eef6ea;border:1px solid #b9d6ad;margin:18px 0;text-align:center}
.review-confirm p{margin:0 0 12px;color:#4d5f48;line-height:1.5}
.review-confirm button[disabled]{opacity:.5;cursor:not-allowed}
.review-done{margin:18px 0;padding:12px 16px;border-radius:12px;background:#eef6ea;color:#2f6a3a;font-weight:700}
.evaluation-panel{padding:20px 22px;border-radius:16px;border:2px solid #c9b6e4;background:#fbf9ff;margin:18px 0 24px}
.evaluation-panel h2{margin:0 0 6px;font-size:22px}
.eval-verdicts{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:14px 0}
.vchip{padding:6px 11px;border-radius:999px;font-size:13px;background:#eee;color:#333}
.vchip b{font-size:16px;margin-right:3px}
.vchip.sabe,.eval-table tr.verdict-sabe td:last-child{background:#dff0d8;color:#2f6a3a}
.vchip.calcula,.eval-table tr.verdict-calcula td:last-child{background:#fff0c9;color:#7a5700}
.vchip.explica,.eval-table tr.verdict-explica td:last-child{background:#e3edf9;color:#2b5a8f}
.vchip.no,.eval-table tr.verdict-no td:last-child{background:#fbe1dc;color:#9b3826}
.eval-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.eval-table{width:100%;border-collapse:collapse;font-size:14px;min-width:520px}
.eval-table th{text-align:left;font-size:12px;color:#6d6380;padding:8px;border-bottom:2px solid #ddd2ee}
.eval-table td{padding:8px;border-bottom:1px solid #ece6f4;vertical-align:top}
.eval-table td:nth-child(n+2){white-space:nowrap}
.results-intro{color:#5d6b57;line-height:1.6;margin:8px 0 20px}
.result-card{border:1px solid #dcd6c6;border-radius:16px;padding:18px 20px;margin:0 0 18px;background:#fffefa}
.result-card header{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.result-card h2{margin:0;font-size:19px}
.verdict-chip{padding:5px 11px;border-radius:999px;font-size:13px;font-weight:700}
.verdict-sabe .verdict-chip{background:#dff0d8;color:#2f6a3a}.verdict-calcula .verdict-chip{background:#fff0c9;color:#7a5700}
.verdict-explica .verdict-chip{background:#e3edf9;color:#2b5a8f}.verdict-no .verdict-chip{background:#fbe1dc;color:#9b3826}
.result-field{border-left:4px solid #c9c2b0;padding:6px 0 6px 12px;margin:12px 0}
.result-field.correct{border-left-color:#6aa85b}.result-field.incorrect,.result-field.pending{border-left-color:#d9826f}
.result-label{margin:0;font-size:12px;color:#6c7466;text-transform:none}
.result-given{margin:4px 0;font-size:17px;font-weight:700;line-height:1.45}
.result-mark{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:14px;color:#fff;margin-right:4px}
.result-mark.ok{background:#4e9a43}.result-mark.bad{background:#c8563f}
.result-expected{margin:4px 0;font-size:15px}
.result-why{margin:6px 0 0;padding:9px 12px;border-radius:10px;background:#f4f1e8;line-height:1.55;font-size:15px}
.result-solution{margin-top:14px;padding:12px 16px;border-radius:12px;background:#eef4fb}
.result-solution h3{margin:0 0 6px;font-size:15px;color:#2b5a8f}
.result-solution ol{margin:0;padding-left:20px;line-height:1.6;font-size:15px}
@media (max-width:480px){.result-card{padding:14px}.evaluation-panel{padding:16px}.result-given{font-size:16px}}
@media print{.evaluation-panel .review-toolbar{display:none}}

/* Explanation videos */
.hx-video{display:grid;gap:.5rem;justify-items:center;text-align:center}
.hx-video h3{margin:0;font-size:1.1rem}
.hx-video video{display:block;width:100%;max-width:760px;aspect-ratio:16/9;background:#10202b;border-radius:14px}
.hx-video-chapters{list-style:none;margin:.2rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.35rem .9rem;justify-content:center;font-size:.92rem}
.sequence-warning{color:#b4442c;font-weight:700}
/* Ciencias · Fuerzas: flechas de fuerza y de movimiento, e imanes con sus polos */
.hx-forces-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.hx-forces-panel{position:relative;background:#fffdf7;border:2px solid #d9cfb8;border-radius:14px;padding:6px;text-align:center;font-size:13px;font-weight:700;min-width:0}
.hx-forces-panel svg{display:block;width:100%;height:auto;max-height:220px}
.hx-forces-n{position:absolute;left:8px;top:6px;background:#3b2f28;color:#fff;border-radius:999px;min-width:24px;height:24px;line-height:24px;padding:0 6px;font-size:13px}
.hx-thing{font-size:46px}
.hx-force{stroke:#d9542b;stroke-width:6;stroke-linecap:round}
.hx-move{stroke:#3b6fb6;stroke-width:4;stroke-dasharray:8 6;stroke-linecap:round}
.hx-arrow-label{font:700 15px system-ui,sans-serif;paint-order:stroke;stroke:#fffdf7;stroke-width:4px}
.hx-force-label{fill:#a53a17}.hx-move-label{fill:#2c5592;font-size:13px}
.hx-forces-key{justify-content:center}
.hx-forces-key i.force{background:#d9542b;height:5px;width:22px;border-radius:3px}
.hx-forces-key i.move{background:repeating-linear-gradient(90deg,#3b6fb6 0 6px,transparent 6px 10px);height:4px;width:22px}
.hx-magnets{display:flex;flex-direction:column;gap:12px;align-items:center}
.hx-magnet-pair{position:relative;display:flex;align-items:center;gap:10px;padding-left:34px;max-width:100%}
.hx-magnet-pair .hx-forces-n{left:0;top:50%;transform:translateY(-50%)}
.hx-magnet{display:inline-flex;border-radius:6px;overflow:hidden;box-shadow:0 2px 0 #0002}
.hx-pole{display:inline-block;width:52px;height:38px;line-height:38px;text-align:center;color:#fff;font:800 20px system-ui,sans-serif}
.hx-pole.n{background:#c8463b}.hx-pole.s{background:#3b6fb6}.hx-pole.q{background:#b8ae98;color:#3b2f28}
.hx-magnet-gap{min-width:34px;text-align:center;font-weight:800;color:#6b6450}
@media (max-width:420px){.hx-pole{width:40px;height:32px;line-height:32px;font-size:17px}.hx-magnet-pair{gap:6px;padding-left:30px}}
.course-art-ciencias{background:linear-gradient(135deg,#ffd9a8,#e8734a 45%,#3b6fb6);background-image:linear-gradient(135deg,#ffd9a8cc,#e8734acc 45%,#3b6fb6cc),repeating-linear-gradient(45deg,#fff5 0 2px,transparent 2px 26px)}
.course-art-ingles{background:linear-gradient(135deg,#bfe3a8,#5c9b4e 45%,#2a6f8c);background-image:linear-gradient(135deg,#bfe3a8cc,#5c9b4ecc 45%,#2a6f8ccc),repeating-linear-gradient(45deg,#fff5 0 2px,transparent 2px 26px)}
.word-input{width:min(100%,440px);padding:11px 14px;background:#fff;border:1.5px solid #c8d4bd;border-radius:9px;color:var(--green);font-size:20px;letter-spacing:.3px}
.word-input:focus{border-color:#6e9246}
/* Datos y azar (Matemática · Unidad 6): gráficos de barras con escala, tablas de conteo, pictogramas y datos sueltos */
.hx-chart-row{display:grid;grid-template-columns:minmax(0,560px);justify-content:center;gap:10px}
.hx-chart-row.many{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.hx-chart-panel{position:relative;background:#fffdf7;border:2px solid #d9cfb8;border-radius:14px;padding:8px 6px 4px;min-width:0;text-align:center;font-size:13px;font-weight:700}
.hx-chart-panel svg{display:block;width:100%;height:auto}
.hx-chart-grid{stroke:#d6ccb4;stroke-width:1}
.hx-chart-minor{stroke:#ebe3cf;stroke-width:1;stroke-dasharray:3 4}
.hx-chart-axis{stroke:#3b2f28;stroke-width:2}
.hx-chart-arrow{fill:#3b2f28}
.hx-chart-bar{stroke:#2c3e5a55;stroke-width:1}
.hx-chart-tick{font:600 13px system-ui,sans-serif;fill:#3b2f28}
.hx-chart-label{font:600 12.5px system-ui,sans-serif;fill:#3b2f28}
.hx-chart-title{font:800 15px system-ui,sans-serif;fill:#1f2d3d}
.hx-chart-axis-title{font:700 12.5px system-ui,sans-serif;fill:#5d4a3a}
.hx-table-wrap{overflow-x:auto;display:flex;justify-content:center}
.hx-table{border-collapse:collapse;background:#fffdf7;border:2px solid #d9cfb8;border-radius:12px;min-width:min(100%,360px);font-size:15px}
.hx-table caption{font-weight:800;padding:0 0 8px;color:#1f2d3d}
.hx-table th,.hx-table td{border:1px solid #e0d6bf;padding:8px 12px;text-align:center;vertical-align:middle}
.hx-table thead th{background:#f2ead7;font-size:13px;letter-spacing:.02em}
.hx-table tbody th{text-align:left;font-weight:700}
.hx-tally{display:inline-block;vertical-align:middle;stroke:#3b2f28;stroke-width:2.2;stroke-linecap:round}
.hx-table-blank{display:inline-block;min-width:34px;border-bottom:2px dashed #b8ae98;color:#b8ae98;font-weight:800}
.hx-picto{background:#fffdf7;border:2px solid #d9cfb8;border-radius:14px;padding:10px 12px}
.hx-picto-key{margin:0 0 8px;font-weight:700;color:#5d4a3a}
.hx-picto-body{display:flex;flex-direction:column;gap:6px}
.hx-picto-row{display:grid;grid-template-columns:minmax(96px,32%) 1fr;align-items:center;gap:8px;border-top:1px dashed #e0d6bf;padding-top:6px}
.hx-picto-label{font-weight:700}
.hx-picto-icons{display:flex;flex-wrap:wrap;gap:3px;font-size:22px;line-height:1.1}
.hx-picto-icon{display:inline-block;width:1.15em;text-align:center}
.hx-picto-half{display:inline-block;width:.575em;overflow:hidden;white-space:nowrap;vertical-align:top}
.hx-data-list{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;background:#fffdf7;border:2px solid #d9cfb8;border-radius:14px;padding:10px}
.hx-data-item{display:inline-block;padding:5px 10px;border-radius:999px;background:#eef3fb;border:1px solid #c5d3ea;font-weight:700}
.hx-data-list.d4 .hx-data-item{width:42px;height:38px;padding:15px 0 0;border:0;border-radius:0;background:#e7d38a;clip-path:polygon(50% 0,100% 100%,0 100%);text-align:center;font-size:15px;line-height:1}
.course-art-datos{background:linear-gradient(135deg,#ffe7a8,#4a7fc1 50%,#2f9c8f);background-image:linear-gradient(135deg,#ffe7a8cc,#4a7fc1cc 50%,#2f9c8fcc),repeating-linear-gradient(90deg,#fff5 0 2px,transparent 2px 26px)}
