/*
 * VCR Precalificación Pensionados — capa visual VCR UI System v1.0
 * Fuente visual: Autorizaciones SUGEF frontend 0.8.12 CANÓNICO.
 * Alcance: presentación y responsive únicamente. No contiene lógica funcional.
 */

.vcrppi-shell {
    --vcrppi-blue: #0b4fb3;
    --vcrppi-title: #073e91;
    --vcrppi-primary: #2f58e8;
    --vcrppi-border: #d7dee8;
    --vcrppi-bg: #f6f8fb;
    --vcrppi-text: #172033;
    --vcrppi-muted: #5a687b;
    --vcrppi-input-border: #aeb8c6;
    --vcrppi-focus: #356fe0;
    width: 100%;
    max-width: 1180px;
    min-width: 0;
    margin: 28px auto;
    padding: 0 16px;
    color: var(--vcrppi-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    box-sizing: border-box;
}

.vcrppi-shell,
.vcrppi-shell * {
    box-sizing: border-box;
}

.vcrppi-shell *,
.vcrppi-shell *::before,
.vcrppi-shell *::after {
    min-width: 0;
}

.vcrppi-shell [hidden],
[data-vcrppi-form-wrap] [hidden] {
    display: none !important;
}

.vcrppi-form,
.vcrppi-success,
[data-vcrppi-main],
.vcrppi-section,
.vcrppi-grid,
.vcrppi-field,
.vcrppi-fieldset,
.vcrppi-alert,
.vcrppi-phone-control,
.vcrppi-phone-number-shell,
.vcrppi-debt-list,
.vcrppi-debt-card,
.vcrppi-debt-actions,
.vcrppi-debt-summary,
.vcrppi-success-inner,
.vcrppi-success-actions,
.vcrppi-prestanombre-box,
.vcrppi-prestanombre-links,
.vcrppi-no-route-links {
    min-width: 0;
    max-width: 100%;
}

.vcrppi-form {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Encabezado público, equivalente al front-head de SUGEF. */
.vcrppi-intro {
    margin: 0 0 18px;
    padding: 0;
}

.vcrppi-kicker,
.vcrppi-success-badge {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #526783;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.35;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.vcrppi-intro h2,
.vcrppi-success h2 {
    margin: 3px 0 10px;
    color: var(--vcrppi-title);
    font-size: 32px;
    font-weight: 750;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.vcrppi-intro p,
.vcrppi-section-head p,
.vcrppi-submit-note,
.vcrppi-success p,
.vcrppi-success-note,
.vcrppi-field-help,
.vcrppi-field small,
.vcrppi-debt-actions small {
    color: var(--vcrppi-muted);
}

.vcrppi-intro p,
.vcrppi-section-head p,
.vcrppi-submit-note,
.vcrppi-success p,
.vcrppi-success-note {
    margin: 0;
}

/* Cards principales, equivalentes a vcr-front-card. */
.vcrppi-section,
.vcrppi-success {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 16px;
    padding: 22px;
    border: 1px solid var(--vcrppi-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.vcrppi-section-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 18px;
}

.vcrppi-section-head > span {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 8px;
    background: #eef5ff;
    color: var(--vcrppi-blue);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.vcrppi-section-head > div {
    flex: 1 1 auto;
    min-width: 0;
}

.vcrppi-section-head h3 {
    margin: 0 0 7px;
    color: var(--vcrppi-title);
    font-size: 22px;
    font-weight: 750;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.vcrppi-section-head p {
    font-size: 14px;
    line-height: 1.45;
}

/* Ritmo interno de cards. */
.vcrppi-section > .vcrppi-field + .vcrppi-field,
.vcrppi-section > .vcrppi-field + .vcrppi-alert,
.vcrppi-section > .vcrppi-alert + .vcrppi-field,
.vcrppi-section > .vcrppi-alert + .vcrppi-alert,
.vcrppi-section > .vcrppi-history-lock + .vcrppi-alert,
.vcrppi-section > .vcrppi-alert + .vcrppi-history-lock,
.vcrppi-section > .vcrppi-field + .vcrppi-history-lock,
.vcrppi-section > .vcrppi-grid + .vcrppi-field,
.vcrppi-section > .vcrppi-grid + .vcrppi-alert,
.vcrppi-section > .vcrppi-grid + .vcrppi-terms-field,
.vcrppi-section > .vcrppi-terms-field + .vcrppi-terms-field,
.vcrppi-section > .vcrppi-terms-field + .vcrppi-form-error {
    margin-top: 18px;
}

/* Grid de datos. */
.vcrppi-grid {
    display: grid;
    width: 100%;
    gap: 16px;
}

.vcrppi-grid > * {
    min-width: 0;
    max-width: 100%;
}

.vcrppi-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vcrppi-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.vcrppi-grid-full {
    grid-column: 1 / -1;
}

/* Campos, labels y ayudas. */
.vcrppi-field,
.vcrppi-terms-field {
    position: relative;
}

.vcrppi-field > label,
.vcrppi-field-label,
.vcrppi-terms-field > label,
.vcrppi-fieldset legend {
    color: var(--vcrppi-text);
    font-weight: 700;
}

.vcrppi-field > label,
.vcrppi-field-label {
    display: block;
    margin: 0 0 6px;
}

.vcrppi-field > label b,
.vcrppi-field-label b,
.vcrppi-terms-field > label b,
.vcrppi-fieldset legend b {
    color: #b42318;
}

.vcrppi-field input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.vcrppi-field select,
.vcrppi-field textarea,
.vcrppi-copy-source {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--vcrppi-input-border);
    border-radius: 7px;
    background: #fff;
    color: #18212b;
    font: inherit;
    line-height: 1.3;
    outline: 0;
    transition: border-color .12s ease, outline-color .12s ease, background-color .12s ease;
}

.vcrppi-field input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):focus,
.vcrppi-field select:focus,
.vcrppi-field textarea:focus,
.vcrppi-copy-source:focus {
    border-color: var(--vcrppi-focus);
    outline: 2px solid rgba(53, 111, 224, .16);
}

.vcrppi-field input[readonly],
.vcrppi-field select[disabled],
.vcrppi-field input[disabled] {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #344054;
}

.vcrppi-field input::placeholder,
.vcrppi-copy-source::placeholder {
    color: #7d8796;
    opacity: 1;
}

.vcrppi-field small,
.vcrppi-field-help {
    display: block;
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.vcrppi-field-help a,
.vcrppi-alert a {
    color: #174f9c;
    text-underline-offset: 2px;
}

.vcrppi-optional {
    color: var(--vcrppi-muted);
    font-size: 12px;
    font-weight: 500;
}

/* Fieldsets y opciones seleccionables. */
.vcrppi-fieldset {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.vcrppi-fieldset legend {
    width: 100%;
    max-width: 100%;
    margin: 0 0 6px;
    padding: 0;
    font-size: 16px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.vcrppi-radio-row,
.vcrppi-radio-stack {
    display: grid;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
}

.vcrppi-radio-row {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.vcrppi-radio-stack {
    grid-template-columns: minmax(0, 1fr);
}

.vcrppi-radio-row label,
.vcrppi-radio-stack label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--vcrppi-border);
    border-radius: 8px;
    background: #fff;
    color: var(--vcrppi-text);
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease, outline-color .12s ease;
    overflow-wrap: anywhere;
}

.vcrppi-radio-row label:hover,
.vcrppi-radio-stack label:hover {
    border-color: #aab8cd;
    background: #fbfcff;
}

.vcrppi-radio-row label:focus-within,
.vcrppi-radio-stack label:focus-within {
    border-color: var(--vcrppi-focus);
    outline: 2px solid rgba(53, 111, 224, .16);
}

.vcrppi-radio-row label.is-selected,
.vcrppi-radio-stack label.is-selected {
    border-color: #8eafe1;
    background: #eef5ff;
}

.vcrppi-radio-row label.is-disabled,
.vcrppi-radio-stack label.is-disabled,
.vcrppi-force-disabled {
    opacity: .58;
    cursor: not-allowed;
}

.vcrppi-radio-row input[type="radio"],
.vcrppi-radio-stack input[type="radio"],
.vcrppi-terms-field input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    padding: 0;
    accent-color: var(--vcrppi-primary);
}

.vcrppi-radio-row span,
.vcrppi-radio-stack span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Alertas con la misma gramática visual de SUGEF. */
.vcrppi-alert {
    width: 100%;
    margin: 0 0 16px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.vcrppi-section .vcrppi-alert {
    margin-left: 0;
    margin-right: 0;
}

.vcrppi-alert > strong {
    color: inherit;
}

.vcrppi-alert > strong + p,
.vcrppi-alert > p + p,
.vcrppi-alert > p + div {
    margin-top: 7px;
}

.vcrppi-alert p {
    margin-bottom: 0;
}

.vcrppi-alert-info {
    border-color: #aac4eb;
    background: #eef5ff;
    color: #294d7a;
}

.vcrppi-alert-success {
    border-color: #9dd7a9;
    background: #edf9f0;
    color: #196531;
}

/* Warning informativo no terminal. */
.vcrppi-alert-warning {
    border-color: #e2c785;
    background: #fff9e9;
    color: #684b0c;
}

/* Estados que sí detienen la ruta: se expresan como error canónico. */
.vcrppi-alert-warning[data-vcrppi-consent-stop],
.vcrppi-alert-warning[data-vcrppi-history-stop],
.vcrppi-alert-warning[data-vcrppi-income-stop],
.vcrppi-alert-warning[data-vcrppi-minor-stop],
.vcrppi-alert-warning[data-vcrppi-age-invalid-stop],
.vcrppi-alert-warning[data-vcrppi-debt-stop] {
    border-color: #e3aaaa;
    background: #fff0f0;
    color: #7f2020;
}

.vcrppi-veracity-warning {
    margin-top: 14px !important;
}

/* Panel de respuesta crítica bloqueada. */
.vcrppi-history-lock {
    width: 100%;
    margin: 18px 0 0;
    padding: 17px;
    border: 1px solid #e3aaaa;
    border-left: 4px solid #c83b3b;
    border-radius: 8px;
    background: #fff7f7;
    color: #642323;
}

.vcrppi-history-lock-badge {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 8px;
    color: #7f2020;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.vcrppi-history-lock > strong {
    display: block;
    margin: 0 0 7px;
    color: #6d2020;
    font-size: 16px;
    line-height: 1.4;
}

.vcrppi-history-lock > p {
    margin: 7px 0 0;
}

.vcrppi-history-lock .vcrppi-history-lock-note {
    color: #765555;
    font-size: 13px;
}

/* Botones: primario y secundario SUGEF. */
.vcrppi-submit,
.vcrppi-correction-btn,
.vcrppi-debt-remove,
.vcrppi-debt-add,
.vcrppi-whatsapp-btn,
.vcrppi-secondary-link,
.vcrppi-copy-btn,
.vcrppi-prestanombre-links a,
.vcrppi-maturity-action {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 11px 17px;
    border-radius: 7px;
    font: inherit;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter .12s ease, border-color .12s ease, background-color .12s ease, outline-color .12s ease;
    overflow-wrap: anywhere;
}

.vcrppi-submit,
.vcrppi-whatsapp-btn {
    border: 1px solid var(--vcrppi-primary);
    background: var(--vcrppi-primary);
    color: #fff;
}

.vcrppi-correction-btn,
.vcrppi-debt-remove,
.vcrppi-debt-add,
.vcrppi-secondary-link,
.vcrppi-copy-btn,
.vcrppi-prestanombre-links a,
.vcrppi-maturity-action {
    border: 1px solid #8ea4de;
    background: #fff;
    color: #243b7a;
}

.vcrppi-submit:hover,
.vcrppi-correction-btn:hover,
.vcrppi-debt-remove:hover,
.vcrppi-debt-add:hover,
.vcrppi-whatsapp-btn:hover,
.vcrppi-secondary-link:hover,
.vcrppi-copy-btn:hover,
.vcrppi-prestanombre-links a:hover,
.vcrppi-maturity-action:hover {
    filter: brightness(.97);
}

.vcrppi-submit:focus-visible,
.vcrppi-correction-btn:focus-visible,
.vcrppi-debt-remove:focus-visible,
.vcrppi-debt-add:focus-visible,
.vcrppi-whatsapp-btn:focus-visible,
.vcrppi-secondary-link:focus-visible,
.vcrppi-copy-btn:focus-visible,
.vcrppi-prestanombre-links a:focus-visible,
.vcrppi-maturity-action:focus-visible {
    outline: 2px solid rgba(53, 111, 224, .24);
    outline-offset: 2px;
}

.vcrppi-submit {
    width: auto;
    margin-top: 18px;
}

.vcrppi-submit:disabled,
.vcrppi-debt-remove:disabled,
.vcrppi-debt-add:disabled {
    opacity: .5;
    cursor: not-allowed;
    filter: none;
}

.vcrppi-submit-note {
    margin-top: 8px;
    font-size: 13px;
    text-align: left;
}

.vcrppi-correction-btn {
    margin-top: 14px;
}

/* Checkbox cards. */
.vcrppi-terms-field {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--vcrppi-border);
    border-radius: 8px;
    background: #fff;
}

.vcrppi-terms-field > label {
    display: block;
    width: 100%;
    margin: 0;
    line-height: 1.45;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.vcrppi-terms-field input[type="checkbox"] {
    display: inline-block;
    margin: 3px 9px 0 0;
    vertical-align: top;
}

.vcrppi-marketing-box {
    background: #fbfcff;
}

/* Errores de validación visual. */
.vcrppi-has-error input:not([type="radio"]):not([type="checkbox"]),
.vcrppi-has-error select,
.vcrppi-has-error textarea,
.vcrppi-has-error.vcrppi-terms-field {
    border-color: #d92d20 !important;
    outline: 2px solid rgba(217, 45, 32, .12) !important;
}

.vcrppi-has-error.vcrppi-fieldset .vcrppi-radio-row label,
.vcrppi-has-error.vcrppi-fieldset .vcrppi-radio-stack label {
    border-color: #e3aaaa;
}

.vcrppi-error-message,
.vcrppi-form-error {
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.vcrppi-error-message {
    margin-top: 7px;
}

.vcrppi-form-error {
    width: 100%;
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid #e3aaaa;
    border-radius: 7px;
    background: #fff0f0;
}

/* Teléfono compuesto: misma densidad que inputs SUGEF y sin mínimos rígidos. */
.vcrppi-phone-field,
.vcrppi-email-field {
    width: 100%;
    min-width: 0;
}

.vcrppi-phone-control {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 16px;
    align-items: end;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--vcrppi-border);
    border-radius: 8px;
    background: #fbfcff;
}

.vcrppi-phone-part {
    width: 100%;
    min-width: 0;
}

.vcrppi-phone-sub-label {
    display: block;
    margin: 0 0 6px !important;
    color: #4b5563 !important;
    font-size: 12px;
    font-weight: 700 !important;
    line-height: 1.35;
}

.vcrppi-phone-country select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding-right: 38px;
    white-space: normal;
}

.vcrppi-phone-number-shell {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 1px solid var(--vcrppi-input-border);
    border-radius: 7px;
    background: #fff;
    transition: border-color .12s ease, outline-color .12s ease;
}

.vcrppi-phone-number-shell:focus-within {
    border-color: var(--vcrppi-focus);
    outline: 2px solid rgba(53, 111, 224, .16);
}

.vcrppi-phone-prefix {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    padding: 0 12px;
    border-right: 1px solid var(--vcrppi-border);
    border-radius: 6px 0 0 6px;
    background: #f1f5f9;
    color: #344054;
    font-weight: 750;
    line-height: 1;
    user-select: none;
}

.vcrppi-phone-number-shell input {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 0 !important;
    border-radius: 0 6px 6px 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    font: inherit;
}

.vcrppi-phone-number-shell input::placeholder {
    color: #7d8796;
    opacity: 1;
}

.vcrppi-phone-help {
    display: flex !important;
    align-items: flex-start;
    gap: 7px;
    width: 100%;
    margin-top: 7px !important;
    font-size: 13px;
    line-height: 1.45 !important;
    text-align: left;
}

.vcrppi-phone-help-flag {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1.25;
}

.vcrppi-phone-help [data-vcrppi-phone-help-text] {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Obligaciones financieras. */
.vcrppi-debt-list {
    display: grid;
    width: 100%;
    gap: 11px;
    margin-top: 16px;
}

.vcrppi-debt-card {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--vcrppi-border);
    border-radius: 8px;
    background: #fff;
}

.vcrppi-debt-card .vcrppi-grid-3 {
    margin-top: 14px;
}

.vcrppi-debt-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.vcrppi-debt-card-head strong {
    color: var(--vcrppi-title);
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.vcrppi-debt-remove {
    border-color: #e3aaaa;
    color: #8f2727;
}

.vcrppi-debt-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin-top: 14px;
}

.vcrppi-debt-actions small {
    flex: 1 1 220px;
    font-size: 13px;
}

.vcrppi-debt-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid #aac4eb;
    border-radius: 7px;
    background: #eef5ff;
    color: #294d7a;
}

.vcrppi-debt-summary strong {
    flex: 0 0 auto;
    color: #174f9c;
    font-size: 19px;
}

.vcrppi-debt-refinance {
    margin-top: 18px;
}

/* Alternativa de titular y maduración temporal. */
.vcrppi-prestanombre-box {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid currentColor;
    border-top-color: rgba(90, 104, 123, .22);
}

.vcrppi-prestanombre-box p {
    margin: 0 0 8px;
}

.vcrppi-prestanombre-links,
.vcrppi-no-route-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    width: 100%;
    margin-top: 12px;
}

.vcrppi-maturity-inline {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(127, 32, 32, .18);
}

.vcrppi-maturity-inline p,
.vcrppi-maturity-result p {
    margin: 0 0 8px;
}

.vcrppi-maturity-result {
    margin-top: 16px !important;
}

/* Pantallas finales. */
.vcrppi-success {
    padding: 22px;
    text-align: left;
}

.vcrppi-success-inner {
    width: 100%;
    max-width: 860px;
}

.vcrppi-success h2 {
    font-size: 30px;
}

.vcrppi-success-lead {
    max-width: 760px;
    font-size: 15px;
    line-height: 1.55;
}

.vcrppi-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    width: 100%;
    margin-top: 18px;
}

.vcrppi-success-note {
    margin-top: 8px !important;
    font-size: 13px;
}

.vcrppi-catalog-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.vcrppi-copy-source {
    position: absolute;
    left: -9999px;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden;
}

.vcrppi-no-route {
    border-left: 4px solid #c83b3b;
}

.vcrppi-no-route .vcrppi-alert {
    margin-top: 16px;
    margin-bottom: 0;
}

/* Elementos de seguridad no visuales. */
.vcrppi-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Responsive canónico VCR UI. */
@media (max-width: 780px) {
    .vcrppi-shell {
        margin: 16px auto;
        padding: 0 10px;
    }

    .vcrppi-intro h2,
    .vcrppi-success h2 {
        font-size: 27px;
    }

    .vcrppi-section,
    .vcrppi-success {
        padding: 17px;
    }

    .vcrppi-grid-2,
    .vcrppi-grid-3,
    .vcrppi-phone-control,
    .vcrppi-radio-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .vcrppi-grid-3 {
        margin-top: 14px;
    }

    .vcrppi-section-head {
        gap: 10px;
    }

    .vcrppi-section-head > span {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .vcrppi-phone-control {
        gap: 12px;
        padding: 12px;
    }

    .vcrppi-debt-card-head,
    .vcrppi-debt-summary {
        align-items: flex-start;
    }

    .vcrppi-debt-card-head {
        flex-wrap: wrap;
    }

    .vcrppi-debt-summary {
        flex-direction: column;
        gap: 5px;
    }

    .vcrppi-debt-summary strong {
        flex-basis: auto;
    }

    .vcrppi-success-actions > *,
    .vcrppi-catalog-row > *,
    .vcrppi-prestanombre-links > *,
    .vcrppi-no-route-links > * {
        flex: 1 1 180px;
    }
}

@media (max-width: 480px) {
    .vcrppi-section-head {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .vcrppi-submit,
    .vcrppi-success-actions > *,
    .vcrppi-catalog-row > *,
    .vcrppi-prestanombre-links > *,
    .vcrppi-no-route-links > *,
    .vcrppi-debt-actions .vcrppi-debt-add {
        width: 100%;
        flex-basis: 100%;
    }

    .vcrppi-debt-remove {
        width: auto;
    }

    .vcrppi-phone-prefix {
        min-width: 60px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vcrppi-shell *,
    .vcrppi-shell *::before,
    .vcrppi-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ========================================================================== */
/* COMPONENTES ESPECÍFICOS — PRECALIFICACIÓN PENSIONADOS                      */
/* Mantiene la mecánica y atributos existentes; solo adapta presentación.      */
/* ========================================================================== */

/* Variante accesible de opciones extensas para personas pensionadas. */
.vcrppi-radio-row-large label,
.vcrppi-radio-stack-large label {
    min-height: 48px;
    padding: 15px;
    font-size: 16px;
    line-height: 1.5;
}

.vcrppi-radio-row-large input[type="radio"],
.vcrppi-radio-stack-large input[type="radio"],
.vcrppi-documentation-field input[type="radio"] {
    width: 18px;
    height: 18px;
}

/* Contenedor repetible de pensiones. */
.vcrppi-pensions-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--vcrppi-border);
    border-radius: 10px;
    background: #fbfcff;
}

.vcrppi-pensions-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-width: 0;
    margin: 0 0 14px;
}

.vcrppi-pensions-head > * {
    min-width: 0;
}

.vcrppi-pensions-head h4,
.vcrppi-pension-card h5 {
    margin: 0;
    color: var(--vcrppi-title);
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.vcrppi-pensions-head p,
.vcrppi-add-pension-area p {
    margin: 5px 0 0;
    color: var(--vcrppi-muted);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.vcrppi-pension-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 11px;
    padding: 14px;
    border: 1px solid var(--vcrppi-border);
    border-radius: 8px;
    background: #fff;
}

.vcrppi-pension-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 0 0 12px;
}

.vcrppi-pension-card .vcrppi-grid-3 {
    margin-top: 0;
}

/* Botones específicos del repetidor. */
.vcrppi-secondary-btn,
.vcrppi-remove-pension {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 11px 17px;
    border: 1px solid #8ea4de;
    border-radius: 7px;
    background: #fff;
    color: #243b7a;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: filter .12s ease, border-color .12s ease, outline-color .12s ease;
}

.vcrppi-remove-pension {
    border-color: #e3aaaa;
    color: #8f2727;
}

.vcrppi-secondary-btn:hover,
.vcrppi-remove-pension:hover {
    filter: brightness(.97);
}

.vcrppi-secondary-btn:focus-visible,
.vcrppi-remove-pension:focus-visible {
    outline: 2px solid rgba(53, 111, 224, .24);
    outline-offset: 2px;
}

.vcrppi-secondary-btn:disabled,
.vcrppi-remove-pension:disabled {
    opacity: .5;
    cursor: not-allowed;
    filter: none;
}

.vcrppi-add-pension-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-width: 0;
    margin-top: 12px;
    padding: 13px 14px;
    border: 1px dashed #b8c5d8;
    border-radius: 8px;
    background: #fff;
}

.vcrppi-add-pension-area p {
    flex: 1 1 auto;
    margin: 0;
}

.vcrppi-add-pension-area .vcrppi-secondary-btn {
    flex: 0 0 auto;
}

.vcrppi-pension-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-width: 0;
    margin-top: 12px;
    padding: 13px 15px;
    border: 1px solid #aac4eb;
    border-radius: 7px;
    background: #eef5ff;
    color: #294d7a;
}

.vcrppi-pension-total span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.vcrppi-pension-total strong {
    flex: 0 0 auto;
    color: #174f9c;
    font-size: 19px;
}

/* Confirmación documental y confirmaciones finales. */
.vcrppi-documentation-field {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--vcrppi-border);
    border-radius: 8px;
    background: #fbfcff;
}

.vcrppi-confirm-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--vcrppi-border);
    border-radius: 8px;
    background: #fff;
    color: var(--vcrppi-text);
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease, outline-color .12s ease;
}

