/* page-docentes.php — listado público de docentes (/equipo-docente) */

.docentes-listado {
  max-width: 1365px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.docentes-listado__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 24px 0 36px;
}

.docentes-chip {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border: 1.5px solid #e4e4e4;
  border-radius: 5px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--grey-medium, #313131);
  cursor: pointer;
  transition: all 0.3s ease;
}

.docentes-chip:hover {
  border-color: #000;
}

.docentes-chip.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.docentes-chip:disabled {
  opacity: 0.6;
  cursor: default;
}

.docentes-listado__grid-wrap {
  position: relative;
  min-height: 120px;
}

.docentes-listado__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.docentes-listado__grid.is-loading {
  opacity: 0.4;
  pointer-events: none;
}

.docentes-listado__loader {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

/* El atributo [hidden] por sí solo no alcanza: cualquier regla de esta hoja que le dé
   'display' distinto de 'none' a este selector (la de arriba) gana sobre el display:none
   por defecto del user-agent para [hidden], porque CSS de autor siempre pisa al del
   navegador sin importar especificidad — hace falta esta regla explícita. */
.docentes-listado__loader:not([hidden]) {
  display: flex;
}

.docentes-listado__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e4e4e4;
  border-top-color: #000;
  border-radius: 50%;
  animation: docentes-listado-spin 0.8s linear infinite;
}

@keyframes docentes-listado-spin {
  to {
    transform: rotate(360deg);
  }
}

.docentes-listado__empty {
  font-size: 15px;
  color: var(--grey-medium, #313131);
  padding: 40px 0;
  text-align: center;
}

.docentes-listado__actions {
  text-align: center;
  margin-top: 44px;
}

.docente-card {
  display: flex;
  flex-direction: column;
  background: #fcfbfb;
  border: 1px solid #efefef;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.docente-card:hover {
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
}

.docente-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background-color: var(--light-grey, #e9ece9);
  background-size: cover;
  background-position: center;
}

.docente-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  flex: 1;
}

.docente-card__kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-medium, #646469);
}

.docente-card__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.docente-card__title a {
  color: inherit;
  text-decoration: none;
}

.docente-card__title a:hover {
  color: inherit;
  text-decoration: underline;
}

/* 120 caracteres truncados en PHP (onlinuaTruncateChars) + line-clamp de respaldo visual, para
   que el corte quede prolijo en 2-3 líneas sin importar el ancho real de la card en cada
   breakpoint (el truncado por caracteres no siempre ocupa el mismo número de líneas). */
.docente-card__summary {
  font-size: 15px;
  line-height: 23px;
  color: var(--grey-medium, #313131);
  margin: 6px 0 0;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.docente-card__footer {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.docente-card__socials {
  gap: 8px;
}

.docente-card__socials a {
  width: 38px;
  height: 38px;
}

.docente-card__socials img {
  width: 16px;
  height: 16px;
}

.docente-card__btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.docente-card__btn:hover {
  background: var(--light-green, #99ffcc);
  color: #000;
}

@media (max-width: 900px) {
  .docentes-listado {
    padding: 16px 16px 56px;
  }

  .docentes-listado__grid {
    grid-template-columns: 1fr;
  }

  .docente-card__summary {
    -webkit-line-clamp: 4;
  }
}
