.suite-alert{padding:14px 16px;border-radius:12px;margin:0 0 16px}.suite-alert.success{background:#e7f7ef;color:#116744}.suite-alert.danger{background:#ffe9eb;color:#9c2230}.suite-grid-two{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.suite-table-wrap{overflow:auto}.suite-table{width:100%;border-collapse:collapse;min-width:850px}.suite-table th,.suite-table td{padding:12px;border-bottom:1px solid #dde5f0;text-align:left;vertical-align:top}.suite-table th{font-size:.78rem;text-transform:uppercase;color:#61708e}.suite-actions{display:flex;gap:7px;flex-wrap:wrap}.suite-filter{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:18px}.suite-filter input,.suite-filter select{min-width:180px}.suite-status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:.75rem;font-weight:800;background:#edf0f4}.suite-status.on_time{background:#e6f6ef;color:#0e6547}.suite-status.tolerance{background:#fff3d9;color:#805100}.suite-status.late{background:#ffe5e8;color:#9e1f2d}.suite-status.graded{background:#e8f2ff;color:#24518b}.suite-version{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #dde5f0}.suite-grade{font-size:1.4rem;color:#0b2a66}.suite-notification{padding:14px;border-left:4px solid #6a7d99;background:#f5f7fb;border-radius:10px;margin-bottom:12px}.suite-notification.urgent{border-color:#c72f3c}.suite-notification.important{border-color:#d58a00}.student-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:32px;border-radius:24px;background:linear-gradient(135deg,#eef4ff,#fff);margin-bottom:26px}.student-average{min-width:180px;text-align:center;background:#08275f;color:#fff;border-radius:22px;padding:20px}.student-average small{display:block}.student-average strong{display:block;font-size:3rem}.student-subject-grade{font-size:2rem;color:#0b2a66}.student-activity{display:flex;justify-content:space-between;align-items:center;gap:20px}.professor-intro{padding:24px;border-radius:20px;background:#fff;box-shadow:0 12px 30px rgba(9,37,85,.08)}.subject-card-cover{padding:0;overflow:hidden}.subject-card-cover img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.subject-card-body{padding:20px}.header-user-links{display:flex;gap:10px;align-items:center}.header-user-links a{white-space:nowrap}@media(max-width:900px){.suite-grid-two{grid-template-columns:1fr}.student-hero,.student-activity{align-items:stretch;flex-direction:column}.student-average{width:auto}.suite-filter>*{width:100%}}

/* =====================================================
   Administración de alumnos
===================================================== */

.students-page-header {
  align-items: center;
}

.students-header-summary {
  display: flex;
  align-items: center;
}

.students-summary-item {
  min-width: 170px;
  padding: 16px 20px;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.students-summary-item strong {
  display: block;
  color: #0b2a66;
  font-size: 1.8rem;
  line-height: 1;
}

.students-summary-item span {
  display: block;
  margin-top: 6px;
  color: #61708e;
  font-size: 0.78rem;
  font-weight: 700;
}

.students-management-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(290px, 0.65fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 20px;
}

.student-create-panel,
.student-import-panel {
  margin: 0;
}

.student-import-column {
  display: grid;
  gap: 14px;
}

.student-panel-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.student-panel-heading h2 {
  margin: 0;
  color: #14213d;
  font-size: 1.18rem;
}

.student-panel-heading p {
  margin: 4px 0 0;
  color: #61708e;
  font-size: 0.86rem;
}

.student-panel-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: #0b2a66;
  font-size: 1.25rem;
  font-weight: 900;
}

.student-panel-icon.excel {
  background: #188451;
  font-size: 0.82rem;
}

.student-primary-action {
  width: 100%;
  margin-top: 4px;
}

.student-import-panel {
  padding-bottom: 22px;
}

.student-import-instructions {
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid #d9e5f4;
  border-radius: 13px;
  background: #f6f9fd;
}

.student-import-instructions > strong {
  display: block;
  margin-bottom: 10px;
  color: #14213d;
  font-size: 0.84rem;
}

.student-import-instructions small {
  display: block;
  margin-top: 10px;
  color: #61708e;
  line-height: 1.45;
}

.student-column-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.student-column-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #24518b;
  background: #e8f2ff;
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 750;
}

.compact-file-field input[type="file"] {
  min-height: auto;
  padding: 11px;
}

.student-access-note {
  padding: 15px 17px;
  border: 1px solid #d9e5f4;
  border-left: 4px solid #0b2a66;
  border-radius: 13px;
  background: #f6f9fd;
}

.student-access-note strong {
  display: block;
  margin-bottom: 5px;
  color: #14213d;
  font-size: 0.86rem;
}

.student-access-note p {
  margin: 0;
  color: #61708e;
  font-size: 0.78rem;
  line-height: 1.5;
}

.students-list-panel {
  padding: 0;
  overflow: hidden;
}

.students-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid #e1e8f2;
}

.students-list-header h2 {
  margin: 4px 0;
  color: #14213d;
  font-size: 1.25rem;
}

.students-list-header p {
  margin: 0;
  color: #61708e;
  font-size: 0.86rem;
}

.students-search-box {
  width: min(100%, 340px);
}

.students-search-box input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #ccd9e9;
  border-radius: 12px;
  background: #fff;
}

.students-desktop-table {
  width: 100%;
  overflow-x: auto;
}

.students-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.students-table th,
.students-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #e2e9f2;
  text-align: left;
  vertical-align: middle;
}

.students-table th {
  color: #61708e;
  background: #f8fafd;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.students-table th:nth-child(1) {
  width: 23%;
}

.students-table th:nth-child(2) {
  width: 11%;
}

.students-table th:nth-child(3) {
  width: 7%;
}

.students-table th:nth-child(4) {
  width: 17%;
}

.students-table th:nth-child(5) {
  width: 7%;
}

.students-table th:nth-child(6) {
  width: 13%;
}

.students-table th:nth-child(7) {
  width: 22%;
}

.students-table tbody tr:hover {
  background: #f9fbfe;
}

.student-identity-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.student-identity-cell > div:last-child {
  min-width: 0;
}

.student-identity-cell strong {
  display: block;
  overflow-wrap: anywhere;
  color: #14213d;
  font-size: 0.9rem;
}

.student-identity-cell small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #61708e;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0b2a66;
  font-size: 0.95rem;
  font-weight: 850;
}

.student-account-number {
  color: #273a5c;
  font-family: monospace;
  font-size: 0.84rem;
  font-weight: 700;
}

.student-subjects-text {
  max-width: 190px;
  color: #273a5c;
  font-size: 0.78rem;
  line-height: 1.4;
}

.student-submission-count {
  min-width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #24518b;
  background: #e8f2ff;
  font-size: 0.78rem;
  font-weight: 850;
}

.student-status-stack {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.student-status-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
}

.student-status-badge.active {
  color: #0e6547;
  background: #e6f6ef;
}

.student-status-badge.inactive {
  color: #9e1f2d;
  background: #ffe5e8;
}

.student-password-state {
  color: #8a5c08;
  font-size: 0.65rem;
  font-weight: 700;
}

.student-password-state.ready {
  color: #52708f;
}

.student-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.student-row-actions form {
  display: contents;
  margin: 0;
}

.student-action-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.student-action-button.edit {
  color: #24518b;
  background: #e8f2ff;
}

.student-action-button.toggle {
  color: #273a5c;
  border-color: #ccd9e9;
  background: #fff;
}

.student-action-button.reset {
  grid-column: 1 / -1;
  color: #fff;
  background: #0b2a66;
}

.student-action-button:hover {
  filter: brightness(0.96);
}

.students-mobile-list {
  display: none;
}

.student-mobile-card {
  padding: 18px;
  border-bottom: 1px solid #e2e9f2;
}

.student-mobile-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-mobile-heading h3 {
  margin: 0;
  color: #14213d;
  font-size: 1rem;
}

.student-mobile-heading p {
  margin: 4px 0 0;
  color: #61708e;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.student-mobile-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: 16px 0;
}

.student-mobile-details div {
  padding: 10px;
  border-radius: 10px;
  background: #f7f9fc;
}

.student-mobile-details dt {
  color: #61708e;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.student-mobile-details dd {
  margin: 4px 0 0;
  color: #273a5c;
  font-size: 0.78rem;
  line-height: 1.4;
}

.student-mobile-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.student-mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.student-mobile-actions form {
  display: contents;
}

.student-mobile-actions .reset {
  grid-column: 1 / -1;
}

.students-no-results {
  padding: 28px;
  color: #61708e;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 1180px) {
  .students-management-grid {
    grid-template-columns: 1fr 0.75fr;
  }

  .students-table th:nth-child(4),
  .students-table td:nth-child(4) {
    display: none;
  }

  .students-table th:nth-child(1) {
    width: 27%;
  }

  .students-table th:nth-child(7) {
    width: 26%;
  }
}

@media (max-width: 900px) {
  .students-page-header,
  .students-list-header {
    align-items: stretch;
    flex-direction: column;
  }

  .students-header-summary,
  .students-search-box {
    width: 100%;
  }

  .students-summary-item {
    width: 100%;
    box-sizing: border-box;
  }

  .students-management-grid {
    grid-template-columns: 1fr;
  }

  .students-desktop-table {
    display: none;
  }

  .students-mobile-list {
    display: block;
  }
}

@media (max-width: 560px) {
  .students-list-header {
    padding: 18px;
  }

  .student-mobile-details {
    grid-template-columns: 1fr;
  }

  .student-mobile-actions {
    grid-template-columns: 1fr;
  }

  .student-mobile-actions .reset {
    grid-column: auto;
  }

  .student-action-button {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
  }
}

/* =====================================================
   Dashboard del profesor
===================================================== */

.dashboard-stat-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.dashboard-stat-card {
  position: relative;
  min-height: 145px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid #dce5f2;
  border-radius: 18px;
  color: #14213d;
  background: #fff;
  box-shadow:
    0 12px 28px rgba(12, 42, 94, 0.07);
  text-decoration: none;
}

.dashboard-stat-card:hover {
  transform: translateY(-2px);
}

.dashboard-stat-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #0b2a66;
  background: #e8f2ff;
  font-size: 1.15rem;
  font-weight: 900;
}

