/* PrivilegeFans v33 · «Contenido exclusivo», «Mis compras» y «Mis ventas» (plantillas 2026 · 39, 43 y 44). Prefijo cp2-. */
.cp2-page { width: min(var(--pf-w, 1500px), calc(100% - 32px)); margin: 0 auto; padding: 26px 0 60px; color: var(--d-text, #3C5068); }
.cp2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cp2-head h1 { margin: 0; font: 800 28px/1.2 Lato, sans-serif; color: var(--d-ink, #0B2D52); }
.cp2-head p { margin: 5px 0 0; font-size: 14.5px; color: var(--d-muted, #6B7F95); }
.cp2-head p b { color: var(--d-ink, #0B2D52); }
.cp2-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
.cp2-tabs button { border: 1px solid var(--d-line, #E9EEF4); background: var(--ice, #fff); color: var(--d-navy, #154C82); font: 700 13.5px Lato, sans-serif; padding: 10px 22px; border-radius: 10px; cursor: pointer; transition: background .15s, color .15s; }
.cp2-tabs button em { font-style: normal; font-weight: 700; opacity: .6; margin-left: 4px; }
.cp2-tabs button:hover { background: var(--d-soft, #EEF3F9); }
.cp2-tabs button.on { background: var(--d-navy, #154C82); border-color: var(--d-navy, #154C82); color: #fff; }
.cp2-tabs button:focus-visible, .cp2-act:focus-visible, .cp2-sq:focus-visible, .cp2-card:focus-visible { outline: 3px solid rgba(240, 193, 44, .7); outline-offset: 2px; }
/* ── contenido exclusivo ── */
.cp2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cp2-card { background: var(--ice, #fff); border: 1px solid var(--d-line, #E9EEF4); border-radius: 16px; box-shadow: var(--d-card-shadow, 0 4px 18px rgba(15, 54, 84, .05)); overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.cp2-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 54, 84, .1); }
.cp2-img { position: relative; aspect-ratio: 16 / 10; background: #dfe8f2; overflow: hidden; }
.cp2-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp2-card.locked .cp2-img img { filter: saturate(.95); }
.cp2-cover { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #154C82, #0F3A66); color: var(--d-gold, #F0C12C); font-size: 34px; }
.cp2-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px; font: 800 12px Lato, sans-serif; color: #fff; background: var(--d-gold-grad, linear-gradient(180deg, #E2B53A, #B8891F)); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.cp2-play { position: absolute; right: 10px; bottom: 10px; font-size: 30px; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.cp2-play.sm { right: auto; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); font-size: 22px; }
.cp2-cbody { padding: 13px 15px 15px; display: grid; gap: 3px; }
.cp2-title { font: 800 15px/1.3 Lato, sans-serif; color: var(--d-ink, #0B2D52); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp2-sub { color: var(--d-muted, #6B7F95); font-size: 12.5px; }
.cp2-crow { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; min-height: 40px; }
.cp2-price { font: 900 19px Lato, sans-serif; color: var(--d-ink, #0B2D52); } .cp2-price s { font-size: 12.5px; font-weight: 600; color: #94a3b4; margin-left: 4px; }
.cp2-owned { font: 800 13.5px Lato, sans-serif; color: #1f8a4c; }
.cp2-sold { font: 800 12.5px Lato, sans-serif; color: var(--d-muted, #6B7F95); }
.cp2-sq { width: 40px; height: 40px; border: 0; border-radius: 10px; cursor: pointer; display: grid; place-items: center; font-size: 16px; color: #fff; background: var(--d-gold-grad, linear-gradient(180deg, #E2B53A, #B8891F)); box-shadow: 0 3px 10px rgba(177, 137, 55, .35); }
.cp2-sq.soft { background: var(--d-soft, #EEF3F9); color: var(--d-navy, #154C82); box-shadow: none; }
.cp2-sq.in { background: #1f8a4c; box-shadow: none; }
.cp2-sq:disabled { opacity: .6; cursor: progress; }
.cp2-more { display: flex; justify-content: center; margin-top: 22px; }
.cp2-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 48px 20px; background: var(--ice, #fff); border: 1px solid var(--d-line, #E9EEF4); border-radius: 16px; box-shadow: var(--d-card-shadow); }
.cp2-empty > i { font-size: 34px; color: var(--d-gold-2, #B18937); } .cp2-empty b { font: 800 17px Lato, sans-serif; color: var(--d-ink, #0B2D52); } .cp2-empty span { color: var(--d-muted, #6B7F95); max-width: 420px; }
.cp2-empty .pfx-btn { margin-top: 8px; }
/* ── mis compras ── */
.cp2-rows { background: var(--ice, #fff); border: 1px solid var(--d-line, #E9EEF4); border-radius: 16px; box-shadow: var(--d-card-shadow); overflow: hidden; }
.cp2-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto 150px; align-items: center; gap: 18px; padding: 13px 20px; border-bottom: 1px solid var(--d-line, #E9EEF4); }
.cp2-row:last-child { border-bottom: 0; }
.cp2-thumb { position: relative; width: 62px; height: 62px; border-radius: 10px; overflow: hidden; background: #dfe8f2; }
.cp2-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp2-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #9fb0c4; }
.cp2-rinfo { display: grid; gap: 3px; min-width: 0; justify-items: start; }
.cp2-rinfo b { font: 800 15px/1.3 Lato, sans-serif; color: var(--d-ink, #0B2D52); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp2-rinfo small { color: var(--d-muted, #6B7F95); font-size: 13px; }
.cp2-amt { font: 900 16px Lato, sans-serif; color: #1f8a4c; text-align: right; white-space: nowrap; }
.cp2-amt.gem { color: var(--d-navy, #154C82); }
.cp2-act { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 1px solid var(--d-line, #E1E8F0); border-radius: 10px; background: var(--ice, #fff); color: var(--d-ink, #0B2D52); font: 700 13.5px Lato, sans-serif; cursor: pointer; }
.cp2-act:hover { background: var(--d-soft, #EEF3F9); } .cp2-act:disabled { opacity: .6; cursor: progress; }
/* ── mis ventas ── */
.cp2-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.cp2-kpi { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--ice, #fff); border: 1px solid var(--d-line, #E9EEF4); border-radius: 16px; box-shadow: var(--d-card-shadow); }
.cp2-kic { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; color: var(--d-gold-2, #B18937); background: var(--d-cream, #FDF8EE); }
.cp2-kpi > div { display: grid; gap: 2px; min-width: 0; } .cp2-kpi small { font-size: 12.5px; color: var(--d-muted, #6B7F95); font-weight: 700; }
.cp2-kpi b { font: 900 25px/1.15 Lato, sans-serif; color: var(--d-ink, #0B2D52); }
.cp2-kpi .cp2-delta { color: #1f8a4c; font-weight: 800; } .cp2-delta.neg { color: #c0392b !important; }
.cp2-stars { color: var(--d-gold, #F0C12C); font-size: 13px; letter-spacing: 1px; }
.cp2-card2 { background: var(--ice, #fff); border: 1px solid var(--d-line, #E9EEF4); border-radius: 16px; box-shadow: var(--d-card-shadow); padding: 20px 22px; margin-bottom: 22px; position: relative; }
.cp2-sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .cp2-sh h2 { margin: 0; font: 800 18px Lato, sans-serif; color: var(--d-ink, #0B2D52); } .cp2-sh small { color: var(--d-muted, #6B7F95); font-weight: 700; }
.cp2-table { display: grid; }
.cp2-tr { display: grid; grid-template-columns: minmax(0, 2.4fr) 1fr 1fr 1fr; gap: 14px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--d-line, #E9EEF4); font-size: 14px; }
.cp2-tr.head { border-top: 0; padding-top: 0; font-weight: 800; font-size: 12.5px; color: var(--d-muted, #6B7F95); }
.cp2-prod { display: flex; align-items: center; gap: 12px; min-width: 0; } .cp2-prod b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--d-ink, #0B2D52); }
.cp2-mini { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 8px; overflow: hidden; background: #dfe8f2; display: block; } .cp2-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp2-state { font-style: normal; font-weight: 800; font-size: 12.5px; color: #1f8a4c; background: #E7F6EC; padding: 4px 12px; border-radius: 999px; justify-self: start; }
.cp2-sel { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--d-line, #E1E8F0); border-radius: 10px; padding: 0 10px; height: 38px; color: var(--d-navy, #154C82); }
.cp2-sel select { border: 0; background: transparent; font: 700 13.5px Lato, sans-serif; color: var(--d-ink, #0B2D52); cursor: pointer; outline: none; }
.cp2-svg { max-width: 100%; height: auto; display: block; margin: 0 auto; touch-action: pan-y; } .cp2-svg text { font: 600 12px Lato, sans-serif; fill: #8696aa; } .cp2-svg .g { stroke: #E9EEF4; stroke-width: 1; }
.cp2-svg .area { fill: rgba(21, 76, 130, .14); } .cp2-svg .inc { fill: none; stroke: var(--d-navy, #154C82); stroke-width: 2.4; stroke-linejoin: round; } .cp2-svg .sal { fill: rgba(240, 193, 44, .55); }
.cp2-svg .cur { stroke: #9fb0c4; stroke-dasharray: 4 3; } .cp2-svg .dot { fill: #fff; stroke: var(--d-navy, #154C82); stroke-width: 2.5; }
.cp2-tip { position: absolute; pointer-events: none; background: var(--d-navy-2, #0F3A66); color: #fff; border-radius: 8px; padding: 6px 10px; display: grid; text-align: center; min-width: 80px; box-shadow: 0 6px 16px rgba(15, 54, 84, .3); z-index: 2; } .cp2-tip[hidden] { display: none; } .cp2-tip small { opacity: .8; }
.cp2-legend { display: flex; justify-content: center; gap: 22px; margin-top: 6px; font-size: 12.5px; font-weight: 700; } .cp2-legend i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; } .cp2-legend .inc { background: var(--d-navy, #154C82); } .cp2-legend .sal { background: var(--d-gold, #F0C12C); }
@media (max-width: 900px) { .cp2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cp2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cp2-page { width: calc(100% - 32px); padding-top: 18px; } .cp2-head h1 { font-size: 23px; }
  .cp2-tabs { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-bottom: 4px; scrollbar-width: none; } .cp2-tabs button { flex: 0 0 auto; padding: 9px 16px; }
  .cp2-grid { gap: 12px; } .cp2-cbody { padding: 10px 11px 12px; } .cp2-price { font-size: 16px; } .cp2-sq { width: 36px; height: 36px; }
  .cp2-row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 14px; } .cp2-thumb { width: 52px; height: 52px; } .cp2-act { grid-column: 1 / -1; height: 38px; } .cp2-amt { align-self: start; }
  .cp2-kpi { padding: 14px; gap: 10px; } .cp2-kic { flex-basis: 38px; width: 38px; height: 38px; } .cp2-kpi b { font-size: 20px; }
  .cp2-tr { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; } .cp2-tr.head { display: none; } .cp2-prod { grid-column: 1; } .cp2-tr > span:nth-child(2) { grid-column: 1; font-size: 12.5px; color: var(--d-muted); } .cp2-tr > span:nth-child(3) { grid-column: 2; grid-row: 1; } .cp2-tr > span:nth-child(4) { grid-column: 2; grid-row: 2; justify-self: end; }
  .cp2-card2 { padding: 16px 14px; }
}
@media (max-width: 380px) { .cp2-grid { grid-template-columns: minmax(0, 1fr); } }