.vcrppi-confirm-box:hover {
    border-color: #aab8cd;
    background: #fbfcff;
}

.vcrppi-confirm-box:focus-within {
    border-color: var(--vcrppi-focus);
    outline: 2px solid rgba(53, 111, 224, .16);
}

.vcrppi-confirm-box input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    padding: 0;
    accent-color: var(--vcrppi-primary);
}

.vcrppi-confirm-box span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.vcrppi-marketing-box {
    background: #fbfcff;
}

/* Flujo de compra. */
.vcrppi-purchase-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.vcrppi-purchase-group {
    display: grid;
    align-content: start;
    gap: 16px;
    width: 100%;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--vcrppi-border);
    border-radius: 8px;
    background: #fbfcff;
}

.vcrppi-indented-field {
    width: 100%;
    min-width: 0;
    margin-top: 0;
    padding: 13px;
    border-left: 3px solid #8eafe1;
    border-radius: 7px;
    background: #f5f8fd;
}

/* Control monetario compuesto. */
.vcrppi-money-input {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 1px solid var(--vcrppi-input-border);
    border-radius: 7px;
    background: #fff;
    overflow: hidden;
    transition: border-color .12s ease, outline-color .12s ease;
}

.vcrppi-money-input:focus-within {
    border-color: var(--vcrppi-focus);
    outline: 2px solid rgba(53, 111, 224, .16);
}