.dashboard-stat-card strong {
  font-size: 2.2rem;
  line-height: 1;
  color: #0b2a66;
}

.dashboard-stat-card > span:last-child {
  margin-top: 7px;
  color: #61708e;
  font-size: 0.86rem;
  font-weight: 750;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(320px, 0.8fr);
  gap: 18px;
}

.dashboard-panel {
  overflow: hidden;
  border: 1px solid #dce5f2;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 12px 28px rgba(12, 42, 94, 0.06);
}

.dashboard-panel-header {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #e5ebf3;
}

.dashboard-panel-header h2 {
  margin: 4px 0 0;
  color: #14213d;
  font-size: 1.15rem;
}

.dashboard-panel-header > a {
  color: #1769c2;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-feed {
  display: grid;
}

.dashboard-feed-item {
  display: grid;
  grid-template-columns:
    42px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid #edf1f6;
}

.dashboard-feed-item:last-child {
  border-bottom: 0;
}

.dashboard-feed-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0b2a66;
  font-weight: 850;
}

.dashboard-feed-content {
  min-width: 0;
}

.dashboard-feed-content strong,
.dashboard-feed-content span,
.dashboard-feed-content small {
  display: block;
}

.dashboard-feed-content strong {
  color: #14213d;
  font-size: 0.86rem;
}

.dashboard-feed-content span {
  margin-top: 2px;
  color: #2d4266;
  font-size: 0.76rem;
}

.dashboard-feed-content small {
  margin-top: 3px;
  color: #7b879c;
  font-size: 0.67rem;
}

.dashboard-status {
  padding: 5px 8px;
  border-radius: 999px;
  color: #24518b;
  background: #e8f2ff;
  font-size: 0.65rem;
  font-weight: 800;
}

.dashboard-deadline-list {
  display: grid;
}

.dashboard-deadline-item {
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #edf1f6;
}

.dashboard-deadline-item:last-child {
  border-bottom: 0;
}

.dashboard-deadline-item strong,
.dashboard-deadline-item span,
.dashboard-deadline-item small {
  display: block;
}

.dashboard-deadline-item strong {
  color: #14213d;
  font-size: 0.86rem;
}

.dashboard-deadline-item > div:first-child span {
  margin-top: 3px;
  color: #526580;
  font-size: 0.74rem;
}

.dashboard-deadline-item small {
  margin-top: 5px;
  color: #7b879c;
  font-size: 0.67rem;
}

.dashboard-deadline-stats {
  min-width: 100px;
  text-align: right;
}

.dashboard-deadline-stats span {
  margin-bottom: 5px;
  color: #61708e;
  font-size: 0.67rem;
}

.dashboard-deadline-stats .pending {
  color: #a26300;
}

.dashboard-deadline-stats .complete {
  color: #11734f;
}

@media (max-width: 1050px) {
  .dashboard-stat-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dashboard-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .dashboard-stat-card {
    min-height: 125px;
    padding: 16px;
  }

  .dashboard-stat-card strong {
    font-size: 1.8rem;
  }

  .dashboard-feed-item {
    grid-template-columns:
      38px minmax(0,1fr);
  }

  .dashboard-status {
    grid-column: 2;
    justify-self: start;
  }

  .dashboard-deadline-item {
    flex-direction: column;
  }

  .dashboard-deadline-stats {
    display: flex;
    gap: 10px;
    text-align: left;
  }
}


/* =====================================================
   Panel del alumno + notificaciones
===================================================== */

.student-hero-new {
  position: relative;
  overflow: visible;
}

.student-hero-copy {
  flex: 1;
  min-width: 0;
}

.student-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.student-notification-wrapper {
  position: relative;
  z-index: 50;
}

.student-notification-button {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #d4e0ef;
  border-radius: 16px;
  color: #0b2a66;
  background: #fff;
  box-shadow:
    0 8px 22px rgba(11, 42, 102, .09);
  cursor: pointer;
}

.student-notification-button:hover {
  background: #f5f9ff;
}

.student-bell-icon {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.student-notification-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 3px solid #eef4ff;
  border-radius: 999px;
  color: #fff;
  background: #d92d3f;
  font-size: .65rem;
  font-weight: 900;
  line-height: 1;
}

.student-notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  max-height: 510px;
  overflow: hidden;
  border: 1px solid #dbe5f1;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 22px 55px rgba(8, 39, 95, .20);
}

.student-notification-panel[hidden] {
  display: none !important;
}

.student-notification-header {
  min-height: 66px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e5ebf3;
  background: #fff;
}

.student-notification-header > div {
  min-width: 0;
}

.student-notification-header strong {
  display: block;
  color: #14213d;
  font-size: .95rem;
}

.student-notification-header span {
  display: block;
  margin-top: 2px;
  color: #73809a;
  font-size: .68rem;
}

.student-notification-header form {
  margin: 0;
}

.student-mark-all {
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  color: #1769c2;
  background: #eef5ff;
  font-size: .68rem;
  font-weight: 800;
  cursor: pointer;
}

.student-notification-list {
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.student-notification-entry {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #edf1f6;
}

.student-notification-entry:last-child {
  border-bottom: 0;
}

.student-notification-entry > button {
  width: 100%;
  padding: 13px 14px;
  display: grid;
  grid-template-columns:
    38px minmax(0, 1fr) 8px;
  align-items: start;
  gap: 10px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.student-notification-entry.unread {
  background: #f5f9ff;
}

.student-notification-entry.read {
  background: #fff;
}

.student-notification-entry:hover {
  background: #eef5ff;
}

.student-notification-entry.urgent {
  box-shadow:
    inset 3px 0 0 #d92d3f;
}

.student-notification-entry.important {
  box-shadow:
    inset 3px 0 0 #d58a00;
}

.student-notification-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #0b2a66;
  background: #e8f2ff;
  font-size: .92rem;
  font-weight: 900;
}

.student-notification-content {
  min-width: 0;
}

.student-notification-content strong,
.student-notification-content span,
.student-notification-content small {
  display: block;
}

.student-notification-content strong {
  color: #14213d;
  font-size: .8rem;
  line-height: 1.3;
}

.student-notification-content span {
  margin-top: 3px;
  overflow: hidden;
  color: #526580;
  font-size: .72rem;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.student-notification-content small {
  margin-top: 5px;
  color: #8b96a9;
  font-size: .61rem;
}

.student-unread-dot {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: #1769c2;
}

.student-notification-empty {
  padding: 34px 20px;
  text-align: center;
}

.student-notification-empty > span {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #11734f;
  background: #e7f7ef;
  font-weight: 900;
}

.student-notification-empty strong {
  display: block;
  color: #14213d;
}

.student-notification-empty p {
  max-width: 260px;
  margin: 6px auto 0;
  color: #73809a;
  font-size: .75rem;
  line-height: 1.5;
}

.student-grade-card {
  position: relative;
}

.student-grade-label {
  color: #71809a;
  font-size: .67rem;
  font-weight: 800;
  text-transform: uppercase;
}

.student-grade-card h3 {
  margin-bottom: 8px;
}

.student-grade-card small {
  display: block;
  margin-top: 5px;
  color: #71809a;
}

.student-activity-card {
  border: 1px solid #e0e7f1;
}

.student-activity-main {
  flex: 1;
  min-width: 0;
}

.student-activity-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.student-activity-state {
  padding: 5px 8px;
  border-radius: 999px;
  color: #526580;
  background: #eef1f5;
  font-size: .65rem;
  font-weight: 800;
}

.student-activity-state.on_time {
  color: #11734f;
  background: #e7f7ef;
}

.student-activity-state.tolerance {
  color: #8a5c08;
  background: #fff3d9;
}

.student-activity-state.late,
.student-activity-state.not_submitted {
  color: #a52331;
  background: #ffe6e9;
}

.student-activity-meta {
  margin-top: 12px;
  color: #6c7890;
  font-size: .74rem;
}

.student-activity-action {
  flex: 0 0 auto;
}

.student-grade-result {
  min-width: 120px;
  padding: 13px;
  border-radius: 14px;
  color: #fff;
  background: #08275f;
  text-align: center;
}

.student-grade-result small {
  display: block;
  opacity: .75;
}

.student-grade-result strong {
  display: block;
  margin-top: 2px;
  font-size: 1.45rem;
}

.student-grade-result strong span {
  font-size: .75rem;
  opacity: .7;
}

.student-submitted-check {
  padding: 10px 13px;
  border-radius: 11px;
  color: #11734f;
  background: #e7f7ef;
  font-size: .75rem;
  font-weight: 800;
}

.student-closed-label {
  padding: 9px 12px;
  border-radius: 10px;
  color: #9a2631;
  background: #ffe7ea;
  font-size: .72rem;
  font-weight: 800;
}

.student-feedback {
  max-width: 260px;
  margin-top: 9px;
  color: #526580;
  font-size: .7rem;
  line-height: 1.4;
}

@media (max-width: 900px) {

  .student-hero-actions {
    width: 100%;
    align-items: stretch;
  }

  .student-average {
    flex: 1;
  }

  .student-notification-wrapper {
    align-self: flex-start;
  }

  .student-notification-panel {
    right: auto;
    left: 0;
  }

}

@media (max-width: 600px) {

  .student-hero-actions {
    display: grid;
    grid-template-columns:
      auto minmax(0, 1fr);
  }

  .student-notification-panel {
    position: fixed;
    top: 76px;
    left: 14px;
    right: 14px;
    width: auto;
    max-height: calc(100vh - 100px);
    z-index: 200;
  }

  .student-notification-list {
    max-height: calc(100vh - 175px);
  }

  .student-average {
    min-width: 0;
  }

  .student-activity-card {
    align-items: stretch;
  }

  .student-activity-action {
    width: 100%;
  }

  .student-activity-action .button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

}

/* =====================================================
   Ajustes móviles del panel del alumno
===================================================== */

@media (max-width: 760px) {

  .student-hero-new {
    padding: 22px 18px;
  }

  .student-hero-copy h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.05;
  }

  .student-hero-copy p {
    font-size: .88rem;
    line-height: 1.5;
  }

  .student-hero-actions {
    margin-top: 8px;
    grid-template-columns:
      54px minmax(0, 1fr);
    align-items: center;
  }

  .student-notification-button {
    width: 52px;
    height: 52px;
  }

  .student-bell-icon {
    font-size: 1.25rem;
  }

  .student-average {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .student-average strong {
    font-size: 2.45rem;
  }

  .student-dashboard-section {
    margin-top: 26px;
  }

  .student-grade-grid {
    grid-template-columns: 1fr;
  }

  .student-grade-card {
    width: 100%;
    box-sizing: border-box;
  }

}


/* =====================================================
   Dashboard alumno V3
===================================================== */

.student-v3-hero {
  position: relative;
  margin: 8px 0 42px;
  padding: 34px;
  overflow: visible;
  border: 1px solid #dce6f3;
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 92% 5%,
      rgba(39, 110, 241, .12),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #f8fbff 0%,
      #ffffff 58%,
      #f1f6ff 100%
    );
  box-shadow:
    0 22px 60px rgba(16, 48, 96, .08);
}

.student-v3-hero-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.student-v3-copy {
  max-width: 700px;
}

.student-v3-eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: #37618e;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.student-v3-eyebrow.attention {
  color: #a45d08;
}

