/* v33 · barra principal, buscador, diamantes y métodos de pago */
.pfx-topbar .search.pfx-search-btn { cursor: pointer; text-align: left; color: #91a0b2; font-weight: 600; }
.pfx-topbar .search.pfx-search-btn span { flex: 1; }
.pfx-topbar .search.pfx-search-btn:hover { background: #edf2f8; border-color: #dbe5ef; }
@media (min-width: 721px) { .pfx-topbar .top-actions { display: flex !important; align-items: center; justify-content: flex-end; gap: 4px; } }
@media (max-width: 720px) { .pfx-topbar .top-actions, .pfx-topbar .search.pfx-search-btn { display: none !important; } .pfx-topbar .mobile-head-actions { display: flex; } .pfx-topbar .brand img { height: 36px; max-width: 170px; } .pfx-topbar .topbar-inner { grid-template-columns: minmax(0, 1fr) auto; } }
.pfx-topbar .top-action { flex: 0 0 auto; width: 58px; min-width: 0; position: relative; }
.pfx-topbar .top-action.active { color: var(--blue); background: #eaf2fa; }
.pfx-topbar .top-action.active i { color: var(--gold-2); }
.pfx-topbar .top-action.pfx-gems { width: auto; min-width: 74px; padding: 0 10px; }
.pfx-topbar .top-action.pfx-gems small { font-size: 12px; font-weight: 900; color: var(--blue); }
.pfx-topbar .top-action.pfx-gems i { color: #3d86c6; }
.pfx-topbar .top-action .badge, .pfx-topbar .mobile-head-btn .badge, .mobile-nav .badge { position: absolute; top: 3px; right: 6px; background: var(--danger); color: #fff; border-radius: 99px; min-width: 17px; height: 17px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 900; padding: 0 4px; }
.pfx-topbar .mobile-head-btn { position: relative; }
.pfx-topbar .mobile-head-btn .badge { top: 2px; right: 2px; }
.mobile-nav button { position: relative; }
.mobile-nav .badge { top: 4px; right: calc(50% - 22px); }
.pfx-topbar .account-head.menu-open { background: #eaf2fa; }
@media (min-width: 1001px) and (max-width: 1199px) { .pfx-topbar .top-action { width: 50px; } .pfx-topbar .top-action.pfx-gems { min-width: 64px; } }
@media (min-width: 721px) and (max-width: 1000px) { .pfx-topbar .search.pfx-search-btn { display: flex !important; } }

/* Buscador */
.pfx-search-res { margin-top: 12px; max-height: 52vh; overflow-y: auto; }
.pfx-search-row { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 9px 8px; border-radius: 12px; text-align: left; color: var(--pfx-ink); }
.pfx-search-row:hover { background: #eef4fa; } .pfx-search-row .grow { flex: 1; min-width: 0; display: grid; } .pfx-search-row b { font-size: 14px; color: var(--pfx-blue-2); } .pfx-search-row small { color: var(--pfx-muted); } .pfx-search-row > i { color: #b0bdcc; }
.pfx-sub { margin: 10px 4px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--pfx-muted); }
.pfx-chips { display: flex; flex-wrap: wrap; gap: 6px; } .pfx-chip { border: 1px solid var(--pfx-line); background: var(--ice, #fff); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; color: #3d5873; display: inline-flex; gap: 6px; align-items: center; } .pfx-chip:hover { border-color: var(--pfx-blue); color: var(--pfx-blue); } .pfx-chip.on { background: var(--pfx-blue); color: #fff; border-color: var(--pfx-blue); }

/* Diamantes */
.pfx-h4 { margin: 16px 0 8px; font-size: 14px; color: var(--pfx-blue-2); }
.pfx-gems-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.pfx-gems-sum > div { position: relative; background: linear-gradient(145deg, #f4f9fe, #e8f1fa); border: 1px solid #d6e5f3; border-radius: 14px; padding: 12px 12px 12px; display: grid; gap: 2px; overflow: hidden; }
.pfx-gems-sum span { font-size: 11.5px; color: #587089; font-weight: 700; } .pfx-gems-sum b { font-size: 22px; color: var(--pfx-blue-2); } .pfx-gems-sum > div > i { position: absolute; right: 10px; top: 10px; color: #3d86c6; opacity: .5; }
.pfx-gems-sum .total { background: linear-gradient(145deg, #154C82, #0F3654); border-color: transparent; } .pfx-gems-sum .total span { color: #bcd6ee; } .pfx-gems-sum .total b { color: #fff; } .pfx-gems-sum .total > i { color: var(--pfx-gold); opacity: 1; }
@media (max-width: 560px) { .pfx-gems-sum { grid-template-columns: minmax(0, 1fr); } .pfx-gems-sum > div { grid-template-columns: 1fr auto; align-items: center; } .pfx-gems-sum b { font-size: 18px; } .pfx-gems-sum > div > i { position: static; } }
.pfx-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pfx-pack { border: 1.5px solid var(--pfx-line); background: var(--ice, #fff); border-radius: 14px; padding: 12px 8px; display: grid; gap: 3px; justify-items: center; color: var(--pfx-ink); } .pfx-pack b { color: var(--pfx-blue-2); font-size: 15px; } .pfx-pack b i { color: #3d86c6; } .pfx-pack span { font-size: 12.5px; color: #587089; font-weight: 700; }
.pfx-pack:hover { border-color: #9cc0e0; } .pfx-pack.on { border-color: var(--pfx-blue); background: #eaf2fa; box-shadow: 0 0 0 3px rgba(21, 76, 130, .1); }

/* Métodos de pago */
.pfx-pm-list { display: grid; gap: 8px; }
.pfx-pm { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--pfx-line); background: var(--ice, #fff); border-radius: 13px; padding: 11px 13px; cursor: pointer; width: 100%; text-align: left; color: var(--pfx-ink); }
.pfx-pm:hover { border-color: #9cc0e0; } .pfx-pm.on { border-color: var(--pfx-blue); background: #f2f8fd; } .pfx-pm input { accent-color: var(--pfx-blue); width: 17px; height: 17px; flex: 0 0 auto; }
.pfx-pm > i { font-size: 24px; color: var(--pfx-blue); width: 30px; text-align: center; } .pfx-pm .grow { flex: 1; min-width: 0; display: grid; } .pfx-pm small { color: var(--pfx-muted); font-size: 11.5px; }
.pfx-pm.add { border-style: dashed; color: var(--pfx-blue); } .pfx-pm.add > i { font-size: 15px; }
.pfx-pay-total { display: flex; justify-content: space-between; align-items: center; background: #f2f7fc; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; } .pfx-pay-total b { font-size: 20px; color: var(--pfx-blue-2); }

/* v33.1 · responsive de la cabecera (tablet y escritorio) */
.pfx-topbar .brand { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
.pfx-topbar .account-head { border: 0; background: none; cursor: pointer; }
@media (min-width: 721px) {
  /* el PNG del logotipo lleva mucho margen transparente: se recorta al texto (como ya hace la versión móvil) */
  .pfx-topbar .brand { position: relative; overflow: hidden !important; height: 44px; align-self: center; }
  .pfx-topbar .brand img { position: absolute; left: -4.83%; top: 50%; width: 112.34%; height: auto !important; max-width: none !important; transform: translateY(-50%); }
  .pfx-topbar { padding-top: var(--pf-safe-top, 0px); }
}
@media (min-width: 721px) and (max-width: 1000px) {
  /* menú de escritorio + avatar; la fila de iconos de móvil no se usa aquí (si no, salen las dos a la vez) */
  .pfx-topbar .mobile-head-actions { display: none !important; }
  .pfx-topbar .top-actions { gap: 2px; }
  .pfx-topbar .top-action { width: 46px; }
  .pfx-topbar .top-action.pfx-gems { min-width: 58px; padding: 0 6px; }
  .pfx-topbar .top-action small { font-size: 8.4px; }
  .pfx-topbar .top-actions .account-head { display: flex !important; width: 44px; min-width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; }
  .pfx-topbar .top-actions .account-head > i { display: none; }
  .pfx-topbar .top-actions .account-head .avatar-mini { width: 34px !important; height: 34px !important; min-width: 34px !important; max-width: 34px !important; min-height: 34px !important; max-height: 34px !important; }
}
