/* Tarjeta personal "LinkedIn parlamentario" · #77 WOW G */

.pp-modal { display: flex; flex-direction: column; gap: 18px; }

/* Cabecera tipo LinkedIn */
.pp-head {
  display: flex; gap: 18px; align-items: flex-start;
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
  border: 1px solid #cfe1ff; border-radius: 12px;
  padding: 20px 22px;
}
.pp-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(20,30,50,0.15);
}
.pp-head-meta { flex: 1; min-width: 0; }
.pp-nombre { font-size: 22px; font-weight: 700; color: #1a2433; }
.pp-cargo { font-size: 14px; color: #506080; margin-top: 2px; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pp-tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.pp-contacto { margin-top: 8px; font-size: 13px; }
.pp-contacto a { color: var(--brand); }

/* KPIs en cards */
.pp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pp-kpi {
  background: #fff; border: 1px solid #e2e6ec; border-radius: 10px;
  padding: 14px 16px;
}
.pp-kpi-n { font-size: 30px; font-weight: 700; color: var(--brand); line-height: 1; }
.pp-kpi-l { font-size: 12px; color: #506080; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 6px; }
.pp-kpi-aux { font-size: 11px; color: #94a0b5; margin-top: 4px; }

/* Sección genérica */
.pp-section {
  background: #fff; border: 1px solid #e2e6ec; border-radius: 12px;
  padding: 16px 18px;
}
.pp-section h3 { margin: 0 0 14px; font-size: 15px; color: var(--brand); }

/* Timeline */
.pp-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.pp-timeline::before {
  content: ''; position: absolute; left: 80px; top: 0; bottom: 0;
  width: 2px; background: #e2e6ec;
}
.pp-tl-item { display: flex; align-items: flex-start; gap: 14px; padding: 6px 0; position: relative; }
.pp-tl-date { width: 70px; font-size: 11px; color: #94a0b5; padding-top: 4px; flex-shrink: 0; text-align: right; }
.pp-tl-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin: 6px 0 0; box-shadow: 0 0 0 4px #fff; z-index: 1; }
.pp-tl-content { flex: 1; padding: 4px 0 12px; min-width: 0; }
.pp-tl-title { font-size: 14px; font-weight: 600; color: #1a2433; }
.pp-tl-meta { display: flex; gap: 10px; font-size: 11px; color: #506080; margin-top: 2px; align-items: center; }
.pp-tl-rol { font-weight: 700; padding: 2px 7px; border-radius: 999px; font-size: 10px; }
.pp-tl-rol-organizador { background: #dcfce7; color: #166534; }
.pp-tl-rol-asistente { background: #e0e7ff; color: #3730a3; }

/* Posiciones */
.pp-positions { list-style: none; margin: 0; padding: 0; }
.pp-pos-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid #f1f3f7;
}
.pp-pos-item:last-child { border-bottom: 0; }
.pp-pos-vote {
  background: var(--brand-dark); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px; min-width: 80px; text-align: center;
}
.pp-pos-meta { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pp-pos-titulo { font-weight: 500; color: #1a2433; font-size: 14px; }
.pp-pos-fecha { font-size: 12px; color: #506080; }

/* News */
.pp-news { list-style: none; margin: 0; padding: 0; }
.pp-news-item {
  padding: 10px 0; border-bottom: 1px solid #f1f3f7;
  display: flex; flex-direction: column; gap: 4px;
}
.pp-news-item:last-child { border-bottom: 0; }
.pp-news-head { display: flex; gap: 8px; align-items: center; font-size: 11px; color: #506080; }
.pp-news-medio { font-weight: 700; color: var(--brand); }
.pp-news-fecha { color: #94a0b5; }
.pp-news-titulo { color: #1a2433; font-size: 14px; line-height: 1.4; }
.pp-news-titulo:hover { color: var(--brand); }

.pp-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }

/* Tuits */
.pp-tuits { list-style: none; margin: 0; padding: 0; }
.pp-tuit-item {
  background: #fafbfd; border-left: 3px solid var(--brand);
  border-radius: 6px; padding: 10px 12px; margin-bottom: 10px;
}
.pp-tuit-item:last-child { margin-bottom: 0; }
.pp-tuit-text { font-size: 14px; line-height: 1.4; color: #1a2433; }
.pp-tuit-meta { font-size: 11px; color: #506080; margin-top: 4px; }
.pp-tuit-estado { font-weight: 700; }
.pp-tuit-aprobado { color: #166534; }
.pp-tuit-publicado { color: var(--brand); }

/* Estados vacío / loading */
.pp-loading { text-align: center; padding: 40px; color: #506080; }
.pp-spinner {
  width: 32px; height: 32px;
  border: 3px solid #cfe1ff; border-top-color: var(--brand);
  border-radius: 50%; margin: 0 auto 12px;
  animation: pp-spin 0.8s linear infinite;
}
@keyframes pp-spin { to { transform: rotate(360deg); } }
.pp-error { padding: 30px; text-align: center; color: #991b1b; }
.pp-error h3 { margin: 0 0 8px; }

/* Móvil */
@media (max-width: 720px) {
  .pp-kpis { grid-template-columns: repeat(2, 1fr); }
  .pp-head { flex-direction: column; align-items: center; text-align: center; }
  .pp-tags { justify-content: center; }
  .pp-tl-date { width: 50px; font-size: 10px; }
  .pp-timeline::before { left: 60px; }
}
