.isc-games-home{padding:48px 0 58px;background:#f6f8fc;color:#24334b}.isc-games-heading{text-align:center;max-width:700px;margin:0 auto 26px}.isc-games-heading h2{color:var(--blue,#182e70);font-size:32px;margin:0 0 10px}.isc-games-heading p{margin:0;color:#60718a;font-size:15px}.isc-games-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),360px));gap:24px;justify-content:center}.isc-games-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #dce4f0;border-radius:17px;overflow:hidden;text-decoration:none;box-shadow:0 7px 24px #182e7009;transition:transform .18s,box-shadow .18s}.isc-games-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #182e7016}.isc-games-art{height:160px;background:#edf2fa;display:flex;align-items:center;justify-content:center;overflow:hidden}.isc-games-art>img{height:100%;width:100%;object-fit:cover;object-position:center 47%}.isc-games-art-memory>span{display:flex;align-items:center;justify-content:center;width:70px;height:98px;border-radius:10px;border:1px solid #d6c28b;background:#fff;box-shadow:0 5px 12px #182e7014;transform:rotate(-12deg);margin-right:-9px}.isc-games-art-memory>span:nth-child(2){transform:translateY(-7px);z-index:1}.isc-games-art-memory>span:nth-child(3){transform:rotate(12deg)}.isc-games-art-memory img{width:43px;height:73px;object-fit:contain}.isc-games-card-copy{padding:22px;flex:1;display:flex;flex-direction:column;align-items:flex-start}.isc-games-card h3{font-family:inherit;font-size:22px;font-weight:650;line-height:1.3;margin:0 0 9px;color:#182e70}.isc-games-card p{font-size:14px;line-height:1.6;margin:0 0 18px;color:#60718a}.isc-games-play{display:inline-flex;align-items:center;gap:20px;padding:8px 18px;min-height:42px;background:#182e70;color:#fff;border-radius:999px;font-size:13px;font-weight:650;margin-top:auto}.isc-game-shell{background:#f2f5fb;color:#24334b}.isc-game-app{box-sizing:border-box;max-width:1000px;margin:0 auto;padding:26px 22px 48px}.isc-game-header{display:flex;align-items:center;gap:15px;padding-bottom:22px;border-bottom:1px solid #dce3ef}.isc-game-header>img{width:43px;height:66px;object-fit:contain}.isc-game-header>div{flex:1;min-width:0}.isc-game-header p{font-size:12px;color:#60718a;margin:0 0 5px}.isc-game-app h1{font-family:inherit;font-size:28px;font-weight:650;line-height:1.2;color:#182e70;margin:0}.isc-game-header>a{font-size:12px;text-decoration:none;padding:9px 15px;background:#fff;border:1px solid #dce3ef;border-radius:999px;white-space:nowrap}.isc-game-instructions{font-size:16px;line-height:1.65;margin:22px 0 18px}.isc-game-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.isc-game-controls label{display:flex;flex-direction:column;font-size:12px;font-weight:600;gap:6px}.isc-game-controls select,.isc-game-controls button{font:inherit;font-size:14px;min-height:44px;border:1px solid #cbd5e4;border-radius:9px;background:#fff;color:#182e70;padding:9px 14px}.isc-game-controls button{font-weight:600}.isc-game-controls #isc-game-reset{background:#182e70;color:#fff;border-color:#182e70}.isc-game-stats{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:20px;font-size:14px;font-weight:600;color:#526583}.isc-game-message{min-height:28px;font-size:14px;margin:12px 0 17px;line-height:1.6;color:#245947}.isc-game-board{display:grid;grid-template-columns:repeat(var(--game-columns,4),minmax(0,1fr));gap:12px;max-width:700px;margin:0 auto}.isc-memory-card{position:relative;aspect-ratio:1;min-width:0;padding:0;border:1px solid #d7c695;border-radius:13px;background:#fff;box-shadow:0 4px 12px #182e700b;color:#182e70;overflow:hidden;cursor:pointer}.isc-memory-back,.isc-memory-front{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:9px;gap:4px}.isc-memory-back{background:linear-gradient(145deg,#fff,#f5eddb)}.isc-memory-back img{width:55%;height:80%;object-fit:contain}.isc-memory-front{visibility:hidden;background:#fff}.isc-memory-front img{width:65%;height:65%;object-fit:contain}.isc-memory-front>span{font-size:12px;line-height:1.2;text-align:center;overflow-wrap:anywhere}.isc-memory-card.is-open .isc-memory-front{visibility:visible}.isc-memory-card.is-open .isc-memory-back{visibility:hidden}.isc-memory-card.is-matched{border-color:#609079;box-shadow:0 0 0 2px #60907933}.isc-memory-card:disabled{opacity:1;cursor:default}.isc-puzzle-board{max-width:550px;aspect-ratio:1;gap:4px;padding:5px;border:1px solid #cbd5e4;border-radius:12px;background:#fff}.isc-puzzle-piece{min-width:0;min-height:0;padding:0;border:1px solid #fff5;border-radius:4px;background-repeat:no-repeat;aspect-ratio:1;cursor:pointer}.isc-puzzle-piece.is-selected{outline:4px solid #b98a24;outline-offset:-4px;position:relative;z-index:1}.isc-puzzle-piece:disabled{opacity:1;cursor:default}.isc-game-reference{max-width:220px;margin:0 auto 20px;padding:9px;background:#fff;border:1px solid #dce3ef;border-radius:11px}.isc-game-reference[hidden]{display:none!important}.isc-game-reference img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px}.isc-game-reference figcaption{text-align:center;font-size:12px;margin-top:6px;color:#60718a}.isc-game-app :is(button,a,select):focus-visible,.isc-games-card:focus-visible{outline:3px solid #b98a24;outline-offset:4px}.isc-puzzle-piece:focus-visible{outline-offset:-4px}@media(max-width:640px){.isc-games-home{padding:34px 0 40px}.isc-games-heading h2{font-size:27px}.isc-games-cards{grid-template-columns:minmax(0,1fr);gap:17px}.isc-games-art{height:145px}.isc-game-app{padding:18px 12px 35px}.isc-game-header{gap:10px;flex-wrap:wrap}.isc-game-header>img{width:33px;height:50px}.isc-game-app h1{font-size:23px}.isc-game-header>a{font-size:11px;padding:8px 11px}.isc-game-instructions{font-size:14px}.isc-game-controls{gap:9px}.isc-game-controls label{width:100%}.isc-game-controls select{width:100%;font-size:16px}.isc-game-board.isc-memory-board{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.isc-memory-back,.isc-memory-front{padding:4px;gap:2px}.isc-memory-front>span{font-size:10px}.isc-memory-card{border-radius:9px}.isc-game-stats{font-size:13px}.isc-game-message{font-size:13px}.isc-game-header>div{min-width:160px}}@media(prefers-reduced-motion:reduce){.isc-games-card{transition:none}.isc-games-card:hover{transform:none}}

.isc-game-header>a{display:inline-flex;align-items:center;min-height:44px}.isc-game-reference img{object-fit:fill}@media(max-width:640px){.isc-memory-front img{width:60%;height:50%}.isc-memory-front>span{font-size:11px;line-height:1.1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}}

.isc-game-dialog{width:min(1050px,94vw);height:min(900px,90vh);max-width:94vw;max-height:90vh;margin:auto;padding:0;border:1px solid #d6deea;border-radius:14px;background:#f2f5fb;color:#24334b;box-shadow:0 22px 80px #0006;overflow:hidden}.isc-game-dialog:not([open]){display:none}.isc-game-dialog::backdrop{background:rgba(0,0,0,.8)}.isc-game-dialog-panel{display:flex;flex-direction:column;height:100%;min-height:0}.isc-game-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 19px;background:#fff;border-bottom:1px solid #dce3ef}.isc-game-dialog-header h2{font-family:inherit;font-size:20px;font-weight:650;line-height:1.3;color:#182e70;margin:0;overflow-wrap:anywhere}.isc-game-dialog-close{flex-shrink:0;min-height:44px;padding:9px 15px;border:1px solid #d3ddea;border-radius:8px;background:#edf2fa;color:#182e70;font:600 13px system-ui,sans-serif;cursor:pointer}.isc-game-dialog-close:focus-visible{outline:3px solid #b98a24;outline-offset:3px}.isc-game-dialog-frame{display:block;flex:1;width:100%;min-height:0;border:0;background:#f2f5fb}.isc-game-embedded .isc-game-header{display:none}.isc-game-embedded .isc-game-app{padding-top:5px}.isc-game-embedded .isc-game-instructions{margin-top:14px}@media(max-width:640px){.isc-game-dialog{width:96vw;max-width:96vw;height:94vh;max-height:94vh}.isc-game-dialog-header{padding:10px 12px;gap:10px}.isc-game-dialog-header h2{font-size:17px}}
/* Tablero de parejas completo dentro de la altura disponible. */
.isc-game-help{position:relative;margin:8px 0;font-size:12px;flex-shrink:0}.isc-game-help summary{cursor:pointer;color:#182e70;width:max-content}.isc-game-help[open] .isc-game-instructions{position:absolute;top:20px;left:0;z-index:5;width:min(420px,80vw);box-sizing:border-box;margin:0;padding:14px;background:#fff;border:1px solid #ccd7e8;border-radius:10px;box-shadow:0 6px 24px #182e7025;font-size:14px}
.isc-memory-app{height:100vh;height:100dvh;display:flex;flex-direction:column;padding:10px 16px 12px;min-height:0}.isc-memory-app .isc-game-header{flex-shrink:0;padding-bottom:8px}.isc-memory-app .isc-game-header>img{height:42px;width:30px}.isc-memory-app h1{font-size:22px}.isc-memory-app .isc-game-controls{flex-shrink:0;gap:8px;align-items:center}.isc-memory-app .isc-game-controls label{flex-direction:row;align-items:center;gap:8px;width:auto}.isc-memory-app .isc-game-controls select,.isc-memory-app .isc-game-controls button{padding:6px 10px;min-height:36px;font-size:13px}.isc-memory-app .isc-game-stats{flex-shrink:0;margin-top:8px;gap:6px 20px;font-size:13px}.isc-memory-app .isc-game-message{flex-shrink:0;font-size:12px;line-height:1.25;min-height:30px;margin:5px 0}.isc-memory-app .isc-memory-board{flex:1;min-height:0;width:100%;max-width:850px;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:8px}.isc-memory-app .isc-memory-card{aspect-ratio:auto;min-height:0}.isc-memory-app .isc-memory-front,.isc-memory-app .isc-memory-back{min-height:0;padding:4px;gap:2px}.isc-memory-app .isc-memory-front img{flex:1;min-height:0;width:70%;height:0;object-fit:contain}.isc-memory-app .isc-memory-front>span{flex-shrink:0;font-size:11px;line-height:1.1;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.isc-game-dialog{height:min(900px,94vh);height:min(900px,94dvh);max-height:94dvh}
@media(max-width:640px){.isc-memory-app{padding:6px 8px 8px}.isc-memory-app .isc-memory-board{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.isc-memory-app .isc-game-controls{gap:6px}.isc-memory-app .isc-game-controls label{font-size:11px;gap:5px}.isc-memory-app .isc-game-controls select{width:auto;max-width:180px;font-size:12px}.isc-memory-app .isc-game-controls button{font-size:12px}.isc-memory-app .isc-memory-front>span{font-size:9px;display:block}.isc-game-dialog{height:96vh;height:96dvh;max-height:96dvh}.isc-game-dialog-header{padding:5px 10px}.isc-game-dialog-header h2{font-size:16px}.isc-game-dialog-close{min-height:36px;padding:6px 10px}}
@media(max-height:450px){.isc-memory-app .isc-game-help{margin:3px 0}.isc-memory-app .isc-game-stats{margin-top:4px}.isc-memory-app .isc-game-message{min-height:16px;margin:3px 0}.isc-memory-app .isc-memory-front>span{display:none}.isc-memory-app .isc-game-header{display:none}}
/* Ventana limpia y rompecabezas completo, conservando la proporción original. */
.isc-game-dialog-header{padding:4px 12px;gap:10px;min-height:40px;box-sizing:border-box}.isc-game-dialog-header h2{font-size:16px;line-height:1.2}.isc-game-dialog-close{min-height:32px;padding:4px 10px;font-size:12px}.isc-game-dialog-frame{flex-basis:0}.isc-puzzle-app{position:relative;max-width:1100px}.isc-puzzle-stage{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;min-width:0;width:100%;overflow:hidden}.isc-puzzle-stage .isc-puzzle-board{flex:none;max-width:100%;max-height:100%;margin:0;box-sizing:border-box;aspect-ratio:auto;grid-auto-rows:minmax(0,1fr);padding:0;border:0;border-radius:6px;gap:2px}.isc-puzzle-stage .isc-puzzle-piece{aspect-ratio:auto;border:0;border-radius:2px}.isc-puzzle-app .isc-game-reference{position:absolute;z-index:4;top:115px;right:14px;margin:0;width:min(220px,55%);max-height:calc(100% - 130px);overflow:auto;box-shadow:0 8px 30px #182e7033}.isc-puzzle-app .isc-game-reference img{aspect-ratio:auto;max-height:45vh;object-fit:contain}.isc-puzzle-app .isc-game-message{min-height:16px}.isc-puzzle-app .isc-game-controls{flex-wrap:wrap}.isc-games-art>img{object-fit:contain}
@media(max-width:640px){.isc-game-dialog-header{padding:3px 9px;min-height:38px}.isc-game-dialog-header h2{font-size:15px}.isc-game-dialog-close{min-height:32px}.isc-puzzle-app .isc-game-controls{gap:5px}.isc-puzzle-app .isc-game-controls button{padding:6px 8px;font-size:11px}.isc-puzzle-app .isc-game-controls label{font-size:0;gap:0}.isc-puzzle-app .isc-game-controls select{max-width:145px}.isc-puzzle-app .isc-game-reference{top:110px}}
/* Cuatro juegos en una fila en computador, dos en tableta y uno en teléfono. */
.isc-games-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch}.isc-games-card-copy{padding:18px}.isc-games-card h3{font-size:20px}.isc-games-card p{font-size:13px}.isc-games-art{height:145px}@media(min-width:641px) and (max-width:960px){.isc-games-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.isc-games-cards{grid-template-columns:minmax(0,1fr);gap:17px}}

/* Cinco juegos y nuevos tableros de lógica. */
.isc-games-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}.isc-games-card-copy{padding:15px}.isc-games-card h3{font-size:18px}.isc-games-art{height:130px}.isc-games-play{padding:8px 14px;gap:10px}
.isc-extra-board{flex:1;min-height:0;min-width:0;width:100%}.isc-extra-app .isc-game-message{min-height:30px}.isc-logic-round{display:flex;flex-direction:column;gap:10px;max-width:850px;margin:0 auto}.isc-sequence-strip{display:grid;grid-template-columns:repeat(var(--sequence-count,7),minmax(0,1fr));flex:1;min-height:0;gap:6px;align-items:stretch}.isc-sequence-strip>span{display:flex;align-items:center;justify-content:center;min-height:0;padding:5px;border:1px solid #d4ddeb;border-radius:9px;background:#fff;font:700 35px system-ui;color:#182e70}.isc-logic-round img{width:100%;height:100%;min-height:0;object-fit:contain}.isc-logic-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:1;min-height:0;gap:12px}.isc-logic-round button{min-width:0;min-height:0;padding:8px;border:2px solid #cbd5e4;border-radius:12px;background:#fff;cursor:pointer}.isc-logic-round button.is-correct{border-color:#298351;background:#edf8ef;opacity:1}.isc-logic-round button:disabled{cursor:default}.isc-logic-round .isc-logic-next{align-self:center;flex:none;min-height:40px;padding:8px 20px;background:#182e70;color:#fff;font:600 14px system-ui}.isc-intruder-grid{display:grid;grid-template-columns:repeat(var(--intruder-columns,2),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);flex:1;min-height:0;gap:8px;width:100%;max-width:650px;align-self:center}.isc-number-grid{display:grid;grid-template-columns:repeat(var(--number-size,3),minmax(0,1fr));grid-template-rows:repeat(var(--number-size,3),minmax(0,1fr));gap:7px;max-width:550px;margin:0 auto}.isc-number-grid button{min-width:0;min-height:0;padding:0;border:1px solid #cad5e6;border-radius:10px;background:#fff;color:#182e70;font:700 clamp(20px,5vmin,42px) system-ui;box-shadow:0 3px 8px #182e7010;cursor:pointer}.isc-number-grid .isc-number-blank{background:#dae3f1;border:1px dashed #acbbd0;box-shadow:none}.isc-number-grid button:disabled{opacity:1;cursor:default}.isc-extra-app :is(button,select):focus-visible{outline:3px solid #bd8e2e;outline-offset:-3px}
@media(min-width:641px) and (max-width:960px){.isc-games-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.isc-games-cards{grid-template-columns:minmax(0,1fr)}.isc-games-art{height:145px}.isc-sequence-strip{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);flex:2;gap:4px}.isc-logic-choices{gap:6px}.isc-logic-round{gap:7px}.isc-logic-round button{padding:4px}.isc-number-grid{gap:5px}}
/* Sudoku religioso: tablero completo y selector de cuatro imágenes. */
.isc-sudoku{display:grid;grid-template-rows:minmax(0,1fr) 64px;gap:10px;max-width:500px;margin:0 auto}.isc-sudoku-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));min-height:0;border:2px solid #344d79;border-radius:8px;overflow:hidden}.isc-sudoku-cell{min-width:0;min-height:0;padding:6px;border:1px solid #cbd6e7;background:#fff;cursor:pointer}.isc-sudoku-cell:nth-child(4n+2){border-right:3px solid #344d79}.isc-sudoku-cell:nth-child(n+5):nth-child(-n+8){border-bottom:3px solid #344d79}.isc-sudoku-cell.is-fixed{background:#e1e8f3}.isc-sudoku-cell.is-selected{background:#fff3cc;box-shadow:inset 0 0 0 3px #bd8e2e}.isc-sudoku-cell:disabled{opacity:1;cursor:default}.isc-sudoku img{display:block;width:100%;height:100%;object-fit:contain}.isc-sudoku-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;min-height:0}.isc-sudoku-palette button{min-width:0;min-height:0;padding:5px;border:1px solid #aebed6;border-radius:9px;background:#fff;cursor:pointer}.isc-sudoku-palette button:disabled{opacity:.6;cursor:default}@media(max-height:450px){.isc-sudoku{grid-template-rows:minmax(0,1fr) 42px;gap:5px}.isc-sudoku-cell{padding:2px}}
/* Tangram clásico: todo el tablero y sus controles en la ventana. */
.isc-tangram{display:flex;flex-direction:column;gap:7px;min-height:0}.isc-tangram>svg{display:block;flex:1;min-height:0;width:100%;background:#fff;border:1px solid #d4dfed;border-radius:10px}.isc-tangram polygon[tabindex="0"]{cursor:pointer}.isc-tangram polygon:focus-visible{outline:none;stroke:#182e70;stroke-width:4}.isc-tangram-tools{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;flex:none}.isc-tangram-tools :is(button,select){min-height:36px;padding:5px 10px;border:1px solid #bdcbe0;border-radius:7px;background:#fff;color:#182e70;font:600 12px system-ui}.isc-tangram-tools button{cursor:pointer}.isc-tangram-tools :disabled{opacity:.6;cursor:default}@media(max-width:640px){.isc-tangram-tools :is(button,select){padding:5px 8px}.isc-tangram{gap:5px}}
/* Galería del rompecabezas y arrastre directo del tangram. */
.isc-puzzle-gallery{display:flex;align-items:center;flex-wrap:wrap;flex-shrink:0;gap:5px;margin-top:7px}.isc-puzzle-gallery button{width:48px;height:40px;min-height:0;padding:2px;border:2px solid #ccd6e6;border-radius:6px;background:#fff;cursor:pointer}.isc-puzzle-gallery img{display:block;width:100%;height:100%;object-fit:contain}.isc-puzzle-gallery .is-active{border-color:#182e70;box-shadow:0 0 0 1px #182e70}.isc-puzzle-gallery .isc-puzzle-random{width:auto;padding:5px 10px;font:600 12px system-ui;color:#182e70}.isc-puzzle-gallery button:disabled{opacity:.5;cursor:default}.isc-tangram>svg{touch-action:none;user-select:none;-webkit-user-select:none}.isc-tangram polygon[tabindex="0"]{cursor:grab}.isc-tangram polygon.is-dragging{cursor:grabbing}@media(max-width:640px){.isc-puzzle-gallery button{width:40px;height:34px}.isc-puzzle-gallery{gap:4px;margin-top:5px}.isc-puzzle-gallery .isc-puzzle-random{font-size:11px;padding:4px 7px}}@media(max-height:450px){.isc-puzzle-gallery button{width:35px;height:28px}.isc-puzzle-gallery{margin-top:3px}}
