/* movers-butterfly.css — Most bought / Most sold en mariposa (movers-butterfly.js). Congress y Superinvestors. */
.afb { font-family: 'Inter', sans-serif; }
.afb__head { display: flex; justify-content: space-between; padding: 0 4px 10px; }
.afb__eb { font: 800 11px 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.afb__eb--bought { color: #188038; }
.afb__eb--sold { color: #d93025; }
.afb__rows { position: relative; display: flex; flex-direction: column; gap: 4px; }
/* la línea fina del centro */
.afb__rows::before { content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 1px; background: rgba(22, 36, 42, 0.08); }
.afb__row { display: grid; grid-template-columns: 1fr 1fr; }
.afb__half {
  display: flex; align-items: center; gap: 8px; height: 38px; min-width: 0;
  padding: 0 12px 0 0; margin: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; text-align: left;
}
.afb__half--sold { flex-direction: row-reverse; padding: 0 0 0 12px; }
.afb__half--empty { cursor: default; }
.afb__track { flex: 1; min-width: 0; height: 34px; display: flex; }
.afb__half--sold .afb__track { justify-content: flex-end; }
.afb__bar {
  --min: 100px; --f: 0;
  width: calc(var(--min) + (100% - var(--min)) * var(--f));
  height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 10px 0 20px; border-radius: 0 8px 8px 0; box-sizing: border-box;
  transition: filter .15s ease, transform .15s ease;
}
.afb__half--sold .afb__bar { flex-direction: row-reverse; padding: 0 20px 0 10px; border-radius: 8px 0 0 8px; }
.afb__t { font: 800 13px 'Inter', sans-serif; letter-spacing: .3px; color: #fff; white-space: nowrap; }
.afb__n { font: 600 13px 'Inter', sans-serif; color: rgba(255, 255, 255, 0.92); font-variant-numeric: tabular-nums; white-space: nowrap; }
.afb__half:hover .afb__bar, .afb__half:focus-visible .afb__bar { filter: brightness(1.08) saturate(1.05); }
.afb__half:focus-visible { outline: none; }
.afb__half:focus-visible .afb__logo > * { box-shadow: 0 0 0 3px rgba(84, 140, 146, 0.45) !important; }
.afb__half.is-open .afb__bar { filter: brightness(1.1); }
.afb__half.is-open .afb__logo > * { box-shadow: 0 0 0 2px #285260 !important; }
/* el logo de cada página trae su propia clase; aquí se fija el tamaño (26 px) */
.afb__logo { flex: none; display: inline-flex; }
.afb__logo > * { display: inline-flex !important; width: 26px !important; height: 26px !important; min-width: 0 !important; border-radius: 50% !important; margin: 0 !important; overflow: hidden; background: #fff; border: 1px solid rgba(22, 36, 42, 0.08) !important; box-sizing: border-box; }
.afb__logo > * img { width: 100% !important; height: 100% !important; object-fit: contain; padding: 2px; }
.afb__logo > *::after { font-size: 9px !important; }
.afb__none { margin: 0; padding: 10px 4px; font: 500 13px 'Inter', sans-serif; color: #8a9aa0; }
.afb__detail { margin-top: 12px; }
.afb__detail[hidden] { display: none; }
@media (max-width: 700px) {
  .afb__half { gap: 6px; padding-right: 8px; }
  .afb__half--sold { padding: 0 0 0 8px; }
  .afb__bar { padding: 0 8px 0 14px; gap: 6px; }
  .afb__half--sold .afb__bar { padding: 0 14px 0 8px; }
  .afb__t, .afb__n { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .afb__bar { transition: none; } }

/* Sin Premium (lockedFrom): filas borrosas bajo un solo aviso, como MoversButterfly de la app */
.afb__locked { position: relative; min-height: 150px; }
.afb__blur { display: flex; flex-direction: column; gap: 4px; filter: blur(7px); pointer-events: none; user-select: none; }
.afb__lockcta { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px 16px; }
