.estudiantes-page {
  --student-blue: #0A3C84;
  --student-blue-hover: #082C62;
  --student-bone: #FAF9F5;
  --student-section: #F2EFEB;
  --student-card: #FFFFFF;
  --student-hover: #EAECEF;
  --student-border: #E2E8F0;
  --student-border-hover: #94A3B8;
  background: var(--student-bone);
  padding-bottom: 7.5rem;
}

.student-directory-main {
  max-width: 1680px;
  margin-inline: auto;
  background: var(--student-bone);
}

.student-hero {
  position: relative;
  padding-block: clamp(1.5rem, 4vw, 3rem) 2.5rem;
}

.student-hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  letter-spacing: -.055em;
  line-height: .98;
}

.student-hero p {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: clamp(.8rem, 1.2vw, .95rem);
  line-height: 1.55;
}

.student-filter-region {
  position: static;
  z-index: auto;
  width: 100%;
  margin-inline: auto;
}

.student-filter-dock {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: calc(100% - 2.5rem);
  max-width: 920px;
  transform: translate(-50%, 28px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity, transform;
  transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .7s;
}

.student-filter-dock.is-scroll-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1), visibility 0s linear 0s;
}

.student-filter-bar {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: .35rem !important;
  background: var(--student-section) !important;
  border-radius: 999px !important;
  border-color: #d8dee8;
  box-shadow: 0 12px 32px rgba(10, 60, 132, .14);
}

.student-filter-bar:focus-within {
  border-color: var(--student-blue);
  box-shadow: 0 10px 24px rgba(8, 44, 98, .12), 0 0 0 3px rgba(10, 60, 132, .12);
}

.estudiantes-page .vcass-nav-container {
  box-shadow: 0 8px 22px rgba(0, 0, 0, .26) !important;
}

.estudiantes-page .vcass-header-wrapper.scrolled .vcass-nav-container {
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3) !important;
}

.student-filter-bar input {
  min-height: 42px;
}

.student-filter-bar > button[type="submit"] {
  min-height: 44px;
  align-self: center;
  margin-right: .3rem;
  background: var(--student-blue);
}

.student-filter-bar > button[type="submit"]:hover {
  background: var(--student-blue-hover);
}

.student-province-control {
  min-width: 190px;
  min-height: 44px;
}

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

.student-province-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  min-height: 44px;
  min-width: 155px;
  padding: .55rem .55rem .55rem 0;
  border: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.student-province-trigger:focus-visible,
.student-province-option:focus-visible,
.student-career-suggestions button:focus-visible {
  outline: 3px solid rgba(10, 60, 132, .24);
  outline-offset: 2px;
}

.student-province-trigger i {
  color: #94a3b8;
  font-size: .6rem;
  transition: transform .2s ease;
}

.student-province-trigger[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.student-province-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + .7rem);
  display: none;
  width: 100%;
  min-width: 190px;
  max-height: min(340px, 45vh);
  overflow-y: auto;
  padding: .4rem;
  background: var(--student-card);
  border: 1px solid var(--student-border);
  border-radius: .9rem;
  box-shadow: 0 18px 38px rgba(8, 44, 98, .16);
}

.student-province-options.is-open {
  display: grid;
  gap: .15rem;
}

.student-province-option {
  width: 100%;
  padding: .65rem .7rem;
  border: 0;
  border-radius: .6rem;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  text-align: left;
}

.student-province-option:hover,
.student-province-option.is-selected {
  background: var(--student-hover);
  color: var(--student-blue);
  font-weight: 800;
}

.student-province-option.is-selected::after {
  float: right;
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-size: .7rem;
}

.student-career-suggestions {
  max-width: 1120px;
  margin-inline: auto;
  margin-top: 1rem;
  padding-top: .25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.student-career-suggestions::-webkit-scrollbar {
  display: none;
}

.student-career-suggestions .career-chip {
  border: 1px solid var(--student-border);
  background: var(--student-card);
  border-radius: 999px;
  padding: .5rem .8rem;
}

.student-career-suggestions .career-chip:hover,
.student-career-suggestions .career-chip.active-chip {
  border-color: var(--student-blue);
  background: var(--student-blue);
  color: #fff;
}

.student-results-header {
  max-width: 1600px;
  width: 100%;
  margin: 1rem auto 0;
  border-color: var(--student-border);
  color: #64748b;
}

.student-editorial-grid {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px));
  justify-content: center;
  align-items: start;
  gap: clamp(1.25rem, 1.8vw, 1.75rem);
}

.estudiantes-page .editorial-student-card {
  width: 100%;
  max-width: 360px;
  min-width: 0;
  align-self: start;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform .25s ease;
}

.estudiantes-page .editorial-student-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.estudiantes-page .editorial-student-card:focus-visible {
  outline: 3px solid rgba(10, 60, 132, .3);
  outline-offset: 5px;
}