.student-v3-copy h1 {
  margin: 0;
  color: #10213d;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.student-v3-copy p {
  max-width: 610px;
  margin: 14px 0 0;
  color: #60708a;
  font-size: .96rem;
  line-height: 1.65;
}

.student-v3-bell {
  flex: 0 0 auto;
}

.student-v3-summary {
  display: grid;
  grid-template-columns:
    minmax(210px, 1.25fr)
    repeat(3, minmax(135px, .75fr));
  gap: 12px;
  margin-top: 30px;
}

.student-v3-summary-card {
  min-height: 110px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #e0e8f3;
  border-radius: 19px;
  background: rgba(255,255,255,.78);
}

.student-v3-summary-card.primary {
  display: block;
  color: #fff;
  border: 0;
  background:
    linear-gradient(
      145deg,
      #071d42,
      #0b3679
    );
  box-shadow:
    0 14px 30px rgba(7, 36, 85, .16);
}

.student-v3-summary-card.primary span,
.student-v3-summary-card.primary small {
  display: block;
}

.student-v3-summary-card.primary span {
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 700;
}

.student-v3-summary-card.primary strong {
  display: block;
  margin: 5px 0 1px;
  font-size: 2.55rem;
  font-weight: 760;
  line-height: 1;
}

.student-v3-summary-card.primary small {
  color: rgba(255,255,255,.58);
  font-size: .65rem;
}

.student-v3-summary-card:not(.primary) strong {
  display: block;
  color: #14213d;
  font-size: 1.65rem;
  line-height: 1;
}

.student-v3-summary-card:not(.primary) span {
  display: block;
  margin-top: 5px;
  color: #6a7890;
  font-size: .73rem;
}

.student-v3-summary-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: .92rem;
  font-weight: 900;
}

.student-v3-summary-icon.pending {
  color: #8a5a08;
  background: #fff0cf;
}

.student-v3-summary-icon.delivered {
  color: #17704f;
  background: #e3f6ed;
}

.student-v3-summary-icon.graded {
  color: #24518b;
  background: #e8f2ff;
}


/* Secciones */

.student-v3-section {
  margin: 0 0 46px;
}

.student-v3-section-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.student-v3-section-heading h2 {
  margin: 0;
  color: #14213d;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -.025em;
}

.student-v3-section-heading p {
  margin: 6px 0 0;
  color: #748198;
  font-size: .82rem;
  line-height: 1.5;
}

.student-v3-section-counter {
  padding: 8px 11px;
  border-radius: 999px;
  color: #8b5b0b;
  background: #fff3dd;
  font-size: .68rem;
  font-weight: 800;
}


/* Requiere atención */

.student-v3-attention-list {
  display: grid;
  gap: 11px;
}

.student-v3-attention-card {
  position: relative;
  padding: 20px 20px 20px 25px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
  overflow: hidden;
  border: 1px solid #e0e7f0;
  border-radius: 19px;
  background: #fff;
  box-shadow:
    0 8px 26px rgba(20, 44, 81, .045);
}

.student-v3-attention-marker {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #e0a01a;
}

.student-v3-attention-content {
  min-width: 0;
}

.student-v3-attention-top,
.student-v3-activity-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.student-v3-attention-card h3,
.student-v3-activity-card h3 {
  margin: 10px 0 0;
  color: #17243b;
  font-size: 1.02rem;
  line-height: 1.35;
}

.student-v3-attention-card p {
  max-width: 760px;
  margin: 7px 0 0;
  color: #66758c;
  font-size: .79rem;
  line-height: 1.5;
}

.student-v3-deadline {
  margin-top: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #738096;
  font-size: .7rem;
}

.student-v3-deadline strong {
  margin-left: 3px;
  color: #44546b;
}

.student-v3-subject-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #27598d;
  background: #edf5ff;
  font-size: .64rem;
  font-weight: 800;
}

.student-v3-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #526580;
  background: #eef1f5;
  font-size: .62rem;
  font-weight: 800;
}

.student-v3-status.pending {
  color: #885b0d;
  background: #fff3d9;
}

.student-v3-status.on_time,
.student-v3-status.graded {
  color: #11704e;
  background: #e6f7ef;
}

.student-v3-status.tolerance {
  color: #885b0d;
  background: #fff3d9;
}

.student-v3-status.late,
.student-v3-status.not_submitted {
  color: #9d2935;
  background: #ffe7ea;
}


/* Botones */

.student-v3-primary-button,
.student-v3-secondary-button {
  min-height: 43px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 800;
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.student-v3-primary-button {
  color: #fff;
  background: #0b3474;
  box-shadow:
    0 8px 18px rgba(11, 52, 116, .15);
}

.student-v3-secondary-button {
  color: #174c88;
  border: 1px solid #cfddeb;
  background: #f7faff;
}

.student-v3-primary-button:hover,
.student-v3-secondary-button:hover {
  transform: translateY(-1px);
}

.student-v3-primary-button:hover {
  background: #0d3f8c;
}

.student-v3-secondary-button:hover {
  background: #edf5ff;
}


/* Promedios */

.student-v3-grade-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.student-v3-grade-card {
  padding: 20px;
  border: 1px solid #dee7f1;
  border-radius: 18px;
  background: #fff;
}

.student-v3-grade-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.student-v3-grade-top > div {
  min-width: 0;
}

.student-v3-grade-top span {
  display: block;
  margin-bottom: 5px;
  color: #8591a5;
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.student-v3-grade-top h3 {
  margin: 0;
  color: #17243b;
  font-size: .9rem;
}

.student-v3-grade-top > strong {
  color: #0b3474;
  font-size: 1.7rem;
  line-height: 1;
}

.student-v3-progress {
  height: 6px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f6;
}

.student-v3-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #174f91,
      #2b78c9
    );
}

.student-v3-grade-card > small {
  display: block;
  margin-top: 8px;
  color: #8290a5;
  font-size: .64rem;
}


/* Actividades */

.student-v3-activity-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.student-v3-activity-summary span {
  padding: 7px 10px;
  border: 1px solid #e0e7f0;
  border-radius: 10px;
  color: #748198;
  background: #fff;
  font-size: .66rem;
}

.student-v3-activity-summary strong {
  color: #19304f;
}

.student-v3-activity-list {
  display: grid;
  gap: 10px;
}

.student-v3-activity-card {
  padding: 19px 20px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(150px, auto);
  align-items: center;
  gap: 24px;
  border: 1px solid #e0e7ef;
  border-radius: 18px;
  background: #fff;
  transition:
    border-color .16s ease,
    box-shadow .16s ease;
}

.student-v3-activity-card:hover {
  border-color: #cbd9e9;
  box-shadow:
    0 9px 25px rgba(22, 51, 91, .055);
}

.student-v3-activity-main {
  min-width: 0;
}

.student-v3-activity-description {
  max-width: 800px;
  margin: 7px 0 0;
  color: #66758c;
  font-size: .76rem;
  line-height: 1.5;
}

.student-v3-activity-meta {
  margin-top: 12px;
  color: #78859a;
  font-size: .69rem;
}

.student-v3-activity-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.student-v3-activity-meta strong {
  color: #56657b;
}

.student-v3-activity-action {
  min-width: 145px;
}

.student-v3-grade-result {
  min-width: 132px;
  padding: 13px 15px;
  border-radius: 14px;
  color: #fff;
  background:
    linear-gradient(
      145deg,
      #092657,
      #0c3b83
    );
  text-align: center;
}

.student-v3-grade-result small,
.student-v3-grade-result span {
  display: block;
  color: rgba(255,255,255,.65);
}

.student-v3-grade-result small {
  font-size: .61rem;
}

.student-v3-grade-result strong {
  display: block;
  margin: 2px 0;
  font-size: 1.6rem;
  line-height: 1;
}

.student-v3-grade-result span {
  font-size: .58rem;
}

.student-v3-feedback {
  max-width: 220px;
  margin-top: 9px;
}

.student-v3-feedback strong {
  color: #536177;
  font-size: .63rem;
}

.student-v3-feedback p {
  margin: 3px 0 0;
  color: #7b8799;
  font-size: .66rem;
  line-height: 1.4;
}

.student-v3-received {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 12px;
  color: #14684a;
  background: #e8f7f0;
}

.student-v3-received > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #23815e;
  font-size: .75rem;
  font-weight: 900;
}

.student-v3-received strong,
.student-v3-received small {
  display: block;
}

.student-v3-received strong {
  font-size: .69rem;
}

.student-v3-received small {
  margin-top: 2px;
  color: #5e8576;
  font-size: .58rem;
}

.student-v3-closed {
  display: inline-block;
  padding: 9px 11px;
  border-radius: 10px;
  color: #972c36;
  background: #ffe9eb;
  font-size: .67rem;
  font-weight: 800;
}


/* Empty */

.student-v3-empty {
  padding: 38px 22px;
  border: 1px dashed #d7e1ed;
  border-radius: 18px;
  background: #fbfcfe;
  text-align: center;
}

