/* Invitar amigos (club-referidos.js) y créditos (club-creditos.js) */
.rf-vacio { text-align:center; padding:36px 16px; color:var(--text-muted); }
.rf-aviso, .cr-aviso { padding:16px 18px; border-radius:var(--radius); background:var(--accent-ghost); border:1px solid var(--border-2); color:var(--text-light); font-size:.9rem; line-height:1.5; }
.rf-aviso button, .cr-aviso button { margin-left:8px; padding:7px 14px; border-radius:var(--radius-sm); border:0; background:var(--primary); color:#fff; font:inherit; font-size:.82rem; font-weight:600; cursor:pointer; }
.rf-hero { border-radius:var(--radius); padding:22px; margin-bottom:16px; color:#fff; background:linear-gradient(120deg,var(--primary-dark),var(--primary)); }
.rf-eyebrow { font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; opacity:.85; font-weight:700; }
.rf-enlace { margin:8px 0 14px; padding:12px 14px; border-radius:var(--radius-sm); background:rgba(255,255,255,.14); font-size:.92rem; word-break:break-all; user-select:all; }
.rf-acciones { display:flex; gap:10px; flex-wrap:wrap; }
.rf-btn { padding:10px 18px; border-radius:var(--radius-sm); border:1px solid rgba(255,255,255,.4); background:#fff; color:var(--primary-dark); font:inherit; font-size:.85rem; font-weight:700; cursor:pointer; text-decoration:none; display:inline-block; }
.rf-btn.is-wa { background:#128C7E; border-color:#128C7E; color:#fff; }
.rf-btn.is-ghost { background:transparent; border-color:var(--border-2); color:var(--text); }
.rf-premio .rf-btn { background:var(--primary); border-color:var(--primary); color:#fff; margin-top:6px; }
.rf-nota { font-size:.82rem; margin-top:12px; opacity:.92; line-height:1.5; }
.rf-premio { border:1px solid var(--border); border-radius:var(--radius); padding:18px; margin-bottom:16px; background:var(--surface,var(--bg)); }
.rf-premio .rf-nota { color:var(--text-light); opacity:1; }
.rf-premio-cab { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:10px; } .rf-premio-cab span { font-size:.82rem; color:var(--text-muted); }
.rf-barra { height:8px; border-radius:6px; background:var(--border); overflow:hidden; } .rf-barra div { height:100%; border-radius:6px; background:linear-gradient(90deg,var(--accent),var(--primary)); transition:width .6s ease; }
.rf-cifras { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:8px; }
.rf-cifras div { text-align:center; padding:14px 8px; border-radius:var(--radius); border:1px solid var(--border); background:var(--surface,var(--bg)); }
.rf-cifras strong { display:block; font-size:1.5rem; line-height:1.1; } .rf-cifras span { font-size:.72rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.08em; }
.rf-h { font-size:1rem; margin:18px 0 10px; }
.rf-lista { display:flex; flex-direction:column; gap:10px; }
.rf-inv { display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:var(--radius); border:1px solid var(--border); background:var(--surface,var(--bg)); }
.rf-av { width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:var(--accent-ghost); color:var(--primary); font-weight:700; flex-shrink:0; }
.rf-inv-dat { flex:1; min-width:0; } .rf-inv-dat strong { display:block; } .rf-inv-dat > span { font-size:.76rem; color:var(--text-muted); }
.rf-hitos { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; } .rf-hitos span { font-size:.68rem; padding:3px 8px; border-radius:99px; border:1px solid var(--border-2); color:var(--text-muted); } .rf-hitos span.on { background:rgba(15,157,88,.12); border-color:transparent; color:var(--success); font-weight:700; }
.rf-est { font-size:.72rem; font-weight:700; padding:4px 10px; border-radius:99px; white-space:nowrap; } .rf-est.is-ok { background:rgba(15,157,88,.12); color:var(--success); } .rf-est.is-pend { background:rgba(180,83,9,.12); color:var(--warning); } .rf-est.is-no { background:rgba(220,45,63,.1); color:var(--danger); }
.rf-overlay, .cr-overlay { position:fixed; inset:0; z-index:9998; display:none; align-items:center; justify-content:center; padding:20px; background:rgba(6,11,18,.65); backdrop-filter:blur(4px); }
.rf-overlay.is-abierto, .cr-overlay.is-abierto { display:flex; }
.rf-caja { width:100%; max-width:460px; max-height:85vh; overflow:auto; background:var(--surface,var(--bg)); color:var(--text); border:1px solid var(--border); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow-lg); }
.rf-caja h3 { margin:0 0 4px; } .rf-caja p { font-size:.86rem; color:var(--text-muted); margin:0 0 14px; }
.rf-cursos { display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.rf-cursos button { text-align:left; padding:12px 14px; border-radius:var(--radius-sm); border:1px solid var(--border-2); background:transparent; color:var(--text); font:inherit; cursor:pointer; } .rf-cursos button:hover { border-color:var(--primary); background:var(--accent-ghost); }
.rf-cursos strong { display:block; font-size:.9rem; } .rf-cursos span { font-size:.76rem; color:var(--text-muted); }

/* Créditos */
.cr-panel { border:1px solid var(--border); border-radius:var(--radius); padding:18px; margin-bottom:18px; background:var(--surface,var(--bg)); }
.cr-fila { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.cr-saldo { display:inline-flex; align-items:baseline; gap:8px; padding:8px 14px; border-radius:99px; background:var(--accent-ghost); } .cr-saldo strong { font-size:1.35rem; color:var(--primary); } .cr-saldo span { font-size:.78rem; color:var(--text-muted); }
.cr-cupon { display:flex; gap:8px; margin-left:auto; flex-wrap:wrap; } .cr-cupon input { padding:10px 12px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--bg); color:var(--text); font:inherit; text-transform:uppercase; width:170px; }
.cr-btn { padding:10px 16px; border-radius:var(--radius-sm); border:0; background:var(--primary); color:#fff; font:inherit; font-size:.82rem; font-weight:700; cursor:pointer; } .cr-btn.is-ghost { background:transparent; border:1px solid var(--border-2); color:var(--text); } .cr-btn:disabled { opacity:.55; cursor:default; }
.cr-nota { font-size:.8rem; color:var(--text-muted); margin-top:10px; line-height:1.5; }
.cr-regalo { margin-bottom:14px; padding:14px 16px; border-radius:var(--radius); background:linear-gradient(120deg,var(--primary-dark),var(--primary)); color:#fff; display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.cr-regalo button { padding:8px 14px; border-radius:var(--radius-sm); border:0; background:#fff; color:var(--primary-dark); font:inherit; font-weight:700; cursor:pointer; }
.cr-estante { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; margin-top:14px; }
.cr-mat { border:1px solid var(--border); border-radius:var(--radius); padding:14px; display:flex; flex-direction:column; gap:8px; background:var(--bg); } .cr-mat strong { font-size:.92rem; line-height:1.3; } .cr-mat p { font-size:.78rem; color:var(--text-muted); margin:0; flex:1; }

/* Tarjeta de créditos y cupón (PDF y material): saldo, campo del código y botón se acomodan sin encimarse en cualquier ancho */
.cr-panel { overflow: hidden; }
.cr-fila { align-items: flex-end; gap: 16px 20px; }
.cr-cupon { flex: 1 1 300px; min-width: 0; margin-left: 0; flex-wrap: nowrap; }
.cr-cupon > div { min-width: 0; width: 100%; }
.cr-cupon > div > div { display: flex; gap: 8px; min-width: 0; }
.cr-cupon input { flex: 1 1 0; width: 100%; min-width: 0; box-sizing: border-box; text-overflow: ellipsis; }
.cr-cupon input::placeholder { text-transform: none; letter-spacing: 0; }
.cr-btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 560px) {
  .cr-panel { padding: 16px; }
  .cr-fila { flex-direction: column; align-items: stretch; gap: 14px; }
  .cr-saldo { align-self: flex-start; }
  .cr-cupon { flex-basis: auto; width: 100%; }
}
