/* ===============================
   PASO 2.1 — Información profesional
   Archivo: css/12-paso2_1-profesional.css
   2.1-B final:
   - Convenios máximo 7 líneas
   - Sin "Ver más"
   - Respeta saltos de línea y espacios del backend
   =============================== */

.paso2-card #profInfo .p21-card{
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 2px;
}

/* FOTO 180x180 */
.paso2-card #profInfo .p21-photo{
  width: 180px;
  height: 180px;
  border-radius: 14px;
  border: 1px solid #d6dde6;
  background: #f7f9fb;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.paso2-card #profInfo .p21-photo-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.paso2-card #profInfo .p21-photo-fallback{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #6b7178;
  font-size: 26px;
}

.paso2-card #profInfo .p21-photo.is-no-photo .p21-photo-fallback{ display: flex; }
.paso2-card #profInfo .p21-photo:not(.is-no-photo) .p21-photo-fallback{ display: none; }

/* Columna derecha: nombre arriba / botón abajo */
.paso2-card #profInfo .p21-main{
  flex: 1;
  min-width: 0;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 4px;
  padding-bottom: 2px;
}

.paso2-card #profInfo .p21-head{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.paso2-card #profInfo .p21-name{
  font-size: 16px;
  font-weight: 600;
  color: #2f2f2f;
  line-height: 1.3;
  word-break: break-word;
}

.paso2-card #profInfo .p21-especialidad{
  font-size: 14px;
  font-weight: 400;
  color: #6b7178;
  line-height: 1.3;
}

.paso2-card #profInfo .p21-btn-perfil{
  width: 104px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid var(--primary-color);
  background: #fff;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.paso2-card #profInfo .p21-btn-perfil:hover{ background: #f0f6fc; }
.paso2-card #profInfo .p21-btn-perfil:disabled{ opacity: 0.55; cursor: not-allowed; }

/* ===============================
   CONVENIOS (2.1-B final)
   =============================== */

.paso2-card #profInfo .p21-conv{
  margin-top: 18px;
  border-top: 1px solid #eef2f6;
  padding-top: 12px;
}

.paso2-card #profInfo .p21-conv-title{
  font-size: 14px;
  font-weight: 600;
  color: #2f2f2f;
  margin-bottom: 6px;
}

.paso2-card #profInfo .p21-conv-text{
  font-size: 14px;
  font-weight: 400;
  color: #6b7178;



  /* 7 líneas máximo: 7 * line-height */
  line-height: 1.5;
  max-height: calc(1.5em * 7);

  overflow: hidden;
  word-break: break-word;
}

.paso2-card #profInfo .p21-muted{ color: #8b8b8b; }

/* Error */
.paso2-card #profInfo .p21-error{
  font-size: 14px;
  color: #b00020;
  padding: 10px 0;
}

/* Skeleton */
.paso2-card #profInfo .p21-photo-skel{
  width: 180px;
  height: 180px;
  border-radius: 14px;
  border: 1px solid #d6dde6;
  background: #f0f3f7;
  flex: 0 0 auto;
}

.paso2-card #profInfo .p21-line-skel{
  height: 12px;
  border-radius: 8px;
  background: #f0f3f7;
  margin: 6px 0;
}

.paso2-card #profInfo .p21-line-skel.w70{ width: 70%; }
.paso2-card #profInfo .p21-line-skel.w40{ width: 40%; }
.paso2-card #profInfo .p21-line-skel.w35{ width: 35%; }
.paso2-card #profInfo .p21-line-skel.w95{ width: 95%; }
.paso2-card #profInfo .p21-line-skel.w85{ width: 85%; }