/* REP-001 · Programa de representantes comerciales: página pública (/representantes) y página privada del representante
   (/vendedor/<enlace>). Mismo sistema de marca de Sancurec: azul noche, azul de marca y cian; dorado solo para «Oro». */
:root {
  --navy: #0a1430; --navy-2: #111d45; --brand: #3355ff; --brand-2: #1d8bff; --cyan: #00b8ff; --ink: #0f1a3a; --ink-2: #44507a;
  --muted: #6b7699; --line: #e3e8f4; --bg: #f5f7fc; --card: #fff; --ok: #12a66b; --ok-soft: #e4f7ee; --gold: #c98a00; --gold-soft: #fff4d6;
  --r: 22px; --shadow: 0 18px 50px rgba(15, 26, 58, .10); --shadow-sm: 0 6px 18px rgba(15, 26, 58, .07);
  --f: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.rp { margin: 0; font-family: var(--f); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.rp a { color: inherit; }
.rp img { max-width: 100%; }
.rp-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.rp .ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.rp h1, .rp h2, .rp h3 { letter-spacing: -.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
.rp p { margin: 0; }

/* Barra superior */
.rp-top { position: sticky; top: 0; z-index: 20; background: rgba(10, 20, 48, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.rp-top .rp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.rp-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.rp-logo img { height: 30px; width: auto; }
.rp-logo span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9fb4ff; border-left: 1px solid rgba(255,255,255,.18); padding-left: 12px; }
.rp-nav { display: flex; align-items: center; gap: 26px; }
.rp-nav > a { color: #c9d4f7; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.rp-nav > a:hover { color: #fff; }

/* Botones */
.rp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 800; font-size: 15.5px; border-radius: 14px;
  padding: 14px 22px; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.rp-btn:hover { transform: translateY(-1px); }
.rp-btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.rp-btn-pri { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff !important; box-shadow: 0 10px 26px rgba(51, 85, 255, .35); }
.rp-btn-pri:hover { box-shadow: 0 14px 34px rgba(51, 85, 255, .45); }
.rp-btn-wa { background: #16b364; color: #fff !important; box-shadow: 0 10px 24px rgba(22, 179, 100, .3); }
.rp-btn-ghost { background: rgba(255, 255, 255, .08); color: #fff !important; border: 1px solid rgba(255, 255, 255, .2); }
.rp-btn-line { background: #fff; color: var(--ink) !important; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.rp-btn-sm { padding: 10px 14px; font-size: 14px; border-radius: 12px; }

/* Héroe */
.rp-hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(900px 520px at 85% -10%, rgba(29, 139, 255, .45), transparent 60%),
  radial-gradient(700px 500px at -10% 110%, rgba(0, 184, 255, .22), transparent 60%), var(--navy); }
.rp-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(180deg, #000 30%, transparent); pointer-events: none; }
.rp-hero .rp-wrap { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding-top: 76px; padding-bottom: 96px; }
.rp-kick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8fd8ff; background: rgba(0, 184, 255, .1); border: 1px solid rgba(0, 184, 255, .25); padding: 7px 12px; border-radius: 999px; }
.rp-hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; margin: 20px 0 18px; }
.rp-hero h1 em { font-style: normal; background: linear-gradient(90deg, #7fb2ff, #4fe0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rp-lead { font-size: 19px; color: #c6d2f5; max-width: 560px; }
.rp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.rp-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; font-size: 14px; color: #a9b8e6; }
.rp-trust span { display: inline-flex; align-items: center; gap: 7px; }
.rp-trust .ic { color: #4fe0ff; }

/* Tarjeta de ejemplo en el héroe */
.rp-mock { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); border: 1px solid rgba(255, 255, 255, .16); border-radius: 28px; padding: 26px; box-shadow: 0 40px 90px rgba(0, 0, 0, .35); backdrop-filter: blur(8px); }
.rp-mock-tag { position: absolute; top: -12px; right: 22px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #fff; color: var(--navy); border-radius: 999px; padding: 5px 11px; }
.rp-mock small { display: block; font-size: 13px; color: #a9b8e6; font-weight: 600; }
.rp-mock .big { font-size: 46px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 2px; }
.rp-mock .row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 15px; }
.rp-mock .row b { font-size: 16px; }
.rp-mock .pill { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(79, 224, 255, .14); color: #7fe7ff; }
.rp-mock .pill.gold { background: rgba(255, 196, 61, .16); color: #ffd36b; }
.rp-bars { display: flex; align-items: flex-end; gap: 10px; height: 92px; margin: 16px 0 6px; }
.rp-bars i { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #4fe0ff, #3355ff); opacity: .9; }
.rp-bars i:last-child { box-shadow: 0 0 22px rgba(79, 224, 255, .5); opacity: 1; }

/* Franja de cifras */
.rp-strip { margin-top: -46px; position: relative; z-index: 2; }
.rp-strip .rp-wrap > div { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.rp-stat { padding: 24px 26px; border-right: 1px solid var(--line); }
.rp-stat:last-child { border-right: 0; }
.rp-stat b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--brand); }
.rp-stat span { font-size: 14px; color: var(--ink-2); font-weight: 600; }

/* Secciones */
.rp-sec { padding: 96px 0 0; }
.rp-sec-head { max-width: 720px; margin-bottom: 40px; }
.rp-sec-head.c { margin-left: auto; margin-right: auto; text-align: center; }
.rp-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; display: block; }
.rp-sec h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.rp-sec-head p { margin-top: 14px; font-size: 18px; color: var(--ink-2); }

/* Pasos */
.rp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.rp-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px 24px; box-shadow: var(--shadow-sm); }
.rp-step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: 18px; box-shadow: 0 8px 18px rgba(51, 85, 255, .3); }
.rp-step h3 { font-size: 19px; margin-bottom: 8px; }
.rp-step p { font-size: 15px; color: var(--ink-2); }

/* Niveles de comisión */
.rp-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rp-tier { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 30px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.rp-tier .lbl { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rp-tier .pct { font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.rp-tier .pct small { font-size: 28px; }
.rp-tier p { color: var(--ink-2); font-size: 15.5px; }
.rp-tier ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.rp-tier li { display: flex; gap: 9px; align-items: flex-start; }
.rp-tier li .ic { color: var(--ok); margin-top: 2px; }
.rp-tier.hot { background: linear-gradient(180deg, #0f1d4d, var(--navy)); color: #fff; border-color: transparent; box-shadow: 0 30px 70px rgba(10, 20, 48, .35); transform: translateY(-10px); }
.rp-tier.hot .lbl { color: #8fd8ff; } .rp-tier.hot .pct { color: #fff; } .rp-tier.hot p, .rp-tier.hot li { color: #c6d2f5; } .rp-tier.hot li .ic { color: #4fe0ff; }
.rp-tier.gold { background: linear-gradient(160deg, #fffaf0, var(--gold-soft)); border-color: #f2d58a; }
.rp-tier.gold .lbl { color: var(--gold); }
.rp-ribbon { position: absolute; top: 18px; right: 18px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(79, 224, 255, .15); color: #7fe7ff; }
.rp-tier.gold .rp-ribbon { background: #ffe39b; color: #6b4700; }

/* Calculadora */
.rp-calc { margin-top: 28px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.rp-calc-in { padding: 32px; display: grid; gap: 22px; }
.rp-calc-in h3 { font-size: 22px; }
.rp-range label { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.rp-range output { font-weight: 800; color: var(--brand); }
.rp-range input[type=range] { width: 100%; accent-color: var(--brand); height: 6px; }
.rp-hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.rp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.rp-check input { width: 18px; height: 18px; accent-color: var(--gold); margin-top: 1px; flex: none; }
.rp-calc-out { background: linear-gradient(160deg, #0f1d4d, var(--navy)); color: #fff; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.rp-calc-out small { color: #a9b8e6; font-weight: 600; font-size: 14px; }
.rp-calc-out .big { font-size: 54px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.rp-calc-out .yr { font-size: 17px; color: #c6d2f5; }
.rp-calc-out .note { font-size: 12.5px; color: #8d9bcb; margin-top: 10px; }

/* Qué vendes */
.rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rp-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: var(--shadow-sm); }
.rp-card h3 { font-size: 22px; margin: 14px 0 10px; }
.rp-card > p { color: var(--ink-2); }
.rp-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #eef2ff; color: var(--brand); font-size: 24px; }
.rp-ico.cy { background: #e3f7ff; color: #0090c7; }
.rp-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; font-size: 15px; }
.rp-list li { display: flex; gap: 10px; align-items: flex-start; }
.rp-list li .ic { color: var(--ok); margin-top: 3px; }

/* A quién visitar */
.rp-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.rp-chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; font-weight: 700; font-size: 15px; box-shadow: var(--shadow-sm); }
.rp-chip .ic { color: var(--brand); }

/* Kit y reglas */
.rp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rp-feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.rp-feat .ic { width: 26px; height: 26px; color: var(--brand); }
.rp-feat h3 { font-size: 17px; margin: 12px 0 6px; }
.rp-feat p { font-size: 14.5px; color: var(--ink-2); }
.rp-rules { background: var(--navy); color: #fff; border-radius: 28px; padding: 40px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.rp-rules h2 { color: #fff; }
.rp-rules p.s { color: #a9b8e6; margin-top: 12px; }
.rp-rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rp-rules li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: #d7e0ff; }
.rp-rules li .ic { color: #4fe0ff; margin-top: 3px; }

/* Preguntas */
.rp-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.rp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.rp-faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 800; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.rp-faq summary::-webkit-details-marker { display: none; }
.rp-faq summary::after { content: "+"; font-size: 22px; color: var(--brand); line-height: 1; }
.rp-faq details[open] summary::after { content: "−"; }
.rp-faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* Llamada final y pie */
.rp-final { margin: 96px 0 0; }
.rp-final .rp-wrap > div { border-radius: 32px; padding: 56px; color: #fff; text-align: center; background: radial-gradient(600px 300px at 80% 0%, rgba(79, 224, 255, .3), transparent 60%), linear-gradient(135deg, #1b37d6, #0a1430); box-shadow: var(--shadow); }
.rp-final h2 { font-size: clamp(30px, 3.8vw, 46px); }
.rp-final p { color: #c6d2f5; font-size: 18px; margin: 14px auto 0; max-width: 620px; }
.rp-final .rp-cta { justify-content: center; }
.rp-foot { padding: 48px 0 40px; color: var(--muted); font-size: 13.5px; }
.rp-foot .rp-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.rp-foot img { height: 24px; }

/* ===================== Página privada del representante ===================== */
.rd-hero { background: radial-gradient(800px 400px at 90% -20%, rgba(29, 139, 255, .45), transparent 60%), var(--navy); color: #fff; padding: 40px 0 110px; }
.rd-hello { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-end; }
.rd-hello h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.rd-hello p { color: #a9b8e6; margin-top: 6px; }
.rd-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.rd-badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 13.5px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.rd-badge code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.rd-badge.gold { background: linear-gradient(135deg, #ffd36b, #f2a900); color: #3d2a00; border-color: transparent; }
.rd-main { margin-top: -76px; position: relative; z-index: 2; display: grid; gap: 22px; padding-bottom: 40px; }
.rd-kpis { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; }
.rd-kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 20px; box-shadow: var(--shadow-sm); }
.rd-kpi span { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.rd-kpi b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 2px; }
.rd-kpi small { font-size: 13px; color: var(--ink-2); }
.rd-kpi.main { background: linear-gradient(135deg, var(--brand), #1b37d6); color: #fff; border-color: transparent; box-shadow: 0 20px 44px rgba(51, 85, 255, .35); }
.rd-kpi.main span, .rd-kpi.main small { color: #dbe4ff; }
.rd-kpi.main b { font-size: 40px; }
.rd-panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); overflow: hidden; }
.rd-panel-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.rd-panel-h h2 { font-size: 19px; }
.rd-panel-h span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.rd-panel-b { padding: 22px 24px; }
.rd-two { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; }
.rd-chart { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding-top: 10px; }
.rd-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.rd-col i { width: 100%; max-width: 54px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #7fb2ff, var(--brand)); min-height: 4px; }
.rd-col.now i { background: linear-gradient(180deg, #4fe0ff, var(--brand)); box-shadow: 0 8px 20px rgba(51, 85, 255, .3); }
.rd-col em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.rd-col small { font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: capitalize; }
.rd-gold { border-radius: 20px; padding: 22px; background: linear-gradient(160deg, #fffaf0, var(--gold-soft)); border: 1px solid #f2d58a; }
.rd-gold h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.rd-gold p { font-size: 14.5px; color: #5c4710; margin-top: 8px; }
.rd-track { height: 10px; border-radius: 99px; background: rgba(201, 138, 0, .15); overflow: hidden; margin-top: 14px; }
.rd-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffc93d, #f2a900); }
.rd-biz { display: grid; gap: 12px; }
.rd-b { display: grid; grid-template-columns: 1.6fr .8fr .8fr 1fr; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; }
.rd-b.off { opacity: .6; }
.rd-b h3 { font-size: 16px; }
.rd-b .sub { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.rd-b .v { font-weight: 800; font-size: 17px; }
.rd-b .k { font-size: 12px; color: var(--muted); font-weight: 700; display: block; }
.rd-tag { display: inline-flex; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #eef2ff; color: var(--brand); margin-left: 6px; vertical-align: 2px; }
.rd-tag.chain { background: #e3f7ff; color: #0079a8; }
.rd-life { height: 7px; border-radius: 99px; background: #edf0f8; overflow: hidden; margin-top: 8px; }
.rd-life i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--cyan)); border-radius: 99px; }
.rd-empty { text-align: center; padding: 34px 18px; color: var(--ink-2); }
.rd-empty .ic { width: 40px; height: 40px; color: var(--brand); }
.rd-pays { list-style: none; margin: 0; padding: 0; display: grid; }
.rd-pays li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rd-pays li:last-child { border-bottom: 0; }
.rd-pays b { font-weight: 800; }
.rd-copy { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px dashed #c9d3f2; border-radius: 16px; padding: 14px 16px; background: #f8faff; }
.rd-script { font-size: 15px; color: var(--ink-2); background: #f8faff; border-radius: 16px; padding: 16px 18px; border: 1px solid var(--line); white-space: pre-line; }
.rd-obj { display: grid; gap: 10px; margin-top: 4px; }
.rd-obj details { border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
.rd-obj summary { cursor: pointer; padding: 13px 0; font-weight: 700; font-size: 15px; }
.rd-obj p { padding: 0 0 14px; color: var(--ink-2); font-size: 14.5px; }
.rd-help { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.rd-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--navy); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); z-index: 50; }
.rd-toast[hidden] { display: none; }

/* Entrada suave */
@media (prefers-reduced-motion: no-preference) {
  .rp-in { animation: rpIn .7s cubic-bezier(.2, .8, .2, 1) both; }
  .rp-in.d1 { animation-delay: .08s; } .rp-in.d2 { animation-delay: .16s; } .rp-in.d3 { animation-delay: .24s; }
  @keyframes rpIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* Teléfono y tableta */
@media (max-width: 980px) {
  .rp-hero .rp-wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .rp-steps, .rp-grid3 { grid-template-columns: 1fr 1fr; }
  .rp-tiers { grid-template-columns: 1fr; } .rp-tier.hot { transform: none; }
  .rp-calc, .rp-two, .rp-rules, .rd-two { grid-template-columns: 1fr; }
  .rd-kpis { grid-template-columns: 1fr 1fr; } .rd-kpi.main, .rd-kpi:last-child { grid-column: 1 / -1; }
  .rp-nav > a:not(.rp-btn) { display: none; }
}
@media (max-width: 640px) {
  .rp-strip .rp-wrap > div { grid-template-columns: 1fr 1fr; }
  .rp-stat:nth-child(2) { border-right: 0; } .rp-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .rp-steps, .rp-grid3 { grid-template-columns: 1fr; }
  .rp-sec { padding-top: 72px; }
  .rp-final .rp-wrap > div, .rp-rules { padding: 32px 22px; }
  .rd-b { grid-template-columns: 1fr 1fr; } .rd-b > :first-child { grid-column: 1 / -1; }
  .rp-logo span { display: none; }
  .rp-nav > .rp-btn { display: none; }
  .rp-btn { white-space: normal; }
}

/* REP-003 · cartera: avisos, etiquetas de etapa y reporte de visita */
.rd-note { border-radius: 16px; padding: 14px 18px; font-size: 14.5px; font-weight: 600; margin-bottom: 18px; border: 1px solid; }
.rd-note.ok { background: #ecfdf3; border-color: #a6e9c3; color: #05603a; }
.rd-note.warn { background: #fff8e6; border-color: #f5d68a; color: #7a5200; }
.rd-note.bad { background: #fff1f0; border-color: #f7b9b3; color: #9b1c12; }
.rd-note a { color: inherit; font-weight: 800; text-decoration: underline; }
.rd-tag.act { background: #ecfdf3; color: #05603a; }
.rd-tag.cart { background: #f2ecff; color: #5b34c7; }
.rd-b.due { border-color: #f5d68a; background: #fffcf3; }
.rd-life.cart i { background: linear-gradient(90deg, #7c5cff, #a98bff); }
.rd-visit { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.rd-small { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.rd-small small { color: var(--muted); font-weight: 600; }
.rd-form { display: grid; gap: 12px; margin-top: 14px; }
.rd-form label > span { display: block; font-size: 12.5px; font-weight: 800; color: var(--muted); margin-bottom: 5px; }
.rd-form select, .rd-form input:not([type=checkbox]) { width: 100%; font: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.rd-form select:focus, .rd-form input:focus { outline: 2px solid #b9c7ff; border-color: var(--brand); }
.rd-form .rp-btn { justify-self: start; }
.rp-calc-out .after { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; }
.rp-calc-out .after b { font-size: 17px; }
@media (max-width: 760px) { .rd-visit { grid-template-columns: 1fr; gap: 18px; } }
.rp-phases { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0 28px; }
.rp-phase { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.rp-phase .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--cyan)); }
.rp-phase:nth-child(2) .n { background: linear-gradient(135deg, #7c5cff, #a98bff); }
.rp-phase h3 { font-size: 17px; margin-bottom: 4px; }
.rp-phase p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.rp-fine { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.6; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .rp-phases { grid-template-columns: 1fr; } }
