.cid-page-controls{display:flex;align-items:center;gap:.55rem;margin-left:auto;padding-left:1rem}.cid-language{height:38px;max-width:150px;padding:0 2rem 0 .75rem;border:1px solid rgba(116,124,145,.35);border-radius:10px;background:var(--cid-control-bg,#fff);color:var(--cid-control-fg,#151b3c);font:700 13px/1 Inter,sans-serif;cursor:pointer}.cid-theme-toggle{width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(116,124,145,.35);border-radius:10px;background:var(--cid-control-bg,#fff);color:var(--cid-control-fg,#151b3c);font-size:17px;cursor:pointer}.cid-theme-toggle:hover,.cid-language:hover{border-color:#ff5a3c}.cid-theme-toggle:focus-visible,.cid-language:focus-visible{outline:3px solid rgba(255,90,60,.3);outline-offset:2px}html[data-cid-theme="dark"]{color-scheme:dark;--cid-control-bg:#202642;--cid-control-fg:#f7f3eb}html[data-cid-theme="dark"] body,html[data-cid-theme="dark"] .section.light,html[data-cid-theme="dark"] .section.scp{background:#0d1224!important;color:#f4f1ea!important}html[data-cid-theme="dark"] .dec-showcase,html[data-cid-theme="dark"] .dec-offer{background:#0d1224!important}html[data-cid-theme="dark"] .dec-feature,html[data-cid-theme="dark"] .offer-card,html[data-cid-theme="dark"] .proof-points span,html[data-cid-theme="dark"] .faq-list details{background:#171d34!important;border-color:#303952!important;color:#f4f1ea!important;box-shadow:0 24px 64px rgba(0,0,0,.28)}html[data-cid-theme="dark"] .dec-feature p,html[data-cid-theme="dark"] .dec-feature li,html[data-cid-theme="dark"] .offer-card p,html[data-cid-theme="dark"] .editorial-intro>p,html[data-cid-theme="dark"] .faq-list p{color:#bac3d6!important}html[data-cid-theme="dark"] .dec-feature figure{background:#090d1a}html[data-cid-theme="dark"] .darklabel,html[data-cid-theme="dark"] .offer-price span{color:#ff846d!important}html[data-cid-theme="dark"] .mandatory-note,html[data-cid-theme="dark"] .web-capture-note,html[data-cid-theme="dark"] .dec-feature small{background:#35201f!important;color:#ffd3ca!important}html[data-cid-theme="dark"] .btn.outline-dark{border-color:#8993aa!important;color:#f7f3eb!important}html[data-cid-theme="dark"] .dec-lightbox{background:rgba(2,4,12,.97)}@media(max-width:1180px){.site-header .cid-page-controls{width:auto;margin-left:auto;padding:0;justify-content:flex-end}.site-header .cid-language{max-width:145px}.site-header .cid-theme-toggle{display:grid}}@media(max-width:520px){.cid-page-controls{justify-content:center}.cid-language{max-width:138px}}
html[data-cid-theme="dark"] .portal,html[data-cid-theme="dark"] .admin-shell{background:#101626!important;color:#edf2ff!important;border-color:#30394d!important}html[data-cid-theme="dark"] .side{background:#12192b!important;border-color:#30394d!important}html[data-cid-theme="dark"] .side .nav button,html[data-cid-theme="dark"] .logout-nav{color:#c4ccdc!important}html[data-cid-theme="dark"] .side .nav button.active{background:#26304a!important;color:#fff!important}html[data-cid-theme="dark"] .top,html[data-cid-theme="dark"] .card,html[data-cid-theme="dark"] .choice,html[data-cid-theme="dark"] .dialog,html[data-cid-theme="dark"] .atomic-clock,html[data-cid-theme="dark"] .countdown>div,html[data-cid-theme="dark"] .unit-item,html[data-cid-theme="dark"] .request-review{background:#171d2d!important;color:#edf2ff!important;border-color:#30394d!important}html[data-cid-theme="dark"] .muted,html[data-cid-theme="dark"] .small,html[data-cid-theme="dark"] .row span,html[data-cid-theme="dark"] .card p{color:#b7c0d4!important}html[data-cid-theme="dark"] .data-table th,html[data-cid-theme="dark"] .data-table td,html[data-cid-theme="dark"] input,html[data-cid-theme="dark"] select,html[data-cid-theme="dark"] textarea{background:#111827!important;color:#edf2ff!important;border-color:#30394d!important}html[data-cid-theme="dark"] .education-banner{background:linear-gradient(100deg,#2d2515,#211d16)!important;border-color:#705a2a!important}.top .cid-page-controls{margin-left:auto}.top .user+.cid-page-controls{margin-left:12px}@media(max-width:720px){.top{flex-wrap:wrap}.top .cid-page-controls{order:3;width:100%;padding:8px 0;justify-content:flex-end}}
html[data-cid-theme="dark"] .site-header,html[data-cid-theme="dark"] .global-footer{background:#090e1d!important;color:#edf2ff!important;border-color:#30394d!important}html[data-cid-theme="dark"] .section,html[data-cid-theme="dark"] .startup,html[data-cid-theme="dark"] .resource-section,html[data-cid-theme="dark"] .audience-section,html[data-cid-theme="dark"] .faq-section{background-color:#0d1224!important;color:#edf2ff!important}html[data-cid-theme="dark"] article:not(.purchase-hero),html[data-cid-theme="dark"] details,html[data-cid-theme="dark"] .panel,html[data-cid-theme="dark"] .box{border-color:#30394d!important}html[data-cid-theme="dark"] .site-menu a,html[data-cid-theme="dark"] .global-footer a,html[data-cid-theme="dark"] .global-footer h2{color:#edf2ff!important}html[data-cid-theme="dark"] .global-footer p,html[data-cid-theme="dark"] .global-footer span{color:#b7c0d4!important}
@media(max-width:520px){.site-header .nav{gap:7px}.site-header .brand img{width:105px}.site-header .cid-page-controls{gap:4px;margin-left:auto}.site-header .cid-language{width:116px;max-width:116px;height:36px;padding-left:.55rem;padding-right:1.35rem;font-size:11px}.site-header .cid-theme-toggle{width:36px;height:36px}.site-header .nav>button[data-toggle]{margin-left:2px}}
.cid-auth-page>.site-header{visibility:visible!important;overflow:visible!important}
.page>.site-header{visibility:visible!important;overflow:visible!important}
.cid-page-controls-floating{position:fixed;z-index:99990;top:12px;right:12px;margin:0!important;padding:8px!important;border:1px solid rgba(116,124,145,.3);border-radius:12px;background:rgba(255,255,255,.94);box-shadow:0 10px 30px rgba(20,28,34,.18);backdrop-filter:blur(12px)}html[data-cid-theme="dark"] .cid-page-controls-floating{background:rgba(23,29,52,.96)}
/* Contraste nocturno reforzado para DEC y CID Academic */
html[data-cid-theme="dark"] body.cid-portal-shell{background:#070b16!important;color:#f8fafc!important}
html[data-cid-theme="dark"] body.cid-portal-shell .main,html[data-cid-theme="dark"] body.cid-portal-shell .view,html[data-cid-theme="dark"] body.cid-portal-shell h1,html[data-cid-theme="dark"] body.cid-portal-shell h2,html[data-cid-theme="dark"] body.cid-portal-shell h3,html[data-cid-theme="dark"] body.cid-portal-shell h4,html[data-cid-theme="dark"] body.cid-portal-shell b,html[data-cid-theme="dark"] body.cid-portal-shell strong,html[data-cid-theme="dark"] body.cid-portal-shell label{color:#f8fafc!important}
html[data-cid-theme="dark"] body.cid-portal-shell .eyebrow,html[data-cid-theme="dark"] body.cid-portal-shell .nav-label{color:#ff9b88!important}
html[data-cid-theme="dark"] body.cid-portal-shell .muted,html[data-cid-theme="dark"] body.cid-portal-shell .small,html[data-cid-theme="dark"] body.cid-portal-shell small,html[data-cid-theme="dark"] body.cid-portal-shell .row span{color:#cbd5e1!important}
html[data-cid-theme="dark"] body.cid-portal-shell .education-banner{background:linear-gradient(110deg,#322612,#1d2334)!important;border-color:#a4772c!important;color:#fff!important}
html[data-cid-theme="dark"] body.cid-portal-shell .education-banner span{color:#ffd27a!important}
html[data-cid-theme="dark"] body.cid-portal-shell .education-banner b{color:#fff!important}
html[data-cid-theme="dark"] body.cid-portal-shell .education-banner small{color:#e2e8f0!important}
html[data-cid-theme="dark"] body.cid-portal-shell .education-mark{background:#111827!important;border-color:#d39a38!important;color:#ffd27a!important}
html[data-cid-theme="dark"] body.cid-portal-shell .atomic-clock{background:linear-gradient(145deg,#101827,#182238)!important;border-color:#3b4a66!important;color:#fff!important;box-shadow:0 14px 34px rgba(0,0,0,.38)!important}
html[data-cid-theme="dark"] body.cid-portal-shell .atomic-head h3,html[data-cid-theme="dark"] body.cid-portal-shell .atomic-clock>p{color:#fff!important}
html[data-cid-theme="dark"] body.cid-portal-shell .atomic-clock>small{color:#cbd5e1!important}
html[data-cid-theme="dark"] body.cid-portal-shell .countdown>div{background:#0b1220!important;border-color:#40506b!important}
html[data-cid-theme="dark"] body.cid-portal-shell .countdown b{color:#fff!important;text-shadow:0 0 18px rgba(125,211,252,.18)}
html[data-cid-theme="dark"] body.cid-portal-shell .countdown span{color:#cbd5e1!important}
html[data-cid-theme="dark"] body.cid-portal-shell .atomic-live{background:#123524!important;color:#86efac!important}
html[data-cid-theme="dark"] body.cid-portal-shell .atomic-live.warn{background:#422006!important;color:#fdba74!important}
html[data-cid-theme="dark"] body.cid-portal-shell .notice,html[data-cid-theme="dark"] body.cid-portal-shell .notice.academic,html[data-cid-theme="dark"] body.cid-portal-shell .request-status{background:#2b2112!important;border-color:#8b642b!important;color:#fff!important}
html[data-cid-theme="dark"] body.cid-portal-shell .notice *,html[data-cid-theme="dark"] body.cid-portal-shell .request-status *{color:#fff!important}
html[data-cid-theme="dark"] body.cid-portal-shell .btn:not(.primary):not(.purchase-cta),html[data-cid-theme="dark"] body.cid-portal-shell .flow-steps b{background:#202a3d!important;border-color:#46546d!important;color:#fff!important}
html[data-cid-theme="dark"] body.cid-portal-shell .choice>b,html[data-cid-theme="dark"] body.cid-portal-shell .flow-steps span.active,html[data-cid-theme="dark"] body.cid-portal-shell .rule-grid b{color:#fff!important}
html[data-cid-theme="dark"] body.cid-portal-shell .rule-grid div,html[data-cid-theme="dark"] body.cid-portal-shell .table-wrap{background:#111827!important;border-color:#334155!important}
html[data-cid-theme="dark"] body.cid-portal-shell .data-table tbody tr:hover{background:#202a3d!important}
html[data-cid-theme="dark"] body.cid-portal-shell .badge{background:#123524!important;border-color:#28764b!important;color:#a7f3d0!important}
html[data-cid-theme="dark"] body.cid-portal-shell .badge.off{background:#3b171b!important;border-color:#7f3038!important;color:#fecaca!important}
html[data-cid-theme="dark"] body.cid-portal-shell a{color:#93c5fd}
html[data-cid-theme="dark"] .academy-shell,html[data-cid-theme="dark"] .academy-gate{background:#070b16!important;color:#f8fafc!important}
html[data-cid-theme="dark"] .academy-shell .workspace,html[data-cid-theme="dark"] .academy-shell .dashboard,html[data-cid-theme="dark"] .academy-shell .topbar{background:#0b1020!important;color:#f8fafc!important;border-color:#334155!important}
html[data-cid-theme="dark"] .academy-shell .sidebar{background:#0d1424!important;color:#f8fafc!important;border-color:#334155!important}
html[data-cid-theme="dark"] .academy-shell h1,html[data-cid-theme="dark"] .academy-shell h2,html[data-cid-theme="dark"] .academy-shell h3,html[data-cid-theme="dark"] .academy-shell h4,html[data-cid-theme="dark"] .academy-shell b,html[data-cid-theme="dark"] .academy-shell strong,html[data-cid-theme="dark"] .academy-shell label{color:#f8fafc!important}
html[data-cid-theme="dark"] .academy-shell p,html[data-cid-theme="dark"] .academy-shell small,html[data-cid-theme="dark"] .academy-shell span{color:#d5dbea}
html[data-cid-theme="dark"] .academy-shell input,html[data-cid-theme="dark"] .academy-shell select,html[data-cid-theme="dark"] .academy-shell textarea{background:#111827!important;color:#fff!important;border-color:#475569!important}
html[data-cid-theme="dark"] .academy-shell article:not(.continue-card):not(.trainer-hero):not(.lesson-hero),html[data-cid-theme="dark"] .academy-shell .student-panel,html[data-cid-theme="dark"] .academy-shell .metric-panel,html[data-cid-theme="dark"] .academy-shell .attention-panel,html[data-cid-theme="dark"] .academy-shell .assessment-builder,html[data-cid-theme="dark"] .academy-shell .assessment-bank{background:#131b2d!important;color:#f8fafc!important;border-color:#35435c!important}
html[data-cid-theme="dark"] .academy-shell button:not(.primary-action){color:#f8fafc!important;border-color:#46546d!important}
html[data-cid-theme="dark"] .academy-shell .student-row.header,html[data-cid-theme="dark"] .academy-shell .metric-row.header{background:#1c2740!important;color:#fff!important}
html[data-cid-theme="dark"] body.cid-portal-shell #paymentBox>div{background:#131b2d!important;color:#f8fafc!important;border-color:#40506b!important}
html[data-cid-theme="dark"] body.cid-portal-shell #paymentBox>div p,html[data-cid-theme="dark"] body.cid-portal-shell #paymentBox>div b,html[data-cid-theme="dark"] body.cid-portal-shell #paymentBox>div span{color:#f8fafc!important}
html[data-cid-theme="dark"] body.cid-portal-shell #paymentBox a{color:#93c5fd!important}
/* CID ACADEMY: controles integrados y contraste nocturno completo */
.academy-shell .topbar .cid-page-controls{margin-left:auto;padding-left:14px;flex:0 0 auto}.academy-shell .topbar .cid-language{max-width:142px}.academy-shell .topbar .cid-theme-toggle{flex:0 0 38px}@media(max-width:700px){.academy-shell .topbar{height:auto;min-height:74px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.academy-shell .topbar .cid-page-controls{order:3;width:100%;padding:8px 0 0;justify-content:flex-end}}
html[data-cid-theme="dark"] .academy-shell :is(.stats,.course-summary,.resource-grid article,.completion-card,.aside-note,.library-grid article,.activity-list.standalone article,.progress-grid,.workshops-grid article,.trainer-tabs,.trainer-kpis article,.metric-panel,.attention-panel,.student-panel,.assessment-builder,.assessment-bank,.shared-reference,.lab-grid>article,.lab-roadmap,.teacher-web-guide,.activity-workspace,.inline-resource,.workshop-focus-card,.interactive-set>article,.workshop-practice>article,.orientation-grid article,.workshop-orientation details,.learning-flow,.custody-progress,.custody-panel,.custody-people article,.movement-list>article,.custody-review,.custody-actions,.cover-identification,.technical-toolkit,.page-size-logic article,.foundation-rule,.tool-doc-grid article,.tool-documentation details,.tool-documentation dl>div,.rdap-summary,.dns-answer-list article,.tcp-flow article,.academic-service-list article,.academic-grant-form,.academic-grants,.academic-admin-empty,.campus-catalog-top,.campus-service-grid article){background:#131b2d!important;border-color:#3b4a66!important;color:#f8fafc!important}
html[data-cid-theme="dark"] .academy-shell :is(.class-list article.current,.class-list article.complete){background:#182238!important;border-color:#3b4a66!important}
html[data-cid-theme="dark"] .academy-shell :is(.secondary-action,.subtle-action,.hint-action,.fullscreen-action,.slide-nav-action,.back-to-dec,.back-to-catalog,.assessment-bank>article button,.academic-grants button,.add-row,.review-map button,.lesson-next-actions button,.learning-flow button,.learning-flow span,.network-lab-nav button){background:#202a3d!important;border-color:#52617a!important;color:#f8fafc!important}
html[data-cid-theme="dark"] .academy-shell :is(.truth-row>span,.truth-row>select,.route-diagram span,.aes-parameter-flow span,.aes-parameter-flow strong,.packaging>label,.workshop-class-switch span,.workshop-class-switch select,.local-file-reader input){background:#111827!important;border-color:#475569!important;color:#f8fafc!important}
html[data-cid-theme="dark"] .academy-shell :is(.teacher-note,.practice-hint,.tool-explanation,.library-scope-note){background:#322812!important;border-color:#b1842f!important;color:#fde7a7!important}
html[data-cid-theme="dark"] .academy-shell :is(.exercise-pending,.review-map .pending>span,.risk.seguimiento){background:#3a2d0c!important;color:#fde68a!important}
html[data-cid-theme="dark"] .academy-shell :is(.exercise-feedback.error,.academic-admin-error,.custody-field em){background:#411c1a!important;color:#fecaca!important;border-color:#a64b42!important}
html[data-cid-theme="dark"] .academy-shell :is(.table,.metric-table,.student-table,.guide-document,.technical-toolkit table){color:#f8fafc!important}
html[data-cid-theme="dark"] .academy-shell :is(th,td){border-color:#3b4a66!important}
html[data-cid-theme="dark"] .academy-shell .cid-page-controls{--cid-control-bg:#182238;--cid-control-fg:#f8fafc}
html[data-cid-theme="dark"] .academy-shell .brand img,html[data-cid-theme="dark"] .academy-shell .campus-catalog-top img,html[data-cid-theme="dark"] .academy-shell .institutional-logo-band,html[data-cid-theme="dark"] .academy-shell .service-institution-logos{background:#fff!important;color:#101a2b!important}


/* CID ACADEMY: superficies internas y navegación académica en modo oscuro */
html[data-cid-theme="dark"] .academy-shell{
  --cream:#070b16;
  --paper:#0b1020;
  --navy:#111b2c;
  --navy-2:#17243a;
  --line:#3b4a66;
  --muted:#cbd5e1;
}
html[data-cid-theme="dark"] .academy-shell :is(
  .workshop-class-switch,
  .workshop-focus-card section,
  .workshop-orientation,
  .orientation-grid article,
  .learning-flow,
  .learning-flow>span,
  .learning-flow>button,
  .activity-workspace,
  .activity-workspace textarea,
  .activity-rubric,
  .rubric-tags span,
  .inline-resource,
  .guide-document,
  .guide-table-wrap,
  .presentation-heading,
  .slide-controls
){background:#131b2d!important;border-color:#3b4a66!important;color:#f8fafc!important}
html[data-cid-theme="dark"] .academy-shell :is(
  .workshop-class-switch b,
  .workshop-class-switch label,
  .workshop-focus-card h3,
  .workshop-orientation>header h3,
  .workshop-orientation summary,
  .activity-workspace>label,
  .presentation-heading h2
){color:#f8fafc!important}
html[data-cid-theme="dark"] .academy-shell :is(
  .workshop-focus-card p,
  .workshop-orientation>header p,
  .workshop-orientation details li,
  .activity-rubric p,
  .activity-workspace>footer p,
  .presentation-heading p,
  .slide-controls span
){color:#cbd5e1!important}
html[data-cid-theme="dark"] .academy-shell :is(
  .workshop-orientation details,
  .workshop-focus-card section,
  .rubric-tags span,
  .activity-rubric>div,
  .inline-resource
){background:#0f1728!important;border-color:#3b4a66!important}
html[data-cid-theme="dark"] .academy-shell .learning-flow :is(span,button):hover{background:#202a3d!important}
html[data-cid-theme="dark"] .academy-shell .learning-flow .active{background:#263551!important;color:#fff!important}
html[data-cid-theme="dark"] .academy-shell .learning-flow b{background:#334155!important;color:#f8fafc!important}
html[data-cid-theme="dark"] .academy-shell .learning-flow .active b{background:var(--orange)!important;color:#fff!important}
html[data-cid-theme="dark"] .academy-shell .workshop-summary{background:#091120!important;border:1px solid #3b4a66!important}
html[data-cid-theme="dark"] .academy-shell .workshop-summary span{color:#d5dbea!important;border-color:#3b4a66!important}
html[data-cid-theme="dark"] .academy-shell .workshop-summary b{color:#ff9b88!important}
html[data-cid-theme="dark"] .academy-shell :is(.presentation-actions,.slide-controls) button:disabled{color:#778399!important;opacity:.72}
html[data-cid-theme="dark"] .academy-shell .slide-nav-action.next:not(:disabled){background:var(--orange)!important;border-color:var(--orange)!important;color:#fff!important}
html[data-cid-theme="dark"] .academy-shell :is(a,button):focus-visible{outline:3px solid rgba(255,132,109,.5);outline-offset:3px}
/* CID ACADEMY: contención del lateral y cabecera */
.academy-shell{max-width:100%;overflow-x:hidden}.academy-shell .sidebar{min-width:0;overflow-x:hidden}.academy-shell .brand{box-sizing:border-box;flex-direction:column;align-items:flex-start;gap:9px;max-width:100%;padding:0 6px 22px;overflow:hidden}.academy-shell .brand img{width:96px;height:62px}.academy-shell .brand>span{white-space:normal;display:grid;gap:4px;width:100%;min-width:0}.academy-shell .brand>span b{font-size:20px;line-height:1.05;overflow-wrap:anywhere}.academy-shell .brand>span i{display:none}.academy-shell .brand>span small{font-size:9px;line-height:1.25;overflow-wrap:anywhere}.academy-shell .main-nav button{min-width:0}.academy-shell .main-nav button:not(:has(span)){overflow-wrap:anywhere}.academy-shell .sidebar-footer{min-width:0}.academy-shell .sidebar-footer>div{min-width:0}.academy-shell .sidebar-footer b,.academy-shell .sidebar-footer small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.academy-shell .workspace{width:100%;max-width:100%;overflow-x:hidden}.academy-shell .topbar{box-sizing:border-box;height:auto;min-height:74px;gap:10px 14px;padding:10px 24px;flex-wrap:wrap}.academy-shell .topbar>.back-to-dec,.academy-shell .topbar>.back-to-catalog{flex:0 0 auto}.academy-shell .topbar>.top-actions{margin-left:auto;min-width:0}.academy-shell .topbar>.cid-page-controls{order:5;width:100%;padding:0;justify-content:flex-end}.academy-shell .topbar .crumb{white-space:normal;text-align:left}@media(max-width:900px){.academy-shell .topbar{padding:10px 18px}.academy-shell .topbar>.back-to-dec,.academy-shell .topbar>.back-to-catalog{font-size:11px;padding:8px 10px}}@media(max-width:560px){.academy-shell .topbar>.back-to-dec,.academy-shell .topbar>.back-to-catalog{flex:1 1 calc(50% - 6px);justify-content:center}.academy-shell .topbar>.top-actions{width:100%;margin-left:0;justify-content:flex-start;flex-wrap:wrap}.academy-shell .topbar>.cid-page-controls{justify-content:stretch}.academy-shell .topbar .cid-language{flex:1;max-width:none}.academy-shell .dashboard{width:min(100% - 24px,760px)}}


/* CID ACADEMY: corrección nocturna independiente del contenedor de rol */
html[data-cid-theme="dark"] body :is(
  .presentation-shell,
  .presentation-heading,
  .slide-controls,
  .workshop-class-switch,
  .workshop-focus-card,
  .workshop-focus-card section,
  .workshop-orientation,
  .workshop-orientation details,
  .orientation-grid article,
  .learning-flow,
  .learning-flow>span,
  .learning-flow>button,
  .active-workspace-wrap,
  .activity-workspace,
  .activity-workspace>label,
  .activity-workspace textarea,
  .activity-rubric,
  .activity-rubric>div,
  .rubric-tags span,
  .interactive-set>article,
  .workshop-practice>article,
  .inline-resource
){background-color:#131b2d!important;border-color:#3b4a66!important;color:#f8fafc!important}
html[data-cid-theme="dark"] body :is(
  .presentation-heading,
  .slide-controls,
  .workshop-class-switch,
  .workshop-focus-card,
  .workshop-focus-card section,
  .workshop-orientation,
  .workshop-orientation details,
  .orientation-grid article,
  .activity-workspace,
  .activity-rubric,
  .interactive-set>article,
  .workshop-practice>article,
  .inline-resource
) :is(h1,h2,h3,h4,b,strong,label,summary){color:#f8fafc!important}
html[data-cid-theme="dark"] body :is(
  .presentation-heading,
  .slide-controls,
  .workshop-class-switch,
  .workshop-focus-card,
  .workshop-focus-card section,
  .workshop-orientation,
  .workshop-orientation details,
  .orientation-grid article,
  .activity-workspace,
  .activity-rubric,
  .interactive-set>article,
  .workshop-practice>article,
  .inline-resource
) :is(p,li,span:not(.eyebrow),small:not(.eyebrow)){color:#cbd5e1!important}
html[data-cid-theme="dark"] body :is(.workshop-class-switch,.activity-workspace,.interactive-set,.workshop-practice) :is(input,select,textarea){background:#0b1220!important;border-color:#52617a!important;color:#f8fafc!important}
html[data-cid-theme="dark"] body :is(.workshop-class-switch,.workshop-focus-card,.workshop-orientation,.activity-workspace,.interactive-set,.workshop-practice) :is(.eyebrow,>small){color:#ff9b88!important}
html[data-cid-theme="dark"] body .workshop-summary{background:#091120!important;border:1px solid #3b4a66!important;color:#f8fafc!important}
html[data-cid-theme="dark"] body .workshop-summary span{color:#d5dbea!important;border-color:#3b4a66!important}
html[data-cid-theme="dark"] body .workshop-summary b{color:#ff9b88!important}
html[data-cid-theme="dark"] body .learning-flow .active{background:#263551!important;color:#fff!important}
html[data-cid-theme="dark"] body .learning-flow .active b{background:var(--orange)!important;color:#fff!important}

/* CID ACADEMY: marca principal grande y centrada */
.academy-shell .sidebar .brand{align-items:center;justify-content:center;text-align:center;gap:12px;padding:4px 8px 30px}
.academy-shell .sidebar .brand img{width:150px;height:auto;max-height:92px;object-fit:contain;margin:0 auto}
.academy-shell .sidebar .brand>span{justify-items:center;text-align:center;gap:7px}
.academy-shell .sidebar .brand>span b{font-size:23px;line-height:1;letter-spacing:.12em}
.academy-shell .sidebar .brand>span i{display:block;width:38px;height:2px;background:var(--orange)}
.academy-shell .sidebar .brand>span small{font-size:10px;line-height:1.25;letter-spacing:.2em}
@media(max-width:900px){.academy-shell .sidebar .brand img{width:132px}.academy-shell .sidebar .brand>span b{font-size:21px}}

/* CID ACADEMY: contraste de identificadores SUPER ADMIN */
.academy-shell .sidebar-footer small{color:#e2e8f0!important;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
html[data-cid-theme="dark"] .academy-shell .sidebar-footer small{color:#fff!important}
.academy-shell :is(.trainer-identity em,.vault-lock em){display:inline-flex!important;align-items:center;justify-content:center;width:max-content;max-width:100%;padding:6px 9px;border:1px solid #49b86a;border-radius:4px;background:#123524!important;color:#b7f7c8!important;line-height:1.2;text-shadow:none}
.academy-shell .vault-lock em{margin:4px auto 0}
html[data-cid-theme="dark"] .academy-shell :is(.trainer-identity em,.vault-lock em){background:#123524!important;border-color:#5bd47c!important;color:#d9ffe3!important}

/* CID ACADEMY: legibilidad completa de presentación y talleres */
html[data-cid-theme="dark"] body .presentation-shell{background:#0b1020!important;color:#f8fafc!important}
html[data-cid-theme="dark"] body .presentation-shell .presentation-heading{background:#0b1020!important;border-bottom:1px solid #3b4a66!important}
html[data-cid-theme="dark"] body .presentation-shell .presentation-heading .eyebrow{color:#ff9b88!important}
html[data-cid-theme="dark"] body .presentation-shell .presentation-heading h2{color:#fff!important}
html[data-cid-theme="dark"] body .presentation-shell .web-only-badge{background:#153522!important;border-color:#3f8a55!important;color:#c9f8d5!important}
html[data-cid-theme="dark"] body .presentation-shell :is(.slide-nav-action,.fullscreen-action){background:#202a3d!important;border-color:#52617a!important;color:#f8fafc!important}
html[data-cid-theme="dark"] body .presentation-shell .slide-nav-action.next:not(:disabled){background:var(--orange)!important;border-color:var(--orange)!important;color:#fff!important}
html[data-cid-theme="dark"] body .presentation-shell .slide-stage,
html[data-cid-theme="dark"] body .presentation-shell .slide-stage.cover-stage{background:radial-gradient(circle at 80% 25%,#c9563233,transparent 32%),linear-gradient(#ffffff08 1px,transparent 1px),#101a2b!important;background-size:auto,42px 42px,auto!important;color:#fff!important}
html[data-cid-theme="dark"] body .presentation-shell .slide-stage :is(h2,h3,h4,b,strong){color:#fff!important}
html[data-cid-theme="dark"] body .presentation-shell .slide-stage :is(p,li,.slide-author){color:#d5dbe2!important}
html[data-cid-theme="dark"] body .presentation-shell .slide-stage :is(small,>span){color:#ff9b88!important}
html[data-cid-theme="dark"] body .presentation-shell .cover-identification{background:#172238!important;border-color:#ff846d!important;color:#f8fafc!important}
html[data-cid-theme="dark"] body .presentation-shell .cover-identification :is(b,strong){color:#fff!important}
html[data-cid-theme="dark"] body .presentation-shell .cover-identification p{color:#d5dbe2!important}
html[data-cid-theme="dark"] body .presentation-shell .cover-identification span{color:#ff9b88!important;border-color:#52617a!important}

html[data-cid-theme="dark"] body :is(.workshop-orientation,.interactive-set,.workshop-practice,.activity-workspace){background:#101827!important;border-color:#3b4a66!important;color:#f8fafc!important}
html[data-cid-theme="dark"] body :is(
  .orientation-grid article,
  .prerequisite-list,
  .prerequisite-list li,
  .workshop-orientation details,
  .station-orientation,
  .station-orientation>div,
  .interactive-set>article,
  .workshop-practice>article,
  .practice-product,
  .practice-question>p:first-child,
  .route-diagram,
  .route-diagram span,
  .choice-grid label,
  .tool-checklist label,
  .activity-rubric,
  .activity-rubric>div
){background:#172238!important;border-color:#3b4a66!important;color:#f8fafc!important}
html[data-cid-theme="dark"] body :is(
  .workshop-orientation,
  .orientation-grid article,
  .prerequisite-list,
  .workshop-orientation details,
  .station-orientation,
  .interactive-set,
  .workshop-practice,
  .practice-product,
  .practice-question,
  .route-diagram,
  .choice-grid,
  .tool-checklist,
  .activity-workspace,
  .activity-rubric
) :is(h2,h3,h4,b,strong,label,summary){color:#f8fafc!important}
html[data-cid-theme="dark"] body :is(
  .workshop-orientation,
  .orientation-grid article,
  .prerequisite-list,
  .workshop-orientation details,
  .station-orientation,
  .interactive-set,
  .workshop-practice,
  .practice-product,
  .practice-question,
  .route-diagram,
  .choice-grid,
  .tool-checklist,
  .activity-workspace,
  .activity-rubric
) :is(p,li,span:not(.exercise-pass):not(.exercise-pending)){color:#d5dbe2!important}
html[data-cid-theme="dark"] body :is(.interactive-set,.workshop-practice,.activity-workspace) :is(input,select,textarea){background:#0b1220!important;border-color:#52617a!important;color:#fff!important}
html[data-cid-theme="dark"] body :is(.interactive-set,.workshop-practice) code{background:#0b1220!important;color:#ffb4a4!important}
html[data-cid-theme="dark"] body :is(.practice-hint,.teacher-note){background:#352b16!important;border-color:#d49b28!important;color:#ffe6a3!important}
html[data-cid-theme="dark"] body :is(.practice-hint,.teacher-note) :is(p,summary,b,strong){color:#ffe6a3!important}

/* Contraste transversal de superficies compartidas */
html[data-cid-theme="dark"] body :is(
  main,
  .main,
  .view,
  .workspace,
  .dashboard,
  .admin-shell,
  .portal
){color:#f8fafc}
html[data-cid-theme="dark"] body :is(
  .card,
  .panel,
  .box,
  .dialog,
  .modal-content,
  .table-wrap,
  .data-table,
  .form-card,
  .choice,
  details
){border-color:#3b4a66!important}
html[data-cid-theme="dark"] body :is(.card,.panel,.box,.dialog,.modal-content,.form-card,.choice,details){background-color:#131b2d!important;color:#f8fafc!important}
html[data-cid-theme="dark"] body :is(.card,.panel,.box,.dialog,.modal-content,.form-card,.choice,details) :is(h1,h2,h3,h4,h5,h6,b,strong,label,summary){color:#f8fafc!important}
html[data-cid-theme="dark"] body :is(.card,.panel,.box,.dialog,.modal-content,.form-card,.choice,details) :is(p,li,small,span,.muted,.small){color:#cbd5e1}
html[data-cid-theme="dark"] body :is(input,select,textarea,option){background-color:#0b1220!important;border-color:#52617a!important;color:#f8fafc!important}
html[data-cid-theme="dark"] body :is(table,thead,tbody,tr,th,td){border-color:#3b4a66!important}
html[data-cid-theme="dark"] body :is(th,td){color:#e8edf7}

/* Rol de la sesión: fondo claro y texto negro en toda circunstancia */
.academy-shell .sidebar-footer small{
  display:inline-flex!important;
  width:max-content;
  max-width:100%;
  margin-top:6px;
  padding:4px 7px;
  border:1px solid #cbd5e1;
  border-radius:4px;
  background:#f8fafc!important;
  color:#0f172a!important;
  font-size:10px;
  font-weight:900;
  line-height:1.2;
  letter-spacing:.05em;
  text-transform:uppercase;
  white-space:normal;
  overflow-wrap:anywhere;
}
html[data-cid-theme="dark"] .academy-shell .sidebar-footer small{background:#f8fafc!important;color:#0f172a!important;border-color:#fff!important}
/* Banderas dibujadas localmente: Windows no representa los emoji regionales como banderas. */
.cid-language-wrap{position:relative;display:inline-flex;align-items:center}.cid-language-wrap .cid-language{padding-left:2.65rem}.cid-language-flag{position:absolute;z-index:1;left:.7rem;width:24px;height:16px;border-radius:2px;pointer-events:none;box-shadow:0 0 0 1px rgba(0,0,0,.16);background-size:100% 100%}.cid-language-wrap[data-language="es"] .cid-language-flag{background:conic-gradient(from 90deg at 50% 50%,#d21034 0 25%,#fff 0 50%,#005293 0 75%,#fff 0)}.cid-language-wrap[data-language="de"] .cid-language-flag{background:linear-gradient(#000 0 33.333%,#dd0000 0 66.666%,#ffce00 0)}.cid-language-wrap[data-language="fr"] .cid-language-flag{background:linear-gradient(90deg,#0055a4 0 33.333%,#fff 0 66.666%,#ef4135 0)}.cid-language-wrap[data-language="en"] .cid-language-flag{background:#012169 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath stroke='%23fff' stroke-width='9' d='m0 0 60 40M60 0 0 40'/%3E%3Cpath stroke='%23c8102e' stroke-width='4' d='m0 0 60 40M60 0 0 40'/%3E%3Cpath stroke='%23fff' stroke-width='13' d='M30 0v40M0 20h60'/%3E%3Cpath stroke='%23c8102e' stroke-width='7' d='M30 0v40M0 20h60'/%3E%3C/svg%3E") center/cover no-repeat}@media(max-width:520px){.site-header .cid-language-wrap .cid-language{padding-left:2.35rem}}
