/*(C) HAXTER CORPORATION | ALL RIGHTS RESERVED. */
    :root {
        --hxv3-text: #1f1f1f;
        --hxv3-muted: #5f6368;
        --hxv3-line: #d9dce3;
        --hxv3-blue: #0067b8;
        --hxv3-blue-hover: #005da6;
        --hxv3-card: rgba(255, 255, 255, 0.94);
        --hxv3-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
        --hxv3-radius: 14px;
    }

    html,
    body {
        margin: 0;
        min-height: 100%;
        background: #f6f8fc;
    }

    .hxv3_signup_page {
        min-height: calc(100vh - 74px);
        color: var(--hxv3-text);
        font-family: Arial, Helvetica, sans-serif, "Segoe UI", "Elms Sans", Arial, sans-serif;
        background:
            radial-gradient(circle at 18% 76%, rgba(194, 232, 255, 0.72), transparent 24%),
            radial-gradient(circle at 78% 18%, rgba(239, 232, 255, 0.82), transparent 28%),
            radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.96), transparent 34%),
            linear-gradient(135deg, #eef6fb 0%, #fbf8ff 48%, #f8f9fb 100%);
        position: relative;
        overflow: hidden;
        padding: 82px 24px 72px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hxv3_signup_page::before,
    .hxv3_signup_page::after {
        content: "";
        position: absolute;
        pointer-events: none;
        border: 1px solid rgba(60, 132, 210, 0.14);
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(2px);
    }

    .hxv3_signup_page::before {
        width: 680px;
        height: 360px;
        left: -120px;
        bottom: -90px;
        border-radius: 42px;
        transform: rotate(-22deg);
    }

    .hxv3_signup_page::after {
        width: 760px;
        height: 460px;
        right: -160px;
        top: -120px;
        border-radius: 46px;
        transform: rotate(-8deg);
    }

    .hxv3_signup_shell {
        position: relative;
        z-index: 2;
        width: min(470px, 100%);
    }

    .hxv3_signup_card {
        width: 100%;
        background: var(--hxv3-card);
        border: 1px solid rgba(217, 220, 227, 0.95);
        border-radius: var(--hxv3-radius);
        box-shadow: var(--hxv3-shadow);
        padding: 36px 40px 34px;
        backdrop-filter: blur(22px);
    }

    .hxv3_brand {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 26px;
    }

    .hxv3_brand img {
        width: 320px;
        max-width: 96%;
        height: auto;
        display: block;
    }

    .hxv3_step {
        display: none;
    }

    .hxv3_step.is-active {
        display: block;
    }

    .hxv3_title {
        margin: 0;
        color: #242424;
        font-size: 28px;
        line-height: 1.2;
        font-weight: 600;
        text-align: center;
        letter-spacing: -0.02em;
    }

    .hxv3_subtitle {
        margin: 14px auto 0;
        color: var(--hxv3-muted);
        font-size: 15px;
        line-height: 1.45;
        text-align: center;
    }

    .hxv3_progress {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: 26px 0 30px;
    }

    .hxv3_progress_item {
        width: 58px;
        height: 6px;
        border-radius: 999px;
        background: #e6e8ef;
    }

    .hxv3_progress_item.is-active {
        background: #111111;
    }

    .hxv3_form_group {
        margin-top: 18px;
    }

    .hxv3_label {
        display: block;
        margin: 0 0 8px;
        color: #242424;
        font-size: 13px;
        font-weight: 600;
    }

    .hxv3_input,
    .hxv3_select {
        width: 100%;
        height: 42px;
        border: 1px solid #b9bec8;
        border-radius: 3px;
        background: rgba(255, 255, 255, 0.9);
        color: #242424;
        padding: 0 12px;
        font-family: "Segoe UI", "Elms Sans", Arial, sans-serif;
        font-size: 15px;
        outline: none;
        transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    }

    .hxv3_input::placeholder {
        color: #767b85;
    }

    .hxv3_input:focus,
    .hxv3_select:focus {
        border-color: var(--hxv3-blue);
        box-shadow: 0 0 0 1px var(--hxv3-blue);
        background: #ffffff;
    }

    .hxv3_help {
        margin: 8px 0 0;
        color: var(--hxv3-muted);
        font-size: 12px;
        line-height: 1.35;
    }

    .hxv3_row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .hxv3_password_box {
        display: flex;
        align-items: center;
        border: 1px solid #b9bec8;
        border-radius: 3px;
        background: rgba(255, 255, 255, 0.9);
        overflow: hidden;
    }

    .hxv3_password_box:focus-within {
        border-color: var(--hxv3-blue);
        box-shadow: 0 0 0 1px var(--hxv3-blue);
        background: #ffffff;
    }

    .hxv3_password_box .hxv3_input {
        border: 0;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
    }

    .hxv3_toggle {
        height: 42px;
        border: 0;
        background: transparent;
        color: var(--hxv3-blue);
        padding: 0 12px;
        font-family: "Segoe UI", "Elms Sans", Arial, sans-serif;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
    }

    .hxv3_actions {
        margin-top: 32px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .hxv3_actions_end {
        justify-content: flex-end;
    }

    .hxv3_button {
        min-height: 42px;
        border-radius: 3px;
        border: 0;
        padding: 0 22px;
        font-family: "Segoe UI", "Elms Sans", Arial, sans-serif;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
    }

    .hxv3_button_primary {
        min-width: 100%;
        background: var(--hxv3-blue);
        color: #ffffff;
    }

    .hxv3_button_primary:hover {
        background: var(--hxv3-blue-hover);
    }

    .hxv3_button_secondary {
        background: transparent;
        color: var(--hxv3-blue);
        padding-left: 0;
        padding-right: 0;
    }

    .hxv3_button_secondary:hover {
        text-decoration: underline;
    }

    .hxv3_terms {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        margin-top: 22px;
        color: #343434;
        font-size: 13px;
        line-height: 1.45;
    }

    .hxv3_terms input {
        width: 16px;
        height: 16px;
        margin-top: 2px;
        accent-color: var(--hxv3-blue);
    }

    .hxv3_login {
        margin: 30px 0 0;
        color: #4f4f4f;
        font-size: 14px;
        line-height: 1.45;
        text-align: center;
    }

    .hxv3_signup_page a,
    .hxv3_signup_page a:visited,
    .hxv3_signup_page a:active {
        color: var(--hxv3-blue);
        font-family: "Segoe UI", "Elms Sans", Arial, sans-serif;
        font-size: inherit;
        font-weight: 600;
        line-height: inherit;
        text-decoration: none;
        padding: 0;
        display: inline;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .hxv3_signup_page a:hover,
    .hxv3_signup_page a:focus {
        color: var(--hxv3-blue-hover);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .hxv3_identity_summary {
        margin: 34px auto 0;
        max-width: 620px;
        text-align: center;
        color: #1f1f1f;
    }

    .hxv3_identity_summary h2 {
        margin: 0;
        font-size: 24px;
        line-height: 1.22;
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .hxv3_identity_summary p {
        margin: 10px auto 0;
        max-width: 560px;
        color: var(--hxv3-muted);
        font-size: 14px;
        line-height: 1.48;
    }

    .hxv3_identity_chips {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 18px;
    }

    .hxv3_identity_chips span {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        padding: 0 12px;
        border: 1px solid var(--hxv3-line);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.82);
        color: #1f1f1f;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .hxv3_global_endmark {
        margin: 36px auto 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hxv3_global_endmark img {
        width: min(420px, 72vw);
        height: auto;
        display: block;
        opacity: 0.88;
    }

    .hxv3_footer {
        position: relative;
        z-index: 2;
        margin-top: 28px;
        display: flex;
        justify-content: center;
        gap: 28px;
        flex-wrap: wrap;
        color: #4f4f4f;
        font-size: 12px;
    }

    .hxv3_footer a,
    .hxv3_footer a:visited,
    .hxv3_footer a:active {
        color: #5f6368;
        font-size: 12px;
        font-weight: 400;
        line-height: 1.4;
        text-decoration: none;
    }

    .hxv3_footer a:hover,
    .hxv3_footer a:focus {
        color: #1f1f1f;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    @media (max-width: 640px) {
        .hxv3_signup_page {
            min-height: calc(100vh - 64px);
            padding: 48px 18px 52px;
            align-items: flex-start;
        }

        .hxv3_signup_card {
            padding: 30px 24px 28px;
        }

        .hxv3_row {
            grid-template-columns: 1fr;
            gap: 0;
        }

        .hxv3_title {
            font-size: 25px;
        }

        .hxv3_progress_item {
            flex: 1;
            width: auto;
        }

        .hxv3_identity_summary {
            margin-top: 28px;
        }

        .hxv3_identity_summary h2 {
            font-size: 22px;
        }

        .hxv3_identity_summary p {
            font-size: 13px;
        }

        .hxv3_global_endmark {
            margin-top: 30px;
        }

        .hxv3_global_endmark img {
            width: min(320px, 78vw);
        }

        .hxv3_footer {
            gap: 16px;
        }
    }
    
    @media (max-width: 640px) {
        .hxv3_brand img {
            width: 250px;
            max-width: 92%;
        }
    }
    
    /* HXv3 — definitive fix for Back + Next row */
    .hxv3_actions {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 14px;
    }
    
    /* Cuando hay Back + Next */
    .hxv3_actions:not(.hxv3_actions_end) .hxv3_button_primary {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0 !important;
    }
    
    /* Back */
    .hxv3_actions:not(.hxv3_actions_end) .hxv3_button_secondary {
        flex: 0 0 auto;
        width: auto;
        min-width: 48px;
    }
    
    /* Cuando sólo hay Next, como en Step 1 */
    .hxv3_actions_end .hxv3_button_primary {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto;
    }
    
    /* Seguridad general para botones */
    .hxv3_button {
        box-sizing: border-box;
        max-width: 100%;
    }
    .hxv3_error {
        margin: 18px 0 22px;
        padding: 12px 14px;
        border: 1px solid #f5c2c7;
        border-radius: 3px;
        background: #fff5f5;
        color: #842029;
        font-size: 13px;
        line-height: 1.45;
        text-align: left;
    }
    
    .hxv3_error p {
        margin: 0;
    }
    
    .hxv3_error p + p {
        margin-top: 6px;
    }