.vcrppi-money-input > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 10px;
    border-right: 1px solid var(--vcrppi-border);
    background: #f1f5f9;
    color: #344054;
    font-weight: 750;
    line-height: 1;
}

.vcrppi-field .vcrppi-money-input > input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    font: inherit;
}

/* Teléfono específico del formulario pensionados. */
.vcrppi-phone-card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 16px;
    align-items: end;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 14px;
    border: 1px solid var(--vcrppi-border);
    border-radius: 8px;
    background: #fbfcff;
}

.vcrppi-phone-country,
.vcrppi-phone-number {
    width: 100%;
    min-width: 0;
}

.vcrppi-phone-country > label,
.vcrppi-phone-number > label {
    display: block;
    margin: 0 0 6px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.vcrppi-phone-country select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 10px 38px 10px 12px;
    border: 1px solid var(--vcrppi-input-border);
    border-radius: 7px;
    background: #fff;
    color: #18212b;
    font: inherit;
}

.vcrppi-phone-country select:focus {
    border-color: var(--vcrppi-focus);
    outline: 2px solid rgba(53, 111, 224, .16);
}

.vcrppi-phone-number-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 1px solid var(--vcrppi-input-border);
    border-radius: 7px;
    background: #fff;
    overflow: hidden;
    transition: border-color .12s ease, outline-color .12s ease;
}

