:root {
  --rcg-accent: linear-gradient(135deg, #5f46e8 0%, #8366ff 100%);
  --rcg-text: #241b3d;
}

.mp-registro-gratis {
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #faf7ff 0%, #f4f8ff 40%, #fff 100%);
}

/* Esta vista no incluye main.css: el PNG del logo puede tener miles de px intrínsecos sin límite. */
#header.header .logo img,
.onboarding-page #header.header .logo img {
  display: block;
  max-height: clamp(38px, 12vw, 56px);
  width: auto;
  max-width: min(210px, 52vw);
  height: auto;
  object-fit: contain;
}

#header.header .logo {
  align-items: center;
  flex-shrink: 0;
  max-width: min(230px, 55vw);
}

.rcg-main {
  padding: 5rem 14px 2.25rem;
  max-width: 560px;
  margin: 0 auto;
}

.rcg-shell { width: 100%; }

.rcg-card {
  background: #fff;
  border-radius: 28px;
  border: 1px solid #eae2ff;
  box-shadow: 0 26px 60px -40px rgba(79, 40, 170, 0.55);
  padding: clamp(1.35rem, 4vw, 2rem);
  overflow: visible;
}

.rcg-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.rcg-progress span {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: #e9e5f6;
}

.rcg-progress span.is-done,
.rcg-progress span.is-active {
  background: linear-gradient(90deg, #6f3de9, #9a68ff);
}

.rcg-eyebrow {
  display: block;
  letter-spacing: 0.06em;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #7f64d4;
  margin-bottom: 0.4rem;
}

.rcg-title {
  font-weight: 800;
  color: var(--rcg-text);
  font-size: clamp(1.45rem, 4.5vw, 1.75rem);
  margin-bottom: 0.55rem;
  line-height: 1.2;
}

.rcg-title--step3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.rcg-rubro-sections {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.rcg-rubro-section {
  padding: 0 0 1rem;
  border-bottom: 1px solid #ece8f7;
}

.rcg-rubro-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rcg-rubro-section-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #342c55;
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  line-height: 1.35;
}

.rcg-rubro-section-ic {
  display: inline-flex;
  color: #6f3de9;
  margin-right: 2px;
}

.rcg-rubro-section-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6f3de9;
  background: rgba(111, 61, 233, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.rcg-rubro-section-hint {
  font-size: 0.8rem;
  color: #6b677d;
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.rcg-cat-scroll--section {
  max-height: min(240px, 38vh);
}

.rcg-sub {
  margin: 0;
  font-size: 0.94rem;
  color: #5f5a71;
}

.rcg-role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 1.25rem 0 1rem;
}

.rcg-tab {
  appearance: none;
  border-radius: 16px;
  border: 2px solid #e5dbff;
  background: #fbfbff;
  font-weight: 700;
  color: #4b3f70;
  padding: 14px;
  cursor: pointer;
  transition: border-color .2s, transform .08s ease, box-shadow .2s;
}

.rcg-tab:hover { border-color: #cdbdff; transform: translateY(-1px); }

.rcg-tab.is-active {
  border-color: #9a68ff;
  background: linear-gradient(180deg, #fff 0%, #f6f3ff 100%);
  box-shadow: 0 12px 28px -18px rgba(95, 34, 148, .45);
  color: #3b2b64;
}

.rcg-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rcg-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: #3d3755;
}

.rcg-benefits i {
  flex-shrink: 0;
  color: #7647ff;
  font-size: 1rem;
}

.rcg-muted {
  font-size: 0.88rem;
  color: #6b677d;
}

.rcg-fields {
  display: grid;
  gap: 13px;
  margin-top: 1rem;
  overflow: visible;
}

.rcg-field-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #3b3358;
}

.rcg-fields .form-control {
  border-radius: 14px;
  padding: 0.65rem 0.9rem;
  border-color: #ded6f7;
}

.rcg-fields .form-control:focus {
  border-color: #9a68ff;
  box-shadow: 0 0 0 4px rgba(154, 104, 255, 0.15);
}

.rcg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .rcg-split {
    grid-template-columns: 1fr;
  }
}

.rcg-primary-btn {
  background: linear-gradient(135deg, #6f3de9, #9a68ff) !important;
  border: 0 !important;
  font-weight: 700;
  letter-spacing: 0.015em;
  box-shadow: 0 14px 32px -20px rgba(95, 34, 148, .9);
}

.rcg-chip-grid {
  display: grid;
  gap: 10px;
  margin-top: 0.85rem;
}

.rcg-chip {
  appearance: none;
  text-align: left;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid #e8e4f7;
  background: #fcfbff;
  font-weight: 600;
  color: #3a3460;
  cursor: pointer;
  transition: border-color .2s;
}

.rcg-chip:hover {
  border-color: #c9b8ff;
}

.rcg-chip.is-selected {
  border-color: #8f6cff;
  background: linear-gradient(180deg, #fff 0%, #f5f2ff);
}

.rcg-chip--sub.is-selected {
  border-color: #4080ff;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff);
  color: #1a4d99;
}

/* Rubro principal: dos columnas con scroll */
.rcg-cat-scroll {
  max-height: min(340px, 52vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 4px 4px 0;
  margin: 0 -4px 0 0;
  -webkit-overflow-scrolling: touch;
}

.rcg-cat-scroll::-webkit-scrollbar {
  width: 6px;
}

.rcg-cat-scroll::-webkit-scrollbar-thumb {
  background: #d4d0e8;
  border-radius: 999px;
}

.rcg-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}

.rcg-cat-chip {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 999px;
  border: 2px solid #e0dbf0;
  background: #fcfbff;
  font-weight: 600;
  font-size: 0.82rem;
  color: #4a4468;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  min-height: 44px;
  line-height: 1.2;
}

.rcg-cat-chip:hover {
  border-color: #b8caf5;
}

.rcg-cat-chip.is-selected {
  border-color: #4080ff;
  background: #f5f9ff;
  color: #1a56d9;
}

.rcg-cat-chip-ic {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  opacity: 0.9;
}

.rcg-cat-chip.is-selected .rcg-cat-chip-ic {
  color: #2563eb;
}

.rcg-cat-chip-txt {
  flex: 1;
  min-width: 0;
}

.rcg-subtipo-wrap {
  padding-top: 0.35rem;
}

.rcg-subtipo-wrap.is-near-selection {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  padding: 0.85rem 0.75rem 1rem;
  border-radius: 18px;
  border: 2px solid rgba(111, 61, 233, 0.35);
  background: linear-gradient(180deg, #faf8ff 0%, #fff 70%);
  box-shadow: 0 12px 36px -28px rgba(65, 28, 130, 0.45);
}

.rcg-subtipo-lead {
  margin-bottom: 0.35rem !important;
  font-weight: 600;
  color: #4b4468 !important;
}

.rcg-chip--sub .rcg-chip-ic {
  display: inline-flex;
  margin-right: 6px;
  color: #6f3de9;
  font-size: 1rem;
}

.rcg-chip--sub.is-selected .rcg-chip-ic {
  color: #1a56d9;
}

.rcg-chip-grid--sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.5rem;
}

.rcg-chip--sub {
  flex: 1 1 auto;
  min-width: min(100%, 120px);
  justify-content: center;
  border-radius: 999px;
  text-align: center;
}

.rcg-chip--sub .rcg-chip-ic {
  display: none;
}

.rcg-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6e57c6;
  font-weight: 600;
  padding: 0;
  margin-top: 0.75rem;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  cursor: pointer;
}

.rcg-msg {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.89rem;
  margin-top: 10px;
  display: none;
}

.rcg-msg.is-visible { display: block; }

.rcg-msg.is-error {
  background: #fff2f6;
  color: #8b1946;
  border: 1px solid #fbc9db;
}

.onboarding-page .onboarding-main { padding-top: 5.2rem; }

.onboarding-card .onboarding-plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 1rem 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ebfff2;
  color: #1b6b4a;
  font-weight: 700;
  font-size: 0.9rem;
}

.onboarding-plan-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.onboarding-check {
  margin-top: 1rem;
  padding: 1rem 1rem 0.5rem;
  border-radius: 18px;
  background: #f8f6ff;
  border: 1px solid #ebe4ff;
}

.onboarding-check-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #31285a;
}

.onboarding-check ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.onboarding-check li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  color: #443c66;
}

.onboarding-check i { color: #7647ff; flex-shrink: 0; }

.onboarding-link-box { margin: 0.5rem 0 0.25rem; }

.onboarding-link-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5c5378;
  margin-bottom: 6px;
}

.onboarding-mini { font-size: 0.82rem; }

.mp-header-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mp-header-cta-group .mp-register-free {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  border: 2px solid #d7cafc;
  color: #5f46e8;
  background: #fff;
  text-decoration: none;
}

.mp-header-cta-group .mp-register-free:hover {
  border-color: #b69cff;
}

@media (max-width: 991px) {
  .header .mp-header-cta-group .mp-register-free {
    font-size: .76rem;
    padding: 8px 10px;
  }
}

