/* =========================================================
   CONFIGURACIÓN GENERAL
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;

  background: #f2f6fc;
  color: #10213e;

  font-family: "Source Sans Pro", Arial, sans-serif;
}

/* Evita conflictos con AdminLTE */

.content-wrapper {
  min-height: auto !important;
  margin-left: 0 !important;
  background: transparent !important;
}

.student-page {
  width: 100%;
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(65, 139, 255, 0.09),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #f8fbff 0%,
      #f1f5fb 100%
    );
}

/* =========================================================
   CABECERA MODERNA
========================================================= */

.student-modern-header {
  position: relative;

  width: 100%;
  min-height: 96px;

  display: flex;
  align-items: flex-start;

  overflow: visible;

  background: #f5f8fc;

  border-bottom: 1px solid #dce5f0;

  box-shadow:
    0 7px 22px rgba(9, 42, 87, 0.07);
}

/* Fondo azul */

.student-modern-header-bg {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 82px;

  background:
    radial-gradient(
      circle at 22% 10%,
      rgba(72, 157, 255, 0.17),
      transparent 28%
    ),
    radial-gradient(
      circle at 78% 90%,
      rgba(71, 142, 240, 0.12),
      transparent 28%
    ),
    linear-gradient(
      105deg,
      #062e68 0%,
      #0b478e 50%,
      #062e68 100%
    );

  box-shadow:
    0 7px 20px rgba(4, 31, 72, 0.16);
}

/* Contenedor interno */

.student-modern-header-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1220px;

  margin: 0 auto;
  padding: 15px 24px;

  display: grid;

  grid-template-columns:
    130px 1fr 150px;

  align-items: center;
  gap: 22px;
}

/* =========================================================
   LOGO FLOTANTE
========================================================= */

.student-modern-logo {
  width: 108px;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 32px 12px 12px 12px;



  transform: translateY(13px);
}

.student-modern-logo img {
  display: block;
  width: 178px;
  height: 102px;

  object-fit: contain;
}

/* =========================================================
   TÍTULO DE LA CABECERA
========================================================= */

.student-modern-heading {
  padding-top: 1px;

  text-align: center;
}

.student-modern-subtitle {
  display: block;

  margin-bottom: 3px;

  color: rgba(255, 255, 255, 0.76);

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.3px;

  text-transform: uppercase;
}

.student-modern-heading h1 {
  margin: 0;

  color: #ffffff;

  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.student-modern-heading h1 span {
  position: relative;

  margin-left: 12px;
  padding-left: 14px;

  color: rgba(255, 255, 255, 0.88);

  font-weight: 400;
}

.student-modern-heading h1 span::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 0;

  width: 1px;
  height: 18px;

  background: rgba(255, 255, 255, 0.40);

  transform: translateY(-50%);
}

/* =========================================================
   PORTAL SEGURO
========================================================= */

.student-modern-security {
  justify-self: end;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 40px;

  background: rgba(255, 255, 255, 0.09);

  color: rgba(255, 255, 255, 0.88);

  font-size: 12px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.student-modern-security i {
  color: #74b4ff;
}

/* =========================================================
   CONTENIDO PRINCIPAL
========================================================= */

.student-main {
  width: 100%;
  max-width: 1220px;

  margin: 0 auto;
  padding: 38px 20px 40px;

  /* 40 px normales + aproximadamente 58 px del footer */
  padding: 38px 20px 105px;

  flex: 1;
}

/* =========================================================
   TARJETA PRINCIPAL DEL ALUMNO
========================================================= */

.student-profile-card {
  position: relative;

  margin-bottom: 20px;
  padding: 24px 28px 26px;

  overflow: hidden;

  border: 1px solid #dfe7f1;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.97);

  box-shadow:
    0 14px 36px rgba(15, 48, 93, 0.08),
    0 2px 6px rgba(15, 48, 93, 0.04);
}

/* Línea superior azul */

.student-profile-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 4px;

  background: linear-gradient(
    90deg,
    #398cff,
    #0d52cb
  );
}

/* Decoración circular derecha */

.student-profile-card::after {
  content: "";

  position: absolute;

  top: -120px;
  right: -90px;

  width: 270px;
  height: 270px;

  border-radius: 50%;

  background: rgba(48, 133, 255, 0.065);

  pointer-events: none;
}

/* =========================================================
   CABECERA DEL PERFIL
========================================================= */

