/* CESBA Student 3.6 | Personalizacion de lectura. Cargado solo en alumno/sesiones. */
.cr36-trigger,.cr36-panel{font-family:Inter,Segoe UI,Arial,sans-serif}
.cr36-trigger{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:44px;min-width:44px;padding:9px 12px;
  border:1px solid rgba(159,232,255,.38);border-radius:11px;
  color:#effbff;background:#153b56;font-weight:800;font-size:.8rem;
  cursor:pointer;white-space:nowrap;
}
.cr36-trigger:hover,.cr36-trigger[aria-expanded="true"]{background:#1b5273;border-color:#a5edff}
.cr36-trigger>span:first-child{font-weight:900;font-size:1.07rem;letter-spacing:-.06em}
body.cesba-student-interior-v35>.cr36-trigger{
  position:fixed;z-index:10051;right:18px;top:86px;
  box-shadow:0 9px 30px rgba(0,0,0,.34);
}
body.cesba-role-student .nav-actions>.cr36-trigger{
  position:relative;z-index:1;flex:0 0 auto;
}
.cr36-panel{
  position:fixed;z-index:10052;right:18px;top:140px;
  width:min(385px,calc(100vw - 28px));
  max-height:calc(100dvh - 155px);overflow-y:auto;overscroll-behavior:contain;
  padding:19px;border:1px solid rgba(159,232,255,.38);border-radius:18px;
  color:#eaf8ff;background:#0b1f32;box-shadow:0 26px 70px rgba(0,0,0,.55);
}
.cr36-panel[hidden]{display:none!important}
body.cesba-role-student .cr36-panel{top:96px}
.cr36-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.cr36-kicker{font-size:.65rem;color:#91ddf5;letter-spacing:.13em;font-weight:800}
.cr36-panel h2{margin:4px 0 5px;font-size:1.45rem;line-height:1.25;color:#f4fbff}
.cr36-panel p{margin:0;color:#bdd1e2;font-size:.81rem;line-height:1.6}
.cr36-close{
  flex:0 0 auto;display:grid;place-items:center;
  width:40px;height:40px;padding:0;border-radius:10px;
  border:1px solid rgba(159,232,255,.23);
  background:#163047;color:#ebfaff;font-size:1.45rem;cursor:pointer;
}
.cr36-field{margin-top:18px}
.cr36-field>strong{display:block;margin-bottom:9px;font-size:.84rem;color:#f1f9ff}
.cr36-field>p{margin:-2px 0 10px;font-size:.77rem}
.cr36-options{display:flex;gap:6px;flex-wrap:wrap}
.cr36-options button,.cr36-reset{
  min-height:42px;padding:9px 12px;border-radius:10px;
  background:#123047;color:#cde4f2;border:1px solid rgba(159,232,255,.22);
  font-weight:750;font-size:.77rem;cursor:pointer;
}
.cr36-options button:hover,.cr36-reset:hover{border-color:#87dfff;color:white}
.cr36-options button.is-selected{
  background:#215b75;color:#fff;border-color:#a1ebff;
  box-shadow:inset 0 0 0 1px rgba(161,235,255,.13);
}
.cr36-panel-footer{margin-top:19px;padding-top:15px;border-top:1px solid rgba(159,232,255,.18);display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.cr36-status{color:#b7d3e2;font-size:.74rem;line-height:1.5}
:is(.cr36-trigger,.cr36-panel button):focus-visible{
  outline:3px solid #b3f1ff!important;outline-offset:3px!important;
}
/* Ajuste tipografico limitado a textos de lectura: no altera preguntas ni sus validadores. */
body.cr36-preferences-enabled{--cr36-font-factor:1}
body.cesba-student-interior-v35.cr36-preferences-enabled .cr-learning :is(
  .cr-read-card p,.cr-concept p,.cr-deep-section p,.cr-deep-section li,
  .cr-exercise-card p,.cr-practice-item,.cr-lab-scenario,.cr-study p,
  .cr-worked-explain div,.cr-check-item,.cr-objective
){font-size:calc(14px * var(--cr36-font-factor))!important;line-height:1.8}
body.cesba-student-interior-v35.cr36-preferences-enabled .cr-learning :is(
  pre,.cr-example pre,.cr-syntax-card pre,.cr-worked pre,.cr-lab pre
){font-size:calc(12.5px * var(--cr36-font-factor))!important;line-height:1.7}
body.cesba-student-interior-v35.cr36-preferences-enabled main>.hero p,
body.cesba-student-interior-v35.cr36-preferences-enabled main>.card p{
  font-size:calc(15px * var(--cr36-font-factor))!important;line-height:1.75;
}
body.cesba-role-student.cr36-preferences-enabled .student-dashboard-home p,
body.cesba-role-student.cr36-preferences-enabled .student-bento-card :is(p,small),
body.cesba-role-student.cr36-preferences-enabled .activity-card p{
  font-size:calc(13px * var(--cr36-font-factor))!important;line-height:1.65;
}
/* Contraste: afecta superficies y parrafos, conserva los estados semanticos bueno/error. */
body.cr36-contrast-high .cr-learning :is(.cr-read-card,.cr-deep-section,.cr-example,.cr-practice,.cr-quiz-q,.cr-study),
body.cesba-role-student.cr36-contrast-high :is(.student-bento-card,.student-dashboard-home,.activity-card){
  background:#04111d!important;border-color:#9edfff!important;
}
body.cr36-contrast-high .cr-learning :is(p,li,.cr-concept p,.cr-read-card p,.cr-practice-item,.cr-worked-explain div),
body.cesba-role-student.cr36-contrast-high :is(.student-dashboard-home p,.student-bento-card small,.activity-card p){
  color:#f6fbff!important;
}
body.cr36-contrast-high :is(.cr35-reading-map,.cr35-step-context){border-color:#9edfff}
body.cr36-contrast-high :is(.cr35-map-links a,.cr-quiz-options label,.choice){border-color:#8cc8e5;color:#f0faff}
/* Densidad: reduce solo espaciados de presentacion. */
body.cr36-density-compact .cr-learning :is(.cr-read-card,.cr-deep-section,.cr-example,.cr-practice,.cr-exercises,.cr-challenge,.cr-check,.cr-study){padding:14px!important}
body.cr36-density-compact .cr-learning :is(.cr-read-grid,.cr-exercise-grid,.cr-quiz-list){gap:8px}
body.cesba-role-student.cr36-density-compact :is(.student-bento-card,.activity-card){padding:14px!important}
body.cesba-student-interior-v35.cr36-focus-reading main>.hero,
body.cesba-student-interior-v35.cr36-focus-reading main>.nav-course{
  display:none!important;
}
body.cesba-student-interior-v35.cr36-focus-reading>header{display:none!important}
body.cesba-student-interior-v35.cr36-focus-reading main{padding-top:12px;max-width:900px!important}
body.cesba-student-interior-v35.cr36-focus-reading .cr35-reading-map{margin-top:0}
@media(max-width:640px){
  .cr36-panel{right:10px;top:124px;width:calc(100vw - 20px);max-height:calc(100dvh - 138px);padding:15px}
  body.cesba-role-student .cr36-panel{top:85px;max-height:calc(100dvh - 95px)}
  body.cesba-student-interior-v35>.cr36-trigger{right:10px;top:74px}
  body.cesba-role-student .nav-actions>.cr36-trigger{padding:8px}
  body.cesba-role-student .nav-actions>.cr36-trigger .cr36-trigger-label{display:none}
}
@media(prefers-reduced-motion:reduce){.cr36-trigger,.cr36-panel *{transition:none!important}}
@media print{
  /* Mantener el título de la sesión en la evidencia imprimible. */
  body.cesba-student-interior-v35.cr36-focus-reading main>.hero{display:block!important}
  body.cesba-student-interior-v35.cr36-focus-reading main{max-width:none!important}
  .cr36-trigger,.cr36-panel{display:none!important}
  body.cr36-contrast-high .cr-learning :is(.cr-read-card,.cr-deep-section,.cr-example,.cr-practice,.cr-quiz-q,.cr-study){
    background:white!important;color:#111!important;border-color:#999!important;
  }
  body.cr36-contrast-high .cr-learning :is(p,li,.cr-concept p,.cr-read-card p){color:#111!important}
}