.rg-autodiag-wrapper { border: 1px solid #e5e5e5; padding: 24px; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); }
.rg-progress { margin-bottom: 18px; }
.rg-progress-bar { position: relative; height: 10px; background: #e9eef2; border-radius: 999px; overflow: hidden; }
.rg-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #083240 0%, #80ba31 100%); border-radius: inherit; transition: width 0.3s ease; }
.rg-progress-text { margin-top: 6px; text-align: right; font-weight: 700; color: #083240; font-size: 13px; }
.rg-step { padding: 6px 0; }
.rg-step--loading { animation: rg-fade-pulse 1.5s ease-in-out infinite; }
@keyframes rg-fade-pulse { 
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.5; }
}
.rg-step-section { margin: 0 0 8px; color: #51707d; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; }
.rg-field { margin-bottom: 8px; }
.rg-field label { display: block; font-weight: 700; margin-bottom: 10px; color: #083240; font-size: 16px; }
.rg-group { display: grid; gap: 10px; }
.rg-field-inline label { margin-bottom: 6px; font-size: 14px; }
.rg-field-inline input { width: 100%; padding: 10px 12px; border: 1px solid #dcdcdc; border-radius: 8px; }
.rg-option-buttons { display: grid; grid-template-columns: 1fr; gap: 8px; }
.rg-option-buttons--stacked { gap: 10px; }
.rg-option-btn { position: relative; border: 1px solid #d9e2e8; border-radius: 10px; padding: 12px 14px; cursor: pointer; background: #f8fbfc; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; transition: border-color 0.2s ease, background 0.2s ease; }
.rg-option-btn input { position: absolute; opacity: 0; pointer-events: none; }
.rg-option-btn .rg-option-label { font-weight: 600; color: #083240; }
.rg-option-btn.selected { border-color: #80ba31; background: #e5f4e0; }
.rg-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.rg-loading-indicator { color: #999; font-weight: 600; font-size: 14px; padding: 12px 18px; }
.rg-btn { border: none; padding: 12px 18px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 15px; transition: background 0.2s ease, color 0.2s ease; display: inline-flex; align-items: center; gap: 8px; }
.rg-btn.primary { background: #80ba31; color: #fff; box-shadow: 0 6px 12px rgba(128, 186, 49, 0.2); }
.rg-btn.primary.rg-other-next{ font-size: 0 !important;}
.rg-btn.primary.rg-other-next::after { content: '›'; font-weight: 800; font-size: 18px; }
.rg-btn.primary:hover { background: #083240; }
.rg-btn.secondary { background: #083240; color: #fff; border: 1px solid #083240; }
.rg-btn.secondary:hover { background: #80ba31; color: #fff; border-color: #80ba31; }
.rg-btn.secondary:disabled { opacity: 0.4; cursor: not-allowed; }
.rg-autodiag-loader { text-align: center; padding: 20px; }
.rg-autodiag-error { color: #b71c1c; padding: 12px; border: 1px solid #b71c1c; border-radius: 6px; }
.rg-result { border: 1px solid #e5e5e5; padding: 16px; border-radius: 8px; background: #fafafa; }
.rg-result-score { font-size: 18px; font-weight: 700; display: inline-block; padding: 6px 10px; border-radius: 4px; color: #fff; margin: 6px 0; }
.rg-cta { margin: 15px 0; font-weight: 600; }
.rg-cta .rg-cta-message { margin-top: 5px; }
.rg-other-input { display: none; margin-top: 4px; width: calc(100% - 10px)!important; padding: 10px 12px; border: 1px solid #dcdcdc; border-radius: 10px; left: -12px; top: 15px; }
.rg-other-wrapper { position: relative; display: none; flex-direction: column; width: 100%; }
.rg-other-wrapper.visible { display: flex; align-items: center; }
.rg-other-wrapper .rg-other-input { margin-top: 4px; padding-right: 0px; }
.rg-other-wrapper .rg-other-next { position: absolute; right: -15px; top: 19px; padding: 5px 12px 10px 5px; font-size: 18px; height: auto; }
.rg-option-btn.selected[for="industry_otro"] .rg-other-wrapper,
.rg-option-btn.selected[for="erp_name_otro"] .rg-other-wrapper { display: flex; align-items: center; }
.rg-option-btn.selected[for="industry_otro"] .rg-other-input,
.rg-option-btn.selected[for="erp_name_otro"] .rg-other-input { display: block; opacity: 1; pointer-events: auto; }
.rg-option-btn.selected[for="industry_otro"],
.rg-option-btn.selected[for="erp_name_otro"] { margin-bottom: 50px; }
input[type="text"]{ border-radius: 10px;}

@media (min-width: 992px) {
	.rg-step { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 16px; }
	.rg-step > .rg-field { margin-bottom: 0; }
	.rg-step > .rg-step-section,
	.rg-step > .rg-actions,
	.rg-step > .rg-field--options,
	.rg-step > .rg-field--group { grid-column: 1 / -1; }
	.rg-option-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rg-group { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 10px; }
	.rg-group > .rg-field-inline:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
label:has(+ label[for="industry_otro"]),
label:has(+ label[for="erp_name_otro"]) {
  max-height: 42px;
  overflow: hidden; /* recomendable */
}
div.rg-answers {
    margin-top: 20px;
}