/* =============================================================
    SINGLE PROFESOR — mobile first
   ============================================================= */

body.single-profesor {
  --page-bg: var(--bg-3);
  --header-bg: var(--bg-3-50);
}

.profesor-single {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

/* ── Foto ───────────────────────────────────────────────────── */
.profesor-single__image {
  margin: 0 0 2.5rem;
}

.profesor-single__image img {
  max-width: 200px;
}

/* ── Secciones ──────────────────────────────────────────────── */
.profesor-single__section {
  margin-bottom: 2.5rem;
}

.profesor-single__section-label {
  margin-bottom: 0.5rem;
}

/* ── Tabla de talleres / footer ─────────────────────────────── */
.profesor-single__table {
  margin-bottom: 0;
}

.profesor-single__table.profesor-single__table--footer {
  margin-top: 2.5rem;
}

.profesor-single__col-enlace {
  text-align: right;
  width: 80px;
}

/* ── Enlace ─────────────────────────────────────────────────── */
.profesor-single__enlace {
  color: var(--color-black);
  text-decoration: none;
}

.profesor-single__enlace:hover {
  text-decoration: underline;
}

/* ── Bio en dos columnas ────────────────────────────────────── */
.profesor-single__bio {
  columns: 1;
  gap: 3rem;
}

.profesor-single__bio p {
  margin-bottom: 1em;
  break-inside: avoid;
}

.profesor-single__bio p:last-child {
  margin-bottom: 0;
}

/* ── Back button ────────────────────────────────────────────── */
.profesor-single__back {
  display: flex;
  justify-content: center;
  padding: 2rem 0 1rem;
}

/* =============================================================
    TABLET  ≥ 640px
   ============================================================= */
@media (min-width: 640px) {
  .profesor-single {
    padding-top: 4rem;
    padding-bottom: 5rem;
  }

  .profesor-single__image img {
    max-width: 240px;
  }

  .profesor-single__bio {
    columns: 2;
  }
}
