/* Adaptacion mínima del visor auténtico para visitantes anónimos. */
.demo-topbar{background:#133c32;color:#fff;display:flex;align-items:center;gap:16px;justify-content:space-between;padding:10px max(16px,calc((100vw - 1180px)/2));font-size:.91rem;flex-wrap:wrap}
.demo-topbar a{color:#fff;font-weight:700;text-underline-offset:3px}
.demo-topbar span{opacity:.85}.demo-outline-label{font-size:.8rem}
.demo-outline{display:flex;flex-direction:column;position:fixed;z-index:1004;top:0;left:0;width:min(410px,93vw);height:100vh;transform:translateX(-103%);transition:transform .2s;background:#fff;box-shadow:0 8px 25px #0002;overflow:hidden;visibility:hidden}
.demo-outline.is-open{transform:translateX(0);visibility:visible}.course-outline-backdrop:not([hidden]){position:fixed;inset:0;z-index:1003;background:#0c2516ad}
.demo-outline-head{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e5eae7;gap:12px}
.demo-outline-head strong{display:block;color:#142e24;font-size:1.18rem}.demo-outline-head small{display:block;color:#58665d;font-size:.8rem;margin-top:4px}
.demo-outline-head button{border:0;background:#e7f1eb;border-radius:8px;width:35px;height:35px;cursor:pointer;font-size:25px}
.demo-outline-modules{overflow:auto;padding:4px 15px 25px;flex:1}.demo-module{border-bottom:1px solid #e1e9e3;padding:12px 4px}
.demo-module summary{cursor:pointer;display:flex;align-items:center;gap:15px;justify-content:space-between;font-size:.88rem;font-weight:650;list-style:none}
.demo-module summary span:last-child{flex-shrink:0;color:#527162;font-size:.72rem}
.demo-module ul{list-style:none;padding:6px 0 0 0;margin:0}.demo-module li{margin:2px 0}
.demo-module a,.demo-locked{padding:9px 11px;display:block;border-radius:7px;text-decoration:none;font-size:.84rem}
.demo-module a{color:#244236}.demo-module a:hover,.demo-module a.is-current{background:#e5f2e9;font-weight:650}
.demo-locked{color:#798881}.demo-outline-buy{border-top:1px solid #dce8e0;padding:16px 20px;background:#eff7f1}
.demo-outline-buy a{color:#12563b;font-weight:700}.demo-end-card{background:#eff8f2;border:1px solid #bcdcc8;padding:26px;border-radius:14px;margin:30px 0 12px}
.demo-end-card span{font-size:.76rem;font-weight:750;color:#336f4e;letter-spacing:.06em}.demo-end-card h2{font-size:1.4rem}.demo-end-card p{max-width:750px}
.demo-visitor .lesson-shell{padding-bottom:44px}.demo-visitor .lesson-content img{max-width:100%;height:auto}
@media(max-width:800px){.demo-topbar{gap:6px;padding:10px 16px}.demo-topbar span{display:none}.demo-topbar a{font-size:.8rem}.demo-visitor .lesson-module .lesson-stage-module{display:none}}

.demo-personalization-prompt{background:#f2f8f4;border:1px solid #c6e3d1;padding:14px 18px;border-radius:12px;margin:8px 0 20px;color:#254436;font-size:.93rem}
.demo-personalization-prompt a{color:#12563b;text-decoration:underline;font-weight:650}
.demo-cookie-banner{position:fixed;bottom:12px;left:12px;right:12px;max-width:760px;margin:auto;background:#fff;border:1px solid #b9cec1;box-shadow:0 12px 40px #0003;border-radius:13px;padding:14px 18px;z-index:2100;display:flex;align-items:center;gap:15px;justify-content:space-between;font-size:.87rem;color:#20382c}
.demo-cookie-banner[hidden]{display:none}
.demo-cookie-banner a{color:#12563b}
.demo-cookie-actions{display:flex;gap:7px;flex-shrink:0}
.demo-cookie-actions button{cursor:pointer;border:1px solid #bccfc2;border-radius:8px;padding:9px 11px;background:#f0f5f1;color:#244436;font-weight:650}
.demo-cookie-actions button[data-demo-consent="accept"]{background:#175b3e;color:#fff;border-color:#175b3e}
@media(max-width:600px){.demo-cookie-banner{align-items:flex-start;flex-direction:column}.demo-cookie-actions{width:100%}.demo-cookie-actions button{flex:1}}

/* Verificación anti-abuso únicamente al usar las funciones IA */
.demo-verify-dialog{width:min(94vw,440px);max-width:440px;box-sizing:border-box;padding:24px;border:1px solid #d9e4e5;border-radius:16px;background:#fff;color:#182d33;box-shadow:0 25px 75px rgba(12,32,42,.22);line-height:1.5}
.demo-verify-dialog::backdrop{background:rgba(12,28,35,.55)}
.demo-verify-dialog h2{margin:0 0 10px;font-size:1.3rem}
.demo-verify-dialog p{font-size:.91rem;margin:0 0 15px}
.demo-challenge-slot{min-height:65px;margin:12px 0;display:flex;justify-content:center;align-items:center}
.demo-verify-status{padding:8px 10px;border-radius:8px;background:#eff8f7;color:#24615c;font-size:.9rem}
.demo-verify-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:12px}
.demo-verify-actions button{padding:8px 14px;border-radius:8px;border:1px solid #b5c9c9;background:white;cursor:pointer}
.demo-verify-actions button:last-child{background:#156c68;color:white;border-color:#156c68}