.student-v3-empty-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 11px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #315f91;
  background: #eaf3fd;
  font-weight: 850;
}

.student-v3-empty strong {
  display: block;
  color: #21304a;
  font-size: .85rem;
}

.student-v3-empty p {
  max-width: 390px;
  margin: 6px auto 0;
  color: #7c899d;
  font-size: .72rem;
  line-height: 1.5;
}


/* Tablet */

@media (max-width: 900px) {

  .student-v3-summary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .student-v3-summary-card.primary {
    grid-column: 1 / -1;
  }

  .student-v3-grade-grid {
    grid-template-columns: 1fr;
  }

}


/* Móvil */

@media (max-width: 680px) {

  .student-v3-hero {
    margin-top: 2px;
    margin-bottom: 32px;
    padding: 22px 17px;
    border-radius: 22px;
  }

  .student-v3-hero-main {
    gap: 12px;
  }

  .student-v3-copy h1 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .student-v3-copy p {
    font-size: .82rem;
    line-height: 1.5;
  }

  .student-v3-bell {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .student-v3-summary {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
  }

  .student-v3-summary-card {
    min-height: 88px;
    padding: 12px 9px;
    display: block;
    text-align: center;
  }

  .student-v3-summary-card.primary {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 16px;
    text-align: left;
  }

  .student-v3-summary-card.primary strong {
    font-size: 2.25rem;
  }

  .student-v3-summary-icon {
    width: 31px;
    height: 31px;
    margin: 0 auto 7px;
    border-radius: 9px;
    font-size: .7rem;
  }

  .student-v3-summary-card:not(.primary) strong {
    font-size: 1.35rem;
  }

  .student-v3-summary-card:not(.primary) span {
    font-size: .6rem;
  }

  .student-v3-section {
    margin-bottom: 35px;
  }

  .student-v3-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .student-v3-section-heading p {
    font-size: .75rem;
  }

  .student-v3-attention-card,
  .student-v3-activity-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .student-v3-attention-card {
    padding: 18px 16px 18px 20px;
  }

  .student-v3-attention-action,
  .student-v3-activity-action {
    width: 100%;
    min-width: 0;
  }

  .student-v3-primary-button,
  .student-v3-secondary-button {
    width: 100%;
    box-sizing: border-box;
  }

  .student-v3-grade-result,
  .student-v3-feedback {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }

  .student-v3-activity-summary {
    width: 100%;
  }

  .student-v3-activity-summary span {
    flex: 1;
    text-align: center;
  }

}


/* Móvil pequeño */

@media (max-width: 420px) {

  .student-v3-hero {
    padding: 19px 14px;
  }

  .student-v3-copy h1 {
    font-size: 1.72rem;
  }

  .student-v3-copy p {
    margin-top: 10px;
    font-size: .77rem;
  }

  .student-v3-summary {
    gap: 6px;
  }

  .student-v3-summary-card {
    padding: 10px 6px;
  }

  .student-v3-summary-card:not(.primary) span {
    font-size: .55rem;
  }

  .student-v3-attention-card h3,
  .student-v3-activity-card h3 {
    font-size: .94rem;
  }

}



/* =====================================================
   Navegación privada del alumno
===================================================== */

.student-menu-label,
.student-mobile-profile {
  display: none;
}

.student-nav-logout {
  margin: 0;
}

.student-nav-logout button {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 11px;
  color: #fff;
  background: rgba(255,255,255,.09);
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    background .16s ease,
    border-color .16s ease;
}

.student-nav-logout button:hover {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.15);
}


/* Página privada de materia */

.student-subject-page {
  padding-bottom: 50px;
}

.student-back-link {
  margin: 3px 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #315f91;
  font-size: .76rem;
  font-weight: 750;
  text-decoration: none;
}

.student-back-link:hover {
  text-decoration: underline;
}

.student-subject-hero {
  padding: 30px;
  margin-bottom: 34px;
  border: 1px solid #dce5f1;
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      #f8fbff,
      #eef4ff
    );
}

.student-subject-hero h1 {
  margin: 0;
  color: #112441;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.04em;
}

.student-subject-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #65758c;
  line-height: 1.6;
}

.student-subject-section {
  margin-bottom: 42px;
}

.student-private-announcements,
.student-private-resource-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0,1fr));
  gap: 13px;
}

.student-private-announcement,
.student-private-resource {
  padding: 20px;
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  background: #fff;
}

.student-private-announcement.important {
  border-left: 4px solid #d59a24;
}

.student-private-announcement.urgent {
  border-left: 4px solid #cf3e4b;
}

.student-private-announcement h3,
.student-private-resource h3 {
  margin: 10px 0 6px;
  color: #17243b;
  font-size: 1rem;
}

.student-private-announcement p,
.student-private-resource p {
  margin: 0 0 13px;
  color: #66758c;
  font-size: .78rem;
  line-height: 1.55;
}

.student-private-announcement small {
  color: #8792a4;
  font-size: .64rem;
}

.student-announcement-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.student-resource-type {
  display: inline-flex;
  min-height: 25px;
  padding: 4px 9px;
  align-items: center;
  border-radius: 999px;
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.student-resource-type.material {
  color: #255b91;
  background: #e9f3ff;
}

.student-resource-type.practice {
  color: #6f4b0a;
  background: #fff1d4;
}

.student-resource-type.activity {
  color: #60489c;
  background: #f0ebff;
}

.student-resource-type.announcement {
  color: #17664b;
  background: #e7f6ef;
}


@media (max-width: 760px) {

  .student-main-menu {
    padding:
      28px 20px
      max(28px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .student-mobile-profile {
    padding: 14px;
    margin-bottom: 23px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    background: rgba(255,255,255,.07);
  }

  .student-mobile-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #08275f;
    background: #fff;
    font-weight: 900;
  }

  .student-mobile-profile strong,
  .student-mobile-profile span {
    display: block;
  }

  .student-mobile-profile strong {
    color: #fff;
    font-size: .78rem;
  }

  .student-mobile-profile span {
    margin-top: 3px;
    color: rgba(255,255,255,.58);
    font-size: .63rem;
  }

  .student-menu-label {
    display: block;
    margin: 17px 8px 7px;
    color: rgba(255,255,255,.43);
    font-size: .59rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
  }

  .student-main-menu .student-menu-link {
    min-height: 44px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 10px;
    font-size: .82rem;
  }

  .student-main-menu .student-menu-link:hover {
    background: rgba(255,255,255,.08);
  }

  .student-main-menu .student-menu-link > span {
    width: 23px;
    color: rgba(255,255,255,.65);
    text-align: center;
  }

  .student-nav-logout {
    margin-top: auto;
    padding-top: 26px;
  }

  .student-nav-logout button {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 0 15px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
  }

  .student-private-announcements,
  .student-private-resource-grid {
    grid-template-columns: 1fr;
  }

  .student-subject-hero {
    padding: 23px 18px;
    border-radius: 20px;
  }

}


/* =====================================================
   Detalle privado de notificaciones
===================================================== */

.student-notification-detail-page {
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.student-notification-detail-card {
  overflow: hidden;
  border: 1px solid #dce5f0;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 18px 50px rgba(16, 43, 82, .07);
}

.student-notification-detail-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e7edf4;
  background: #f8fafd;
}

.student-notification-detail-header > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.student-notification-detail-header > small {
  color: #8490a3;
  font-size: .67rem;
}

.student-notification-type {
  min-height: 27px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #365d88;
  background: #eaf3fc;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.student-notification-type.type-material {
  color: #235b92;
  background: #e7f2ff;
}

.student-notification-type.type-practice {
  color: #7b5209;
  background: #fff1d2;
}

.student-notification-type.type-activity,
.student-notification-type.type-activity_reminder {
  color: #60449a;
  background: #efeaff;
}

.student-notification-type.type-grade {
  color: #146a4b;
  background: #e5f6ed;
}

.student-notification-type.type-announcement {
  color: #9a5b08;
  background: #fff2d8;
}

.student-notification-detail-body {
  padding: 30px;
}

.student-notification-detail-body h1 {
  max-width: 760px;
  margin: 0;
  color: #10213d;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.student-notification-message {
  max-width: 760px;
  margin: 16px 0 0;
  color: #617089;
  font-size: .9rem;
  line-height: 1.65;
}

.student-notification-related {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid #e0e7f0;
  border-radius: 17px;
  background: #f8fafd;
}

.student-notification-related-head span,
.student-notification-related-head strong {
  display: block;
}

.student-notification-related-head span {
  color: #8290a4;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.student-notification-related-head strong {
  margin-top: 4px;
  color: #17243b;
  font-size: 1rem;
}

.student-notification-related > p {
  margin: 10px 0 0;
  color: #68768d;
  font-size: .78rem;
  line-height: 1.55;
}

.student-notification-data-row {
  margin-top: 17px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e0e7ef;
}

.student-notification-data-row span {
  color: #78869a;
  font-size: .7rem;
}

.student-notification-data-row strong {
  color: #364963;
  font-size: .72rem;
}

.student-notification-grade {
  width: fit-content;
  min-width: 135px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 15px;
  color: #fff;
  background:
    linear-gradient(
      145deg,
      #092758,
      #0b3b83
    );
  text-align: center;
}

.student-notification-grade span,
.student-notification-grade small {
  display: block;
  color: rgba(255,255,255,.67);
}

.student-notification-grade span {
  font-size: .62rem;
}

.student-notification-grade strong {
  display: block;
  margin: 3px 0;
  font-size: 2rem;
  line-height: 1;
}

.student-notification-grade small {
  font-size: .57rem;
}

.student-notification-feedback {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #e0e7ef;
}

.student-notification-feedback > span {
  color: #4d6079;
  font-size: .68rem;
  font-weight: 800;
}

.student-notification-feedback p {
  margin: 6px 0 0;
  color: #68768c;
  font-size: .78rem;
  line-height: 1.55;
}

.student-notification-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}


@media (max-width: 600px) {

  .student-notification-detail-body {
    padding: 22px 17px;
  }

  .student-notification-detail-header {
    padding: 14px 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .student-notification-detail-card {
    border-radius: 20px;
  }

  .student-notification-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .student-notification-actions a {
    width: 100%;
    box-sizing: border-box;
  }

}


/* =====================================================
   Flyers de anuncios
===================================================== */

.public-announcement-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.public-announcement {
  overflow: hidden;
}

.public-announcement-content {
  min-width: 0;
}

.announcement-flyer-button {
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  overflow: hidden;
  display: block;
  position: relative;
  border: 1px solid #dce5ef;
  border-radius: 16px;
  background: #f3f6fa;
  cursor: zoom-in;
}

.announcement-flyer {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #f3f6fa;
}

.announcement-flyer-button > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 24, 54, .82);
  backdrop-filter: blur(6px);
  font-size: .64rem;
  font-weight: 800;
}