.student-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  height: auto !important;
  overflow: hidden;
  border-radius: .75rem;
  background: var(--student-section);
}

.student-card-image {
  transition: transform .55s cubic-bezier(.2, .65, .2, 1), filter .35s ease;
}

.editorial-student-card:hover .student-card-image {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.student-card-badge {
  top: .8rem !important;
  right: .8rem !important;
  padding: .42rem .65rem !important;
  border: 1px solid rgba(226, 232, 240, .9) !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 12px rgba(8, 44, 98, .1) !important;
  color: var(--student-blue) !important;
  font-size: .65rem;
}

.student-card-body {
  min-height: 208px;
  padding: 1.15rem .15rem 0 !important;
}

.student-card-name {
  margin: 0 0 .35rem !important;
  color: #172033 !important;
  font-family: var(--heading-font);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.025em;
  line-height: 1.08 !important;
}

.editorial-student-card:hover .student-card-name {
  color: var(--student-blue) !important;
}

.student-card-career {
  margin: 0 0 .45rem !important;
  color: var(--student-blue) !important;
  font-size: .76rem !important;
  font-weight: 800 !important;
  line-height: 1.35;
}

.student-card-university {
  max-width: 100%;
  margin-bottom: .75rem !important;
  overflow: hidden;
  color: #64748b !important;
  font-size: .76rem !important;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-card-university span {
  background: var(--student-hover) !important;
  border-color: var(--student-border) !important;
}

.student-card-location {
  margin-bottom: .85rem !important;
  padding-block: .65rem !important;
  border-color: var(--student-border) !important;
}

.student-card-location span {
  overflow: hidden;
  color: #64748b;
  font-size: .74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-card-footer {
  padding-top: .15rem;
}

.student-card-footer > div:first-child span:first-child {
  color: var(--student-blue) !important;
  font-size: .75rem;
}

.student-card-footer > div:last-child {
  border: 1px solid var(--student-blue);
  border-radius: 999px;
  background: transparent !important;
  color: var(--student-blue) !important;
  padding: .55rem .85rem !important;
  font-size: .7rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.editorial-student-card:hover .student-card-footer > div:last-child,
.student-card-footer > div:last-child:focus-visible {
  background: var(--student-blue) !important;
  color: #fff !important;
}

@media (min-width: 1440px) {
  .student-editorial-grid {
    grid-template-columns: repeat(4, minmax(0, 360px));
  }

  .student-editorial-grid.student-count-1 {
    grid-template-columns: minmax(0, 360px);
  }

  .student-editorial-grid.student-count-2 {
    grid-template-columns: repeat(2, minmax(0, 360px));
  }

  .student-editorial-grid.student-count-3 {
    grid-template-columns: repeat(3, minmax(0, 360px));
  }
}

@media (min-width: 901px) and (max-width: 1439px) {
  .student-editorial-grid {
    grid-template-columns: repeat(3, minmax(0, 360px));
  }

  .student-editorial-grid.student-count-1 {
    grid-template-columns: minmax(0, 360px);
  }

  .student-editorial-grid.student-count-2 {
    grid-template-columns: repeat(2, minmax(0, 360px));
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .student-editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 360px));
  }

  .student-editorial-grid.student-count-1 {
    grid-template-columns: minmax(0, 360px);
  }
}

@media (max-width: 900px) {
  .student-filter-bar {
    min-height: 58px;
  }

  .student-province-control {
    min-width: 165px;
  }
}

@media (max-width: 640px) {
  .estudiantes-page {
    padding-bottom: 9rem;
  }

  .student-hero {
    padding-bottom: 2.5rem;
  }

  .student-filter-dock {
    width: calc(100% - 1.5rem);
    transform: translate(-50%, 28px);
  }

  .student-filter-dock.is-scroll-visible {
    transform: translate(-50%, 0);
  }

  .student-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem;
    padding: .45rem;
    border-radius: 1.25rem !important;
  }

  .student-filter-bar > .flex-grow {
    grid-column: 1 / -1;
    width: 100%;
  }

  .student-filter-bar > .h-6 {
    display: none;
  }

  .student-province-control {
    grid-column: 1;
    min-width: 0;
    padding-left: .6rem;
  }

  .student-province-trigger {
    min-width: 0;
    width: 100%;
  }

  .student-province-options {
    right: auto;
    left: 0;
    width: min(230px, calc(100vw - 2rem));
  }

  .student-filter-bar > button[type="submit"] {
    grid-column: 2;
    align-self: center;
    margin-right: .2rem;
    padding-inline: 1.1rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .student-province-trigger i,
  .student-filter-bar,
  .student-career-suggestions .career-chip,
  .student-filter-dock {
    transition: none;
  }
}
