/* =========================================================================
   MEDITEK · Ficha de trayectoria profesional del equipo (100% aditivo)
   -------------------------------------------------------------------------
   No modifica styles.css. Reutiliza las variables de color/radios/sombras
   ya definidas en :root. Se usa dentro de .team-card (página principal,
   "Nuestro equipo" / "Our Team") y dentro de .specialist-box--center
   (páginas de cada especialidad). El contenido lo genera team.js a partir
   de team-data.js.
   ========================================================================= */

/* Tarjetas de la sección "Nuestro equipo": columna con el botón siempre
   anclado abajo, para que las 3 fichas se vean uniformes cuando están
   cerradas, sin importar que el texto (licencias, etc.) varíe de longitud. */
.team-card{ display: flex; flex-direction: column; }
.team-fiche{ padding: 0 20px 22px; display: flex; flex-direction: column; flex: 1; }
.team-fiche-name{ font-size: 1.1rem; color: var(--c-white); margin-top: 4px; }
.team-fiche-role{ color: var(--c-turquoise); font-size: .85rem; margin-top: 6px; }
.team-fiche-area{ color: var(--text-muted); font-size: .82rem; margin-top: 8px; line-height: 1.55; }
.team-fiche-licenses{ margin-top: 8px; min-height: 20px; }
.team-fiche-licenses p{ color: var(--text-muted); font-size: .8rem; line-height: 1.5; }
.team-fiche-toggle{
  margin-top: 16px;
  align-self: flex-start;
}
.team-fiche-spacer{ flex: 1; }

/* ---------- Panel de trayectoria (acordeón accesible) ---------- */
.team-bio-panel{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}
.team-bio-panel[hidden]{ display: none; }
.team-bio-block{ margin-bottom: 16px; }
.team-bio-block:last-child{ margin-bottom: 0; }
.team-bio-block h4{
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--c-turquoise);
  margin-bottom: 8px;
}
.team-bio-block p{ color: var(--c-silver-2); font-size: .86rem; line-height: 1.6; margin: 0 0 8px; }
.team-bio-block p:last-child{ margin-bottom: 0; }
.team-bio-block ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.team-bio-block ul li{
  position: relative;
  padding-left: 16px;
  color: var(--c-silver-2);
  font-size: .86rem;
  line-height: 1.55;
}
.team-bio-block ul li::before{
  content: "";
  position: absolute;
  left: 0; top: .65em;
  width: 6px; height: 1px;
  background: var(--c-turquoise);
}
@media (prefers-reduced-motion: reduce){
  .team-bio-panel{ scroll-margin-top: 90px; }
}

/* ---------- Dentro de la ficha grande de especialista (páginas internas) ---------- */
.specialist-box--center .team-fiche{ padding: 0; text-align: left; }
.specialist-box--center .team-fiche-toggle{ margin-top: 18px; }

@media (max-width: 640px){
  .team-fiche{ padding: 0 16px 18px; }
  .team-bio-block h4{ font-size: .8rem; }
}

/* =========================================================================
   Selector de idioma ES | EN (header y menú móvil) — 100% aditivo.
   Sin banderas; el idioma activo se distingue visualmente; no hay
   redirección automática por idioma del navegador ni ventana emergente.
   ========================================================================= */
.lang-switch{
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans, inherit);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lang-switch-current{
  color: var(--c-turquoise);
  cursor: default;
}
.lang-switch-sep{ color: var(--text-faint, #6b7280); }
.lang-switch a{
  color: var(--text-muted, #9aa2ab);
  text-decoration: none;
  transition: color var(--t-fast, 0.2s) var(--ease, ease);
}
.lang-switch a:hover,
.lang-switch a:focus-visible{ color: var(--c-white, #fff); }
.lang-switch--mobile{
  justify-content: center;
  padding: 14px 0;
  font-size: 0.95rem;
}
@media (max-width: 860px){
  .header-actions .lang-switch{ display: none; }
}