.student-profile-top {
  position: relative;
  z-index: 2;

  min-height: 105px;

  margin-bottom: 16px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.student-profile-name {
  display: flex;
  align-items: center;
  gap: 16px;
}

.student-profile-icon {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 52px;

  border-radius: 50%;

  background: linear-gradient(
    145deg,
    #418fff,
    #0a54d0
  );

  color: #ffffff;

  font-size: 21px;

  box-shadow:
    0 10px 22px rgba(16, 91, 207, 0.25);
}

.student-profile-label {
  display: block;

  margin-bottom: 3px;

  color: #61738c;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.3px;

  text-transform: uppercase;
}

.student-profile-name h1 {
  margin: 0;

  color: #0a1d3f;

  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
}

/* =========================================================
   FOTO DEL ALUMNO
========================================================= */

.student-avatar-wrapper {
  position: relative;

  flex: 0 0 124px;
}

.student-avatar-ring {
  width: 124px;
  height: 124px;

  padding: 5px;

  border: 3px solid #246bd2;
  border-radius: 50%;

  background: #ffffff;

  box-shadow:
    0 10px 24px rgba(17, 68, 142, 0.18);
}

.student-avatar {
  width: 100%;
  height: 100%;

  display: block;

  border-radius: 50%;

  object-fit: cover;
}

.student-verified-icon {
  position: absolute;

  right: 3px;
  bottom: 6px;

  width: 29px;
  height: 29px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 3px solid #ffffff;
  border-radius: 50%;

  background: #18a957;
  color: #ffffff;

  font-size: 11px;

  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   INFORMACIÓN DEL ALUMNO
========================================================= */

.student-information-grid {
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;
}

.student-info-box {
  min-height: 70px;

  display: flex;
  align-items: center;

  overflow: hidden;

  border: 1px solid #dfe6ef;
  border-radius: 13px;

  background: #ffffff;

  box-shadow:
    0 5px 14px rgba(25, 57, 99, 0.04);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.student-info-box:hover {
  border-color: #bcd2f1;

  transform: translateY(-2px);

  box-shadow:
    0 10px 20px rgba(25, 57, 99, 0.08);
}

.student-info-address {
  grid-column: 1 / -1;
}

.student-info-icon {
  width: 70px;

  align-self: stretch;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 70px;

  background: linear-gradient(
    145deg,
    #347fdc,
    #1552a8
  );

  color: #ffffff;

  font-size: 21px;
}

.student-info-content {
  min-width: 0;

  padding: 12px 16px;
}

.student-info-content span {
  display: block;

  margin-bottom: 4px;

  color: #5d6f88;

  font-size: 12px;
  font-weight: 600;
}

.student-info-content strong {
  display: block;

  color: #10213d;

  font-size: 14px;
  font-weight: 700;

  overflow-wrap: anywhere;
}

/* =========================================================
   TARJETAS DE TABLAS
========================================================= */

.student-table-card {
  margin-bottom: 18px;
  padding: 20px 22px 22px;

  overflow: hidden;

  border: 1px solid #dfe7f1;
  border-radius: 17px;

  background: rgba(255, 255, 255, 0.97);

  box-shadow:
    0 10px 28px rgba(15, 48, 93, 0.06);
}

.student-card-heading {
  margin-bottom: 16px;
}

.student-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-card-title-icon {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 38px;

  border-radius: 50%;

  background: linear-gradient(
    145deg,
    #317ee4,
    #1552ad
  );

  color: #ffffff;

  font-size: 15px;

  box-shadow:
    0 6px 14px rgba(24, 86, 177, 0.20);
}

.student-card-title h2 {
  margin: 0;

  color: #0d2143;

  font-size: 19px;
  font-weight: 700;
}

.student-card-title p {
  margin: 3px 0 0;

  color: #728198;

  font-size: 12px;
}

/* =========================================================
   CONTENEDOR RESPONSIVE DE TABLAS
========================================================= */

.student-table-responsive {
  width: 100%;

  overflow-x: auto;

  border-radius: 11px;
}

/* =========================================================
   TABLAS
========================================================= */

.student-data-table {
  width: 100% !important;

  margin-bottom: 0 !important;

  border-collapse: separate !important;
  border-spacing: 0;

  color: #26374f;

  font-size: 13px;
}

.student-data-table thead th {
  padding: 13px 12px !important;

  border-top: 1px solid #dae3ee !important;
  border-bottom: 1px solid #d7e0eb !important;

  background: #f6f9fd;

  color: #10213e;

  font-size: 12px;
  font-weight: 700;

  vertical-align: middle;
}

.student-data-table thead th:first-child {
  border-left: 1px solid #dae3ee !important;

  border-top-left-radius: 9px;
}

.student-data-table thead th:last-child {
  border-right: 1px solid #dae3ee !important;

  border-top-right-radius: 9px;
}

.student-data-table tbody td {
  padding: 13px 12px !important;

  border-color: #e1e7ef !important;

  background: #ffffff;

  vertical-align: middle;
}

.student-data-table tbody tr:nth-child(even) td {
  background: #f9fbfe;
}

.student-data-table tbody tr:hover td {
  background: #f1f7ff;
}

.student-table-center {
  text-align: center;
}

/* =========================================================
   BOTÓN PDF
========================================================= */

.student-pdf-button {
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #d1def0;
  border-radius: 9px;

  background: #ffffff;
  color: #1766d7;

  font-size: 16px;
  text-decoration: none;

  transition:
    transform 0.20s ease,
    background-color 0.20s ease,
    color 0.20s ease,
    box-shadow 0.20s ease;
}

.student-pdf-button:hover {
  background: #1766d7;
  color: #ffffff;

  text-decoration: none;

  transform: translateY(-2px);

  box-shadow:
    0 7px 15px rgba(23, 102, 215, 0.23);
}

/* =========================================================
   ESTADOS
========================================================= */

.student-status {
  min-width: 100px;

  padding: 6px 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  border-radius: 50px;

  font-size: 11px;
  font-weight: 700;

  white-space: nowrap;
}

.student-status-verified {
  background: #e2f7e9;
  color: #0c833c;
}

.student-status-pending {
  background: #fff2d8;
  color: #a96800;
}

.student-status-rejected {
  background: #fde5e7;
  color: #b4232f;
}

/* =========================================================
   DATATABLES
========================================================= */

.student-table-card .dataTables_wrapper {
  width: 100%;
}

.student-table-card .dataTables_length {
  margin-bottom: 10px;
}

.student-table-card .dataTables_length label,
.student-table-card .dataTables_filter label {
  color: #52637c;

  font-size: 12px;
  font-weight: 600;
}

.student-table-card .dataTables_length select {
  height: 34px;

  margin: 0 5px;
  padding: 3px 7px;

  border: 1px solid #cfdae7;
  border-radius: 7px;

  background: #ffffff;

  font-size: 12px;
}

.student-table-card .dataTables_filter {
  margin-bottom: 13px;
}

.student-table-card .dataTables_filter input {
  height: 36px;

  margin-left: 7px;
  padding: 4px 11px;

  border: 1px solid #cfdae7;
  border-radius: 9px;

  background: #ffffff;

  font-size: 12px;
  outline: none;
}

.student-table-card .dataTables_filter input:focus {
  border-color: #2a7cef;

  box-shadow:
    0 0 0 3px rgba(42, 124, 239, 0.12);
}

.student-table-card .dataTables_info {
  padding-top: 14px !important;

  color: #687a92;

  font-size: 11px;
}

.student-table-card .dataTables_paginate {
  padding-top: 11px !important;
}

.student-table-card
.dataTables_paginate
.paginate_button {
  min-width: 34px !important;

  margin-left: 3px !important;
  padding: 5px 10px !important;

  border: 1px solid #d2dce8 !important;
  border-radius: 7px !important;

  background: #ffffff !important;
  color: #60728a !important;

  font-size: 11px !important;
}

.student-table-card
.dataTables_paginate
.paginate_button:hover {
  border-color: #93b8eb !important;

  background: #eff6ff !important;
  color: #1766d7 !important;
}

.student-table-card
.dataTables_paginate
.paginate_button.current,
.student-table-card
.dataTables_paginate
.paginate_button.current:hover {
  border-color: #1766db !important;

  background: linear-gradient(
    145deg,
    #368aff,
    #0d58d9
  ) !important;

  color: #ffffff !important;
}

.student-data-table td.dataTables_empty {
  padding: 18px !important;

  color: #6d7c91;

  text-align: center;
}

/* =========================================================
   FOOTER
========================================================= */

.student-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 999;

  width: 100%;
  min-height: 58px;

  padding: 12px 60px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;

  background: linear-gradient(
    100deg,
    #05295f,
    #062356
  );

  border-top: 1px solid rgba(255, 255, 255, 0.12);

  color: rgba(255, 255, 255, 0.74);

  font-size: 12px;

  box-shadow:
    0 -8px 22px rgba(3, 24, 56, 0.18);
}

.student-footer-item,
.student-footer-center {
  display: flex;
  align-items: center;

  white-space: nowrap;
}

.student-footer-item i {
  margin-right: 8px;
}

.student-footer-center strong {
  margin-left: 6px;

  color: #4094ff;
}

.student-footer-divider {
  margin: 0 14px;

  color: rgba(255, 255, 255, 0.34);
}

/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 900px) {

  .student-modern-header-content {
    grid-template-columns:
      110px 1fr;

    gap: 18px;

    padding-left: 18px;
    padding-right: 18px;
  }

  .student-modern-logo {
    width: 102px;
    height: 59px;
  }

  .student-modern-security {
    display: none;
  }

  .student-modern-heading {
    text-align: left;
  }

  .student-modern-heading h1 {
    font-size: 18px;
  }

  .student-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .student-profile-top {
    min-height: auto;
  }

  .student-information-grid {
    grid-template-columns: 1fr;
  }

  .student-info-address {
    grid-column: auto;
  }

  .student-footer {
    justify-content: center;

    padding: 17px 18px;
  }

  .student-footer-item {
    display: none;
  }

}

/* =========================================================
   RESPONSIVE CELULAR
========================================================= */

@media (max-width: 600px) {

  .student-modern-header {
    min-height: 100px;
  }

  .student-modern-header-bg {
    height: 70px;
  }

  .student-modern-header-content {
    grid-template-columns:
      82px 1fr;

    gap: 12px;

    padding: 12px 13px 10px;
  }

  .student-modern-logo {
    width: 78px;
    height: 50px;

    padding: 7px 9px;

    border-radius: 13px;

    transform: translateY(12px);
  }

  .student-modern-subtitle {
    font-size: 10px;
    letter-spacing: 0.7px;
  }

  .student-modern-heading {
    padding-top: 4px;
  }

  .student-modern-heading h1 {
    font-size: 15px;
  }

  .student-modern-heading h1 span {
    display: block;

    margin: 2px 0 0;
    padding: 0;

    font-size: 13px;
  }

  .student-modern-heading h1 span::before {
    display: none;
  }

  .student-main {
    padding: 28px 12px 28px;
  }

  .student-profile-card {
    padding: 22px 16px;
  }

  .student-profile-top {
    flex-direction: column-reverse;
    align-items: center;

    text-align: center;
  }

  .student-profile-name {
    flex-direction: column;
  }

  .student-profile-name h1 {
    font-size: 21px;
  }

  .student-avatar-wrapper {
    flex-basis: auto;
  }

  .student-avatar-ring {
    width: 108px;
    height: 108px;
  }

  .student-information-grid {
    gap: 10px;
  }

  .student-info-icon {
    width: 54px;
    flex-basis: 54px;
  }

  .student-info-content {
    padding: 11px 12px;
  }

  .student-info-content strong {
    font-size: 13px;
  }

  .student-table-card {
    padding: 16px 12px;
  }

  .student-card-title h2 {
    font-size: 16px;
  }

  .student-card-title p {
    display: none;
  }

  .student-table-card .dataTables_filter,
  .student-table-card .dataTables_length {
    float: none !important;

    width: 100%;

    text-align: left !important;
  }

  .student-table-card .dataTables_filter input {
    width: calc(100% - 58px);

    margin-top: 7px;
  }

  .student-table-card .dataTables_info,
  .student-table-card .dataTables_paginate {
    float: none !important;

    width: 100%;

    text-align: center !important;
  }

  .student-footer {
    min-height: 60px;

    padding: 14px 10px;

    font-size: 11px;
    text-align: center;
  }

  .student-footer-center {
    justify-content: center;
    flex-wrap: wrap;
  }

  .student-footer-divider {
    display: none;
  }

}

/* =========================================================
   PANTALLAS MUY PEQUEÑAS
========================================================= */

@media (max-width: 400px) {

  .student-modern-header-content {
    grid-template-columns:
      70px 1fr;

    gap: 9px;
  }

  .student-modern-logo {
    width: 68px;
    height: 45px;
  }

  .student-modern-heading h1 {
    font-size: 14px;
  }

  .student-profile-name h1 {
    font-size: 19px;
  }

  .student-info-icon {
    width: 49px;
    flex-basis: 49px;
  }

  .student-info-content span {
    font-size: 11px;
  }

  .student-info-content strong {
    font-size: 12px;
  }

}