.student-announcement-flyer {
  margin-top: 14px;
}

.student-announcement-flyer
.announcement-flyer {
  height: 250px;
}

.notification-flyer {
  max-width: 620px;
  margin: 22px 0 4px;
}

.notification-flyer
.announcement-flyer {
  max-height: 520px;
  height: auto;
  min-height: 220px;
}


/* Modal */

body.flyer-modal-open {
  overflow: hidden;
}

.flyer-modal[hidden] {
  display: none;
}

.flyer-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.flyer-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(4, 11, 25, .88);
  cursor: zoom-out;
}

.flyer-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(95vw, 1500px);
  height: min(92vh, 1100px);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.flyer-modal-dialog img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  box-shadow:
    0 24px 80px rgba(0,0,0,.45);
  pointer-events: auto;
}

.flyer-modal-close {
  position: absolute;
  z-index: 2;
  top: -8px;
  right: -8px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.62);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}


/* Formulario del profesor */

.admin-flyer-current {
  margin: 10px 0 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #dce4ed;
  border-radius: 14px;
  background: #f8fafc;
}

.admin-flyer-current img {
  width: 115px;
  height: 115px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 10px;
  background: #eef2f6;
}

.admin-flyer-current strong,
.admin-flyer-current span {
  display: block;
}

.admin-flyer-current span {
  margin-top: 4px;
  color: #748197;
  font-size: .72rem;
}

.admin-remove-flyer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9c3540;
  font-size: .72rem;
  font-weight: 700;
}


