/* Portal de clientes.
   El color principal sale de Configuración (variable --rmp-primary). Cualquier regla se puede
   sobrescribir desde Apariencia → Editor → Estilos → CSS adicional usando las clases .rmp-*. */

/* ---------- Plantilla a pantalla completa ---------- */
body.rmp-page {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 500px at 50% -120px, color-mix(in srgb, var(--rmp-primary) 18%, #f6f7fb), #f6f7fb 70%);
  color: #172033; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.rmp-topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(15,23,42,.06); }
.admin-bar .rmp-topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .rmp-topbar { top: 46px; } }
.rmp-topbar-in { max-width: 1040px; margin: 0 auto; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rmp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: #172033; text-decoration: none; letter-spacing: -.01em; }
.rmp-logo { height: 34px; width: auto; }
.rmp-logo-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--rmp-primary), color-mix(in srgb, var(--rmp-primary) 60%, #0f172a)); box-shadow: 0 6px 16px color-mix(in srgb, var(--rmp-primary) 35%, transparent); }
.rmp-toplink { font-size: .85rem; color: var(--rmp-primary); font-weight: 600; text-decoration: none; }
.rmp-main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 22px 16px 110px; box-sizing: border-box; }
.rmp-content > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.rmp-content > .alignwide, .rmp-content > .alignfull { max-width: none; }
.rmp-footer { text-align: center; font-size: .82rem; color: #64748b; padding: 20px 16px 96px; }
.rmp-footer a { color: inherit; }
@media (min-width: 760px) { .rmp-main { padding-bottom: 40px; } .rmp-footer { padding-bottom: 24px; } }

/* ---------- Base del componente ---------- */
.rmp {
  --rmp-primary: #6d28d9;
  --rmp-ink: #172033;
  --rmp-muted: #64748b;
  --rmp-border: #e6e9f0;
  --rmp-card: #ffffff;
  --rmp-soft: #f4f6fb;
  --rmp-ok: #0f8a4a; --rmp-ok-bg: #e5f7ec;
  --rmp-warn: #8a5300; --rmp-warn-bg: #fff4d6;
  --rmp-bad: #c2261d; --rmp-bad-bg: #fde8e6;
  --rmp-info: #1d4ed8; --rmp-info-bg: color-mix(in srgb, var(--rmp-primary) 9%, white);
  --rmp-radius: 18px;
  --rmp-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  max-width: 680px; margin: 0 auto; color: var(--rmp-ink); font-size: 16px; line-height: 1.5;
}
.rmp *, .rmp *::before, .rmp *::after { box-sizing: border-box; }
.rmp h2 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.02em; }
.rmp h3 { font-size: 1.08rem; margin: 0 0 10px; letter-spacing: -.01em; }
.rmp h4 { font-size: 1rem; margin: 14px 0 8px; }
.rmp p { margin: 0 0 10px; }
.rmp-loading { padding: 40px; text-align: center; color: var(--rmp-muted); }
.rmp-ic { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: -4px; }
.rmp-h { margin: 22px 4px 10px !important; }
.rmp-card { background: var(--rmp-card); border: 1px solid var(--rmp-border); border-radius: var(--rmp-radius); padding: 18px; margin-bottom: 12px; box-shadow: var(--rmp-shadow); }
.rmp-pad { padding: 28px 20px; }
.rmp-muted { color: var(--rmp-muted); }
.rmp-small { font-size: .86rem; }
.rmp-center { text-align: center; }
.rmp-mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.rmp-hide { display: none !important; }
.rmp-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rmp-between { justify-content: space-between; }
.rmp-grow { flex: 1; min-width: 0; }
.rmp-pos { color: var(--rmp-ok) !important; }
.rmp-neg { color: var(--rmp-bad) !important; }

/* Formularios */
.rmp label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }
.rmp input[type=text], .rmp input[type=tel], .rmp input[type=password], .rmp input[type=number], .rmp input[type=search], .rmp select {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #dbe0ea; border-radius: 12px; font: inherit; color: inherit; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.rmp input:focus, .rmp select:focus { outline: none; border-color: var(--rmp-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rmp-primary) 16%, transparent); }
.rmp button:focus-visible, .rmp a:focus-visible, .rmp-type input:focus-visible + span, .rmp-plan input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--rmp-primary) 45%, white); outline-offset: 2px; }
.rmp-pw { position: relative; }
.rmp-pw input { padding-right: 80px !important; }
.rmp-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--rmp-soft); color: var(--rmp-muted); font: inherit; font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.rmp-code { font-size: 1.7rem !important; letter-spacing: .45em; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; }
.rmp-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .86rem !important; color: var(--rmp-muted); margin-top: 16px !important; }
.rmp-check input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--rmp-primary); }
.rmp-hint { font-size: .82rem; color: var(--rmp-muted); margin: 6px 0 0; display: flex; gap: 6px; align-items: center; }
.rmp-file { display: flex !important; align-items: center; justify-content: center; min-height: 64px; margin: 0 !important; border: 1.5px dashed #c7cedb; border-radius: 12px; background: var(--rmp-soft); color: var(--rmp-muted); font-weight: 500 !important; cursor: pointer; text-align: center; padding: 10px; position: relative; }
.rmp-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rmp-file:focus-within { border-color: var(--rmp-primary); }

/* Botones */
.rmp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 20px;
  border-radius: 14px; border: 1.5px solid var(--rmp-border); background: #fff; color: var(--rmp-ink); font: inherit; font-weight: 700;
  cursor: pointer; margin-top: 16px; text-decoration: none; transition: transform .08s, filter .15s, background .15s;
}
.rmp-btn:hover { background: var(--rmp-soft); }
.rmp-btn:active { transform: scale(.98); }
.rmp-btn.primary { background: var(--rmp-primary); border-color: var(--rmp-primary); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--rmp-primary) 28%, transparent); }
.rmp-btn.primary:hover { filter: brightness(1.06); background: var(--rmp-primary); }
.rmp-btn.small { min-height: 38px; padding: 6px 14px; margin: 0; font-size: .86rem; border-radius: 11px; }
.rmp-btn.block { width: 100%; }
.rmp-xl { min-height: 58px; font-size: 1.05rem; }
.rmp-btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.rmp-link { background: none; border: 0; padding: 8px 0; color: var(--rmp-primary); font: inherit; font-weight: 600; cursor: pointer; }
.rmp-link[disabled] { color: var(--rmp-muted); cursor: default; }
.rmp-spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: rmp-spin .7s linear infinite; }
@keyframes rmp-spin { to { transform: rotate(360deg); } }

