/* ============================================================
   DETALLE DE PROFESIONAL
   Depende de css/styles.css (variables --cemic-* y tipografía).
   ============================================================ */

:root {
  --link-blue: #2f6fae;
}

/* ---------- Títulos de sección ---------- */
.prof-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cemic-text);
}

/* ---------- Bloque gris superior ---------- */
.prof-top {
  background: #FAFAFA;
  padding: 2.5rem 0 3.5rem;
}

.prof-top-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.prof-eyebrow {
  font-size: 1.05rem;
  color: var(--cemic-text);
}

.prof-nav {
  display: flex;
  gap: 0.75rem;
}

.prof-nav-btn {
  background: transparent;
  border: none;
  color: var(--cemic-green);
  font-size: 1.1rem;
  line-height: 1;
}

.prof-nav-btn:first-child {
  transform: rotate(180deg);
}

/* ---------- Ficha (card blanca) ---------- */
.prof-card-main {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 3.5rem;
}

.prof-foto {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.prof-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prof-nombre {
  font-size: 2.1rem;
  font-weight: 500;
  margin: 0;
}

/* Pares Cargo/Especialidad/Contacto dentro de la ficha */
.prof-pair {
  display: flex;
  flex-direction: column;
}

.pair-label {
  color: var(--cemic-green);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.pair-value {
  color: var(--cemic-text);
}

.pair-link {
  color: var(--link-blue);
  text-decoration: underline;
}

.pair-link:hover {
  color: var(--cemic-green);
}

/* En la ficha, label y valor van en línea (label fijo a la izquierda) */
@media (min-width: 768px) {
  .prof-card-main .prof-pair {
    flex-direction: row;
    gap: 1.5rem;
  }
  .prof-card-main .pair-label {
    flex: 0 0 110px;
    margin-bottom: 0;
  }
}

/* ---------- Personal / info pairs ---------- */
.info-label {
  color: var(--cemic-gray);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.info-value {
  color: var(--cemic-text);
  line-height: 1.5;
}

.info-link {
  display: block;
  color: var(--link-blue);
  text-decoration: underline;
  margin-bottom: 0.15rem;
}

.info-link:hover {
  color: var(--cemic-green);
}

.info-link-sm {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--link-blue);
  font-size: 0.85rem;
  text-decoration: none;
}

.info-link-sm:hover {
  color: var(--cemic-green);
}

/* ---------- Días y horarios ---------- */
.horario-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--cemic-border);
}

.horario-item:first-of-type {
  padding-top: 0;
}

.btn-cemic-fill {
  text-transform: none;
  letter-spacing: normal;
}

/* ---------- Tabs ---------- */
.prof-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.prof-tab {
  background: #f4f6f5;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  color: #b9beba;
  cursor: pointer;
  transition: 0.15s;
}

.prof-tab:hover {
  color: #7a807c;
}

.prof-tab.active {
  background: #fff;
  color: var(--cemic-text);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.prof-panel {
  display: none;
}

.prof-panel.active {
  display: block;
}

.panel-title {
  color: var(--cemic-green);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1.75rem;
}

/* ---------- Timeline de items ---------- */
.timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--cemic-border);
}

.timeline-item:first-of-type {
  padding-top: 0;
}

.ti-title {
  font-weight: 700;
  color: var(--cemic-text);
  margin-bottom: 0.35rem;
}

.ti-desc {
  color: var(--cemic-gray);
  line-height: 1.5;
}

.ti-year {
  color: var(--cemic-gray);
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .prof-nombre { font-size: 1.6rem; }
  .prof-section-title { font-size: 1.35rem; }
}
