/* ============================================================
   DETALLE DE SUBESPECIALIDAD
   Componentes propios de esta página. Depende de css/styles.css
   y css/detalle-especialidad.css (hero, prof-cards, títulos).
   ============================================================ */

/* ---------- Overrides de tipografía del hero (sólo esta página) ---------- */
.esp-title {
  font-size: 36px;
}

.esp-lead {
  font-size: 20px;
}

/* ---------- Breadcrumb del hero ---------- */
.esp-breadcrumb {
  font-size: 0.9rem;
  color: #b3b8b4;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.esp-breadcrumb .bc-strong {
  color: #9aa09b;
  font-size: 24px;
  display: inline-block;
  line-height: 1.3;
}

/* ---------- Nuestros profesionales: layout horizontal (imagen izq / texto der) ---------- */
.prof-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  column-gap: 1rem;
  background: transparent;
  border: 1px solid transparent;   /* reserva el espacio del borde: sin saltos */
  border-radius: 12px;
  padding: 4px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* Hover: placa gris que contiene toda la tarjeta (sin reflow) */
.prof-card:hover {
  background: #f4f6f5;
  border-color: var(--cemic-border);
}

.prof-photo {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 90px;
  height: 90px;
  aspect-ratio: auto;
  font-size: 1.8rem;
}

/* Círculo + flecha a la mitad de tamaño (sólo en estas cards) */
.prof-photo .corner {
  width: 16px;
  height: 16px;
  top: 6px;
  right: 6px;
  font-size: 0.5rem;
}

.prof-photo .corner i {
  -webkit-text-stroke: 0.45px currentColor;
}

.prof-role {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin-top: 0;
}

.prof-name {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  font-size: 20px;
}

/* ---------- Dónde atendemos: tarjetas de sede ---------- */
.sede-card {
  background: var(--cemic-green);
  color: #fff;
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  height: 100%;
}

.sede-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.9rem;
}

.sede-addr {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.sede-addr .bi {
  font-size: 1rem;
}

/* ---------- Palabras clave ---------- */
.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.keyword {
  background: #f4f6f5;
  color: var(--cemic-gray);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* ---------- También te puede interesar ---------- */
.interes-card {
  border: 1px solid var(--cemic-border);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.interes-card.featured {
  background: #f4f6f5;
  border-color: transparent;
}

.interes-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.interes-meta .meta-date {
  font-size: 0.85rem;
  color: var(--cemic-gray);
}

.interes-meta .meta-date strong {
  color: var(--cemic-text);
}

.interes-meta .meta-sub {
  font-size: 0.85rem;
  color: var(--cemic-gray);
}

.interes-meta .meta-tag {
  font-size: 0.85rem;
  color: var(--cemic-green);
  font-weight: 500;
  white-space: nowrap;
}

.interes-title {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 1.25rem;
}

.interes-title a {
  color: #3D3D3B;
  text-decoration: none;
  transition: color 0.2s ease;
}

.interes-title a:hover {
  color: var(--cemic-green);
}

.interes-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.interes-link {
  color: var(--cemic-green);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.interes-link:hover {
  color: var(--cemic-green-dark);
}

.interes-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e4e4e4;
  color: var(--cemic-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.interes-photo {
  height: 100%;
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
}

.interes-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
