@font-face {
  font-family: "Roboto";
  src: url("/assets/Roboto-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Roboto";
  src: url("/assets/Roboto-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
}

@font-face {
  font-family: "Roboto Condensed";
  src: url("/assets/RobotoCondensed-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

:root {
  color: #053556;
  font-weight: 400;
  font-size: 10px;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-variation-settings: normal;
  --font-family: "Roboto", sans-serif, monospace;
  --font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  --surface-a: #ffffff;
  --surface-b: #f9fafb;
  --surface-c: #f3f4f6;
  --surface-d: #e5e7eb;
  --surface-e: #ffffff;
  --surface-f: #ffffff;
  --text-color: #4b5563;
  --text-color-secondary: #6b7280;
  --primary-color: #3b82f6;
  --primary-color-text: #ffffff;
  --surface-0: #ffffff;
  --surface-50: #f9fafb;
  --surface-100: #f3f4f6;
  --surface-200: #e5e7eb;
  --surface-300: #d1d5db;
  --surface-400: #9ca3af;
  --surface-500: #6b7280;
  --surface-600: #4b5563;
  --surface-700: #374151;
  --surface-800: #1f2937;
  --surface-900: #111827;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --content-padding: 1.25rem;
  --inline-spacing: 0.5rem;
  --border-radius: 6px;
  --surface-ground: #f9fafb;
  --surface-section: #ffffff;
  --surface-card: #ffffff;
  --surface-overlay: #ffffff;
  --surface-border: #dfe7ef;
  --surface-hover: #f6f9fc;
  --focus-ring: 0 0 0 0.2rem #bfdbfe;
  --maskbg: rgba(0, 0, 0, 0.4);
  --highlight-bg: #eff6ff;
  --highlight-text-color: #1d4ed8;
  color-scheme: light;
  --blue-50: #f5f9ff;
  --blue-100: #d0e1fd;
  --blue-200: #abc9fb;
  --blue-300: #85b2f9;
  --blue-400: #609af8;
  --blue-500: #3b82f6;
  --blue-600: #326fd1;
  --blue-700: #295bac;
  --blue-800: #204887;
  --blue-900: #183462;
  --green-50: #f4fcf7;
  --green-100: #caf1d8;
  --green-200: #a0e6ba;
  --green-300: #76db9b;
  --green-400: #4cd07d;
  --green-500: #22c55e;
  --green-600: #1da750;
  --green-700: #188a42;
  --green-800: #136c34;
  --green-900: #0e4f26;
  --yellow-50: #fefbf3;
  --yellow-100: #faedc4;
  --yellow-200: #f6de95;
  --yellow-300: #f2d066;
  --yellow-400: #eec137;
  --yellow-500: #eab308;
  --yellow-600: #c79807;
  --yellow-700: #a47d06;
  --yellow-800: #816204;
  --yellow-900: #5e4803;
  --cyan-50: #f3fbfd;
  --cyan-100: #c3edf5;
  --cyan-200: #94e0ed;
  --cyan-300: #65d2e4;
  --cyan-400: #35c4dc;
  --cyan-500: #06b6d4;
  --cyan-600: #059bb4;
  --cyan-700: #047f94;
  --cyan-800: #036475;
  --cyan-900: #024955;
  --pink-50: #fef6fa;
  --pink-100: #fad3e7;
  --pink-200: #f7b0d3;
  --pink-300: #f38ec0;
  --pink-400: #f06bac;
  --pink-500: #ec4899;
  --pink-600: #c93d82;
  --pink-700: #a5326b;
  --pink-800: #822854;
  --pink-900: #5e1d3d;
  --indigo-50: #f7f7fe;
  --indigo-100: #dadafc;
  --indigo-200: #bcbdf9;
  --indigo-300: #9ea0f6;
  --indigo-400: #8183f4;
  --indigo-500: #6366f1;
  --indigo-600: #5457cd;
  --indigo-700: #4547a9;
  --indigo-800: #363885;
  --indigo-900: #282960;
  --teal-50: #f3fbfb;
  --teal-100: #c7eeea;
  --teal-200: #9ae0d9;
  --teal-300: #6dd3c8;
  --teal-400: #41c5b7;
  --teal-500: #14b8a6;
  --teal-600: #119c8d;
  --teal-700: #0e8174;
  --teal-800: #0b655b;
  --teal-900: #084a42;
  --orange-50: #fff8f3;
  --orange-100: #feddc7;
  --orange-200: #fcc39b;
  --orange-300: #fba86f;
  --orange-400: #fa8e42;
  --orange-500: #f97316;
  --orange-600: #d46213;
  --orange-700: #ae510f;
  --orange-800: #893f0c;
  --orange-900: #642e09;
  --bluegray-50: #f7f8f9;
  --bluegray-100: #dadee3;
  --bluegray-200: #bcc3cd;
  --bluegray-300: #9fa9b7;
  --bluegray-400: #818ea1;
  --bluegray-500: #64748b;
  --bluegray-600: #556376;
  --bluegray-700: #465161;
  --bluegray-800: #37404c;
  --bluegray-900: #282e38;
  --purple-50: #fbf7ff;
  --purple-100: #ead6fd;
  --purple-200: #dab6fc;
  --purple-300: #c996fa;
  --purple-400: #b975f9;
  --purple-500: #a855f7;
  --purple-600: #8f48d2;
  --purple-700: #763cad;
  --purple-800: #5c2f88;
  --purple-900: #432263;
  --red-50: #fff5f5;
  --red-100: #ffd0ce;
  --red-200: #ffaca7;
  --red-300: #ff8780;
  --red-400: #ff6259;
  --red-500: #ff3d32;
  --red-600: #d9342b;
  --red-700: #b32b23;
  --red-800: #8c221c;
  --red-900: #661814;
  --primary-50: #f5f9ff;
  --primary-100: #d0e1fd;
  --primary-200: #abc9fb;
  --primary-300: #85b2f9;
  --primary-400: #609af8;
  --primary-500: #3b82f6;
  --primary-600: #326fd1;
  --primary-700: #295bac;
  --primary-800: #204887;
  --primary-900: #183462;
  --mark-yellow: rgba(255, 255, 0, 0.6);
  --mark-magenta: rgba(255, 0, 255, 0.6);
  --mark-cyan: rgba(0, 255, 255, 0.6);
  --mark-yellow-alpha: rgba(255, 255, 0, 0.4);
  --mark-magenta-alpha: rgba(255, 0, 255, 0.4);
  --mark-cyan-alpha: rgba(0, 255, 255, 0.4);
  --blue-650: #137abf;
  --blue-050: #f7fbff;
  --border: var(--surface-border);
  --text: #123462;
  --text-soft: #58718f;
  --danger: #d33535;
  --card-shadow: 0 12px 32px rgba(5, 53, 86, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  display: block;
  font-size: 10px;
  color: #053556;
  font-weight: 400;
  height: 100%;
  background-color: #0a629d;
}

body {
  display: block;
  margin: 0;
  min-width: 100%;
  min-height: 100vh;
  font-family: var(--font-family);
  font-feature-settings: var(--font-feature-settings);
  color: #053556;
  background: #0a629d;
  position: relative;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

.max-width {
  width: min(98%, 120rem);
  margin: 0 auto;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.12), transparent 25%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.12), transparent 20%),
    linear-gradient(180deg, #1185cf 0%, #0a629d 42%, #07527f 100%);
}

.portal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: 2rem 2rem 0;
  color: #fff;
  font-size: 1.4rem;
}

.portal-actions button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.portal-actions span {
  width: 1px;
  height: 1.3rem;
  background: rgba(255, 255, 255, 0.5);
}

.portal-hero {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.portal-card {
  width: min(58rem, 100%);
  min-height: 64rem;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 3rem;
  box-shadow: 0 26px 90px rgba(4, 38, 61, 0.28);
  padding: 3.2rem 3.2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 16rem;
  border-radius: 3rem 3rem 0 0;
  background:
    linear-gradient(180deg, rgba(10, 98, 157, 0.1), transparent),
    radial-gradient(circle at top left, rgba(10, 98, 157, 0.12), transparent 40%);
  pointer-events: none;
}

.portal-brand {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  z-index: 1;
  width: 100%;
  padding: 1.6rem 1.8rem;
  border-radius: 1.8rem;
  background: linear-gradient(180deg, #0d6eae 0%, #0a629d 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.portal-brand-logo {
  width: 26rem;
  max-width: 100%;
  height: auto;
  display: block;
}

.brand-copy {
  line-height: 1;
}

.brand-copy .gov {
  margin: 0;
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  font-size: 2rem;
}

.brand-copy .dept {
  margin: 0.4rem 0 0;
  font-family: "Roboto Condensed", sans-serif;
  color: #f6c659;
  font-size: 3rem;
}

.portal-lockup {
  margin-top: 4.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  z-index: 1;
  width: 100%;
}

.portal-symbol {
  width: 17rem;
  height: 17rem;
}

.portal-symbol svg {
  width: 100%;
  height: 100%;
}

.portal-symbol .ring {
  fill: var(--blue-700);
}

.portal-symbol .body {
  fill: #fff;
}

.portal-symbol .shackle {
  fill: none;
  stroke: #fff;
  stroke-width: 9;
  stroke-linecap: round;
}

.portal-symbol .keyhole {
  fill: var(--blue-700);
}

.portal-title {
  text-align: center;
  width: 100%;
  padding: 2rem 2.4rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, #f6de95 0%, #eab308 100%);
  box-shadow: inset 0 0 0 1px rgba(164, 125, 6, 0.2);
}

.portal-title h1 {
  margin: 0;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 5.4rem;
  color: #183462;
}

.portal-title p {
  margin: 0.8rem 0 0;
  font-size: 2.9rem;
  color: #5e4803;
}

.login-form {
  width: 100%;
  max-width: 36rem;
  margin-top: auto;
  z-index: 1;
}

.login-fields {
  display: grid;
  gap: 1.2rem;
}

.field {
  display: grid;
  gap: 0.6rem;
}

.field label {
  font-size: 1.3rem;
  color: var(--blue-900);
}

.field input {
  width: 100%;
  border: 1px solid #c5d6e8;
  background: #fff;
  border-radius: 1rem;
  padding: 1.3rem 1.4rem;
  font-size: 1.5rem;
  color: var(--blue-900);
}

.field input:focus-visible {
  outline: 2px solid #9dc1fb;
  outline-offset: 1px;
}

.login-error {
  min-height: 1.8rem;
  margin: 1.2rem 0 0;
  color: var(--danger);
  font-size: 1.3rem;
}

.enter-button {
  width: 100%;
  margin-top: 1.2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #18a0f1, #0c6da8);
  color: #fff;
  cursor: pointer;
  padding: 1.5rem 2rem;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 34px rgba(12, 109, 168, 0.3);
}

.portal-footer {
  text-align: center;
  color: #fff;
  padding: 0 2rem 2rem;
  font-size: 2.2rem;
  font-family: "Roboto Condensed", sans-serif;
}

.app-shell {
  min-height: 100vh;
  background: var(--blue-050);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
}

.accessibility-banner {
  position: fixed;
  left: 0;
  top: 12rem;
  z-index: 30;
  background: #0c5f95;
  color: #fff;
  padding: 1.1rem 1rem;
  border-radius: 0 1rem 1rem 0;
  box-shadow: 0 8px 20px rgba(5, 53, 86, 0.18);
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.3rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.accessibility-banner span {
  display: block;
}

.app-header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.main-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: 1.4rem 0;
}

.logos {
  display: flex;
  align-items: center;
  min-width: 0;
}

.logos .logo {
  margin: 0;
  width: 20rem;
  height: 4.4rem;
}

.logos .logo a {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center start;
  text-decoration: none;
}

.header-logo-official {
  width: 20rem;
  height: 4.4rem;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.footer-logo-image {
  width: 20rem;
  height: 4.4rem;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.options {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.toolbar-buttons {
  display: flex;
  gap: 0.8rem;
}

.toolbar-button {
  min-width: 3.6rem;
  height: 3.6rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #000;
  cursor: pointer;
  font-size: 1.8rem;
  display: grid;
  place-items: center;
}

.toolbar-button:hover,
.profile-button:hover,
.side-menu button:hover,
.submenu-item:hover,
.quick-card:hover {
  background: rgba(7, 104, 172, 0.08);
}

.profile-button {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  cursor: pointer;
  color: var(--text);
}

.avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dbe6ef;
}

.profile-button .name {
  font-size: 1.4rem;
  white-space: nowrap;
}

.profile-button .fallback {
  font-size: 1.2rem;
  color: var(--text-soft);
}

.header-title {
  border-top: 1px solid #eef2f7;
}

.header-title-inner {
  padding: 1rem 0;
  font-size: 2rem;
}

.header-title-inner .bold {
  font-weight: 700;
}

.selectors {
  background: #fff;
}

.selectors-grid {
  padding: 1.2rem 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.center-card {
  display: grid;
  gap: 0.6rem;
}

.center-dropdown {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: #cfdcf7;
  color: var(--text);
  padding: 0.6rem 0.9rem;
  font-size: 1.2rem;
  font-weight: 700;
  width: min(39rem, 100%);
}

.center-info {
  display: grid;
  gap: 0.2rem;
  background: #e6eef9;
  width: min(39rem, 100%);
  padding: 0.8rem 0.9rem;
}

.center-name {
  font-size: 1.3rem;
  font-weight: 700;
}

.group-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.item-info {
  font-size: 1.2rem;
}

.item-info .label {
  color: var(--text);
}

.student-strip {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.student-photo {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  border: 3px solid #f0b323;
  object-fit: cover;
}

.student-meta {
  display: grid;
  gap: 0.4rem;
  justify-items: end;
}

.student-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.student-cial {
  font-size: 1.1rem;
}

.student-photo-label {
  font-size: 1rem;
  color: var(--text-soft);
}

.section-nav {
  background: #fff;
  border-top: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
}

.section-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.8rem;
  align-items: center;
  justify-content: center;
}

.section-nav li {
  position: relative;
}

.section-nav li.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #ffb300;
}

.section-nav-button {
  border: 0;
  background: transparent;
  color: #6f88a7;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1.1rem 0;
  cursor: pointer;
}

.section-nav li.active .section-nav-button {
  color: #36557d;
}

.breadcrumb {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.2rem 0;
  font-size: 1.4rem;
}

.mobile-menu-button {
  border: 0;
  border-radius: 0.8rem;
  background: var(--blue-100);
  color: var(--blue-900);
  padding: 0.8rem 1.1rem;
  cursor: pointer;
}

.content-shell {
  padding: 1.4rem 0 4rem;
}

.sideMenu-contentBody {
  display: grid;
  grid-template-columns: 28rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.content-grid {
  display: grid;
  grid-template-columns: 28rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.side-menu {
  background: #fff;
  border-radius: 0.8rem;
  box-shadow: none;
  border: 1px solid #e7edf5;
  padding: 1rem 0.8rem;
  position: sticky;
  top: 1.6rem;
}

.side-menu nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.side-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 0.4rem;
  cursor: pointer;
  text-align: left;
  padding: 0.8rem 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.25;
  border-left: 5px solid transparent;
  position: relative;
}

.side-menu button.active {
  background: transparent;
  color: var(--blue-800);
  font-weight: 700;
  border-left-color: #ffb300;
}

.menu-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.3rem;
  background: #edf5fb;
  color: var(--blue-800);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex: 0 0 auto;
}

.content-panel {
  background: #fff;
  border-radius: 1.8rem;
  box-shadow: var(--card-shadow);
  padding: 2.2rem;
}

.contentBody {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.content-title {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  color: var(--blue-900);
}

.section-subtitle {
  margin: 0 0 1.4rem;
  font-size: 1.8rem;
  color: var(--blue-900);
}

.evaluation-bar,
.toolbar-row,
.grid-cards,
.messages-list,
.absence-list,
.notes-list,
.subjects-list,
.schedule-grid,
.detail-grid,
.quick-grid {
  display: grid;
}

.evaluation-bar {
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.8rem;
}

.evaluacion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.evaluacion .name strong {
  font-size: 1.32rem;
  color: #1d1d1d;
}

.selector .select {
  border: 1px solid #d8e3ef;
  background: #fff;
  color: #284b6a;
  border-radius: 0.35rem;
  padding: 0.35rem 2rem 0.35rem 0.8rem;
  cursor: pointer;
  font-size: 1.05rem;
  min-width: 17rem;
  line-height: 1.3;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7a8ca0 50%), linear-gradient(135deg, #7a8ca0 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 3px), calc(100% - 9px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.selector .select:disabled {
  opacity: 1;
  cursor: default;
}

.selector .arrow {
  margin-left: 0.8rem;
}

.evaluation-name strong {
  font-size: 1.6rem;
}

.ghost-select {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
}

.tabs nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid #d9e6f2;
}

.tabs nav li {
  position: relative;
}

.tabs nav li.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--yellow-500);
}

.tabs nav button {
  border: 0;
  background: transparent;
  color: #0d4f89;
  padding: 0.55rem 0;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
}

.grid-cards,
.quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.quick-card,
.info-card {
  border: 1px solid #e2ebf3;
  border-radius: 1.4rem;
  padding: 1.6rem;
  background: #fff;
}

.quick-card h3,
.info-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.6rem;
}

.quick-card p,
.info-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.35rem;
  line-height: 1.5;
}

.subject-grade-list {
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
}

.resultados-content {
  display: grid;
  gap: 0;
  margin-top: 0.2rem;
  border-top: 1px solid #dfe9f3;
}

.calificacion {
  border-bottom: 1px solid #dfe9f3;
  padding: 0.95rem 0.6rem 0.95rem 0;
}

.resumen {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.columna-titulo {
  min-width: 0;
}

.titulo-con-flecha {
  display: block;
  font-size: 1.25rem;
  line-height: 1.35;
  color: #0d3f69;
}

.columna-nota {
  display: flex;
  align-items: center;
}

.nota {
  min-width: 2rem;
  min-height: auto;
  border-radius: 0;
  background: transparent;
  color: #0d3f69;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  font-weight: 700;
  font-size: 1.25rem;
}

.nota.fail {
  color: #0d3f69;
}

.nota.pass {
  color: #0d3f69;
}

.nota.empty {
  background: #bfd3ff;
  color: var(--blue-900);
  min-width: 2.2rem;
  min-height: 2.2rem;
  border-radius: 0.55rem;
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grade-item {
  border: 1px solid #e7eef5;
  border-radius: 1.4rem;
  padding: 1.4rem 1.6rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.grade-title {
  font-size: 1.45rem;
  line-height: 1.4;
}

.grade-badge {
  min-width: 5rem;
  min-height: 5rem;
  border-radius: 1.2rem;
  background: #edf4ff;
  color: var(--blue-900);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.9rem;
}

.grade-badge.fail {
  background: #ffe9e8;
  color: #b62424;
}

.grade-badge.pass {
  background: #e8f8df;
  color: var(--green-700);
}

.grade-badge.empty {
  background: #bfd3ff;
  color: var(--blue-900);
}

.legend {
  margin-top: 2rem;
  border-top: 1px solid #edf1f6;
  padding-top: 1.6rem;
}

.leyendas {
  margin-top: 1.35rem;
}

.leyendas h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.lista-legenda {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.item-leyenda {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 1rem;
  color: #1d1d1d;
}

.item-leyenda span {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.2rem;
  flex: 0 0 auto;
}

.legend h3 {
  margin: 0 0 1rem;
  font-size: 1.7rem;
}

.legend ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.legend li {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 1.35rem;
}

.legend-swatch {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.4rem;
  flex: 0 0 auto;
}

.schedule-grid {
  grid-template-columns: 12rem repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.schedule-cell {
  border-radius: 1rem;
  padding: 1rem;
  background: #f8fbfe;
  min-height: 7.8rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.schedule-cell.header {
  background: var(--blue-100);
  font-weight: 700;
  min-height: auto;
}

.schedule-cell.time {
  background: #fff8e1;
  font-weight: 700;
}

.schedule-cell.subject {
  border: 1px solid #e2edf7;
}

.subject-name {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.absence-list,
.notes-list,
.messages-list,
.subjects-list {
  gap: 1rem;
}

.absence-item,
.note-item,
.message-item,
.subject-item {
  border: 1px solid #e5edf5;
  border-radius: 1.2rem;
  padding: 1.4rem 1.5rem;
  background: #fff;
}

.absence-item,
.subject-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.message-item strong,
.note-item strong,
.absence-item strong,
.subject-item strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.45rem;
}

.message-item p,
.note-item p,
.absence-item p,
.subject-item p {
  margin: 0;
  font-size: 1.35rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
}

.chip.warning {
  background: var(--yellow-100);
  color: #9f7d06;
}

.chip.success {
  background: var(--green-100);
  color: var(--green-700);
}

.chip.info {
  background: #dbeeff;
  color: var(--blue-800);
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 1.4rem;
  padding: 2rem;
  background: #fbfdff;
}

.empty-state strong {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
}

.empty-state p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.35rem;
}

.filter-panel {
  margin-bottom: 1.6rem;
  display: grid;
  gap: 1rem;
  background: #e8eef9;
  border-radius: 0.6rem;
  padding: 1.2rem 1rem 1rem;
  position: relative;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 16rem));
  gap: 1rem;
  align-items: end;
}

.filter-field {
  display: grid;
  gap: 0.5rem;
}

.filter-field label {
  font-size: 1.2rem;
  color: #6c86a8;
  text-transform: uppercase;
  font-weight: 700;
}

.filter-field input,
.filter-field select {
  border: 1px solid #dce4ef;
  background: #fff;
  border-radius: 0.4rem;
  padding: 0.8rem 1rem;
  font-size: 1.35rem;
  color: var(--text);
}

.filter-tag {
  position: absolute;
  top: -0.8rem;
  left: 1rem;
  background: #f3f5f8;
  color: #7a8698;
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  font-size: 1.15rem;
}

.filter-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.primary-action,
.secondary-action,
.outline-action {
  border-radius: 0.4rem;
  font-size: 1.3rem;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
}

.primary-action {
  border: 1px solid #2b65ad;
  background: #3b72b5;
  color: #fff;
}

.secondary-action {
  border: 1px solid #b7c5d6;
  background: #fff;
  color: #3b72b5;
}

.outline-action {
  border: 1px solid #2b65ad;
  background: #3b72b5;
  color: #fff;
  margin-bottom: 1.2rem;
}

.absence-timestamp {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
}

.absence-timestamp span {
  font-size: 1.3rem;
  color: var(--text-soft);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.pagination-pages {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.page-button {
  min-width: 3.4rem;
  height: 3.4rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 0.8rem;
  cursor: pointer;
  font-size: 1.3rem;
}

.page-button.active {
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 700;
}

.results-total {
  font-size: 1.3rem;
  color: var(--text-soft);
}

.attendance-empty-list {
  border-top: 1px solid #eff4fb;
  margin-top: 0.8rem;
  padding-top: 1.2rem;
}

.attendance-empty-item {
  border-bottom: 1px solid #eff4fb;
  padding: 1.2rem 0;
  display: grid;
  gap: 0.6rem;
}

.attendance-empty-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 1.2rem;
  color: #6f88a7;
}

.attendance-empty-body {
  font-size: 1.3rem;
  color: var(--text-soft);
}

.attendance-empty-pagination {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.detail-card {
  border: 1px solid #e3ecf4;
  border-radius: 1.4rem;
  padding: 1.6rem;
}

.detail-card h3 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
  font-size: 1.35rem;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.detail-list span:last-child {
  color: var(--text-soft);
  text-align: right;
}

.footer {
  margin-top: 4rem;
  background: var(--blue-800);
  color: #fff;
  font-size: 1.3rem;
}

.footer-container {
  padding: 1rem 3rem;
}

.menu-container {
  display: grid;
  gap: 1rem;
}

.logo-container {
  display: flex;
  align-items: flex-end;
}

.menu-item {
  padding: 1rem;
}

.menu-item-title {
  font-size: 1.4rem;
}

.horizontal-separator {
  display: block;
  width: 2rem;
  height: 1.2px;
  background: #fff;
  margin-top: 1rem;
}

.submenu-container {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: baseline;
}

.submenu-item {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  padding: 0.3rem 0;
  cursor: pointer;
  text-align: left;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.vertical-separator {
  margin-right: 1rem;
}

.rrss {
  align-items: center;
}

.rrss .social {
  display: inline-grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 1.3rem;
  font-weight: 700;
}

.logout-button {
  border: 0;
  background: transparent;
  color: var(--blue-800);
  cursor: pointer;
  font-size: 1.3rem;
  text-decoration: underline;
}

@media (min-width: 900px) {
  .menu-container {
    grid-template-columns: 19% 1fr 1fr 1fr 1fr;
    grid-template-areas: "logo lista1 lista2 lista3 lista4";
  }

  .logo-container {
    grid-area: logo;
  }

  .menu-item:nth-child(2) {
    grid-area: lista1;
  }

  .menu-item:nth-child(3) {
    grid-area: lista2;
  }

  .menu-item:nth-child(4) {
    grid-area: lista3;
  }

  .menu-item:nth-child(5) {
    grid-area: lista4;
  }
}

@media (max-width: 1024px) {
  .sideMenu-contentBody,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .side-menu {
    position: static;
  }
}

@media (max-width: 800px) {
  .accessibility-banner {
    top: 10.6rem;
    font-size: 1.1rem;
    padding: 0.9rem 0.8rem;
  }

  .portal-card {
    min-height: auto;
    padding: 2.6rem 2rem 3rem;
  }

  .portal-brand {
    gap: 1rem;
  }

  .portal-brand-logo {
    width: 20rem;
  }

  .brand-copy .gov {
    font-size: 1.6rem;
  }

  .brand-copy .dept {
    font-size: 2.4rem;
  }

  .portal-symbol {
    width: 13.4rem;
    height: 13.4rem;
  }

  .portal-title h1 {
    font-size: 4.6rem;
  }

  .portal-title p {
    font-size: 2.4rem;
  }

  .main-header,
  .selectors-grid,
  .footer-links {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .main-header {
    align-items: flex-start;
  }

  .options {
    width: 100%;
    justify-content: space-between;
  }

  .toolbar-buttons {
    flex-wrap: wrap;
  }

  .student-strip {
    justify-content: flex-start;
    text-align: left;
  }

  .student-meta {
    justify-items: start;
  }

  .breadcrumb {
    display: flex;
  }

  .side-menu {
    display: none;
  }

  .side-menu.open {
    display: block;
  }

  .grid-cards,
  .quick-grid,
  .detail-grid,
  .schedule-grid,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .evaluacion,
  .resumen {
    grid-template-columns: 1fr;
  }

  .evaluacion {
    align-items: stretch;
  }

  .columna-nota {
    justify-content: flex-start;
  }

  .schedule-cell.header {
    display: none;
  }

  .menu-container {
    display: none;
  }

  .footer-links {
    align-items: center;
  }

  .footer-links .legal {
    flex-direction: column;
    align-items: center;
  }

  .vertical-separator {
    display: none;
  }
}
