.directory-container {
  background: #f5f5f5;
}
.directory {
  box-sizing: border-box;
  min-height: 100vh;
  margin: 0 auto;
  font:
    16px/1.5 Carlito,
    system-ui,
    Segoe UI,
    Roboto,
    sans-serif;
}
.directory__title {
  color: #1a1a2e;
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
}
.directory__section {
  margin-bottom: 40px;
}
.directory__section:last-child {
  margin-bottom: 0;
}
.directory__section-title {
  color: #262626;
  margin: 0 0 24px;
  padding-bottom: 8px;
  font-size: 32px;
  font-weight: 700;
  position: relative;
  font-family:
    Carlito,
    system-ui,
    Segoe UI,
    Roboto,
    sans-serif !important;
}
.directory__section-title:after {
  content: "";
  background: #1e3a5e;
  border-radius: 2px;
  width: 60px;
  height: 4px;
  position: absolute;
  bottom: 0;
  left: 0;
}
.directory__grid {
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 33.3333%), 1fr));
  gap: 24px;
  display: grid;
}
.directory__empty,
.directory__loading {
  text-align: center;
  color: #525252;
  grid-column: 1/-1;
  padding: 48px 16px;
  font-size: 15px;
}
.directory__loading-spinner {
  border: 3px solid #e0e0e0;
  border-top-color: #1e3a5e;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  animation: 0.8s linear infinite spin;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.filter-bar {
  margin-bottom: 32px;
}
.filter-bar__top {
  align-items: center;
  gap: 16px;
  display: flex;
}
.filter-bar__btn {
  font: inherit;
  font-family: var(--sans);
  color: #1e3a5e;
  cursor: pointer;
  background: #fff;
  border: 2px solid #1e3a5e;
  border-radius: 30px;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s;
  display: flex;
}
.filter-bar__btn:hover {
  color: #fff;
  background: #1e3a5e;
}
.filter-bar__btn:hover .filter-bar__icon {
  color: #fff;
}
.filter-bar__btn--active {
  color: #fff;
  background: #1e3a5e;
}
.filter-bar__btn--active .filter-bar__icon {
  color: #fff;
}
.filter-bar__icon {
  color: #1e3a5e;
  transition: color 0.2s;
}
.filter-bar__search {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.filter-bar__input {
  width: 100%;
  font: inherit;
  font-family: var(--sans);
  color: #333;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid #1e3a5e;
  border-radius: 30px;
  outline: none;
  padding: 8px 40px 8px 16px;
  font-size: 15px;
  transition: border-color 0.2s;
}
.filter-bar__input:focus {
  border-color: #1e3a5e;
}
.filter-bar__input::placeholder {
  color: #525252;
}
.filter-bar__search-icon {
  color: #1e3a5e;
  pointer-events: none;
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}
.filter-bar__chips {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  display: flex;
}
.filter-bar__chip {
  font: inherit;
  font-family: var(--sans);
  color: #1e3a5e;
  cursor: pointer;
  background: #fff;
  border: 2px solid #1e3a5e;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.filter-bar__chip:hover {
  color: #fff;
  background: #1e3a5e;
}
.filter-bar__chip--active {
  color: #fff;
  background: #1e3a5e;
  border-color: #1e3a5e;
}
.person-card {
  background: #fff;
  border-radius: 12px;
  transition: box-shadow 0.2s;
  overflow: hidden;
  box-shadow: 0 2px 8px #00000014;
}
.person-card:hover {
  box-shadow: 0 4px 16px #0000001f;
}
.person-card__photo {
  aspect-ratio: 7/4;
  background: #e8e8e8;
  width: 100%;
  overflow: hidden;
}
.person-card__photo img {
  object-fit: contain;
  object-position: center top;
  width: 100%;
  height: 100%;
}
.person-card--direccion .person-card__photo img {
  object-fit: cover;
}
.prevent-aspect-ratio .person-card__photo img {
  object-fit: contain;
}
.person-card__placeholder {
  color: #b8b8b8;
  background: #e8e8e8;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
}
.person-card__body {
  padding: 20px 24px 24px;
}
.person-card__cargo {
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.person-card__name {
  color: #262626;
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  font-family:
    Carlito,
    system-ui,
    Segoe UI,
    Roboto,
    sans-serif !important;
}
.person-card__contact {
  color: #525252;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 16px;
  display: flex;
}
.person-card__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.person-card__contact-text {
  line-height: 1.4;
}
.person-card__contact-text a {
  color: #555;
  text-decoration: none;
}
.person-card__contact-text a:hover {
  color: #1a1a2e;
  text-decoration: underline;
}
@media (width<=575.98px) {
  .directory {
    padding: 24px 16px;
  }
  .directory__title {
    font-size: 24px;
  }
  .filter-bar__top {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar__search {
    max-width: 100%;
  }
  .directory__grid {
    grid-template-columns: 1fr;
  }
}
