/* ═══════════════════════════════════════════════════════════════════
   MY PORTFOLIO  —  Alpha Finance
   Usa la base de ../market-map/marketMap.css (layout, barra de índices,
   encabezado); aquí solo lo del portafolio.
   ═══════════════════════════════════════════════════════════════════ */

.pf-page { gap: 16px; }
.pf-up { color: #188038; }
.pf-down { color: #d93025; }
.pf-flat { color: #5c6b70; }
.pf-muted { color: #8a9aa0; font-weight: 500; }
.pf-pad { padding: 18px 4px; margin: 0; font-size: 13.5px; }

.pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 12px;
  border: 1.5px solid rgba(40, 82, 96, 0.3); background: #fff; color: #285260;
  font: 700 13.5px 'Inter', sans-serif; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.pf-btn:hover { background: rgba(84, 140, 146, 0.08); border-color: #285260; }
.pf-btn:disabled { opacity: .6; cursor: progress; }
.pf-btn[hidden] { display: none !important; }
.pf-btn--primary { background: #285260; border-color: #285260; color: #fff; }
.pf-btn--primary:hover { background: #1d3f4a; }
.pf-btn--danger { color: #d93025; border-color: rgba(217, 48, 37, 0.35); margin-left: auto; }
.pf-btn--danger:hover { background: rgba(217, 48, 37, 0.06); border-color: #d93025; }
.pf-link { background: none; border: 0; padding: 0; color: #285260; font: 700 13px 'Inter', sans-serif; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pf-link:hover { text-decoration: underline; }
.pf-link--sm { font-size: 12px; }
.pf-link:disabled { opacity: .5; cursor: progress; }

/* ── Sin sesión ────────────────────────────────────────────────── */
.pf-guest {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: 16px;
  background: linear-gradient(90deg, #eef5f6, #f7fafa); border: 1px solid rgba(84, 140, 146, 0.25);
  font: 500 14px/1.5 'Inter', sans-serif; color: #2C3E50;
}
.pf-guest[hidden] { display: none; }
.pf-guest b { display: block; color: #285260; font-weight: 800; }
.pf-guest__acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Resumen ───────────────────────────────────────────────────── */
.pf-summary { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 12px; }
.pf-sum {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 14px 18px; border-radius: 16px; background: #fff;
  border: 1px solid rgba(22, 36, 42, 0.09); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.pf-sum--main { background: #285260; border-color: #285260; }
.pf-sum__l { font: 800 11px 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(22, 36, 42, 0.5); }
.pf-sum__v { font: 800 24px/1.15 'Inter', sans-serif; letter-spacing: -0.02em; color: #16242a; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-sum__s { font: 600 12.5px 'Inter', sans-serif; color: #8a9aa0; min-height: 15px; }
.pf-sum--main .pf-sum__l { color: rgba(255, 255, 255, 0.7); }
.pf-sum--main .pf-sum__v { color: #fff; }
.pf-sum--main .pf-sum__s { color: rgba(255, 255, 255, 0.7); }

/* ── Buscador ──────────────────────────────────────────────────── */
.pf-search {
  position: relative; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 14px; padding: 0 14px; color: #8a9aa0;
}
.pf-search:focus-within { border-color: #548C92; box-shadow: 0 0 0 3px rgba(84, 140, 146, .15); }
.pf-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 0; font: 500 14.5px 'Inter', sans-serif; color: #1a1a1a; }
.pf-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  list-style: none; margin: 0; padding: 6px; background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 14px; box-shadow: 0 14px 36px rgba(22, 36, 42, 0.16);
  max-height: 380px; overflow-y: auto;
}
.pf-suggest[hidden] { display: none; }
.pf-suggest__note { padding: 10px; font: 500 13px 'Inter', sans-serif; color: #8a9aa0; }
.pf-sug { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; font-family: 'Inter', sans-serif; }
.pf-sug.is-active, .pf-sug:hover { background: rgba(84, 140, 146, 0.09); }
.pf-sug__tag { font: 700 12px 'Inter', sans-serif; color: #285260; white-space: nowrap; }
.pf-sug__tag.is-have { color: #188038; }

.pf-msg { font: 600 13.5px/1.5 'Inter', sans-serif; color: #2C3E50; margin-top: -6px; }
.pf-msg:empty { display: none; }
.pf-msg a { color: #285260; font-weight: 800; }
.pf-msg--ok { color: #188038; }
.pf-msg--err { color: #d93025; }
.pf-msg--warn { color: #8a5a00; }

/* ── Tarjetas y tablas ─────────────────────────────────────────── */
.pf-card { background: #fff; border: 1px solid rgba(22, 36, 42, 0.09); border-radius: 18px; box-shadow: 0 10px 30px rgba(22, 36, 42, 0.05); padding: 14px 16px 10px; min-width: 0; }
.pf-card__h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 2px 4px 10px; }
.pf-card__h h2 { margin: 0; font: 800 16px 'Inter', sans-serif; letter-spacing: -0.01em; color: #16242a; }
.pf-card__h h2 span { color: #8a9aa0; font-weight: 600; }
.pf-card__hint { font: 500 12px 'Inter', sans-serif; color: #aab6ba; }

.pf-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pf-table { width: 100%; border-collapse: collapse; font-family: 'Inter', sans-serif; font-size: 13px; }
.pf-table:empty { display: none; }
.pf-table th { text-align: left; padding: 0 8px 8px; border-bottom: 1px solid rgba(22, 36, 42, 0.08); white-space: nowrap; font: 800 10.5px 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8a9aa0; }
.pf-table th button { background: none; border: 0; padding: 0; cursor: pointer; font: 800 10.5px 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8a9aa0; }
.pf-table th.is-sorted button { color: #285260; }
.pf-table th.pf-num, .pf-table td.pf-num { text-align: right; }
.pf-table td { padding: 10px 8px; border-bottom: 1px solid rgba(22, 36, 42, 0.06); vertical-align: middle; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-table tbody tr:last-child td { border-bottom: 0; }
.pf-table tbody tr:hover td { background: rgba(84, 140, 146, 0.04); }
.pf-table td.pf-num b { display: block; font-weight: 700; color: #16242a; }
.pf-table td.pf-num b.pf-up { color: #188038; }
.pf-table td.pf-num b.pf-down { color: #d93025; }
.pf-table td.pf-num span { display: block; font-size: 11.5px; font-weight: 600; }

.pf-td-co { min-width: 190px; position: sticky; left: 0; background: #fff; z-index: 1; }
.pf-co { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.pf-co:hover .pf-co__t { color: #285260; text-decoration: underline; }
.pf-co__id { display: flex; flex-direction: column; min-width: 0; }
.pf-co__t { font-size: 13.5px; font-weight: 800; color: #16242a; }
.pf-co__n { font-size: 12px; color: #7b8a8f; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-bell { color: #d19a1e; font-size: 10px; vertical-align: 1px; }

.pf-logo { position: relative; width: 32px; height: 32px; border-radius: 9px; background: #fff; border: 1px solid rgba(0, 0, 0, 0.07); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.pf-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.pf-logo.is-fallback { background: #e8f0f1; border-color: transparent; }
.pf-logo.is-fallback::after { content: attr(data-initials); font: 800 10.5px 'Inter', sans-serif; color: #285260; }
.pf-logo--lg { width: 52px; height: 52px; border-radius: 14px; }
.pf-logo--lg.is-fallback::after { font-size: 15px; }

.pf-spark { width: 110px; }
.pf-spark__slot { display: block; width: 100px; height: 32px; }
.pf-spark__svg { width: 100px !important; height: 32px !important; display: block; }

.pf-weight { display: inline-block; width: 42px; height: 5px; border-radius: 3px; background: #eef1f2; margin-right: 6px; vertical-align: middle; overflow: hidden; }
.pf-weight i { display: block; height: 100%; background: #548C92; border-radius: 3px; }

.pf-td-act { width: 36px; text-align: right; }
.pf-icon-btn { width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(22, 36, 42, 0.1); background: #fff; color: #5c6b70; cursor: pointer; font-size: 11px; }
.pf-icon-btn:hover { color: #285260; border-color: #548C92; background: rgba(84, 140, 146, 0.06); }

.pf-empty { padding: 18px 8px; font: 500 13.5px/1.55 'Inter', sans-serif; color: #6b7b80; }
.pf-empty[hidden] { display: none; }
.pf-empty b { color: #16242a; }

.pf-skel { display: inline-block; width: 110px; height: 22px; border-radius: 8px; background: linear-gradient(90deg, #f1f4f5 0%, #e7eced 50%, #f1f4f5 100%); background-size: 200% 100%; animation: pf-shimmer 1.2s ease-in-out infinite; vertical-align: middle; }
.pf-sum--main .pf-skel { background: rgba(255, 255, 255, 0.18); }
.pf-skel--row { display: block; width: 100%; height: 36px; margin: 6px 0; }
@keyframes pf-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pf-skel { animation: none; } }

/* ── Sector / earnings / news ──────────────────────────────────── */
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-grid--single { grid-template-columns: 1fr; }
.pf-card[hidden], .pf-summary[hidden], .pf-strip[hidden], .pf-cards[hidden] { display: none; }
.pf-alloc { display: flex; align-items: center; gap: 20px; padding: 4px 4px 10px; }
.pf-donut { width: 150px; height: 150px; flex-shrink: 0; transform: rotate(0deg); }
.pf-donut__n { font: 800 8px 'Inter', sans-serif; fill: #16242a; }
.pf-donut__l { font: 600 3.4px 'Inter', sans-serif; fill: #8a9aa0; }
.pf-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font: 500 13px 'Inter', sans-serif; }
.pf-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; }
.pf-legend i { width: 10px; height: 10px; border-radius: 3px; }
.pf-legend span { color: #2C3E50; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-legend b { font-weight: 800; color: #16242a; font-variant-numeric: tabular-nums; }
.pf-legend em { font-style: normal; color: #8a9aa0; font-size: 12px; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }

.pf-earn__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pf-earn__list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 34px; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid rgba(22, 36, 42, 0.06); font-family: 'Inter', sans-serif; }
.pf-earn__list li:last-child { border-bottom: 0; }
.pf-earn__when { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; }
.pf-earn__when b { color: #16242a; }
.pf-earn__when span { font-size: 11.5px; }
.pf-earn__when em { font-style: normal; font: 800 10px 'Inter', sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #188038; background: rgba(24, 128, 56, 0.1); padding: 2px 7px; border-radius: 999px; margin-bottom: 2px; }
.pf-bell-btn { width: 32px; height: 32px; border-radius: 10px; border: 1px solid rgba(22, 36, 42, 0.1); background: #fff; color: #8a9aa0; cursor: pointer; }
.pf-bell-btn:hover { border-color: #d19a1e; color: #d19a1e; }
.pf-bell-btn.is-on { background: #fff8e8; border-color: #e6c27a; color: #d19a1e; }
.pf-earn__cal { margin: 10px 4px 4px; }

.pf-note { font: 500 12px 'Inter', sans-serif; color: #8a9aa0; margin: 0; }

/* ── Modal ─────────────────────────────────────────────────────── */
body.pf-noscroll { overflow: hidden; }
.pf-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pf-modal[hidden] { display: none; }
.pf-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 34, 40, 0.45); }
.pf-modal__panel { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); font-family: 'Inter', sans-serif; display: flex; flex-direction: column; gap: 14px; }
.pf-modal__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #f1f4f5; color: #2C3E50; cursor: pointer; }
.pf-modal__head { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.pf-modal__t { font: 800 12px 'Inter', sans-serif; color: #548C92; letter-spacing: .08em; }
.pf-modal__n { margin: 2px 0; font: 700 19px 'Inter', sans-serif; letter-spacing: -0.02em; color: #1a1a1a; }
.pf-modal__px { font: 600 13px 'Inter', sans-serif; color: #2C3E50; }
.pf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-field { display: flex; flex-direction: column; gap: 5px; font: 700 11.5px 'Inter', sans-serif; color: #6b7b80; text-transform: uppercase; letter-spacing: .05em; }
.pf-field input { border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 11px; padding: 11px 12px; font: 600 15px 'Inter', sans-serif; color: #1a1a1a; text-transform: none; letter-spacing: 0; }
.pf-field input:focus { outline: 0; border-color: #548C92; box-shadow: 0 0 0 3px rgba(84, 140, 146, .15); }
.pf-field input::-webkit-outer-spin-button, .pf-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pf-field input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.pf-modal__hint { margin: 0; font: 500 12.5px/1.45 'Inter', sans-serif; color: #6b7b80; }
.pf-modal__err { margin: 0; font: 600 13px 'Inter', sans-serif; color: #d93025; }
.pf-modal__err:empty { display: none; }
.pf-modal__acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pf-hide-md { display: none; }
}
@media (max-width: 860px) {
  .pf-summary { grid-template-columns: 1fr 1fr; }
  .pf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pf-hide-sm { display: none; }
  .pf-sum { padding: 12px 14px; }
  .pf-sum__v { font-size: 19px; }
  .pf-card { padding: 12px 10px 8px; }
  .pf-td-co { min-width: 150px; }
  .pf-co__n { max-width: 120px; }
  .pf-alloc { flex-direction: column; align-items: stretch; }
  .pf-donut { align-self: center; width: 130px; height: 130px; }
  .pf-fields { grid-template-columns: 1fr; }
  .pf-card__hint { display: none; }
}

/* ── Franja de stats (modo watchlist) ──────────────────────────── */
.pf-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid rgba(22, 36, 42, 0.09); font: 600 13px 'Inter', sans-serif; color: #16242a; text-decoration: none; }
.pf-chip__l { font: 800 10.5px 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #8a9aa0; }
.pf-chip b { font-weight: 800; font-variant-numeric: tabular-nums; }
.pf-chip--link { border-color: rgba(84, 140, 146, 0.4); color: #285260; cursor: pointer; }
.pf-chip--link:hover { background: rgba(84, 140, 146, 0.08); }
.pf-watch-hint { margin: 10px 4px 2px; font: 500 12.5px 'Inter', sans-serif; color: #6b7b80; display: flex; align-items: center; gap: 8px; }
.pf-watch-hint[hidden] { display: none; }
.pf-watch-hint i { color: #548C92; font-size: 11px; }

/* ── Brief de AlphaAI ──────────────────────────────────────────── */
.pf-ai { background: linear-gradient(180deg, #fbfdfd, #fff); }
.pf-ai-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 2px 4px 10px; border-bottom: 1px solid rgba(22, 36, 42, 0.07); margin-bottom: 12px; }
.pf-ai-id { display: flex; align-items: center; gap: 10px; }
.pf-ai-icon { width: 34px; height: 34px; border-radius: 10px; background: #285260; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-ai-icon img { width: 20px; height: 20px; object-fit: contain; filter: brightness(0) invert(1); }
.pf-ai-name { display: flex; flex-direction: column; font: 800 14.5px 'Inter', sans-serif; color: #16242a; }
.pf-ai-name small { font: 700 9.5px 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8a9aa0; }
.pf-ai-pill { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(84, 140, 146, 0.12); color: #285260; font: 700 10.5px 'Inter', sans-serif; letter-spacing: .04em; vertical-align: 2px; }
.pf-ai-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 0; background: #285260; color: #fff; font: 700 12.5px 'Inter', sans-serif; cursor: pointer; }
.pf-ai-btn:hover { background: #1d3f4a; }
.pf-ai-btn:disabled { opacity: .7; cursor: progress; }
.pf-ai-body { padding: 0 4px 4px; font-family: 'Inter', sans-serif; }
.pf-ai-text { margin: 0 0 10px; font-size: 14.5px; line-height: 1.62; color: #1f2d33; }
.pf-ai-text.is-loading { display: flex; flex-direction: column; gap: 8px; }
.pf-skel--line { display: block; width: 100%; height: 14px; border-radius: 6px; }
.pf-skel--short { width: 60%; }
.pf-ai-b { font-weight: 800; color: #243b42; }
.pf-ai-up { font-weight: 700; color: #188038; }
.pf-ai-down { font-weight: 700; color: #d93025; }
.pf-ai-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-ai-list li { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; line-height: 1.5; color: #2C3E50; }
.pf-ai-tk { flex-shrink: 0; font: 800 11.5px 'Inter', sans-serif; color: #285260; background: rgba(84, 140, 146, 0.12); padding: 3px 8px; border-radius: 999px; text-decoration: none; }
.pf-ai-tk:hover { background: rgba(84, 140, 146, 0.22); }
.pf-ai-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #6b7b80; }
.pf-ai-sent { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.pf-ai-sent b.bullish { color: #188038; } .pf-ai-sent b.bearish { color: #d93025; } .pf-ai-sent b.neutral { color: #5c6b70; }
.pf-ai-dot { width: 7px; height: 7px; border-radius: 50%; background: #888; }
.pf-ai-dot.bullish { background: #188038; } .pf-ai-dot.bearish { background: #d93025; }
.pf-ai-copy { margin-left: auto; display: inline-flex; }
.pf-ai-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: #6b7b80; }
.pf-ai-lock { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: #f3f7f8; border: 1px dashed rgba(84, 140, 146, 0.4); font-size: 13.5px; line-height: 1.5; color: #2C3E50; }
.pf-ai-lock b { color: #285260; }
.pf-ai-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(22, 36, 42, 0.1); background: #fff; color: #285260; font: 700 12.5px 'Inter', sans-serif; cursor: pointer; }
.pf-ai-toggle:hover { background: rgba(84, 140, 146, 0.08); }
.pf-ai-toggle span { background: #f1f4f5; color: #5c6b70; border-radius: 999px; padding: 2px 7px; font-size: 11px; }
.pf-heads { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin-top: 10px; }
.pf-heads__g { padding: 8px 0; border-top: 1px solid rgba(22, 36, 42, 0.06); }
.pf-heads__t { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pf-heads__t a { font: 800 13px 'Inter', sans-serif; color: #16242a; text-decoration: none; }
.pf-heads__t .pf-logo { width: 24px; height: 24px; border-radius: 7px; }
.pf-heads__t .pf-muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-heads ul { list-style: none; margin: 0; padding: 0 0 0 32px; display: flex; flex-direction: column; gap: 6px; }
.pf-heads li { display: flex; flex-direction: column; gap: 1px; }
.pf-heads li a { font-size: 13px; font-weight: 600; line-height: 1.4; color: #2C3E50; text-decoration: none; }
.pf-heads li a:hover { color: #285260; text-decoration: underline; }
.pf-heads li .pf-muted { font-size: 11px; }

/* ── Tarjetas (celular), como los widgets del Home ─────────────── */
.pf-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pf-sortbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 2px 2px; font: 700 11px 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8a9aa0; }
.pf-sortbar__b { border: 1px solid rgba(22, 36, 42, 0.1); background: #fff; color: #5c6b70; border-radius: 999px; padding: 5px 10px; font: 700 11.5px 'Inter', sans-serif; text-transform: none; letter-spacing: 0; cursor: pointer; }
.pf-sortbar__b.is-on { background: #285260; border-color: #285260; color: #fff; }
.pf-wcard { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main side" "foot foot"; border: 1px solid rgba(0, 0, 0, 0.09); border-radius: 16px; background: #fff; padding: 12px 12px 10px 14px; overflow: hidden; font-family: 'Inter', sans-serif; }
.pf-wcard::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(84, 140, 146, 0.06) 0%, transparent 55%); pointer-events: none; }
.pf-wcard__main { grid-area: main; display: flex; flex-direction: column; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.pf-wcard__id { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pf-wcard__t { display: inline-flex; align-items: center; gap: 5px; background: rgba(84, 140, 146, 0.10); border-radius: 6px; padding: 3px 8px; font-weight: 800; font-size: 14px; color: #548C92; }
.pf-wcard__n { display: block; margin-top: 5px; font-size: 12px; font-weight: 500; color: #3d3d3d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.pf-wcard .pf-logo--lg { width: 44px; height: 44px; border-radius: 10px; background: #f0f4f4; border: 1px solid rgba(84, 140, 146, 0.18); box-shadow: 0 2px 8px rgba(40, 82, 96, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.pf-wcard__row { display: flex; align-items: flex-end; gap: 12px; }
.pf-wcard__px { display: flex; flex-direction: column; flex-shrink: 0; }
.pf-wcard__px b { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: #1a1a1a; font-variant-numeric: tabular-nums; }
.pf-wcard__px span { font-size: 12.5px; font-weight: 700; }
.pf-wcard__spark { display: block; flex: 1; min-width: 0; height: 44px; }
.pf-wcard .pf-spark__svg { width: 100% !important; height: 44px !important; }
.pf-wcard__side { grid-area: side; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; padding-left: 10px; }
.pf-wcard__foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(22, 36, 42, 0.07); font-size: 12px; color: #5c6b70; }
.pf-wcard__foot b { color: #16242a; font-weight: 800; }
.pf-wcard__foot b.pf-up { color: #188038; } .pf-wcard__foot b.pf-down { color: #d93025; }
.pf-wcard__foot em { font-style: normal; color: #8a9aa0; font-weight: 600; }
.pf-wcard__foot i { color: #548C92; margin-right: 4px; }

/* aro del Alpha Score (como el de los widgets del Home) */
.pf-gauge { position: relative; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; text-decoration: none; }
.pf-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pf-gauge__bg { fill: none; stroke: #eef1f2; stroke-width: 4; }
.pf-gauge__v { fill: none; stroke-width: 4; stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.pf-gauge b { position: absolute; font: 800 12.5px 'Inter', sans-serif; color: #1e1e1e; }
.pf-gauge--empty { border: 1.5px dashed rgba(84, 140, 146, 0.45); border-radius: 50%; }
.pf-gauge--empty span { font: 700 9px 'Inter', sans-serif; color: #548C92; letter-spacing: .04em; }

@media (max-width: 700px) {
  .pf-table-wrap { display: none; }
  .pf-card__hint { display: none; }
  .pf-heads { grid-template-columns: 1fr; }
  .pf-ai-head { flex-wrap: nowrap; }
  .pf-strip { gap: 6px; }
  .pf-chip { padding: 7px 10px; font-size: 12.5px; }
}