@media (max-width: 760px) {

  .public-announcement-grid {
    grid-template-columns: 1fr;
  }

  .announcement-flyer {
    height: 240px;
  }

  .student-announcement-flyer
  .announcement-flyer {
    height: 220px;
  }

  .flyer-modal {
    padding: 12px;
  }

  .flyer-modal-dialog {
    width: 96vw;
    height: 92vh;
  }

  .flyer-modal-close {
    top: 4px;
    right: 4px;
  }

  .admin-flyer-current {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-flyer-current img {
    width: 100%;
    height: 200px;
  }

}


/* =====================================================
   Ajuste visor flyers verticales
===================================================== */

.flyer-modal {
  overflow-x: hidden;
  overflow-y: auto;
  place-items: start center;
  overscroll-behavior: contain;
}

.flyer-modal-dialog {
  width: min(95vw, 1500px);
  height: auto;
  min-height: calc(100vh - 44px);
  margin: 0 auto;
  padding: 20px 0 36px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.flyer-modal-dialog img {
  width: auto;
  height: auto;

  max-width: 100%;
  max-height: none;

  object-fit: contain;
}

.flyer-modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
}


/* =====================================================
   Software para alumno
===================================================== */

.student-software-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.student-software-card {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 17px;

  border: 1px solid #dfe7f1;
  border-radius: 18px;

  background: #fff;
}

.student-software-icon {
  flex: 0 0 auto;

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  color: #154f8d;
  background: #e9f3ff;

  font-size: 1.15rem;
  font-weight: 900;
}

.student-software-content {
  min-width: 0;
  flex: 1;
}

.student-software-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.student-software-heading h3 {
  margin: 7px 0 0;

  color: #17243b;

  font-size: 1rem;
}

.student-resource-type.software {
  color: #285987;
  background: #e9f3ff;
}

.student-software-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.student-software-tags span {
  padding: 5px 8px;

  border: 1px solid #dce5ef;
  border-radius: 999px;

  color: #66768d;
  background: #f8fafc;

  font-size: .61rem;
  font-weight: 750;
}

.student-software-content > p {
  margin: 10px 0 0;

  color: #68768b;

  font-size: .78rem;
  line-height: 1.55;
}

.student-software-info {
  margin-top: 13px;
  padding: 12px 14px;

  border-radius: 12px;

  background: #f7f9fc;
}

.student-software-info strong {
  display: block;

  color: #40536e;

  font-size: .65rem;
}

.student-software-info p {
  margin: 4px 0 0;

  color: #718096;

  font-size: .72rem;
  line-height: 1.5;

  white-space: pre-line;
}

.student-software-actions {
  margin-top: 16px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;
}


@media (max-width: 680px) {

  .flyer-modal {
    padding:
      12px
      10px
      30px;
  }

  .flyer-modal-dialog {
    width: 100%;
    min-height: calc(100vh - 24px);
    padding-top: 48px;
  }

  .flyer-modal-close {
    top: 12px;
    right: 12px;
  }

  .student-software-card {
    padding: 16px;
    flex-direction: column;
  }

  .student-software-heading {
    width: 100%;
    flex-direction: column;
  }

  .student-software-tags {
    justify-content: flex-start;
  }

  .student-software-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .student-software-actions a {
    width: 100%;
    box-sizing: border-box;
  }

}


/* =====================================================
   Ajuste visor flyers verticales
===================================================== */

.flyer-modal {
  overflow-x: hidden;
  overflow-y: auto;
  place-items: start center;
  overscroll-behavior: contain;
}

.flyer-modal-dialog {
  width: min(95vw, 1500px);
  height: auto;
  min-height: calc(100vh - 44px);

  margin: 0 auto;
  padding: 20px 0 36px;

  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.flyer-modal-dialog img {
  width: auto;
  height: auto;

  max-width: 100%;
  max-height: none;

  object-fit: contain;
}

.flyer-modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
}


/* =====================================================
   Software del alumno
===================================================== */

.student-software-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.student-software-card {
  padding: 20px;

  display: flex;
  align-items: flex-start;
  gap: 17px;

  border: 1px solid #dfe7f1;
  border-radius: 18px;

  background: #fff;
}

.student-software-icon {
  flex: 0 0 auto;

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  color: #154f8d;
  background: #e9f3ff;

  font-size: 1.15rem;
  font-weight: 900;
}

.student-software-content {
  min-width: 0;
  flex: 1;
}

.student-software-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.student-software-heading h3 {
  margin: 7px 0 0;

  color: #17243b;
  font-size: 1rem;
}

.student-resource-type.software {
  color: #285987;
  background: #e9f3ff;
}

.student-software-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.student-software-tags span {
  padding: 5px 8px;

  border: 1px solid #dce5ef;
  border-radius: 999px;

  color: #66768d;
  background: #f8fafc;

  font-size: .61rem;
  font-weight: 750;
}

.student-software-content > p {
  margin: 10px 0 0;

  color: #68768b;

  font-size: .78rem;
  line-height: 1.55;
}

.student-software-info {
  margin-top: 13px;
  padding: 12px 14px;

  border-radius: 12px;
  background: #f7f9fc;
}

.student-software-info strong {
  display: block;

  color: #40536e;
  font-size: .65rem;
}

.student-software-info p {
  margin: 4px 0 0;

  color: #718096;

  font-size: .72rem;
  line-height: 1.5;

  white-space: pre-line;
}

.student-software-actions {
  margin-top: 16px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;
}


@media (max-width: 680px) {

  .flyer-modal {
    padding: 12px 10px 30px;
  }

  .flyer-modal-dialog {
    width: 100%;
    min-height: calc(100vh - 24px);
    padding-top: 48px;
  }

  .flyer-modal-close {
    top: 12px;
    right: 12px;
  }

  .student-software-card {
    padding: 16px;
    flex-direction: column;
  }

  .student-software-heading {
    width: 100%;
    flex-direction: column;
  }

  .student-software-tags {
    justify-content: flex-start;
  }

  .student-software-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .student-software-actions a {
    width: 100%;
    box-sizing: border-box;
  }

}


/* =====================================================
   Modal flyer V2 - fondo fijo durante scroll
===================================================== */

.flyer-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  overflow-x: hidden;
  overflow-y: auto;

  display: block;

  padding: 20px;

  background: rgba(4, 11, 25, .91);

  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.flyer-modal[hidden] {
  display: none;
}

.flyer-modal-backdrop {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;

  border: 0;

  background: transparent;

  cursor: zoom-out;
}

.flyer-modal-dialog {
  position: relative;
  z-index: 2;

  width: min(95vw, 1500px);

  min-height: calc(100vh - 40px);
  height: auto;

  margin: 0 auto;

  padding:
    20px
    0
    45px;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  pointer-events: none;
}

.flyer-modal-dialog img {
  position: relative;
  z-index: 3;

  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: none;

  margin: 0 auto;

  object-fit: contain;

  box-shadow:
    0 25px 80px
    rgba(0, 0, 0, .55);

  pointer-events: auto;
}

.flyer-modal-close {
  position: fixed;

  z-index: 10002;

  top: 18px;
  right: 18px;

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(255,255,255,.32);

  border-radius: 50%;

  color: #fff;

  background:
    rgba(5, 12, 27, .82);

  backdrop-filter: blur(8px);

  font-size: 1.8rem;
  line-height: 1;

  cursor: pointer;

  pointer-events: auto;
}


@media (max-width: 760px) {

  .flyer-modal {
    padding:
      64px
      8px
      30px;
  }

  .flyer-modal-dialog {
    width: 100%;

    min-height:
      calc(100vh - 94px);

    padding: 0 0 35px;
  }

  .flyer-modal-dialog img {
    max-width: 100%;
  }

  .flyer-modal-close {
    top: 12px;
    right: 12px;
  }

}


/* =====================================================
   STUDENT SHELL V1
===================================================== */

.student-shell-body {
  margin: 0;

  min-height: 100vh;

  background: #f4f7fb;
}

.student-shell {
  min-height: 100vh;

  display: grid;

  grid-template-columns:
    270px minmax(0,1fr);
}


/* Sidebar */

.student-sidebar {
  width: 270px;
  height: 100vh;

  position: fixed;
  z-index: 1000;

  top: 0;
  left: 0;

  padding: 22px 16px;

  display: flex;
  flex-direction: column;

  color: #fff;

  background:
    linear-gradient(
      180deg,
      #08275f,
      #061e49
    );

  box-sizing: border-box;

  overflow-y: auto;
}

.student-sidebar-brand {
  padding: 4px 8px 22px;

  display: flex;
  align-items: center;

  gap: 11px;
}

.student-sidebar-mark {
  width: 44px;
  height: 44px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border-radius: 13px;

  color: #09275c;
  background: #fff;

  font-size: 1.35rem;
  font-weight: 900;
}

.student-sidebar-brand strong,
.student-sidebar-brand small {
  display: block;
}

.student-sidebar-brand strong {
  font-size: .82rem;
}

.student-sidebar-brand small {
  margin-top: 3px;

  color:
    rgba(255,255,255,.58);

  font-size: .63rem;
}


/* Profile */

.student-sidebar-profile {
  margin: 3px 0 19px;
  padding: 12px;

  display: flex;
  align-items: center;

  gap: 10px;

  border:
    1px solid
    rgba(255,255,255,.12);

  border-radius: 14px;

  background:
    rgba(255,255,255,.06);
}

.student-sidebar-avatar {
  width: 38px;
  height: 38px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border-radius: 11px;

  color: #08275f;
  background: #fff;

  font-weight: 900;
}

.student-sidebar-profile strong,
.student-sidebar-profile small {
  display: block;
}

.student-sidebar-profile strong {
  overflow: hidden;

  font-size: .68rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-sidebar-profile small {
  margin-top: 3px;

  color:
    rgba(255,255,255,.55);

  font-size: .58rem;
}


/* Navigation */

.student-sidebar-nav {
  display: flex;
  flex-direction: column;

  gap: 4px;
}

.student-sidebar-label {
  margin:
    17px
    9px
    6px;

  color:
    rgba(255,255,255,.4);

  font-size: .55rem;
  font-weight: 900;

  letter-spacing: .12em;

  text-transform: uppercase;
}

.student-sidebar-nav a {
  min-height: 44px;

  padding: 0 11px;

  display: flex;
  align-items: center;

  gap: 10px;

  border-radius: 10px;

  color:
    rgba(255,255,255,.78);

  text-decoration: none;

  font-size: .72rem;
  font-weight: 650;

  transition:
    background .15s ease,
    color .15s ease;
}

.student-sidebar-nav a:hover {
  color: #fff;

  background:
    rgba(255,255,255,.08);
}

.student-sidebar-nav a.active {
  color: #fff;

  background:
    rgba(255,255,255,.14);
}

.student-sidebar-icon {
  width: 22px;

  flex: 0 0 auto;

  color:
    rgba(255,255,255,.72);

  text-align: center;
}


/* Footer sidebar */

.student-sidebar-footer {
  margin-top: auto;

  padding-top: 20px;

  border-top:
    1px solid
    rgba(255,255,255,.12);
}

.student-sidebar-footer form {
  margin: 0;
}

.student-sidebar-footer button {
  width: 100%;
  min-height: 46px;

  padding: 0 12px;

  display: flex;
  align-items: center;

  gap: 10px;

  border:
    1px solid
    rgba(255,255,255,.14);

  border-radius: 11px;

  color: #fff;

  background:
    rgba(255,255,255,.07);

  font: inherit;

  font-size: .7rem;
  font-weight: 700;

  cursor: pointer;
}

.student-sidebar-footer button:hover {
  background:
    rgba(255,255,255,.13);
}


/* Main */

.student-shell-main {
  grid-column: 2;

  min-width: 0;
}

.student-shell-topbar {
  height: 74px;

  padding: 0 28px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom:
    1px solid #e0e6ef;

  background:
    rgba(255,255,255,.94);

  backdrop-filter:
    blur(12px);

  box-sizing: border-box;
}

.student-shell-topbar strong,
.student-shell-topbar small {
  display: block;
}

.student-shell-topbar strong {
  color: #17243b;

  font-size: .8rem;
}

.student-shell-topbar small {
  margin-top: 2px;

  color: #8490a2;

  font-size: .61rem;
}

.student-shell-content {
  width: min(1400px, 100%);

  margin: 0 auto;

  padding: 30px;

  box-sizing: border-box;
}

.student-sidebar-toggle {
  display: none;
}

.student-sidebar-overlay {
  display: none;
}


/* Evitamos el ancho del antiguo .container */
.student-shell-content.container,
.student-shell-content .container {
  max-width: none;
}


/* Mobile */

@media (max-width: 900px) {

  .student-shell {
    display: block;
  }

  .student-sidebar {
    width: min(310px, 86vw);

    transform:
      translateX(-102%);

    transition:
      transform .22s ease;

    box-shadow:
      20px 0 55px
      rgba(7, 25, 55, .24);
  }

  .student-menu-open
  .student-sidebar {
    transform:
      translateX(0);
  }

  .student-shell-main {
    width: 100%;
  }

  .student-shell-topbar {
    height: 68px;

    padding: 0 18px;

    position: sticky;
    z-index: 900;

    top: 0;
  }

  .student-sidebar-toggle {
    width: 43px;
    height: 43px;

    padding: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 5px;

    border:
      1px solid #d6deea;

    border-radius: 11px;

    background: #fff;

    cursor: pointer;
  }

  .student-sidebar-toggle span {
    width: 100%;
    height: 2px;

    border-radius: 999px;

    background: #15355f;
  }

  .student-sidebar-overlay {
    display: block;

    position: fixed;
    z-index: 999;

    inset: 0;

    border: 0;

    background:
      rgba(5,15,33,.56);

    opacity: 0;
    visibility: hidden;

    transition:
      opacity .2s ease,
      visibility .2s ease;
  }

  .student-menu-open
  .student-sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  .student-menu-open {
    overflow: hidden;
  }

  .student-shell-content {
    padding:
      22px
      16px
      40px;
  }

}


/* =====================================================
   STUDENT SHELL V1
===================================================== */

.student-shell-body {
  margin: 0;

  min-height: 100vh;

  background: #f4f7fb;
}

.student-shell {
  min-height: 100vh;

  display: grid;

  grid-template-columns:
    270px minmax(0,1fr);
}


/* Sidebar */

.student-sidebar {
  width: 270px;
  height: 100vh;

  position: fixed;
  z-index: 1000;

  top: 0;
  left: 0;

  padding: 22px 16px;

  display: flex;
  flex-direction: column;

  color: #fff;

  background:
    linear-gradient(
      180deg,
      #08275f,
      #061e49
    );

  box-sizing: border-box;

  overflow-y: auto;
}

.student-sidebar-brand {
  padding: 4px 8px 22px;

  display: flex;
  align-items: center;

  gap: 11px;
}

.student-sidebar-mark {
  width: 44px;
  height: 44px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border-radius: 13px;

  color: #09275c;
  background: #fff;

  font-size: 1.35rem;
  font-weight: 900;
}

.student-sidebar-brand strong,
.student-sidebar-brand small {
  display: block;
}

.student-sidebar-brand strong {
  font-size: .82rem;
}

.student-sidebar-brand small {
  margin-top: 3px;

  color:
    rgba(255,255,255,.58);

  font-size: .63rem;
}


/* Profile */

.student-sidebar-profile {
  margin: 3px 0 19px;
  padding: 12px;

  display: flex;
  align-items: center;

  gap: 10px;

  border:
    1px solid
    rgba(255,255,255,.12);

  border-radius: 14px;

  background:
    rgba(255,255,255,.06);
}

.student-sidebar-avatar {
  width: 38px;
  height: 38px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border-radius: 11px;

  color: #08275f;
  background: #fff;

  font-weight: 900;
}

.student-sidebar-profile strong,
.student-sidebar-profile small {
  display: block;
}

.student-sidebar-profile strong {
  overflow: hidden;

  font-size: .68rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-sidebar-profile small {
  margin-top: 3px;

  color:
    rgba(255,255,255,.55);

  font-size: .58rem;
}


/* Navigation */

.student-sidebar-nav {
  display: flex;
  flex-direction: column;

  gap: 4px;
}

.student-sidebar-label {
  margin:
    17px
    9px
    6px;

  color:
    rgba(255,255,255,.4);

  font-size: .55rem;
  font-weight: 900;

  letter-spacing: .12em;

  text-transform: uppercase;
}

.student-sidebar-nav a {
  min-height: 44px;

  padding: 0 11px;

  display: flex;
  align-items: center;

  gap: 10px;

  border-radius: 10px;

  color:
    rgba(255,255,255,.78);

  text-decoration: none;

  font-size: .72rem;
  font-weight: 650;

  transition:
    background .15s ease,
    color .15s ease;
}

.student-sidebar-nav a:hover {
  color: #fff;

  background:
    rgba(255,255,255,.08);
}

.student-sidebar-nav a.active {
  color: #fff;

  background:
    rgba(255,255,255,.14);
}

.student-sidebar-icon {
  width: 22px;

  flex: 0 0 auto;

  color:
    rgba(255,255,255,.72);

  text-align: center;
}


/* Footer sidebar */

.student-sidebar-footer {
  margin-top: auto;

  padding-top: 20px;

  border-top:
    1px solid
    rgba(255,255,255,.12);
}

.student-sidebar-footer form {
  margin: 0;
}

.student-sidebar-footer button {
  width: 100%;
  min-height: 46px;

  padding: 0 12px;

  display: flex;
  align-items: center;

  gap: 10px;

  border:
    1px solid
    rgba(255,255,255,.14);

  border-radius: 11px;

  color: #fff;

  background:
    rgba(255,255,255,.07);

  font: inherit;

  font-size: .7rem;
  font-weight: 700;

  cursor: pointer;
}

.student-sidebar-footer button:hover {
  background:
    rgba(255,255,255,.13);
}


/* Main */

.student-shell-main {
  grid-column: 2;

  min-width: 0;
}

.student-shell-topbar {
  height: 74px;

  padding: 0 28px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom:
    1px solid #e0e6ef;

  background:
    rgba(255,255,255,.94);

  backdrop-filter:
    blur(12px);

  box-sizing: border-box;
}

.student-shell-topbar strong,
.student-shell-topbar small {
  display: block;
}

.student-shell-topbar strong {
  color: #17243b;

  font-size: .8rem;
}

.student-shell-topbar small {
  margin-top: 2px;

  color: #8490a2;

  font-size: .61rem;
}

.student-shell-content {
  width: min(1400px, 100%);

  margin: 0 auto;

  padding: 30px;

  box-sizing: border-box;
}

.student-sidebar-toggle {
  display: none;
}

.student-sidebar-overlay {
  display: none;
}


/* Evitamos el ancho del antiguo .container */
.student-shell-content.container,
.student-shell-content .container {
  max-width: none;
}


/* Mobile */

@media (max-width: 900px) {

  .student-shell {
    display: block;
  }

  .student-sidebar {
    width: min(310px, 86vw);

    transform:
      translateX(-102%);

    transition:
      transform .22s ease;

    box-shadow:
      20px 0 55px
      rgba(7, 25, 55, .24);
  }

  .student-menu-open
  .student-sidebar {
    transform:
      translateX(0);
  }

  .student-shell-main {
    width: 100%;
  }

  .student-shell-topbar {
    height: 68px;

    padding: 0 18px;

    position: sticky;
    z-index: 900;

    top: 0;
  }

  .student-sidebar-toggle {
    width: 43px;
    height: 43px;

    padding: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 5px;

    border:
      1px solid #d6deea;

    border-radius: 11px;

    background: #fff;

    cursor: pointer;
  }

  .student-sidebar-toggle span {
    width: 100%;
    height: 2px;

    border-radius: 999px;

    background: #15355f;
  }

  .student-sidebar-overlay {
    display: block;

    position: fixed;
    z-index: 999;

    inset: 0;

    border: 0;

    background:
      rgba(5,15,33,.56);

    opacity: 0;
    visibility: hidden;

    transition:
      opacity .2s ease,
      visibility .2s ease;
  }

  .student-menu-open
  .student-sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  .student-menu-open {
    overflow: hidden;
  }

  .student-shell-content {
    padding:
      22px
      16px
      40px;
  }

}
/* =====================================================
   Tarjetas PWA / Push
===================================================== */

.student-pwa-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 24px;
  padding: 22px 24px;
  border: 1px solid #dbe4f0;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
  box-shadow: 0 12px 28px rgba(10, 37, 84, 0.08);
}

.student-pwa-card[hidden] {
  display: none !important;
}

.student-pwa-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.student-pwa-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #215cb8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.student-pwa-copy strong {
  display: block;
  margin-bottom: 8px;
  color: #0f234b;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
}

.student-pwa-copy p {
  margin: 0;
  color: #566985;
  font-size: 1rem;
  line-height: 1.6;
}

.student-pwa-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.student-pwa-primary,
.student-pwa-secondary {
  appearance: none;
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.student-pwa-primary {
  border: 1px solid #0d3a84;
  background: linear-gradient(135deg, #113b87 0%, #0b2e68 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(13, 58, 132, 0.2);
}

.student-pwa-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(13, 58, 132, 0.26);
}

.student-pwa-primary:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.student-pwa-secondary {
  border: 1px solid #d4ddea;
  background: #ffffff;
  color: #304763;
}

.student-pwa-secondary:hover {
  background: #f5f8fd;
  transform: translateY(-1px);
}

.student-pwa-status {
  width: 100%;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
}

.student-pwa-status.success {
  background: #eaf8f0;
  color: #1f6a42;
  border: 1px solid #c7e9d5;
}

.student-pwa-status.error {
  background: #fff1f1;
  color: #9e2f2f;
  border: 1px solid #f2c7c7;
}

.student-push-card {
  border-color: #d8e3f7;
}

@media (max-width: 900px) {
  .student-pwa-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .student-pwa-actions {
    width: 100%;
  }

  .student-pwa-primary,
  .student-pwa-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}


/* =====================================================
   PROMEDIOS POR ASIGNATURA · DASHBOARD ALUMNO
===================================================== */

.student-average-summary {
  padding: 22px !important;
}

.student-average-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.student-average-heading > div:first-child > span {
  margin-bottom: 4px;
  color: rgba(255,255,255,.66);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.student-average-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.3;
}

.student-average-overall {
  flex: 0 0 auto;
  text-align: right;
}

.student-average-overall small {
  color: rgba(255,255,255,.64) !important;
  font-size: .68rem !important;
}

.student-average-overall strong {
  margin: 3px 0 0 !important;
  color: #fff;
  font-size: 2rem !important;
  line-height: 1 !important;
}

.student-subject-average-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.student-subject-average {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.08);
}

.student-subject-average-name {
  min-height: 2.4em;
  color: rgba(255,255,255,.78) !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.student-subject-average strong {
  margin: 8px 0 4px !important;
  color: #fff;
  font-size: 1.65rem !important;
  line-height: 1 !important;
}

.student-subject-average small {
  color: rgba(255,255,255,.56) !important;
  font-size: .62rem !important;
  line-height: 1.3;
}

.student-average-empty {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: .82rem;
}


/* Tablet */
@media (max-width: 760px) {

  .student-average-heading {
    align-items: center;
  }

}


/* Celular */
@media (max-width: 520px) {

  .student-average-summary {
    padding: 16px !important;
  }

  .student-average-heading {
    align-items: flex-start;
    gap: 14px;
  }

  .student-average-heading h2 {
    font-size: .92rem;
  }

  .student-average-overall strong {
    font-size: 1.7rem !important;
  }

  .student-subject-average-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .student-subject-average {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      auto;
    grid-template-areas:
      "name score"
      "detail score";
    align-items: center;
    gap: 2px 14px;
    padding: 12px 13px;
  }

  .student-subject-average-name {
    grid-area: name;
    min-height: 0;
  }

  .student-subject-average strong {
    grid-area: score;
    margin: 0 !important;
    font-size: 1.55rem !important;
  }

  .student-subject-average small {
    grid-area: detail;
  }

}


/* =====================================================
   PROMEDIOS DEL ALUMNO · V2 COMPACTO
===================================================== */

.student-average-summary.student-average-v2 {
  padding: 20px !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  color: #142844 !important;
  box-shadow: 0 12px 32px rgba(16, 43, 79, .07) !important;
}

.student-average-v2-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7ebf1;
}

.student-average-v2-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #3970ab !important;
  font-size: .68rem !important;
  font-weight: 850 !important;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.student-average-v2-head h2 {
  margin: 0;
  color: #102746;
  font-size: 1.3rem;
  line-height: 1.2;
}

.student-average-v2-head p {
  margin: 5px 0 0;
  color: #718096;
  font-size: .78rem;
  line-height: 1.45;
}

.student-average-v2-general {
  flex: 0 0 auto;
  min-width: 126px;
  padding: 12px 16px;
  border-radius: 15px;
  background: #082f68;
  text-align: center;
}

.student-average-v2-general span {
  display: block;
  color: rgba(255,255,255,.72) !important;
  font-size: .64rem !important;
  font-weight: 700 !important;
}

.student-average-v2-general strong {
  display: block;
  margin: 3px 0 0 !important;
  color: #ffffff !important;
  font-size: 1.75rem !important;
  line-height: 1 !important;
}

.student-average-v2-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.student-average-v2-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background: #f8fafc;
}

