.switch-jn {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.switch-jn input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider-jn {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: .4s;
}
.slider-jn:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}
.switch-jn input:checked + .slider-jn {
  background-color: #4caf50;
}
.switch-jn input:checked + .slider-jn:before {
  transform: translateX(24px);
}

.weekday-switches {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.weekday-switch {
  align-items: center;
  background: var(--aula-soft, #f3fbfa);
  border: 1px solid var(--aula-line, #ddecea);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  min-height: 54px;
  padding: 10px 12px;
}

.weekday-switch > span {
  color: var(--aula-ink, #22313f);
  font-size: 13px;
  font-weight: 800;
}

:root {
  --aula-primary: #245fd3;
  --aula-primary-dark: #173b7a;
  --aula-ink: #2f3b63;
  --aula-muted: #6d7892;
  --aula-soft: #f2f6fd;
  --aula-line: #dce5f2;
  --aula-danger: #df2633;
  --tk-blue: #245fd3;
  --tk-blue-bright: #3579e8;
  --tk-navy: #2f3b63;
  --tk-navy-dark: #182541;
  --tk-green: #50ad2f;
  --tk-yellow: #f5c916;
  --tk-red: #df1723;
  --tk-canvas: #eef3fb;
  --tk-white: #ffffff;
  --tk-radius: 16px;
  --tk-shadow: 0 18px 45px rgba(38, 61, 108, .10);
}

body.font-nunito {
  background: #f4f7f6;
  color: var(--aula-ink);
}

#wrapper.theme-cyan:before {
  background: linear-gradient(135deg, rgba(73, 197, 182, .12), rgba(60, 137, 218, .08));
  content: "";
  height: 240px;
  left: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  z-index: -1;
}

.navbar-fixed-top {
  border: 0;
  box-shadow: 0 10px 30px rgba(34, 49, 63, .08);
}

.navbar-brand a {
  align-items: center;
  color: var(--aula-ink);
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: var(--aula-primary);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.nav-user-name {
  align-items: center;
  color: var(--aula-muted);
  display: flex;
  font-size: 14px;
  min-height: 50px;
  padding: 0 12px;
}

#left-sidebar {
  border-right: 0;
  box-shadow: 18px 0 40px rgba(34, 49, 63, .06);
}

.sidebar .user-account {
  background: linear-gradient(180deg, var(--aula-soft), #fff);
  margin: 12px;
  padding: 18px 14px 10px;
  border-radius: 8px;
}

.sidebar .user-account .user-photo {
  border: 3px solid #fff;
  box-shadow: 0 10px 20px rgba(73, 197, 182, .22);
}

.sidebar-nav .metismenu > li > a {
  border-radius: 8px;
  color: #53646d;
  font-weight: 700;
  margin: 3px 10px;
  padding: 11px 14px;
}

.sidebar-nav .metismenu > li > a:hover,
.sidebar-nav .metismenu > li > a:focus {
  background: var(--aula-soft);
  color: var(--aula-primary-dark);
}

.sidebar-nav .metismenu a i {
  color: var(--aula-primary-dark);
  font-size: 16px;
  min-width: 22px;
}

.collapse-content {
  background: #fff;
  border-left: 3px solid var(--aula-primary);
  margin: 0 18px 8px 26px;
  padding: 4px 0;
}

.collapse-content a {
  color: var(--aula-muted);
  display: block;
  font-size: 13px;
  padding: 8px 14px;
}

#main-content {
  padding-top: 78px;
  padding-bottom: 50px;
}

#main-content .container-fluid {
  max-width: 1320px;
}

.page-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 24px 0 20px;
}

.page-kicker {
  color: var(--aula-primary-dark);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.page-heading h1,
.profile-hero h1 {
  color: var(--aula-ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.page-heading p,
.profile-hero p {
  color: var(--aula-muted);
  font-size: 15px;
  margin: 6px 0 0;
}

.page-action {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
}

.card {
  border: 1px solid rgba(73, 197, 182, .14);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(34, 49, 63, .07);
  overflow: hidden;
}

.card .header {
  border-bottom: 1px solid var(--aula-line);
}

.card-header {
  background: #fff;
  border-bottom: 1px solid var(--aula-line);
  padding: 20px 24px;
}

.card-title {
  color: var(--aula-ink);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.card-header .text-muted {
  color: var(--aula-muted) !important;
  margin-top: 6px;
}

.card-body {
  padding: 22px 24px;
}

.table {
  color: var(--aula-ink);
}

.table thead th {
  background: var(--aula-soft);
  border-bottom: 0;
  color: #52646d;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.table tbody td {
  border-color: #edf4f3;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: #fbfefd;
}

.table td:first-child,
.table th:first-child {
  padding-left: 18px;
}

.table td:last-child,
.table th:last-child {
  padding-right: 18px;
}

.table-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.form-control {
  border: 1px solid var(--aula-line);
  border-radius: 8px;
  box-shadow: none;
  min-height: 42px;
}

.form-control:focus {
  border-color: var(--aula-primary);
  box-shadow: 0 0 0 3px rgba(73, 197, 182, .16);
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-sm.btn-icon {
  align-items: center;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.btn-primary {
  background: var(--aula-primary);
  border-color: var(--aula-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--aula-primary-dark);
  border-color: var(--aula-primary-dark);
}

.btn-danger {
  background: var(--aula-danger);
  border-color: var(--aula-danger);
}

.badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  font-size: 12px;
  padding: 6px 10px;
}

.badge .fa-circle {
  font-size: 7px;
}

.badge-success {
  background: rgba(73, 197, 182, .14);
  color: var(--aula-primary-dark);
}

.badge-danger {
  background: rgba(224, 91, 98, .12);
  color: #bd4248;
}

.auth-main {
  background: linear-gradient(135deg, #173b7a 0%, #245fd3 55%, #3579e8 100%);
}

.auth-main:after {
  opacity: .18;
}

.auth-box .top {
  background: transparent;
  padding-bottom: 18px;
}

.auth-logo-text {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

.auth-box .card {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(20, 54, 71, .26);
}

.auth-box .lead {
  color: var(--aula-ink);
  font-weight: 800;
}

.auth-box .bottom {
  color: var(--aula-muted);
  margin-top: 18px;
  text-align: center;
}

.auth-box .bottom a {
  color: var(--aula-primary-dark);
  font-weight: 800;
}

.form-group label {
  color: #52646d;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 7px;
}

.required {
  color: var(--aula-danger);
}

.form-group {
  margin-bottom: 16px;
}

textarea.form-control {
  min-height: 112px;
}

.form-actions {
  align-items: center;
  border-top: 1px solid var(--aula-line);
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 18px;
  width: 100%;
}

.form-actions .btn {
  min-width: 180px;
}

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

.metric-card {
  background: #fff;
  border: 1px solid rgba(73, 197, 182, .16);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(34, 49, 63, .06);
  padding: 20px;
}

.metric-card.primary {
  background: linear-gradient(135deg, #173b7a, #245fd3);
  color: #fff;
}

.metric-card span {
  color: var(--aula-muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.metric-card.primary span,
.metric-card.primary small {
  color: rgba(255, 255, 255, .84);
}

.metric-card strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.metric-card small {
  color: var(--aula-muted);
  display: block;
  margin-top: 10px;
}

.ux-panel h4 {
  color: var(--aula-ink);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 18px;
}

.step-list {
  display: grid;
  gap: 10px;
}

.step-list a {
  align-items: center;
  background: var(--aula-soft);
  border: 1px solid var(--aula-line);
  border-radius: 8px;
  color: var(--aula-ink);
  display: flex;
  gap: 12px;
  padding: 13px 14px;
}

.step-list a:hover {
  border-color: var(--aula-primary);
  color: var(--aula-primary-dark);
}

.step-list i {
  color: var(--aula-primary-dark);
  width: 20px;
}

.mini-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.mini-stats div {
  background: var(--aula-soft);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.mini-stats strong {
  color: var(--aula-ink);
  display: block;
  font-size: 24px;
  font-weight: 800;
}

.mini-stats span {
  color: var(--aula-muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.profile-hero {
  align-items: center;
  background: linear-gradient(135deg, #fff, var(--aula-soft));
  border: 1px solid rgba(73, 197, 182, .16);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(34, 49, 63, .06);
  display: flex;
  gap: 18px;
  margin: 24px 0 20px;
  padding: 22px;
}

.profile-hero img {
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 12px 25px rgba(73, 197, 182, .18);
  height: 86px;
  object-fit: cover;
  width: 86px;
}

.text-strong {
  color: var(--aula-ink);
  font-weight: 800;
}

.employment-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100% !important;
}

.employment-image-preview {
  border: 1px solid var(--aula-line);
  border-radius: 8px;
  height: 96px;
  object-fit: cover;
  width: 160px;
}

.jobs-public-shell {
  margin-bottom: 32px;
}

.job-search-bar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--aula-line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1fr) 220px auto auto;
  margin: 20px 0;
  padding: 14px;
}

.job-search-field {
  align-items: center;
  display: flex;
  position: relative;
}

.job-search-field i {
  color: var(--aula-muted);
  left: 14px;
  position: absolute;
}

.job-search-field input,
.job-filter-field select {
  background: #f8fbfb;
  border: 1px solid #d7e5e3;
  border-radius: 6px;
  box-sizing: border-box;
  color: var(--aula-ink);
  height: 42px;
  width: 100%;
}

.job-search-field input {
  padding: 0 14px 0 40px;
}

.job-filter-field select {
  padding: 0 12px;
}

.job-results-heading {
  align-items: baseline;
  display: flex;
  gap: 10px;
  margin: 24px 0 12px;
}

.job-results-heading strong {
  color: var(--aula-ink);
  font-size: 16px;
}

.job-results-heading span,
.job-deadline {
  color: var(--aula-muted);
  font-size: 12px;
}

.job-location {
  color: var(--aula-muted);
  font-size: 13px;
  margin: 0;
}

.job-location i {
  color: var(--aula-primary-dark);
  margin-right: 4px;
}

.job-public-list {
  background: #fff;
  border: 1px solid var(--aula-line);
  border-radius: 8px;
  overflow: hidden;
}

.job-public-item {
  display: grid;
  gap: 20px;
  grid-template-columns: 176px minmax(0, 1fr);
  min-height: 160px;
  padding: 18px;
}

.job-public-item + .job-public-item {
  border-top: 1px solid var(--aula-line);
}

.job-public-media {
  background: var(--aula-soft);
  border-radius: 8px;
  display: block;
  height: 124px;
  overflow: hidden;
}

.job-public-media img {
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
  width: 100%;
}

.job-public-media:hover img {
  transform: scale(1.03);
}

.job-public-placeholder {
  align-items: center;
  color: var(--aula-primary-dark);
  display: flex;
  font-size: 34px;
  height: 100%;
  justify-content: center;
}

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

.job-public-topline,
.job-public-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.job-public-content h2 {
  font-size: 19px;
  margin: 10px 0 6px;
}

.job-public-content h2 a,
.job-detail h1 {
  color: var(--aula-ink);
}

.job-public-content p {
  color: var(--aula-muted);
  line-height: 1.55;
  margin: 0 0 14px;
}

.job-empty-state {
  background: #fff;
  border: 1px solid var(--aula-line);
  border-radius: 8px;
  color: var(--aula-muted);
  padding: 48px 20px;
  text-align: center;
}

.job-empty-state > i {
  color: var(--aula-primary-dark);
  font-size: 34px;
}

.job-empty-state h3 {
  color: var(--aula-ink);
  font-size: 18px;
  margin: 12px 0 6px;
}

.job-pagination {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.job-detail {
  background: #fff;
  border: 1px solid var(--aula-line);
  border-radius: 8px;
  margin: 20px 0 32px;
  overflow: hidden;
}

.job-detail-media {
  background: var(--aula-soft);
  max-height: 360px;
  overflow: hidden;
}

.job-detail-media img {
  display: block;
  max-height: 360px;
  object-fit: cover;
  width: 100%;
}

.job-detail-body {
  padding: 28px;
}

.job-detail h1 {
  font-size: 28px;
  margin: 14px 0 20px;
}

.job-detail-description {
  color: #43545e;
  line-height: 1.75;
  max-width: 880px;
}

.job-application-panel {
  align-items: center;
  background: var(--aula-soft);
  border-left: 4px solid var(--aula-primary);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 28px;
  padding: 18px;
}

.job-application-panel strong,
.job-application-panel span {
  display: block;
}

.job-application-panel span {
  color: var(--aula-muted);
  margin-top: 3px;
}

.job-type {
  background: #edf7ff;
  border: 1px solid #d5eafd;
  border-radius: 6px;
  color: #2d75a8;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
}

.candidate-cell {
  align-items: center;
  display: flex;
  gap: 12px;
}

.candidate-avatar {
  align-items: center;
  background: var(--aula-soft);
  border: 1px solid var(--aula-line);
  border-radius: 50%;
  color: var(--aula-primary-dark);
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 12px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.form-section-title {
  align-items: center;
  border-bottom: 1px solid var(--aula-line);
  color: var(--aula-ink);
  display: flex;
  font-size: 15px;
  font-weight: 800;
  gap: 9px;
  margin: 22px 0 18px;
  padding-bottom: 10px;
}

.form-section-title.first {
  margin-top: 0;
}

.form-section-title i {
  color: var(--aula-primary-dark);
}

.specialty-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.specialty-option {
  margin: 0;
}

.specialty-option input {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.specialty-option span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--aula-line);
  border-radius: 8px;
  color: var(--aula-muted);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
}

.specialty-option span i {
  border: 1px solid #bdd8d4;
  border-radius: 4px;
  color: transparent;
  font-size: 10px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  width: 18px;
}

.specialty-option input:checked + span {
  background: var(--aula-soft);
  border-color: var(--aula-primary);
  color: var(--aula-primary-dark);
}

.specialty-option input:checked + span i {
  background: var(--aula-primary);
  border-color: var(--aula-primary);
  color: #fff;
}

@media (max-width: 767px) {
  .nav-user-name {
    display: none;
  }

  #main-content {
    margin-left: 0;
    padding-top: 64px;
    width: 100%;
  }

  body #wrapper #main-content {
    box-sizing: border-box;
    float: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
  }

  body .navbar-fixed-top {
    margin-left: 0;
    width: 100%;
  }

  body:not(.offcanvas-active) #left-sidebar {
    left: -280px;
  }

  body.offcanvas-active #left-sidebar {
    left: 0;
  }

  .card-body {
    padding: 16px;
  }

  .table-responsive,
  .dataTables_wrapper {
    font-size: 13px;
  }

  .page-heading,
  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-action {
    justify-content: center;
    width: 100%;
  }

  .dashboard-grid,
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .specialty-grid {
    grid-template-columns: 1fr 1fr;
  }

  .weekday-switches {
    grid-template-columns: 1fr 1fr;
  }

  .form-actions .btn {
    width: 100%;
  }

  .job-search-bar {
    grid-template-columns: 1fr;
  }

  .job-public-item {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .job-public-media {
    height: 180px;
  }

  .job-results-heading,
  .job-application-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .job-detail-body {
    padding: 20px;
  }

  .job-detail h1 {
    font-size: 23px;
  }

  .job-pagination span {
    font-size: 12px;
  }
}

.course-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-card {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--tk-border, #dbe5f4);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(31, 55, 104, .08);
  display: flex;
  gap: 16px;
  padding: 20px;
}

.course-card__icon {
  align-items: center;
  background: var(--tk-blue-soft, #eaf1ff);
  border-radius: 14px;
  color: var(--tk-blue, #165dcc);
  display: flex;
  flex: 0 0 48px;
  font-size: 20px;
  height: 48px;
  justify-content: center;
}

.course-card h3 { color: var(--tk-navy, #273457); font-size: 18px; font-weight: 800; margin: 2px 0 6px; }
.course-card p { color: var(--tk-muted, #6e7b96); margin: 0 0 14px; }
.course-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.location-status {
  align-items: center;
  border: 1px solid #d9e3f4;
  border-radius: 10px;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
}
.location-status.is-waiting { background: #fff8e6; color: #8e6812; }
.location-status.is-ready { background: #eaf8ef; border-color: #b9e7c8; color: #247744; }
.location-status.is-error { background: #fff0f0; border-color: #f0c0c0; color: #a83d3d; }

.report-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}
.report-summary > div { background: #fff; border: 1px solid var(--tk-border, #dbe5f4); border-radius: 14px; padding: 16px; }
.report-summary span { color: var(--tk-muted, #6e7b96); display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.report-summary strong { color: var(--tk-navy, #273457); display: block; font-size: 14px; }
.attendance-map { aspect-ratio: 16 / 9; background: #eaf1ff; border-radius: 14px; overflow: hidden; }
.attendance-map iframe { border: 0; height: 100%; width: 100%; }
.map-coordinates { color: var(--tk-muted, #6e7b96); font-size: 12px; margin: 12px 0 0; }
.evidence-photo-wrap { align-items: center; display: flex; justify-content: center; min-height: 280px; }
.evidence-photo { border-radius: 14px; max-height: 420px; object-fit: contain; width: 100%; }
.empty-evidence { color: var(--tk-muted, #6e7b96); padding: 42px 16px; text-align: center; }
.empty-evidence i { color: var(--tk-blue, #165dcc); font-size: 38px; margin-bottom: 12px; }
.empty-evidence p { margin: 0; }

@media (max-width: 991px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
  .course-grid, .report-summary { grid-template-columns: 1fr; }
  .course-card { border-radius: 14px; padding: 16px; }
  .attendance-table th:nth-child(3), .attendance-table td:nth-child(3) { min-width: 190px; }
}

/* =========================================================
   Identidad Tecnikids y shell principal
   ========================================================= */

html {
  background: var(--tk-canvas);
}

body.font-nunito {
  background: var(--tk-canvas);
  color: var(--tk-navy);
}

.tk-skip-link {
  background: #fff;
  border-radius: 0 0 8px 8px;
  color: var(--tk-navy-dark);
  font-weight: 800;
  left: 20px;
  padding: 10px 16px;
  position: fixed;
  top: -60px;
  transition: top .2s ease;
  z-index: 99999;
}

.tk-skip-link:focus {
  top: 0;
}

#wrapper.theme-cyan:before {
  background:
    radial-gradient(circle at 88% 5%, rgba(53, 121, 232, .16), transparent 28%),
    linear-gradient(180deg, rgba(36, 95, 211, .08), transparent 280px);
  height: 320px;
}

/* El tema base posiciona la barra con left:280px y width:calc(100% - 330px),
   pensado para un sidebar de 280px mas una columna de iconos de 50px que esta
   plantilla no usa: dejaba una franja muerta a la derecha y descuadraba el
   bloque de marca. Aqui ocupa todo el ancho y el bloque oscuro de 260px queda
   alineado exactamente sobre el sidebar. */
.tk-navbar {
  background: #fff;
  border: 0;
  box-shadow: 0 8px 28px rgba(31, 52, 95, .09);
  left: 0;
  min-height: 66px;
  padding-left: 0;
  width: 100%;
}

/* Al contraer el sidebar el tema vuelve a aplicar width:calc(100% - 50px);
   se mantiene el ancho completo tambien en ese estado. */
body.layout-fullwidth #wrapper .tk-navbar {
  left: 0;
  width: 100%;
}

.tk-navbar .container-fluid {
  align-items: center;
  display: flex;
  min-height: 66px;
  padding-left: 0;
}

.tk-navbar-brand {
  align-items: center;
  display: flex;
  gap: 5px;
  height: 66px;
  margin: 0;
  padding: 0 15px;
  width: 260px;
}

.tk-brand-link {
  align-items: center;
  display: flex;
  flex: 1;
  min-width: 0;
}

.tk-brand-link img {
  display: block;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  width: 190px;
}

.tk-menu-button {
  align-items: center;
  background: rgba(255, 255, 255, .10);
  border: 0;
  border-radius: 9px;
  color: #fff;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  min-width: 36px;
}

.tk-menu-button:hover,
.tk-menu-button:focus {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.tk-navbar-right {
  margin-left: auto;
}

.tk-navbar-user {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 54px;
  padding: 0 14px;
}

.tk-navbar-name {
  color: var(--tk-navy);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}

.tk-navbar-user small {
  color: var(--aula-muted);
  font-size: 11px;
  margin-top: 3px;
}

.tk-logout-button {
  align-items: center;
  background: #f1f5fc;
  border-radius: 50%;
  color: var(--tk-navy);
  display: inline-flex !important;
  height: 40px;
  justify-content: center;
  margin-right: 4px;
  width: 40px;
}

.tk-logout-button:hover,
.tk-logout-button:focus {
  background: rgba(223, 23, 35, .10);
  color: var(--tk-red);
}

/* El tema base deja height:100vh partiendo de top:66px, asi que la barra
   sobresalia 66px por debajo del viewport y las ultimas entradas del menu
   quedaban fuera de alcance. */
.tk-sidebar {
  background: #fff;
  border: 0;
  box-shadow: 14px 18px 36px rgba(34, 51, 91, .07);
  height: calc(100vh - 66px);
  top: 66px;
  width: 260px;
}

.tk-sidebar-close {
  align-items: center;
  background: var(--tk-blue);
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  display: none;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: -18px;
  top: 16px;
  width: 38px;
  z-index: 10;
}

.sidebar .tk-user-account {
  align-items: center;
  background: linear-gradient(145deg, #eef4ff, #fff);
  border: 1px solid #dfe8f7;
  display: flex;
  gap: 12px;
  margin: 30px 14px 14px 14px;
  padding: 15px;
}

.sidebar .tk-user-account .user-photo {
  flex: 0 0 52px;
  height: 52px;
  margin: 0;
  object-fit: cover;
  width: 52px;
}

.tk-user-details {
  min-width: 0;
}

.tk-welcome {
  color: var(--aula-muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
}

.tk-user-details .user-name {
  align-items: center;
  color: var(--tk-navy);
  display: flex;
  gap: 6px;
  max-width: 145px;
}

.tk-user-details .user-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-role-badge {
  background: rgba(36, 95, 211, .10);
  border-radius: 999px;
  color: var(--tk-blue);
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  margin-top: 7px;
  padding: 4px 8px;
  text-transform: uppercase;
}

.tk-sidebar-content {
  padding: 0 0 24px;
}

.sidebar-nav .metismenu .menu-section-title {
  color: #9099ad;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  margin: 18px 20px 7px;
  text-transform: uppercase;
}

/* Flex en lugar de bloque con elementos en linea: asi una etiqueta larga como
   "Asignaciones docentes" ya no salta de renglon debajo del icono. El
   padding-right reserva el sitio de la flecha de .has-arrow (right: 1.5em). */
.sidebar-nav .metismenu > li > a {
  align-items: center;
  border-radius: 11px;
  color: #56617a;
  display: flex;
  font-size: 13px;
  font-weight: 750;
  gap: 10px;
  margin: 3px 12px;
  min-height: 44px;
  padding: 11px 13px;
}

.sidebar-nav .metismenu > li > a.has-arrow {
  padding-right: 32px;
}

.sidebar-nav .metismenu > li > a i {
  color: #63759b;
  flex: 0 0 20px;
  font-size: 15px;
  min-width: 20px;
  text-align: center;
}

/* min-width:0 permite que el texto se recorte o baje de linea dentro de su
   columna, sin empujar el icono ni pisar la flecha. */
.sidebar-nav .metismenu > li > a > span {
  flex: 1 1 auto;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sidebar-nav .metismenu > li.active > a,
.sidebar-nav .metismenu > li > a:hover,
.sidebar-nav .metismenu > li > a:focus {
  background: linear-gradient(135deg, var(--tk-blue), #1768df);
  box-shadow: 0 9px 20px rgba(36, 95, 211, .22);
  color: #fff;
}

.sidebar-nav .metismenu > li.active > a i,
.sidebar-nav .metismenu > li > a:hover i,
.sidebar-nav .metismenu > li > a:focus i {
  color: #fff;
}

.sidebar-nav .metismenu > li.menu-logout > a {
  color: #b52f3a;
  margin-top: 18px;
}

.sidebar-nav .metismenu > li.menu-logout > a i {
  color: var(--tk-red);
}

.collapse-content {
  background: #f7f9fd;
  border-left: 2px solid var(--tk-blue);
  border-radius: 0 10px 10px 0;
  margin: 2px 18px 8px 28px;
  padding: 5px 0;
}

.collapse-content li {
  list-style: none;
}

.collapse-content a {
  border-radius: 7px;
  color: #66718a;
  font-size: 12px;
  font-weight: 700;
  margin: 2px 6px;
  padding: 8px 11px;
}

.collapse-content a:hover,
.collapse-content a:focus {
  background: #e9f0fc;
  color: var(--tk-blue);
}

.sidebar-nav .metismenu > li.active > .collapse-content {
  display: block;
}

.tk-sidebar-backdrop {
  background: rgba(17, 29, 54, .54);
  border: 0;
  bottom: 0;
  display: none;
  left: 0;
  padding: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 8;
}

/* Pantalla de carga.
   El tema base la pintaba con background: var(--primary-color), variable que
   esta plantilla no define: el velo quedaba transparente y lo unico visible era
   .tk-loader, una caja oscura que ocupaba todo el ancho a la altura del 40%.
   Aqui el velo cubre la ventana completa en claro y la tarjeta va centrada. */
.page-loader-wrapper {
  align-items: center;
  background: #f4f7fb;
  display: flex;
  justify-content: center;
}

/* Anula el top: calc(40% - 30px) del tema, ahora centra el flex. */
.page-loader-wrapper .loader {
  top: auto;
}

.tk-loader {
  background: #fff;
  border: 1px solid rgba(54, 83, 137, .10);
  border-radius: 16px;
  box-shadow: var(--tk-shadow);
  max-width: 340px;
  padding: 28px 32px;
  width: calc(100% - 32px);
}

.tk-loader img {
  height: auto;
  max-width: 100%;
}

.tk-loader p {
  color: var(--tk-navy);
  font-weight: 700;
  margin: 12px 0 0;
}

#main-content {
  padding-top: 84px;
}

#main-content .container-fluid {
  max-width: 1440px;
  padding-left: 24px;
  padding-right: 24px;
}

.card {
  border: 1px solid rgba(54, 83, 137, .10);
  border-radius: var(--tk-radius);
  box-shadow: var(--tk-shadow);
}

.btn,
.form-control {
  border-radius: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--tk-blue), #1768df);
  border-color: var(--tk-blue);
  box-shadow: 0 8px 18px rgba(36, 95, 211, .18);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #1d4faa, var(--tk-blue));
  border-color: #1d4faa;
}

.form-control:focus {
  border-color: var(--tk-blue-bright);
  box-shadow: 0 0 0 3px rgba(36, 95, 211, .13);
}

.page-heading {
  margin-top: 18px;
}

.page-kicker,
.tk-eyebrow {
  color: var(--tk-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.table thead th {
  background: #eef3fb;
  color: #536180;
}

.dataTables_wrapper {
  width: 100%;
}

/* Dashboards */
.tk-dashboard-hero {
  align-items: flex-end;
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, .18), transparent 24%),
    radial-gradient(circle at 92% 78%, rgba(80, 173, 47, .20), transparent 22%),
    linear-gradient(120deg, #173b7a 0%, #245fd3 55%, #3579e8 100%);
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(36, 95, 211, .22);
  color: #fff;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin: 20px 0 0;
  min-height: 250px;
  overflow: hidden;
  padding: 38px 40px 72px;
  position: relative;
}

.tk-dashboard-hero:before,
.tk-dashboard-hero:after {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  content: "";
  height: 260px;
  position: absolute;
  right: -80px;
  top: -120px;
  width: 260px;
}

.tk-dashboard-hero:after {
  height: 170px;
  right: 90px;
  top: 145px;
  width: 170px;
}

.tk-dashboard-copy,
.tk-quick-actions {
  position: relative;
  z-index: 1;
}

.tk-dashboard-copy {
  max-width: 650px;
}

.tk-dashboard-copy .tk-eyebrow {
  color: #cfe0ff;
}

.tk-dashboard-copy h1 {
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 850;
  letter-spacing: -.035em;
  margin: 9px 0 10px;
}

.tk-dashboard-copy p {
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.tk-quick-actions {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
}

.tk-quick-actions a {
  align-items: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 800;
  gap: 8px;
  min-width: 72px;
  text-align: center;
}

.tk-quick-actions a i {
  align-items: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .30);
  border-radius: 50%;
  display: inline-flex;
  font-size: 18px;
  height: 54px;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
  width: 54px;
}

.tk-quick-actions a:hover i,
.tk-quick-actions a:focus i {
  background: rgba(255, 255, 255, .24);
  transform: translateY(-3px);
}

.tk-metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -48px 18px 24px;
  position: relative;
  z-index: 2;
}

.tk-metric-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tk-metric-card {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(49, 75, 127, .09);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(34, 57, 102, .10);
  display: flex;
  gap: 14px;
  min-height: 126px;
  padding: 18px;
}

.tk-metric-icon {
  align-items: center;
  background: rgba(36, 95, 211, .11);
  border-radius: 14px;
  color: var(--tk-blue);
  display: inline-flex;
  flex: 0 0 46px;
  font-size: 18px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.tk-metric-icon.is-green {
  background: rgba(80, 173, 47, .12);
  color: #3f9025;
}

.tk-metric-icon.is-yellow {
  background: rgba(245, 201, 22, .16);
  color: #ac8500;
}

.tk-metric-icon.is-red {
  background: rgba(223, 23, 35, .10);
  color: var(--tk-red);
}

.tk-metric-card small {
  color: var(--aula-muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tk-metric-card strong {
  color: var(--tk-navy);
  display: block;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  margin: 2px 0;
}

.tk-metric-card p {
  color: #929aae;
  font-size: 11px;
  margin: 0;
}

.tk-panel-title {
  color: var(--tk-navy);
  font-size: 20px;
  font-weight: 850;
  margin: 6px 0 18px;
}

.tk-dashboard-panels {
  margin-top: 4px;
}

.tk-admin-links {
  display: grid;
  gap: 10px;
}

.tk-admin-links a {
  align-items: center;
  background: #f5f8fd;
  border: 1px solid #e2e9f4;
  border-radius: 12px;
  color: var(--tk-navy);
  display: grid;
  gap: 2px 12px;
  grid-template-columns: 42px 1fr;
  padding: 12px;
}

.tk-admin-links a > i {
  align-items: center;
  background: #e7eefb;
  border-radius: 10px;
  color: var(--tk-blue);
  display: flex;
  grid-row: 1 / span 2;
  height: 42px;
  justify-content: center;
}

.tk-admin-links a span {
  color: var(--aula-muted);
  font-size: 12px;
}

.tk-company-workspace {
  margin-bottom: 32px;
}

.tk-section-heading p {
  color: var(--aula-muted);
  margin: -10px 0 20px;
}

.tk-module-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tk-module-grid a {
  align-items: center;
  background: #f6f8fc;
  border: 1px solid #e1e8f3;
  border-radius: 14px;
  color: var(--tk-navy);
  display: grid;
  gap: 14px;
  grid-template-columns: 48px 1fr auto;
  padding: 17px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.tk-module-grid a:hover,
.tk-module-grid a:focus {
  border-color: rgba(36, 95, 211, .45);
  box-shadow: 0 10px 24px rgba(36, 95, 211, .10);
  transform: translateY(-2px);
}

.tk-module-grid a > i:first-child {
  align-items: center;
  background: rgba(36, 95, 211, .10);
  border-radius: 12px;
  color: var(--tk-blue);
  display: flex;
  font-size: 18px;
  height: 48px;
  justify-content: center;
}

.tk-module-grid strong,
.tk-module-grid span {
  display: block;
}

.tk-module-grid span {
  color: var(--aula-muted);
  font-size: 12px;
  margin-top: 3px;
}

/* Autenticacion */
.tk-auth-page {
  background: var(--tk-canvas);
  color: var(--tk-navy);
  margin: 0;
  min-height: 100vh;
}

.tk-auth-shell {
  display: grid;
  grid-template-columns: minmax(360px, 44%) 1fr;
  min-height: 100vh;
}

.tk-auth-brand-panel {
  background:
    radial-gradient(circle at 15% 80%, rgba(80, 173, 47, .25), transparent 20%),
    radial-gradient(circle at 90% 12%, rgba(53, 121, 232, .30), transparent 28%),
    linear-gradient(145deg, #0b142a, #173b7a 58%, #245fd3);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  position: relative;
}

.tk-auth-brand-panel:before,
.tk-auth-brand-panel:after {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 32px;
  content: "";
  height: 320px;
  position: absolute;
  right: -170px;
  top: 20%;
  transform: rotate(18deg);
  width: 320px;
}

.tk-auth-brand-panel:after {
  bottom: -210px;
  height: 400px;
  left: -180px;
  right: auto;
  top: auto;
  width: 400px;
}

.tk-auth-brand-panel > img {
  background: #05070d;
  border-radius: 14px;
  height: auto;
  max-width: min(100%, 440px);
  padding: 10px 12px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.tk-auth-brand-copy {
  max-width: 590px;
  position: relative;
  z-index: 1;
}

.tk-auth-brand-copy > span {
  color: #c9dbff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tk-auth-brand-copy h1 {
  color: #fff;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin: 14px 0 18px;
}

.tk-auth-brand-copy p {
  color: rgba(255, 255, 255, .76);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.tk-auth-dots {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.tk-auth-dots span {
  background: rgba(255, 255, 255, .35);
  border-radius: 999px;
  height: 7px;
  width: 7px;
}

.tk-auth-dots span:first-child {
  background: #fff;
  width: 28px;
}

.tk-auth-form-panel {
  align-items: center;
  background:
    radial-gradient(circle at 92% 8%, rgba(36, 95, 211, .10), transparent 23%),
    #f5f7fb;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(24px, 6vw, 80px);
}

.tk-auth-card {
  background: #fff;
  border: 1px solid rgba(51, 79, 133, .10);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(34, 55, 98, .13);
  max-width: 500px;
  padding: clamp(28px, 4vw, 48px);
  width: 100%;
}

.tk-auth-card-wide {
  max-width: 660px;
}

.tk-auth-heading {
  margin-bottom: 28px;
}

.tk-auth-heading h2 {
  color: var(--tk-navy);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.03em;
  margin: 7px 0 8px;
}

.tk-auth-heading p {
  color: var(--aula-muted);
  margin: 0;
}

.tk-auth-form label {
  color: #4d5a78;
  font-size: 12px;
  font-weight: 850;
}

.tk-auth-form .form-control {
  background: #f8fafd;
  border: 1px solid #dce4f0;
  height: 50px;
  min-height: 50px;
  padding: 0 14px;
}

.tk-input-icon {
  position: relative;
}

.tk-input-icon > i {
  color: #8390aa;
  left: 16px;
  position: absolute;
  top: 17px;
  z-index: 1;
}

.tk-input-icon .form-control {
  padding-left: 44px;
}

.tk-auth-options {
  align-items: center;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin: 4px 0 22px;
}

.tk-auth-options a,
.tk-auth-footer a {
  color: var(--tk-blue);
  font-weight: 800;
}

.tk-check {
  align-items: center;
  display: flex;
  gap: 7px;
  margin: 0;
}

.tk-auth-submit {
  align-items: center;
  display: flex;
  font-weight: 850;
  justify-content: center;
  min-height: 52px;
}

.tk-auth-submit i {
  margin-left: 9px;
}

.tk-auth-footer {
  color: var(--aula-muted);
  font-size: 13px;
  margin: 22px 0 0;
  text-align: center;
}

@media (max-width: 1199px) {
  .tk-metric-grid-five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tk-auth-shell {
    grid-template-columns: minmax(320px, 40%) 1fr;
  }
}

@media (max-width: 991px) {
  .tk-navbar-brand {
    width: auto;
  }

  .tk-sidebar-close {
    display: inline-flex;
  }

  body.offcanvas-active .tk-sidebar-backdrop {
    display: block;
  }

  .tk-dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 74px;
  }

  .tk-metric-grid,
  .tk-metric-grid-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-auth-shell {
    grid-template-columns: 1fr;
  }

  .tk-auth-brand-panel {
    min-height: 340px;
    padding: 32px;
  }

  .tk-auth-brand-panel > img {
    max-width: 360px;
  }

  .tk-auth-brand-copy h1 {
    font-size: 34px;
  }

  .tk-auth-dots {
    display: none;
  }

  .tk-auth-form-panel {
    min-height: auto;
    padding: 40px 24px;
  }
}

@media (max-width: 767px) {
  .tk-navbar .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }

  .tk-navbar-brand {
    margin-left: -10px;
    padding-left: 10px;
  }

  .tk-brand-link img {
    max-height: 36px;
    width: 145px;
  }

  .tk-navbar-user {
    display: none;
  }

  #main-content .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }

  .tk-dashboard-hero {
    border-radius: 16px;
    margin-top: 10px;
    min-height: 0;
    padding: 28px 22px 72px;
  }

  .tk-dashboard-copy p {
    font-size: 14px;
  }

  .tk-quick-actions {
    gap: 12px;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }

  .tk-quick-actions a {
    min-width: 0;
  }

  .tk-quick-actions a i {
    height: 46px;
    width: 46px;
  }

  .tk-metric-grid,
  .tk-metric-grid-five {
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin: -44px 10px 20px;
  }

  .tk-metric-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    min-height: 154px;
    padding: 14px;
  }

  .tk-metric-card strong {
    font-size: 25px;
  }

  .tk-module-grid {
    grid-template-columns: 1fr;
  }

  .dataTables_wrapper,
  .card-body {
    overflow-x: auto;
  }

  .table.nowrap,
  .table.dt-responsive {
    min-width: 680px;
  }

  .tk-auth-brand-panel {
    min-height: 300px;
    padding: 24px;
  }

  .tk-auth-brand-panel > img {
    max-width: 290px;
  }

  .tk-auth-brand-copy h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .tk-auth-brand-copy p {
    font-size: 14px;
  }

  .tk-auth-form-panel {
    padding: 24px 15px 36px;
  }

  .tk-auth-card {
    border-radius: 16px;
    padding: 26px 20px;
  }

  .tk-auth-heading h2 {
    font-size: 27px;
  }
}

@media (max-width: 420px) {
  .tk-brand-link img {
    width: 126px;
  }

  .tk-quick-actions a span {
    display: none;
  }

  .tk-metric-grid,
  .tk-metric-grid-five {
    grid-template-columns: 1fr;
  }

  .tk-metric-card {
    align-items: center;
    flex-direction: row;
    min-height: 112px;
  }

  .tk-auth-brand-panel {
    min-height: 270px;
  }

  .tk-auth-brand-copy h1 {
    font-size: 24px;
  }

  .tk-auth-brand-copy p {
    display: none;
  }
}
