/* Registro gratuito (assets/js/registro.js) */
html.js .ch-article.is-gated .ch-pw,
html.js .ch-article.is-gated .ch-group,
html.js .ch-toc.is-gated li:not(:first-child) { display: none; }
html.js .ch-article.is-gated .rg-fade { position: relative; max-height: 420px; overflow: hidden; border-bottom: 0; }
html.js .ch-article.is-gated .rg-fade::after { content: ""; position: absolute; inset: auto 0 0 0; height: 180px; background: linear-gradient(to bottom, transparent, var(--surface)); pointer-events: none; }

.rg-gate { position: relative; margin: 8px 0 32px; padding: 32px 32px 28px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-raised); box-shadow: var(--glow-route); }
.rg-gate::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 0 3px 3px 0; background: var(--route); }
.rg-k { margin: 0 0 6px !important; font-family: var(--font-mono); font-size: 12px !important; font-weight: 700; letter-spacing: .16em; color: var(--route-text) !important; }
.rg-gate h2 { margin: 0 0 10px !important; }
.rg-lead { color: var(--ink-muted) !important; }
.rg-lead strong { color: var(--ink); }
.rg-form { margin: 18px 0 0; }
.rg-lbl { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.rg-row { display: flex; flex-wrap: wrap; gap: 10px; }
.rg-row input { flex: 1 1 240px; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.rg-row input:focus { outline: none; border-color: var(--route); box-shadow: var(--focus-ring, 0 0 0 3px var(--route)); }
.rg-btn { flex: 0 0 auto; height: 48px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--route); color: var(--on-route); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: box-shadow 200ms, opacity 120ms; }
.rg-btn:hover, .rg-btn:focus-visible { box-shadow: var(--glow-route); outline: none; }
.rg-btn:disabled { opacity: .6; cursor: progress; }
.rg-check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; font-size: 14.5px; line-height: 22px; color: var(--ink); cursor: pointer; }
.rg-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--route); }
.rg-check em { color: var(--ink-muted); font-style: normal; }
.rg-fine { margin: 12px 0 0 !important; font-size: 13px !important; line-height: 20px !important; color: var(--ink-muted) !important; }
.rg-fine a { color: var(--link); }
.rg-status { min-height: 20px; margin: 8px 0 0 !important; font-size: 14px !important; color: var(--ok) !important; }
.rg-status.is-bad { color: var(--crit) !important; }
.rg-perks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0 !important; padding: 16px 0 0 !important; border-top: 1px solid var(--line); list-style: none; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.rg-perks li { margin: 0 !important; padding-left: 20px; position: relative; }
.rg-perks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 5px; border-left: 2px solid var(--route); border-bottom: 2px solid var(--route); transform: rotate(-45deg); }
.rg-sent { margin: 0 !important; padding: 16px 18px; border: 1px solid var(--route); border-radius: 8px; background: var(--surface); }
.rg-again, .rg-demo-btn { padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }
.rg-demo { margin: 16px 0 0 !important; padding: 10px 14px; border: 1px dashed var(--warn); border-radius: 8px; font-size: 13px !important; line-height: 20px !important; color: var(--ink-muted) !important; }
.rg-toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: min(560px, calc(100vw - 32px)); padding: 14px 18px; border: 1px solid var(--route); border-radius: 10px; background: var(--surface-raised); color: var(--ink); font-size: 15px; line-height: 22px; box-shadow: var(--shadow-lg); transform: translateX(-50%); transition: opacity 400ms, transform 400ms; }
.rg-toast.is-bad { border-color: var(--crit); }
.rg-toast.is-out { opacity: 0; transform: translate(-50%, 12px); }
@media (max-width: 600px) {
  .rg-gate { padding: 24px 18px 22px; }
  .rg-btn { flex: 1 1 100%; }
}