.student-average-v2-info {
  min-width: 0;
}

.student-average-v2-info strong {
  display: block;
  margin: 0 !important;
  color: #193253 !important;
  font-size: .84rem !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere;
}

.student-average-v2-info small {
  display: block;
  margin-top: 3px;
  color: #7c899b !important;
  font-size: .67rem !important;
}

.student-average-v2-score {
  flex: 0 0 auto;
  min-width: 60px;
  color: #0b4c99;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1;
  text-align: right;
}

.student-average-v2-score.empty {
  color: #9ca8b7;
}


/* Celular */
@media (max-width: 560px) {

  .student-average-summary.student-average-v2 {
    padding: 15px !important;
    border-radius: 18px !important;
  }

  .student-average-v2-head {
    align-items: stretch;
    gap: 12px;
  }

  .student-average-v2-head h2 {
    font-size: 1.08rem;
  }

  .student-average-v2-head p {
    display: none;
  }

  .student-average-v2-general {
    min-width: 108px;
    padding: 11px 12px;
  }

  .student-average-v2-general strong {
    font-size: 1.55rem !important;
  }

  .student-average-v2-row {
    padding: 11px 12px;
    border-radius: 12px;
  }

  .student-average-v2-info strong {
    font-size: .78rem !important;
  }

  .student-average-v2-score {
    min-width: 52px;
    font-size: 1.2rem;
  }

}