/* Alertas y etiquetas */
.rmp-alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; margin: 12px 0; font-size: .9rem; line-height: 1.45; }
.rmp-alert.ok { background: var(--rmp-ok-bg); color: #0b5d33; }
.rmp-alert.bad { background: var(--rmp-bad-bg); color: #8e1b14; }
.rmp-alert.warn { background: var(--rmp-warn-bg); color: #6b4100; }
.rmp-alert.info { background: var(--rmp-info-bg); color: color-mix(in srgb, var(--rmp-primary) 70%, #0f172a); }
.rmp-alert .rmp-ic { margin-top: 1px; }
.rmp-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--rmp-soft); color: var(--rmp-muted); white-space: nowrap; }
.rmp-badge.ok { background: var(--rmp-ok-bg); color: var(--rmp-ok); }
.rmp-badge.warn { background: var(--rmp-warn-bg); color: var(--rmp-warn); }
.rmp-badge.bad { background: var(--rmp-bad-bg); color: var(--rmp-bad); }

/* ---------- Ingreso / registro ---------- */
.rmp-auth { display: grid; gap: 16px; }
.rmp-auth-hero { border-radius: 24px; padding: 26px 22px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--rmp-primary) 0%, color-mix(in srgb, var(--rmp-primary) 55%, #0b1224) 100%); box-shadow: 0 18px 40px color-mix(in srgb, var(--rmp-primary) 30%, transparent); }
.rmp-auth-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.rmp-auth-hero h2 { color: #fff; font-size: 1.6rem; }
.rmp-auth-hero p { color: rgba(255,255,255,.88); }
.rmp-hero-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.16); margin-bottom: 14px; }
.rmp-hero-mark .rmp-ic { width: 28px; height: 28px; }
.rmp-perks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.rmp-perks li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: rgba(255,255,255,.92); }
.rmp-perks .rmp-ic { margin-top: 1px; }
.rmp-auth-card { background: #fff; border: 1px solid var(--rmp-border); border-radius: 24px; padding: 20px; box-shadow: var(--rmp-shadow); }
@media (min-width: 760px) {
  .rmp:has(.rmp-auth) { max-width: 960px; }
  .rmp-auth { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .rmp-auth-hero { padding: 40px 34px; display: flex; flex-direction: column; justify-content: center; }
  .rmp-auth-card { padding: 30px; }
}
.rmp-seg { display: flex; background: var(--rmp-soft); padding: 4px; border-radius: 14px; gap: 4px; margin-bottom: 6px; }
.rmp-seg button { flex: 1; min-height: 44px; border: 0; background: transparent; border-radius: 11px; font: inherit; font-weight: 600; color: var(--rmp-muted); cursor: pointer; }
.rmp-seg button.on { background: #fff; color: var(--rmp-ink); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.rmp-seg.small button { min-height: 38px; font-size: .9rem; }

/* ---------- Cuenta ---------- */
.rmp-hero { border-radius: 24px; padding: 22px; color: #fff; margin-bottom: 14px; position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--rmp-primary), color-mix(in srgb, var(--rmp-primary) 52%, #0b1224)); box-shadow: 0 16px 36px color-mix(in srgb, var(--rmp-primary) 28%, transparent); }
.rmp-hero::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.07); }
.rmp-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; position: relative; z-index: 1; }
.rmp-hello { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.rmp-hero-sub { font-size: .86rem; color: rgba(255,255,255,.88); margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rmp-hero-sub .rmp-ic { width: 16px; height: 16px; }
.rmp-hero-out { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: .82rem; font-weight: 600; background: rgba(255,255,255,.15); padding: 7px 11px; border-radius: 10px; }
.rmp-hero-out .rmp-ic { width: 16px; height: 16px; }
.rmp-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.rmp-hero-stats > div { background: rgba(255,255,255,.14); border-radius: 16px; padding: 14px; }
.rmp-hero-num { font-size: 1.9rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.rmp-hero-lbl { font-size: .8rem; color: rgba(255,255,255,.85); }

.rmp-nav { display: flex; gap: 6px; background: #fff; border: 1px solid var(--rmp-border); border-radius: 18px; padding: 6px; margin-bottom: 14px; box-shadow: var(--rmp-shadow); }
.rmp-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 56px; border: 0; background: transparent; border-radius: 13px; font: inherit; font-size: .76rem; font-weight: 600; color: var(--rmp-muted); cursor: pointer; padding: 6px 2px; }
.rmp-nav button.on { background: color-mix(in srgb, var(--rmp-primary) 10%, white); color: var(--rmp-primary); }
@media (max-width: 759px) {
  .rmp-nav { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; margin: 0; box-shadow: 0 10px 30px rgba(15,23,42,.18); }
  .rmp-view { padding-bottom: 20px; }
}
@media (min-width: 760px) { .rmp-nav button { flex-direction: row; justify-content: center; gap: 8px; font-size: .92rem; min-height: 46px; } }

.rmp-tickets { display: grid; gap: 12px; }
.rmp-ticket { display: flex; gap: 14px; background: #fff; border: 1px solid var(--rmp-border); border-radius: var(--rmp-radius); padding: 16px; box-shadow: var(--rmp-shadow); position: relative; }
.rmp-ticket::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--rmp-primary); }
.rmp-ticket-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; color: var(--rmp-primary); background: color-mix(in srgb, var(--rmp-primary) 10%, white); }
.rmp-ticket-ic .rmp-ic { width: 26px; height: 26px; }
.rmp-ticket-body { flex: 1; min-width: 0; }
.rmp-ticket-type { font-size: 1.05rem; }
.rmp-ticket-count { margin-top: 4px; }
.rmp-big { font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.rmp-bar { height: 8px; background: var(--rmp-soft); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.rmp-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--rmp-primary), color-mix(in srgb, var(--rmp-primary) 60%, #22c55e)); }
.rmp-pend { border-left: 4px solid #f59e0b; }
.rmp-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 16px 18px; border-radius: var(--rmp-radius); background: color-mix(in srgb, var(--rmp-primary) 8%, white); border: 1px solid color-mix(in srgb, var(--rmp-primary) 18%, white); }
.rmp-illus { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 22px; display: grid; place-items: center; color: var(--rmp-primary); background: color-mix(in srgb, var(--rmp-primary) 10%, white); }
.rmp-illus .rmp-ic { width: 36px; height: 36px; }

/* Compra */
.rmp-step { display: flex; align-items: center; gap: 10px; margin: 22px 4px 10px; }
.rmp-step h3 { margin: 0; }
.rmp-step-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 800; color: #fff; background: var(--rmp-primary); }
.rmp-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rmp-type, .rmp-plan { margin: 0 !important; font-weight: 400 !important; position: relative; }
.rmp-type input, .rmp-plan input { position: absolute; opacity: 0; pointer-events: none; }
.rmp-type > span { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 14px 6px; border: 2px solid var(--rmp-border); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.rmp-type > span .rmp-ic { width: 26px; height: 26px; color: var(--rmp-primary); }
.rmp-type small { color: var(--rmp-muted); font-size: .78rem; }
.rmp-type input:checked + span, .rmp-plan input:checked + span { border-color: var(--rmp-primary); background: color-mix(in srgb, var(--rmp-primary) 7%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rmp-primary) 14%, transparent); }
.rmp-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .rmp-plans { grid-template-columns: repeat(4, 1fr); } }
.rmp-plan > span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 18px 8px 14px; border: 2px solid var(--rmp-border); border-radius: 18px; background: #fff; cursor: pointer; height: 100%; transition: border-color .15s, background .15s; }
.rmp-plan.best > span { border-color: color-mix(in srgb, var(--rmp-primary) 45%, white); }
.rmp-plan-n { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.rmp-plan small { font-size: .76rem; }
.rmp-plan strong { font-size: 1rem; margin-top: 8px; }
.rmp-plan-cb { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--rmp-ok); background: var(--rmp-ok-bg); padding: 3px 8px; border-radius: 999px; margin: 6px 0 2px; }
.rmp-plan-cb .rmp-ic { width: 14px; height: 14px; }
.rmp-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--rmp-primary); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.rmp-cbuse label { margin-top: 0; }
.rmp-summary { background: #0f172a; color: #e2e8f0; border-color: #0f172a; margin-top: 16px; }
.rmp-summary .rmp-sum dt { color: #94a3b8; }
.rmp-summary .rmp-total { color: #fff !important; border-color: rgba(255,255,255,.14); }
.rmp-summary .rmp-pos { color: #4ade80 !important; }
.rmp-sum { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; }
.rmp-sum dt { color: var(--rmp-muted); }
.rmp-sum dd { margin: 0; text-align: right; font-weight: 700; }
.rmp-total { font-size: 1.2rem; border-top: 1px solid var(--rmp-border); padding-top: 10px; margin-top: 2px; }
.rmp-paybox { background: var(--rmp-soft); border-radius: 14px; padding: 14px; }
.rmp-nequi { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--rmp-border); }
.rmp-nequi-num { font-size: 1.25rem; font-weight: 800; letter-spacing: .02em; }
.rmp-total-box { display: flex; justify-content: space-between; align-items: center; background: var(--rmp-soft); border-radius: 14px; padding: 14px 16px; margin: 14px 0; }
.rmp-total-box b { font-size: 1.4rem; }

/* Historial y cashback */
.rmp-list { list-style: none; margin: 0; padding: 0; }
.rmp-list > li { padding: 12px 0; border-bottom: 1px solid var(--rmp-border); }
.rmp-list > li:last-child { border-bottom: 0; }
.rmp-li { display: flex; gap: 12px; align-items: center; }
.rmp-li-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; color: var(--rmp-primary); background: color-mix(in srgb, var(--rmp-primary) 9%, white); }
.rmp-li-ic.muted { color: var(--rmp-muted); background: var(--rmp-soft); }
.rmp-cbhero { text-align: center; padding: 26px 18px; border-radius: 24px; color: #fff; margin-bottom: 12px; background: linear-gradient(140deg, #0f9f5a, #0b6b3e); box-shadow: 0 16px 36px rgba(15,159,90,.25); }
.rmp-cbnum { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0; }
.rmp-cbhero .rmp-small { color: rgba(255,255,255,.85); }
.rmp-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.rmp-feats > div { background: #fff; border: 1px solid var(--rmp-border); border-radius: 16px; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; font-size: .78rem; color: var(--rmp-muted); }
.rmp-feats b { display: block; color: var(--rmp-ink); font-size: .86rem; }
.rmp-feats .rmp-ic { color: var(--rmp-primary); }
.rmp-member { display: flex; gap: 14px; align-items: center; }
.rmp-avatar { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: #fff; background: linear-gradient(140deg, var(--rmp-primary), color-mix(in srgb, var(--rmp-primary) 55%, #0b1224)); }

/* Instalar app */
.rmp-install { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--rmp-border); border-radius: var(--rmp-radius); padding: 14px 14px 14px 16px; margin: 14px 0; box-shadow: var(--rmp-shadow); position: relative; }
.rmp-install-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(140deg, var(--rmp-primary), color-mix(in srgb, var(--rmp-primary) 55%, #0b1224)); }
.rmp-install .rmp-small { margin-top: 4px; }
.rmp-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--rmp-muted); cursor: pointer; padding: 4px 6px; }
.rmp-install .rmp-btn { margin-right: 18px; }
@media (display-mode: standalone) { .rmp-topbar { padding-top: env(safe-area-inset-top); } }

@media (prefers-reduced-motion: reduce) { .rmp *, .rmp-btn { transition: none !important; animation: none !important; } }

/* Bendecidos: destellos dorados en la marca y estado "aprobado" de los retiros. */
.rmp-logo-mark { background: linear-gradient(135deg, var(--rmp-primary), color-mix(in srgb, var(--rmp-primary) 55%, #1e0b3a)); }
.rmp-brand-name { background: linear-gradient(90deg, #2e1065, var(--rmp-primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rmp-badge.info { background: color-mix(in srgb, var(--rmp-primary) 12%, #fff); color: color-mix(in srgb, var(--rmp-primary) 80%, #000); border-color: transparent; }
.rmp-hero-mark { color: #fff; }
.rmp-cbhero { background: linear-gradient(135deg, #b45309, #f59e0b 55%, #fbbf24); box-shadow: 0 14px 30px rgba(180, 83, 9, .28); }

/* Guía de instalación de la app. */
.rmp-steps { margin: 6px 0 14px; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.rmp-steps li { counter-increment: st; display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.rmp-steps li::before { content: counter(st); flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--rmp-primary); }
#rmp-install-big { margin-bottom: 12px; }

/* Tarjeta de retiro: resaltada cuando es día de retiro, apagada cuando no. */
.rmp-wd h3 { margin: 0; }
.rmp-wd.on { border: 2px solid #f59e0b; box-shadow: 0 10px 26px rgba(245, 158, 11, .18); }
.rmp-wd.off { opacity: .92; }
.rmp-wd .rmp-btn[disabled] { cursor: not-allowed; opacity: .7; }

/* Cuatro tipos de membresía: 2 x 2 en celular, 4 en una fila en pantallas anchas. */
.rmp-types { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .rmp-types { grid-template-columns: repeat(4, 1fr); } }

/* Recuperación de la inversión. */
.rmp-rec { display: grid; gap: 16px; }
.rmp-rec-row .rmp-bar { margin: 8px 0 6px; }
.rmp-bar-gold span { background: linear-gradient(90deg, var(--rmp-primary), #f59e0b); }
.rmp-rec-row .rmp-ic { width: 15px; height: 15px; vertical-align: -3px; color: var(--rmp-primary); }

/* Aviso del equipo en la pantalla Comprar. */
.rmp-notice { margin: 12px 0; }

/* Notificaciones. */
.rmp-push p { margin: 6px 0 10px; }
.rmp-push b .rmp-ic, .rmp-push .rmp-btn .rmp-ic { width: 16px; height: 16px; vertical-align: -3px; }

/* Resumen del saldo. */
.rmp-sumgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.rmp-sumgrid div { display: flex; flex-direction: column; gap: 2px; }
.rmp-sumgrid small { color: var(--rmp-muted); font-size: .74rem; line-height: 1.2; }
.rmp-sumgrid b { font-size: 1rem; }
.rmp-sumgrid .tot b { font-size: 1.08rem; color: var(--rmp-primary); }
@media (max-width: 380px) { .rmp-sumgrid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Invita y gana ---------- */
.rmp-invite { border: 1px solid color-mix(in srgb, #fbbf24 55%, white); background: linear-gradient(180deg, #fffbeb, #fff); }
.rmp-invite h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.rmp-invite h3 .rmp-ic { width: 20px; height: 20px; color: #b45309; }
.rmp-invite .rmp-row { gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.rmp-invite .rmp-btn .rmp-ic { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- Guía de compra y llave Bre-B ---------- */
.rmp-guide { border: 1px solid color-mix(in srgb, var(--rmp-primary) 25%, white); }
.rmp-guide summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rmp-guide summary::-webkit-details-marker { display: none; }
.rmp-guide summary .rmp-ic { width: 20px; height: 20px; color: var(--rmp-primary); }
.rmp-guide ol { margin: 14px 0 6px; padding: 0; list-style: none; counter-reset: g; }
.rmp-guide li { counter-increment: g; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; margin: 0 0 12px; }
.rmp-guide li::before { content: counter(g); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: var(--rmp-primary); }
.rmp-guide li span { color: var(--rmp-muted); font-size: .92rem; }
.rmp-breb { margin-top: 8px; }
.rmp-breb details { margin-top: 6px; }
.rmp-breb summary { cursor: pointer; font-weight: 700; }

/* ---------- Pago por llave Bre-B ---------- */
.rmp-breb-key { margin: 8px 0 4px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px dashed color-mix(in srgb, var(--rmp-primary) 45%, white); }
.rmp-breb-key b { font-size: 1.15rem; word-break: break-all; }
.rmp-breb-key .rmp-ic { width: 16px; height: 16px; vertical-align: -3px; }
.rmp-breb-steps { margin: 10px 0 0; padding-left: 18px; }
.rmp-breb-steps li { margin: 4px 0; }
.rmp-wa { background: #16a34a !important; border-color: #16a34a !important; margin-top: 12px; }
.rmp-wa .rmp-ic { width: 18px; height: 18px; }
