/* ====== PÁGINAS INDIVIDUALES DE PROFESOR (DETALLE /team/<slug>/) ====== */

/* Layout general */
.teacher-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px;
  align-items: flex-start;
  margin-top: 18px;
}

/* Avatar redondo grande */
.avatar-large {
  width: min(240px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-contrast);
  margin: 0;
}

.avatar-large img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 35%;
}

/* Contenido principal del profesor */
.teacher-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0; /* evita overflow en grid */
}

.teacher-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.teacher-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.teacher-chip {
  border-radius: 999px;
  padding: 4px 11px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 0.88rem;
  color: var(--muted);
  background: #fff;
  white-space: nowrap;
}

/* Bloques de contenido */
.teacher-intro {
  font-size: 1rem;
  color: var(--text);
  margin: 4px 0 8px;
  line-height: 1.6;
}

.teacher-section {
  margin-top: 8px;
}

.teacher-section h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.teacher-section p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.teacher-list {
  list-style: disc;
  padding-left: 18px;
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Pequeño destacado de horario */
.teacher-meta {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(201, 161, 91, 0.06);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}
.teacher-meta strong {
  font-weight: 600;
}

/* CTA final:
   - .cta-row-profes, .logo-return y botones viven en team.css
   - aquí solo dejamos el título si quieres variar spacing */
.teacher-cta-title {
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 880px) {
  .teacher-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .teacher-main {
    width: 100%;
  }

  .teacher-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .teacher-layout {
    gap: 18px;
  }
  .teacher-name {
    font-size: 1.8rem;
  }
}