/* Teléfonos muy pequeños */
@media (max-width: 370px) {

  .student-average-v2-head {
    flex-direction: column;
  }

  .student-average-v2-general {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

}


/* =====================================================
   FIX MI AVANCE · RESPONSIVE FINAL
   Promedios ocupa una fila completa.
   Las 3 métricas quedan debajo.
===================================================== */

.student-v3-summary {
  width: 100%;
  min-width: 0;

  display: grid !important;

  grid-template-columns:
    repeat(3, minmax(0, 1fr)) !important;

  align-items: start !important;
  gap: 14px !important;
}


/*
 * La tarjeta grande de Promedios
 * ocupa TODA la fila.
 */
.student-v3-summary > .student-average-v2 {
  grid-column: 1 / -1 !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  align-self: start !important;
}


/*
 * Evita que cualquier contenido interno
 * obligue a crecer o encoger columnas.
 */
.student-average-v2,
.student-average-v2 > *,
.student-average-v2 div,
.student-average-v2 article {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}


/*
 * Los textos de materias deben partirse
 * por palabras, nunca letra por letra.
 */
.student-average-v2 h2,
.student-average-v2 h3,
.student-average-v2 strong,
.student-average-v2 span,
.student-average-v2 small,
.student-average-v2 p {
  min-width: 0;

  word-break: normal !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}


/*
 * Las tres tarjetas pequeñas quedan
 * en la fila inferior.
 */
.student-v3-summary >
.student-v3-summary-card {
  width: 100%;
  min-width: 0;

  align-self: stretch;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

  .student-v3-summary {
    grid-template-columns:
      repeat(3, minmax(0, 1fr)) !important;

    gap: 12px !important;
  }

  .student-v3-summary >
  .student-average-v2 {
    grid-column: 1 / -1 !important;
  }

}


/* =====================================================
   CELULAR
===================================================== */

@media (max-width: 680px) {

  .student-v3-summary {
    grid-template-columns:
      repeat(3, minmax(0, 1fr)) !important;

    gap: 8px !important;

    margin-top: 22px !important;
  }


  .student-v3-summary >
  .student-average-v2 {
    grid-column: 1 / -1 !important;

    width: 100% !important;
    min-width: 0 !important;
  }


  .student-v3-summary >
  .student-v3-summary-card {
    min-width: 0 !important;
    min-height: 88px !important;

    padding: 12px 8px !important;

    text-align: center;
  }


  .student-v3-summary-card
  .student-v3-summary-icon {
    margin-left: auto;
    margin-right: auto;
  }

}


/* =====================================================
   CELULAR MUY PEQUEÑO
===================================================== */

@media (max-width: 390px) {

  .student-v3-summary {
    gap: 6px !important;
  }

  .student-v3-summary >
  .student-v3-summary-card {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

}


/* =====================================================
   PORTAL ALUMNO · NAVBAR FIJA MOBILE/TABLET
   La navegación permanece siempre pegada arriba.
===================================================== */

@media (max-width: 900px) {

  /*
   * Reservamos exactamente el espacio de la barra
   * porque al volverla fixed deja de ocupar espacio
   * dentro del flujo normal del documento.
   */
  .student-shell-main {
    width: 100% !important;
    min-width: 0 !important;

    padding-top: 68px !important;
  }


  /*
   * Barra superior fija.
   */
  .student-shell-topbar {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    height: 68px !important;

    margin: 0 !important;

    padding:
      0
      max(18px, env(safe-area-inset-right))
      0
      max(18px, env(safe-area-inset-left)) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    box-sizing: border-box !important;

    background:
      rgba(255,255,255,.97) !important;

    border-bottom:
      1px solid #dfe6ef !important;

    box-shadow:
      0 3px 14px
      rgba(13,38,75,.07);

    backdrop-filter:
      blur(14px);

    -webkit-backdrop-filter:
      blur(14px);

    z-index: 950 !important;

    transform: translateZ(0);
  }


  /*
   * El contenido nunca debe modificar
   * la posición de la barra.
   */
  .student-shell-content {
    position: relative;

    width: 100% !important;

    margin: 0 auto !important;

    padding:
      22px
      16px
      40px !important;

    box-sizing: border-box;
  }


  /*
   * El menú lateral debe seguir quedando
   * encima de la navbar cuando se abre.
   */
  .student-sidebar {
    z-index: 1100 !important;
  }

  .student-sidebar-overlay {
    z-index: 1050 !important;
  }


  /*
   * Botón hamburguesa siempre accesible.
   */
  .student-sidebar-toggle {
    position: relative;
    z-index: 2;

    flex: 0 0 43px;
  }

}


/* Móviles pequeños */
@media (max-width: 480px) {

  .student-shell-topbar {
    padding-left:
      max(16px, env(safe-area-inset-left))
      !important;

    padding-right:
      max(16px, env(safe-area-inset-right))
      !important;
  }

}


/* =====================================================
   INPUT DE ARCHIVOS · ESTILO GLOBAL
===================================================== */

input[type="file"] {
  width: 100%;

  box-sizing: border-box;

  padding: 6px;

  border: 1px solid #d3deea;
  border-radius: 12px;

  background: #f8fafc;
  color: #53657d;

  font: inherit;
  font-size: .7rem;

  cursor: pointer;

  transition:
    border-color .15s ease,
    background .15s ease,
    box-shadow .15s ease;
}

input[type="file"]:hover {
  border-color: #aebfd3;
  background: #ffffff;
}

input[type="file"]:focus {
  outline: none;

  border-color: #2869ad;

  box-shadow:
    0 0 0 3px
    rgba(40,105,173,.10);
}


/* Chrome / Edge / Firefox modernos */

input[type="file"]::file-selector-button {
  min-height: 38px;

  margin-right: 12px;
  padding: 0 16px;

  border: 0;
  border-radius: 9px;

  background:
    linear-gradient(
      180deg,
      #173563 0%,
      #122245 100%
    );

  color: #ffffff;

  font: inherit;
  font-size: .68rem;
  font-weight: 800;

  cursor: pointer;

  box-shadow:
    0 5px 13px
    rgba(18,34,69,.16);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

input[type="file"]:hover::file-selector-button {
  background:
    linear-gradient(
      180deg,
      #20457d 0%,
      #173563 100%
    );

  box-shadow:
    0 7px 16px
    rgba(18,34,69,.20);
}

input[type="file"]:active::file-selector-button {
  transform: translateY(1px);
}


/* Compatibilidad WebKit */

input[type="file"]::-webkit-file-upload-button {
  min-height: 38px;

  margin-right: 12px;
  padding: 0 16px;

  border: 0;
  border-radius: 9px;

  background: #122245;
  color: #ffffff;

  font: inherit;
  font-size: .68rem;
  font-weight: 800;

  cursor: pointer;
}


@media (max-width: 600px) {

  input[type="file"] {
    font-size: .66rem;
  }

  input[type="file"]::file-selector-button {
    min-height: 36px;

    margin-right: 8px;
    padding: 0 12px;
  }

}


/* =====================================================
   SELECTOR DE ARCHIVOS PERSONALIZADO · V1
===================================================== */

.portal-file-native {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important;

  white-space: nowrap !important;

  border: 0 !important;

  opacity: 0 !important;
}


.portal-file-picker {
  width: 100%;

  box-sizing: border-box;

  display: grid;
  grid-template-columns:
    auto minmax(0,1fr);

  align-items: center;

  gap: 14px;

  padding: 12px;

  border:
    1px solid #d3deea;

  border-radius:
    14px;

  background:
    #f8fafc;

  transition:
    border-color .15s ease,
    background .15s ease,
    box-shadow .15s ease;
}


.portal-file-picker:hover {
  border-color:
    #aebfd3;

  background:
    #fff;
}


.portal-file-picker.has-file {
  border-color:
    #9db9d8;

  background:
    #f5f9fe;

  box-shadow:
    0 0 0 3px
    rgba(18,34,69,.04);
}


.portal-file-picker-button {
  min-height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  padding:
    0 17px;

  border: 0;
  border-radius: 11px;

  background:
    #122245;

  color:
    #fff;

  font: inherit;
  font-size: .75rem;
  font-weight: 800;

  white-space: nowrap;

  cursor: pointer;

  box-shadow:
    0 7px 16px
    rgba(18,34,69,.16);

  transition:
    transform .15s ease,
    background .15s ease,
    box-shadow .15s ease;
}


.portal-file-picker-button:hover {
  background:
    #1a3262;

  box-shadow:
    0 9px 20px
    rgba(18,34,69,.20);
}


.portal-file-picker-button:active {
  transform:
    translateY(1px);
}


.portal-file-picker-icon {
  width: 22px;
  height: 22px;

  display: grid;
  place-items: center;

  border-radius: 6px;

  background:
    rgba(255,255,255,.12);

  font-size: .85rem;
  font-weight: 900;
}


.portal-file-picker-details {
  min-width: 0;

  display: grid;

  gap: 4px;
}


.portal-file-picker-details strong {
  overflow: hidden;

  color:
    #213957;

  font-size: .72rem;
  font-weight: 800;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.portal-file-picker-details small {
  overflow-wrap: anywhere;

  color:
    #78889e;

  font-size: .62rem;

  line-height: 1.4;
}


.portal-file-picker.has-file
.portal-file-picker-details strong {
  color:
    #16613f;
}


/* Entrega normal */

.student-upload-card {
  max-width:
    760px;
}

.student-upload-requirements {
  display: grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap: 10px;

  margin:
    18px 0;
}

.student-upload-requirements > div {
  padding: 13px 14px;

  border:
    1px solid #e0e6ee;

  border-radius:
    12px;

  background:
    #f8fafc;
}

.student-upload-requirements strong,
.student-upload-requirements span {
  display: block;
}

.student-upload-requirements strong {
  margin-bottom:
    4px;

  color:
    #122245;

  font-size:
    .76rem;
}

.student-upload-requirements span {
  color:
    #63748a;

  font-size:
    .7rem;

  overflow-wrap:
    anywhere;
}

.student-upload-deadline {
  margin:
    18px 0 22px;

  color:
    #55677e;

  line-height:
    1.55;
}

.student-upload-field {
  display: grid;

  gap: 8px;
}

.student-upload-field > label {
  color:
    #122245;

  font-weight:
    800;
}

.student-upload-submit {
  width: 100%;

  margin-top:
    18px;
}


/* Archivo dentro de cuestionario */

.portal-extra-file-answer {
  margin-top:
    8px;
}

.portal-extra-question-points-student {
  width:
    fit-content;

  margin-top:
    12px;

  padding:
    6px 10px;

  border-radius:
    999px;

  background:
    #eef4fb;

  color:
    #31587f;

  font-size:
    .68rem;

  font-weight:
    800;
}


@media (max-width: 600px) {

  .portal-file-picker {
    grid-template-columns:
      1fr;

    gap:
      10px;

    padding:
      11px;
  }

  .portal-file-picker-button {
    width:
      100%;

    min-height:
      48px;

    font-size:
      .82rem;
  }

  .portal-file-picker-details {
    padding:
      2px 4px 3px;
  }

  .portal-file-picker-details strong {
    white-space:
      normal;

    font-size:
      .76rem;
  }

  .portal-file-picker-details small {
    font-size:
      .67rem;
  }

  .student-upload-requirements {
    grid-template-columns:
      1fr;
  }

}