.vcrppi-phone-number-row:focus-within {
    border-color: var(--vcrppi-focus);
    outline: 2px solid rgba(53, 111, 224, .16);
}

.vcrppi-phone-number-row > span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    padding: 0 12px;
    border-right: 1px solid var(--vcrppi-border);
    background: #f1f5f9;
    color: #344054;
    font-weight: 750;
    line-height: 1;
    user-select: none;
}

.vcrppi-phone-number-row > input {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    font: inherit;
}

.vcrppi-phone-help-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    margin-top: 7px !important;
    color: var(--vcrppi-muted);
    font-size: 13px;
    line-height: 1.45;
}

.vcrppi-phone-help-line [data-vcrppi-phone-flag] {
    flex: 0 0 auto;
    min-width: 20px;
}

.vcrppi-phone-help-line [data-vcrppi-phone-help] {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Errores específicos del formulario pensionados. */
.vcrppi-form-errors {
    width: 100%;
    min-width: 0;
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid #e3aaaa;
    border-radius: 7px;
    background: #fff0f0;
    color: #7f2020;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.vcrppi-has-error.vcrppi-pension-card,
.vcrppi-invalid.vcrppi-pension-card,
.vcrppi-has-error.vcrppi-confirm-box,
.vcrppi-invalid.vcrppi-confirm-box,
.vcrppi-has-error .vcrppi-money-input,
.vcrppi-invalid .vcrppi-money-input,
.vcrppi-has-error .vcrppi-phone-number-row,
.vcrppi-invalid .vcrppi-phone-number-row {
    border-color: #d92d20 !important;
    outline: 2px solid rgba(217, 45, 32, .12) !important;
}

.vcrppi-has-error.vcrppi-documentation-field .vcrppi-radio-stack label,
.vcrppi-invalid.vcrppi-documentation-field .vcrppi-radio-stack label {
    border-color: #e3aaaa;
}

/* Los bloqueos pensionados adicionales usan el error canónico. */
.vcrppi-alert-warning[data-vcrppi-foreign-stop] {
    border-color: #e3aaaa;
    background: #fff0f0;
    color: #7f2020;
}

/* Texto accesorio y compatibilidad con clases heredadas. */
.vcrppi-document-help,
.vcrppi-disclaimer {
    color: var(--vcrppi-muted);
    font-size: 13px;
    line-height: 1.45;
}

.vcrppi-document-help {
    margin-top: 14px;
}

.vcrppi-disclaimer {
    margin: 8px 0 0;
}

.vcrppi-age-alert {
    margin-top: 0 !important;
}

.vcrppi-wa-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 110px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid var(--vcrppi-input-border);
    border-radius: 7px;
    background: #fff;
    color: #18212b;
    font: inherit;
    resize: vertical;
}

/* Responsive específico. */
@media (max-width: 780px) {
    .vcrppi-purchase-flow,
    .vcrppi-phone-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .vcrppi-pensions-panel,
    .vcrppi-purchase-group,
    .vcrppi-documentation-field {
        padding: 14px;
    }

    .vcrppi-pensions-head,
    .vcrppi-add-pension-area,
    .vcrppi-pension-total {
        align-items: flex-start;
    }

    .vcrppi-add-pension-area {
        flex-direction: column;
    }

    .vcrppi-add-pension-area .vcrppi-secondary-btn {
        width: 100%;
    }

    .vcrppi-pension-card-head {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .vcrppi-pension-card,
    .vcrppi-pensions-panel,
    .vcrppi-purchase-group,
    .vcrppi-documentation-field,
    .vcrppi-phone-card {
        padding: 12px;
    }

    .vcrppi-pension-total {
        flex-direction: column;
        gap: 5px;
    }

    .vcrppi-pension-total strong {
        flex-basis: auto;
    }

    .vcrppi-secondary-btn,
    .vcrppi-remove-pension {
        min-height: 42px;
    }
}

