/* ====== PÁGINAS INDIVIDUALES DE PROFESOR ====== */

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

/* Avatar redondo grande */
.avatar-large {
  width: 240px;
  max-width: 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%;
  object-fit: cover;
  object-position: 50% 35%; /* ajusta si hace falta centrar más la cara */
  display: block;
}

/* Contenido principal del profesor */
.teacher-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.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;
}

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

.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 6px;
  color: var(--muted);
}

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

/* 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;
}
.teacher-meta strong {
  font-weight: 600;
}

/* CTA final (reutiliza estilos de profesores) */
.teacher-cta-title {
  margin-top: 8px;
}

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

  .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;
  }
}
