/* Campus Rikytoon CESBA — Student 4.3
 * Vistas realmente independientes, composición basada en capturas reales del 04/11/2026.
 * Alcance estricto: estudiante autenticado; nunca interfiere con administrador/login.
 */
body.cesba-role-student[data-cesba-view] :is(#cesbaStudentHome,#cesbaStudentProgress,#cesbaStudentResults,#materias){
 display:none!important;
}
body.cesba-role-student[data-cesba-view="home"] #cesbaStudentHome,
body.cesba-role-student[data-cesba-view="progress"] #cesbaStudentProgress:not([hidden]),
body.cesba-role-student[data-cesba-view="results"] #cesbaStudentResults:not([hidden]),
body.cesba-role-student[data-cesba-view="subjects"] #materias{
 display:block!important;
}
/* Una aplicación académica no necesita el hero institucional ni una segunda portada al final. */
body.cesba-role-student[data-cesba-view] :is(.hero,.rikytoon-voyage){display:none!important}
body.cesba-role-student[data-cesba-view] .footer{
 margin-top:clamp(24px,4vw,45px);padding:15px 1px;
 opacity:.64;border-top:1px solid rgba(153,197,232,.13);
}
body.cesba-role-student[data-cesba-view] .shell{
 min-height:100dvh;
}
body.cesba-role-student[data-cesba-view] :is(#cesbaStudentHome,#cesbaStudentProgress,#cesbaStudentResults,#materias){
 scroll-margin-top:100px;
}
body.cesba-role-student #cr43ViewStatus:not([hidden]){
 display:block;margin:12px auto;max-width:900px;
 border-radius:13px;border:1px solid rgba(141,215,241,.23);
 background:#102d43;color:#d2e9f6;
 padding:15px 18px;font-size:.85rem;font-weight:650;
}
body.cesba-role-student .student-icon-nav .student-icon-link[aria-current="page"]{
 background:rgba(126,212,249,.18);
 color:#f3fbff;border-color:#96deef;
 box-shadow:inset 0 -2px #a0e7fc;
}
body.cesba-role-student .student-icon-nav .student-icon-link{min-height:44px}
/* Inicio: jerarquía más compacta y mensajes que distinguen avance de finalización. */
body.cesba-role-student[data-cesba-view] .student-dashboard-home{
 padding:clamp(18px,2vw,27px)!important;
 background:linear-gradient(150deg,#0a1e32,#09192a)!important;
 border:1px solid rgba(137,207,239,.25)!important;
}
body.cesba-role-student[data-cesba-view] .student-dashboard-head{
 margin-bottom:15px!important;
}
body.cesba-role-student[data-cesba-view] .student-dashboard-head h2{
 font-size:clamp(1.6rem,2.8vw,2.25rem)!important;
 letter-spacing:-.035em;
}
body.cesba-role-student[data-cesba-view] .student-bento{
 gap:11px!important;
}
body.cesba-role-student[data-cesba-view] .student-bento>.bento-continue{
 grid-column:span 8;min-height:0;padding:18px 20px;
 border-color:rgba(130,213,244,.50)!important;
 background:linear-gradient(125deg,#164059,#0c263c)!important;
}
body.cesba-role-student[data-cesba-view] .student-bento>.bento-overall{
 grid-column:span 4;min-height:0;
 padding:17px;align-items:flex-start;justify-content:center;
 gap:12px;flex-direction:column;
 background:linear-gradient(135deg,#123b44,#0d2939)!important;
}
body.cesba-role-student .bento-continue h3{
 font-size:clamp(1.3rem,2.15vw,1.78rem)!important;
 margin:8px 0 10px;line-height:1.25;
}
body.cesba-role-student .bento-continue .bento-subject{
 margin-top:10px;font-size:.81rem;
}
body.cesba-role-student .bento-continue .bento-card-top{align-items:center}
body.cesba-role-student .bento-continue-footer{
 margin-top:13px;gap:9px;
}
body.cesba-role-student .bento-continue .student-continue{
 min-height:44px;font-size:.84rem!important;
}
body.cesba-role-student .bento-overall .student-progress-ring{
 width:70px;height:70px;flex:0 0 70px;
}
body.cesba-role-student .bento-overall .student-progress-ring strong{
 font-size:1.3rem!important;
}
body.cesba-role-student .bento-overall-copy{
 display:flex;flex-direction:column;gap:4px;
}
body.cesba-role-student .bento-overall-copy>span{
 color:#a3eed8;font-size:.76rem;font-weight:850;
}
body.cesba-role-student #cr43ActiveCount{
 display:block;font-size:clamp(1.05rem,1.7vw,1.32rem);
 color:#f2faff;line-height:1.27;font-weight:850;
}
body.cesba-role-student #cesbaStudentCompletedMini{
 font-size:.83rem;color:#c6e6e8;
}
body.cesba-role-student #cesbaStudentOverallContext{
 margin-top:5px;line-height:1.55;font-size:.76rem;
}
body.cesba-role-student .cr38-home-resume{
 display:grid;grid-template-columns:minmax(0,1fr) auto;
 grid-template-areas:"kicker action" "title action" "note action";
 align-items:center;gap:2px 12px;
 margin-top:12px;padding:11px 13px;
 background:rgba(3,23,38,.35);
}
body.cesba-role-student .cr38-home-resume .cr38-home-kicker{
 grid-area:kicker;font-size:.7rem;
}
body.cesba-role-student .cr38-home-resume>strong{grid-area:title;font-size:.82rem}
body.cesba-role-student .cr38-home-resume small{grid-area:note;font-size:.73rem;line-height:1.4}
body.cesba-role-student .cr38-home-resume .cr38-home-action{
 grid-area:action;margin-top:0;min-height:44px;
 font-size:.77rem;justify-content:center;
}
body.cesba-role-student[data-cesba-view] .cr41-preview{
 padding:17px 19px!important;margin-top:2px;
 border-radius:15px;background:linear-gradient(130deg,#112a40,#0b2033);
}
body.cesba-role-student .cr41-preview-header{margin-bottom:12px}
body.cesba-role-student .cr41-preview h3{font-size:1.35rem}
body.cesba-role-student .cr41-grid.cr42-count-1{
 grid-template-columns:minmax(0,1fr)!important;
}
body.cesba-role-student .cr41-grid.cr42-count-1 .cr41-course-card{
 display:grid!important;
 grid-template-columns:52px minmax(0,1fr) auto!important;
 grid-template-areas:"icon copy link"!important;
 align-items:center;gap:17px;min-height:116px;
 padding:16px 20px;
}
body.cesba-role-student .cr41-grid.cr42-count-1 .cr42-course-icon{
 width:52px;height:52px;
}
body.cesba-role-student .cr41-grid.cr42-count-1 .cr42-course-copy{
 gap:5px;
}
body.cesba-role-student .cr41-grid.cr42-count-1 .cr41-course-open{
 justify-self:end;grid-area:link;
}
body.cesba-role-student .cr42-course-icon svg{
 width:24px;height:24px;fill:none;stroke:currentColor;
 stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
body.cesba-role-student .cr41-course-detail{font-size:.78rem}
body.cesba-role-student .cr41-course-card h4{font-size:.99rem}
body.cesba-role-student .student-bento>.bento-recent{
 padding:16px 18px;min-height:0;
}
body.cesba-role-student .bento-recent .bento-card-top{
 gap:9px;margin-bottom:12px;
}
body.cesba-role-student .student-recent-item{min-height:64px}
body.cesba-role-student .student-recent-score{
 color:#b7ecf9;font-size:.76rem;
}
body.cesba-role-student .cr40-help{
 margin-top:10px;
}
/* Progreso: una vista propia, sin el acordeón ocultando todo el contenido. */
body.cesba-role-student[data-cesba-view="progress"] #cesbaStudentProgress{
 padding:0;margin:14px 0 24px;
}
body.cesba-role-student[data-cesba-view="progress"] #cesbaStudentProgress .progress-shell{
 max-width:none!important;
 border:1px solid rgba(144,208,238,.23);
 background:linear-gradient(145deg,#0c2438,#0b1b2d);
 border-radius:19px;padding:clamp(18px,2.3vw,27px)!important;
}
body.cesba-role-student[data-cesba-view="progress"] #cesbaStudentProgress .student-collapse-toggle{
 display:none!important;
}
body.cesba-role-student[data-cesba-view="progress"] #cesbaStudentProgress .progress-overview{
 margin-top:14px;
}
body.cesba-role-student[data-cesba-view="progress"] #cesbaStudentProgress .progress-overview article{
 border-radius:13px;
}
/* Resultados: mismos filtros y controles académicos, presentación más compacta. */
body.cesba-role-student[data-cesba-view="results"] #cesbaStudentResults{
 width:100%;max-width:none!important;
 padding:0!important;margin:14px 0 24px!important;
}
body.cesba-role-student[data-cesba-view="results"] #cesbaStudentResults .cr39-shell{
 border-radius:19px;padding:clamp(18px,2.3vw,27px);
}
body.cesba-role-student[data-cesba-view="results"] .cr39-header{align-items:center}
body.cesba-role-student[data-cesba-view="results"] .cr39-header h2{
 font-size:clamp(1.55rem,2.5vw,2rem);
}
body.cesba-role-student[data-cesba-view="results"] .cr39-stats{
 margin:18px 0;gap:10px;
}
body.cesba-role-student[data-cesba-view="results"] .cr39-stat{
 padding:12px 16px;
}
body.cesba-role-student[data-cesba-view="results"] .cr39-stat strong{
 font-size:1.48rem;
}
body.cesba-role-student[data-cesba-view="results"] .cr39-item{
 padding:14px 16px;
}
body.cesba-role-student[data-cesba-view="results"] .cr39-listhead{
 margin:17px 0 10px;
}
body.cesba-role-student[data-cesba-view="results"] .cr39-notice{
 font-size:.77rem;
}
/* Materias: única vista de catálogo, ancho íntegro y sin plegado interno. */
body.cesba-role-student[data-cesba-view="subjects"] #materias{
 margin:16px 0 26px!important;
 padding:0!important;background:transparent!important;
 border:0!important;box-shadow:none!important;
}
body.cesba-role-student[data-cesba-view="subjects"] #materias .section-head{
 margin-bottom:16px;gap:15px;
}
body.cesba-role-student[data-cesba-view="subjects"] #materias .student-collapse-toggle{
 display:none!important;
}
body.cesba-role-student[data-cesba-view="subjects"] #materias .subject-grid{
 display:grid!important;
}
body.cesba-role-student[data-cesba-view="subjects"] #materias .subject-card{
 min-height:0!important;
}
body.cesba-role-student[data-cesba-view="subjects"] #materias .subject-stack{
 display:none!important;
}
body.cesba-role-student[data-cesba-view="subjects"] #materias .subject-copy{
 display:-webkit-box!important;-webkit-box-orient:vertical;
 -webkit-line-clamp:3;overflow:hidden;
 font-size:.85rem;
}
/* Screen reader: navegación y paneles con foco claro. */
body.cesba-role-student[data-cesba-view] :is(#cesbaStudentHome,#cesbaStudentProgress,#cesbaStudentResults,#materias):focus{
 outline:none;
}
body.cesba-role-student[data-cesba-view] .student-icon-link:focus-visible{
 outline:3px solid #aef0ff;outline-offset:3px;
}
@media(max-width:900px){
 body.cesba-role-student[data-cesba-view] .student-bento>.bento-continue,
 body.cesba-role-student[data-cesba-view] .student-bento>.bento-overall{
  grid-column:span 12!important;
 }
 body.cesba-role-student[data-cesba-view] .student-bento>.bento-overall{
  display:flex;flex-direction:row;align-items:center;justify-content:flex-start;
  gap:18px;
 }
 body.cesba-role-student[data-cesba-view] .cr41-grid.cr42-count-1 .cr41-course-card{
  grid-template-columns:46px minmax(0,1fr) auto!important;
  gap:11px;padding:14px;
 }
 body.cesba-role-student .cr41-grid.cr42-count-1 .cr42-course-icon{width:46px;height:46px}
}
@media(max-width:650px){
 body.cesba-role-student[data-cesba-view] .student-dashboard-home{
  padding:15px!important;
 }
 body.cesba-role-student[data-cesba-view] .student-dashboard-head .student-meta{
  display:none!important;
 }
 body.cesba-role-student[data-cesba-view] .student-bento>.bento-continue{
  padding:16px!important;
 }
 body.cesba-role-student .bento-continue-footer{
  flex-wrap:wrap;align-items:flex-start;
 }
 body.cesba-role-student .cr38-home-resume{
  grid-template-columns:1fr;grid-template-areas:"kicker" "title" "note" "action";
  gap:4px;padding:11px;
 }
 body.cesba-role-student .cr38-home-resume .cr38-home-action{
  margin-top:5px;justify-self:start;
 }
 body.cesba-role-student[data-cesba-view] .student-bento>.bento-overall{
  padding:14px;gap:13px;
 }
 body.cesba-role-student[data-cesba-view] .cr41-preview{padding:14px!important}
 body.cesba-role-student[data-cesba-view] .cr41-grid.cr42-count-1 .cr41-course-card{
  grid-template-columns:39px minmax(0,1fr)!important;
  grid-template-areas:"icon copy" "link link"!important;
  align-items:start;gap:9px;padding:12px;
 }
 body.cesba-role-student .cr41-grid.cr42-count-1 .cr42-course-icon{
  width:39px;height:39px;
 }
 body.cesba-role-student .cr41-grid.cr42-count-1 .cr41-course-open{
  justify-self:stretch;width:100%;min-width:0;min-height:44px;
 }
 body.cesba-role-student .cr41-course-detail{font-size:.76rem}
 body.cesba-role-student[data-cesba-view="results"] #cesbaStudentResults .cr39-shell{padding:15px}
 body.cesba-role-student[data-cesba-view="results"] .cr39-stats{gap:7px}
 body.cesba-role-student[data-cesba-view="results"] .cr39-stat{padding:10px}
 body.cesba-role-student[data-cesba-view="progress"] #cesbaStudentProgress .progress-shell{padding:15px!important}
 body.cesba-role-student[data-cesba-view="subjects"] #materias .section-head{
  align-items:flex-start;
 }
 body.cesba-role-student[data-cesba-view="subjects"] #materias .subject-card{padding:16px!important}
}
@media(prefers-reduced-motion:reduce){
 body.cesba-role-student[data-cesba-view] *{
  scroll-behavior:auto!important;
 }
}
@media print{
 body.cesba-role-student[data-cesba-view] .student-icon-nav{display:none!important}
}
