/* Portal institucional: navegación, jornada y acceso. */
body.portal-body.ejmc-visual-refresh, body.login-body.ejmc-visual-refresh {
 --ej-ink: #172956;
 --ej-cobalt: #244fc3;
 --ej-green: #087a6c;
 --ej-rail: #172956;
 --ej-rail-ink: #f3f5ff;
 --ej-rail-muted: #c4d1ef;
 --ej-accent-soft: #eaf0ff;
 --ej-green-soft: #dff4ef;
 --ej-main-bg: #f3f5fa;
 --ej-panel: #fff;
 --ej-line: #d8dfec;
 --ej-sub: #495b77;
 --ej-amber-bg: #fff2d2;
 --ej-amber: #714805;
 --primary: var(--ej-cobalt);
 --primary-dark: var(--ej-ink);
 --blue-soft: var(--ej-accent-soft);
 --sidebar-width: 244px;
 --sidebar-collapsed-width: 72px;
}
html[data-theme=dark] body:is(.portal-body,.login-body).ejmc-visual-refresh {
 --ej-ink: #eef2ff;
 --ej-cobalt: #a7bbff;
 --ej-green: #72d5be;
 --ej-rail: #111c39;
 --ej-rail-ink: #f0f3ff;
 --ej-rail-muted: #bdcbea;
 --ej-accent-soft: #263557;
 --ej-green-soft: #153f3b;
 --ej-main-bg: #121d30;
 --ej-panel: #1a2840;
 --ej-line: #354560;
 --ej-sub: #c1ccde;
 --ej-amber-bg: #44351e;
 --ej-amber: #ffe0a1;
}
body.portal-body.ejmc-visual-refresh,
body.portal-body.ejmc-visual-refresh .portal-app .app-shell {background: var(--ej-main-bg);}
body.portal-body.ejmc-visual-refresh #sidebar {
 background: var(--ej-rail); color: var(--ej-rail-ink); overflow: visible;
 border-inline-end: 1px solid rgb(235 242 255 / 14%);
}
body.portal-body.ejmc-visual-refresh #sidebar .sidebar-scroll {
 flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 10px;
 scrollbar-width: thin; scrollbar-color: #62749e transparent;
}
body.portal-body.ejmc-visual-refresh #sidebar .sidebar-brand {
 gap: 10px; padding: 13px 16px; border-color: rgb(236 242 255 / 16%);
}
body.portal-body.ejmc-visual-refresh #sidebar .sidebar-brand img {
 width: 41px; height: 41px; object-fit: contain;
}
body.portal-body.ejmc-visual-refresh #sidebar .sidebar-brand-title {color: var(--ej-rail-ink); line-height: 1.15;}
body.portal-body.ejmc-visual-refresh #sidebar .nav-item {
 min-height: 41px; padding: 9px 12px; margin-block: 2px;
 border: 0; border-radius: 9px; color: var(--ej-rail-ink);
 font-size: 14px; line-height: 1.4; text-align: start;
}
body.portal-body.ejmc-visual-refresh #sidebar .nav-item:hover {background: rgb(238 244 255 / 9%);}
body.portal-body.ejmc-visual-refresh #sidebar .nav-item:is(.active,[aria-current=page]) {
 padding-inline-start: 12px; background: #2d4993; border: 0; border-radius: 9px; color: white;
}
body.portal-body.ejmc-visual-refresh #sidebar :is(.nav-title,.nav-section-title,.sidebar-brand-copy>span) {color: var(--ej-rail-muted);}
body.portal-body.ejmc-visual-refresh #sidebar :is(button,summary,a):focus-visible {outline: 2px solid #d4e0ff; outline-offset: -2px;}
body.portal-body.ejmc-visual-refresh #sidebar .sidebar-footer {
 position: relative; flex: none; display: grid; gap: 6px; padding: 9px 10px;
 background: var(--ej-rail); border-top: 1px solid rgb(238 244 255 / 18%); overflow: visible;
}
body.portal-body.ejmc-visual-refresh #sidebar .sidebar-profile {position: relative; display: block; min-width: 0; width: 100%;}
body.portal-body.ejmc-visual-refresh #sidebar .user-button {
 display: flex; align-items: center; width: 100%; min-height: 48px;
 gap: 9px; padding: 6px 8px; border: 0; border-radius: 9px;
 color: var(--ej-rail-ink); background: rgb(238 244 255 / 7%); text-align: start;
}
body.portal-body.ejmc-visual-refresh #sidebar .user-button:hover {background: rgb(238 244 255 / 14%);}
body.portal-body.ejmc-visual-refresh #sidebar .user-avatar {
 order: 0; flex: none; display: grid; place-items: center; height: 34px; width: 34px;
 border-radius: 50%; background: #30675f; color: white; font-size: 13px; font-weight: 700;
}
body.portal-body.ejmc-visual-refresh #sidebar .user-copy {
 order: 1; display: grid; flex: 1; gap: 1px; min-width: 0; text-align: start;
}
body.portal-body.ejmc-visual-refresh #sidebar .user-copy :is(strong,small) {
 display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; text-align: start;
}
body.portal-body.ejmc-visual-refresh #sidebar .user-copy strong {font-size: 13px; color: var(--ej-rail-ink);}
body.portal-body.ejmc-visual-refresh #sidebar .user-copy small {font-size: 12px; color: var(--ej-rail-muted);}
body.portal-body.ejmc-visual-refresh #sidebar .profile-chevron {order: 2; font-size: 17px; line-height: 1;}
body.portal-body.ejmc-visual-refresh #sidebar .user-menu {
 position: absolute; z-index: 40; inset: auto auto calc(100% + 6px) 0;
 box-sizing: border-box; width: min(260px, calc(100vw - 32px)); max-height: min(60dvh, 25rem); overflow: auto;
 border: 1px solid var(--ej-line); border-radius: 12px; padding: 6px;
 background: var(--ej-panel); color: var(--ej-ink); box-shadow: 0 9px 28px #0b173032;
}
body.portal-body.ejmc-visual-refresh #sidebar .user-menu[hidden] {display: none;}
body.portal-body.ejmc-visual-refresh #sidebar .user-menu-head {padding: 9px 9px 11px; overflow-wrap: anywhere; color: var(--ej-ink);}
body.portal-body.ejmc-visual-refresh #sidebar .user-menu-head small {color: var(--ej-sub);}
body.portal-body.ejmc-visual-refresh #sidebar .user-menu button {min-height: 42px; border-radius: 7px; color: var(--ej-ink);}
body.portal-body.ejmc-visual-refresh #sidebar .user-menu button:hover {background: var(--ej-accent-soft);}
body.portal-body.ejmc-visual-refresh #sidebar .user-menu button:focus-visible {outline-color: var(--ej-cobalt);}
body.portal-body.ejmc-visual-refresh #sidebar .user-menu .danger-option {color: var(--danger);}
body.portal-body.ejmc-visual-refresh #sidebar .report-button {margin: 0; color: var(--ej-rail-muted); min-height: 32px;}
body.portal-body.ejmc-visual-refresh #sidebar .developer-credit {min-height: 0; padding-block: 2px; margin: 0;}
body.portal-body.ejmc-visual-refresh #sidebar .developer-credit-copy {color: var(--ej-rail-muted);}
@media (min-width:1181px) {
 body.portal-body.ejmc-visual-refresh .sidebar-collapsed #sidebar .sidebar-brand {padding-inline: 5px;}
 body.portal-body.ejmc-visual-refresh .sidebar-collapsed #sidebar .user-button {justify-content: center; padding-inline: 2px;}
 body.portal-body.ejmc-visual-refresh .sidebar-collapsed #sidebar :is(.user-copy,.profile-chevron) {display: none;}
 body.portal-body.ejmc-visual-refresh .sidebar-collapsed #sidebar .user-menu {inset: auto auto 0 calc(100% + 8px);}
 body.portal-body.ejmc-visual-refresh .sidebar-collapsed #sidebar .nav-item:is(.active,[aria-current=page]) {padding-inline: 4px;}
}
body.portal-body.ejmc-visual-refresh .topbar {gap: clamp(8px, 2vw, 25px); background: var(--ej-panel);}
body.portal-body.ejmc-visual-refresh .topbar-right {display: flex; align-items: center; gap: 9px;}
body.portal-body.ejmc-visual-refresh .portal-local-time {display: flex; align-items: center; gap: 10px; color: var(--ej-ink);}
.portal-local-date {display: grid; gap: 0; text-align: end;}
body.portal-body.ejmc-visual-refresh .portal-local-time #portalClock {
 display: block; min-width: 5ch; color: var(--ej-ink); font: inherit; font-weight: 700;
 font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -.025em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap;
}
#portalClockDate {font-size: 12px; line-height: 1.3; color: var(--ej-sub);}
.portal-weather {padding-inline-start: 9px; border-inline-start: 1px solid var(--ej-line); color: var(--ej-sub); font-size: 12px; line-height: 1.3; text-underline-offset: 3px;}
.portal-weather[hidden] {display: none;}
body.portal-body.ejmc-visual-refresh #viewHome .portal-home-intro {
 display: flex; align-items: center; justify-content: space-between; gap: 18px;
 margin: 2px 0 18px; padding: clamp(17px, 2.4vw, 30px);
 border: 1px solid #29437c; border-radius: 16px; color: white; background: #172956;
}
.portal-home-greeting {display: flex; align-items: center; gap: clamp(12px, 1.7vw, 23px); min-width: 0;}
.portal-home-seal {display: block; width: clamp(47px, 5vw, 68px); height: auto; max-height: 68px; object-fit: contain; flex: none;}
body.portal-body.ejmc-visual-refresh #viewHome .portal-home-intro h1 {margin: 0; color: white; font-size: clamp(22px, 2.2vw, 33px); line-height: 1.16; font-weight: 650; letter-spacing: -.028em; overflow-wrap: anywhere;}
body.portal-body.ejmc-visual-refresh #viewHome #homeDate {color: #d9e3fa; font-size: 14px; margin: 5px 0 0;}
body.portal-body.ejmc-visual-refresh #viewHome .design-home-head-actions {flex: none; display: grid; justify-items: end; gap: 5px;}
body.portal-body.ejmc-visual-refresh #viewHome .portal-home-intro .today-badge {padding: 0; margin: 0; border: 0; background: transparent; color: #d9e3fa; font-size: 13px;}
body.portal-body.ejmc-visual-refresh #viewHome .portal-home-intro .today-badge strong {color: white; font-size: 16px;}
body.portal-body.ejmc-visual-refresh #viewHome .portal-home-intro .design-text-button {min-height: 31px; color: white; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;}
body.portal-body.ejmc-visual-refresh #viewHome :is(.schedule-panel,.mini-calendar-panel,.design-favorites,.daily-note,.home-recents>.panel,.home-priority-panel) {
 min-width: 0; padding: clamp(14px, 1.8vw, 22px); border: 1px solid var(--ej-line);
 border-radius: 14px; background: var(--ej-panel); color: var(--ej-ink);
}
body.portal-body.ejmc-visual-refresh #viewHome .panel-heading h2 {font-size: 17px; color: var(--ej-ink);}
body.portal-body.ejmc-visual-refresh #viewHome .panel-heading>span {font-size: 13px; color: var(--ej-sub);}
body.portal-body.ejmc-visual-refresh #viewHome .home-grid {gap: 16px;}
body.portal-body.ejmc-visual-refresh #viewHome .home-side {gap: 16px;}
body.portal-body.ejmc-visual-refresh #viewUtp .utp-heading h1 {color: var(--ej-ink); font-size: clamp(25px,2vw,32px); letter-spacing: -.025em;}
body.portal-body.ejmc-visual-refresh #viewUtp .teaching-tabs>button[aria-selected=true] {color: var(--ej-cobalt); border-color: var(--ej-cobalt);}
body.portal-body.ejmc-visual-refresh #viewUtp #utpSummary {gap: 8px;}
body.portal-body.ejmc-visual-refresh #viewUtp #utpSummary article {
 display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0;
 padding: 11px 13px; border: 1px solid var(--ej-line); border-radius: 10px; background: var(--ej-panel); color: var(--ej-ink);
}
body.portal-body.ejmc-visual-refresh #viewUtp #utpSummary article strong {font-size: 24px; line-height: 1.1; color: var(--ej-ink); font-variant-numeric: tabular-nums;}
body.portal-body.ejmc-visual-refresh #viewUtp #utpSummary article span {color: var(--ej-sub); font-size: 14px; line-height: 1.3;}
body.portal-body.ejmc-visual-refresh #viewUtp #utpSummary article.utp-summary-review {background: var(--ej-amber-bg); border-color: var(--ej-amber-bg);}
body.portal-body.ejmc-visual-refresh #viewUtp #utpSummary article.utp-summary-review :is(strong,span) {color: var(--ej-amber);}
#utpSummary progress, .ap-overview progress {
 appearance: none; display: block; width: 100%; height: 6px; flex: none; overflow: hidden; margin-top: auto; border: 0; border-radius: 4px;
 background: var(--ej-accent-soft); color: var(--ap-meter-ink, var(--ej-green)); accent-color: var(--ap-meter-ink, var(--ej-green));
}
#utpSummary progress::-webkit-progress-bar, .ap-overview progress::-webkit-progress-bar {background: var(--ej-accent-soft); border-radius: 4px;}
#utpSummary progress::-webkit-progress-value, .ap-overview progress::-webkit-progress-value {background: var(--ap-meter-ink, var(--ej-green)); border-radius: 4px;}
#utpSummary progress::-moz-progress-bar, .ap-overview progress::-moz-progress-bar {background: var(--ap-meter-ink, var(--ej-green)); border-radius: 4px;}
@media (max-width:760px) {
 body.portal-body.ejmc-visual-refresh .topbar-right {gap: 6px; margin-inline-start: auto;}
 .portal-local-date {text-align: end;}
 #portalClockDate {font-size: 11px;}
 .portal-weather {font-size: 11px; max-width: 76px;}
 body.portal-body.ejmc-visual-refresh #viewHome .portal-home-intro {align-items: flex-start; flex-direction: column; gap: 10px;}
 body.portal-body.ejmc-visual-refresh #viewHome .design-home-head-actions {display: flex; align-items: center; justify-content: space-between; width: 100%;}
 body.portal-body.ejmc-visual-refresh #viewHome .portal-home-intro .design-text-button {min-height: 38px;}
}
@media (max-height:600px) {body.portal-body.ejmc-visual-refresh #sidebar .sidebar-footer {gap: 2px; padding-block: 4px;}}

/* Acceso. El escudo proviene de la configuración pública del colegio. */
body.login-body.ejmc-visual-refresh {background: var(--ej-main-bg); color: var(--ej-ink);}
body.login-body.ejmc-visual-refresh .login-layout {min-height: 100dvh; display: grid; grid-template-columns: minmax(0,1fr); place-items: center; width: 100%; max-width: none; margin: 0; padding: 68px 24px 38px;}
body.login-body.ejmc-visual-refresh .login-card-wrap {
 display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,1fr); width: min(1010px,100%);
 padding: 0; overflow: hidden; border: 1px solid var(--ej-line); border-radius: 21px; background: var(--ej-panel);
 box-shadow: 0 18px 52px rgb(14 31 67 / 12%);
}
body.login-body.ejmc-visual-refresh .login-intro {
 display: flex; position: relative; isolation: isolate; overflow: hidden; align-items: flex-start; justify-content: space-between; gap: 25px;
 min-height: 460px; padding: clamp(24px, 3.7vw, 49px); border: 0;
 background: linear-gradient(138deg, #172956 14%, #203d82 66%, #125f63 110%); color: white;
}
.login-intro::before, .login-intro::after {content: ''; position: absolute; z-index: -1; border: 1px solid rgb(217 238 249 / 18%); border-radius: 50%; pointer-events: none;}
.login-intro::before {width: 150%; aspect-ratio: 1; top: -103%; right: -65%;}
.login-intro::after {width: 117%; aspect-ratio: 1; bottom: -82%; left: -57%;}
.login-seal-field {display: grid; place-items: center; width: clamp(110px, 15vw, 182px); aspect-ratio: 1; margin: 0; flex: none;}
.login-seal-field img {width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgb(1 10 31 / 18%));}
body.login-body.ejmc-visual-refresh .login-intro-copy {display: block; margin: 0; z-index: 1;}
body.login-body.ejmc-visual-refresh .login-intro-copy h1 {margin: 0; color: white; font: inherit; font-size: clamp(29px, 3.5vw, 45px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; overflow-wrap: anywhere;}
body.login-body.ejmc-visual-refresh .login-intro-copy p {margin: 12px 0 0; color: #dfebff; font-size: 15px; line-height: 1.4;}
body.login-body.ejmc-visual-refresh .login-intro-copy p[hidden] {display: none;}
body.login-body.ejmc-visual-refresh .login-card {width: 100%; max-width: none; align-self: center; padding: clamp(28px,4.1vw,55px); background: var(--ej-panel); border: 0; box-shadow: none;}
body.login-body.ejmc-visual-refresh .login-card h2 {margin: 0 0 7px; color: var(--ej-ink); font-size: clamp(28px,2.8vw,37px); letter-spacing: -.03em; font-weight: 700;}
body.login-body.ejmc-visual-refresh .login-card .login-copy {margin: 0 0 23px; color: var(--ej-sub); font-size: 15px;}
body.login-body.ejmc-visual-refresh .login-form .form-field>span:first-child {color: var(--ej-ink); font-size: 14px; font-weight: 600;}
body.login-body.ejmc-visual-refresh .login-form .form-field input {min-height: 47px; border: 1px solid var(--ej-line); border-radius: 8px; background: var(--ej-main-bg); color: var(--ej-ink); font-size: 16px;}
body.login-body.ejmc-visual-refresh .login-form .form-field input:focus-visible {outline: 2px solid var(--ej-cobalt); outline-offset: 2px;}
body.login-body.ejmc-visual-refresh .login-form .primary-button {min-height: 47px; background: #244fc3; border: 1px solid #244fc3; border-radius: 8px; font-size: 16px; font-weight: 650; color: #fff;}
body.login-body.ejmc-visual-refresh .login-form .primary-button:hover:enabled {background: #1e43a8;}
body.login-body.ejmc-visual-refresh .login-signature {color: var(--ej-sub); border-color: var(--ej-line);}
body.login-body.ejmc-visual-refresh .login-theme-choice {z-index: 2; background: var(--ej-panel); border-color: var(--ej-line); color: var(--ej-ink);}
@media (max-width:760px) {
 body.login-body.ejmc-visual-refresh .login-layout {padding: 60px 14px 18px; align-items: start;}
 body.login-body.ejmc-visual-refresh .login-card-wrap {grid-template-columns: 1fr; max-width: 480px; border-radius: 15px;}
 body.login-body.ejmc-visual-refresh .login-intro {flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; min-height: 0; padding: 18px 19px;}
 .login-seal-field {width: 65px;}
 body.login-body.ejmc-visual-refresh .login-intro-copy h1 {font-size: clamp(19px,4.7vw,23px); line-height: 1.14;}
 body.login-body.ejmc-visual-refresh .login-intro-copy p {font-size: 12px; margin: 4px 0 0;}
 body.login-body.ejmc-visual-refresh .login-card {padding: 24px 20px;}
}
