:root {
    --aw-bg-page: #f4f7fb;
    --aw-bg-soft: #f8fbfd;
    --aw-surface: #ffffff;
    --aw-surface-soft: #fbfdff;
    --aw-surface-glass: rgba(255, 255, 255, 0.78);
    --aw-surface-glass-strong: rgba(255, 255, 255, 0.88);

    --aw-text: #18212b;
    --aw-text-2: #243240;
    --aw-muted: #64748b;
    --aw-muted-2: #7b8ba1;

    --aw-blue-deep: #0e76bc;
    --aw-blue-strong: #176aa4;
    --aw-blue-struct: #1f5d8f;
    --aw-blue-mid: #1498db;
    --aw-blue-fresh: #1ea7d8;

    --aw-aqua: #17b7c9;
    --aw-aqua-2: #11c3d3;
    --aw-aqua-3: #22c7d6;
    --aw-petroleum: #163a59;

    --aw-success: #11896c;
    --aw-success-soft: #eefcf9;
    --aw-danger: #d92d20;
    --aw-danger-soft: #fff4f2;
    --aw-warning: #f59e0b;

    --aw-line: rgba(23, 93, 143, 0.12);
    --aw-line-strong: rgba(23, 93, 143, 0.2);

    --aw-gradient-primary: linear-gradient(135deg, #0e76bc 0%, #1498db 45%, #11c3d3 100%);
    --aw-gradient-soft: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    --aw-gradient-panel: linear-gradient(180deg, rgba(14, 118, 188, 0.9) 0%, rgba(22, 58, 89, 0.96) 100%);
    --aw-gradient-progress: linear-gradient(90deg, #21b6d7 0%, #11c3d3 55%, #71e8f4 100%);

    --aw-shadow-xs: 0 4px 12px rgba(15, 62, 104, 0.05);
    --aw-shadow-sm: 0 10px 24px rgba(15, 62, 104, 0.08);
    --aw-shadow-md: 0 18px 40px rgba(15, 62, 104, 0.11);
    --aw-shadow-lg: 0 26px 60px rgba(15, 62, 104, 0.14);
    --aw-shadow-focus: 0 0 0 4px rgba(20, 152, 219, 0.16);

    --aw-radius-xs: 10px;
    --aw-radius-sm: 14px;
    --aw-radius-md: 18px;
    --aw-radius-lg: 24px;
    --aw-radius-xl: 30px;
    --aw-radius-pill: 999px;

    --aw-space-1: 4px;
    --aw-space-2: 8px;
    --aw-space-3: 12px;
    --aw-space-4: 16px;
    --aw-space-5: 20px;
    --aw-space-6: 24px;
    --aw-space-7: 32px;
    --aw-space-8: 40px;
    --aw-space-9: 48px;

    --aw-input-h: 56px;
    --aw-btn-h: 56px;
    --aw-container-max: 1500px;
    --aw-form-max: 920px;

    --aw-transition-fast: 160ms ease;
    --aw-transition-base: 240ms cubic-bezier(.2, .8, .2, 1);
    --aw-transition-slow: 360ms cubic-bezier(.2, .8, .2, 1);
}

/* ==========================================================================
02. RESET / BASE
========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--aw-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(33, 182, 215, 0.05), transparent 24%),
        radial-gradient(circle at bottom right, rgba(14, 118, 188, 0.06), transparent 24%),
        var(--aw-bg-page);
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==========================================================================
03. PAGE LAYOUT (CORREGIDO)
========================================================================== */
body {
    margin: 0;
    min-height: 100vh;
    background: var(--aw-bg-page);
    display: flex;
    /* Añadido para asegurar que soporte grid/flex internamente */
    flex-wrap: wrap;
}

/* Si usas un .row o contenedor envolvente, nos aseguramos de que permita 2 columnas */
.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
}

/* Configuración de la columna izquierda (Sidebar) */
.aw-sidebar-shell {
    flex: 0 0 450px !important;
    /* Fuerza el ancho estático */
    max-width: 450px !important;
    width: 100% !important;
    min-height: 100vh;
    position: relative;
    padding: clamp(24px, 3vw, 42px);
    overflow: hidden;
    isolation: isolate;
    background-color: var(--aw-petroleum);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
}

.aw-sidebar-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 22%),
        linear-gradient(180deg, rgba(14, 118, 188, 0.38), rgba(22, 58, 89, 0.7)),
        var(--aw-gradient-panel);
    z-index: 0;
}

.aw-sidebar-shell::after {
    content: "AT WATER";
    position: absolute;
    right: 20px;
    bottom: 10px;
    pointer-events: none;
    user-select: none;
    font-size: clamp(28px, 4.6vw, 72px);
    line-height: 1;
    letter-spacing: 0.22em;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

/* Configuración de la columna derecha (Formulario) */
.aw-register-shell {
    flex: 1 1 0% !important;
    /* Toma el resto del espacio */
    width: calc(100% - 400px) !important;
    /* Calculo de seguridad */
    max-width: 100% !important;
    min-width: 0 !important;
    padding: clamp(24px, 3vw, 42px);
    display: flex;
    flex-direction: column;
    background: transparent;
    z-index: 1;
    min-height: 100vh;
}

.overflow-hidden {
    width: 100%;
}

.aw-sidebar,
.aw-register-shell {
    position: relative;
    z-index: 1;
}

.aw-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--aw-space-7);
    color: #fff;
    height: 100%;
}

/* ==========================================================================
04. SIDEBAR
========================================================================== */
.aw-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.aw-sidebar__logo {
    max-width: 140px;
}

.aw-sidebar__logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(0, 0, 0, .16));
}

.aw-sidebar__content {
    display: grid;
    gap: 22px;
    align-content: start;
}

.aw-sidebar__title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    min-height: 56px;
    margin: 0;
    padding: 0 18px;
    border-radius: var(--aw-radius-pill);
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.aw-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--aw-radius-pill);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    transition:
        transform var(--aw-transition-base),
        background var(--aw-transition-base),
        border-color var(--aw-transition-base);
}

.aw-link-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .28);
}

.aw-progress-card {
    display: grid;
    gap: 12px;
    max-width: 360px;
}

.aw-progress-card .steps_count {
    font-size: .94rem;
    line-height: 1.4;
    font-weight: 700;
    color: rgba(255, 255, 255, .78);
}

.aw-progress-card h3 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -.04em;
    color: #6fe8f2;
}

.step-bar-inner {
    position: relative;
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: var(--aw-radius-pill);
    background: rgba(255, 255, 255, .18);
}

.move-bar {
    width: 75%;
    height: 100%;
    min-width: 10px;
    border-radius: inherit;
    background: var(--aw-gradient-progress);
    box-shadow: 0 0 18px rgba(17, 195, 211, 0.38);
}

.aw-summary-card {
    position: relative;
    width: min(100%, 320px);
    padding: 22px;
    border-radius: var(--aw-radius-md);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .1),
        0 18px 36px rgba(0, 0, 0, .12);
}

.aw-summary-card::after {
    content: "AT WATER";
    position: absolute;
    right: -2px;
    bottom: 6px;
    font-size: clamp(18px, 2.6vw, 38px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .05);
    pointer-events: none;
}

.aw-summary-card__title {
    margin: 0 0 14px;
    font-size: 1.15rem;
    line-height: 1.1;
    font-weight: 850;
    color: #fff;
}

.aw-summary-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.aw-summary-card__list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: .95rem;
}

.aw-summary-card__list li span {
    color: rgba(255, 255, 255, .78);
}

.aw-summary-card__list li strong {
    color: #fff;
    font-weight: 800;
    text-align: right;
}

/* ==========================================================================
05. STEPPER SUPERIOR
========================================================================== */
.aw-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    padding: 14px 18px;
    border-radius: var(--aw-radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(247, 251, 255, .88) 100%);
    border: 1px solid rgba(23, 93, 143, 0.08);
    box-shadow: var(--aw-shadow-sm);
}

.aw-stepper__inner,
.step-counter-inner {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
}

.step-type {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--aw-muted);
    position: relative;
    width: 55%;
}

.step-type.active {
    color: var(--aw-blue-deep);
}

.step-type:not(.no-line)::after {
    content: "";
    width: clamp(40px, 6vw, 78px);
    height: 2px;
    border-radius: var(--aw-radius-pill);
    background: linear-gradient(90deg, rgba(20, 152, 219, .72), rgba(17, 195, 211, .4));
    margin-left: 12px;
}

.step-type-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #f4f9ff 0%, #edf7fc 100%);
    border: 1px solid rgba(20, 152, 219, 0.14);
    color: var(--aw-blue-mid);
    box-shadow: 0 8px 18px rgba(20, 152, 219, 0.08);
}

.step-type.active .step-type-icon {
    background: var(--aw-gradient-primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(20, 152, 219, .24);
}

.step-type span {
    font-size: .98rem;
    font-weight: 850;
    white-space: nowrap;
}

/* ==========================================================================
06. FORM WRAPPER / CARD
========================================================================== */
.aw-form-flow {
    display: block;
}

.aw-breadcrumb-row {
    margin-bottom: 12px;
}

.aw-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.aw-step-section {
    display: block;
}

.aw-form-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--aw-radius-lg);
    border: 1px solid rgba(23, 93, 143, 0.1);
    background: var(--aw-gradient-soft);
    box-shadow: var(--aw-shadow-md);
    padding: clamp(24px, 3vw, 38px);
}

.aw-form-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .8), rgba(20, 152, 219, .2), rgba(255, 255, 255, .8));
}

.aw-form-card::after {
    content: "AT WATER";
    position: absolute;
    right: -4px;
    bottom: 8px;
    pointer-events: none;
    font-size: clamp(18px, 2.4vw, 34px);
    line-height: 1;
    letter-spacing: .16em;
    font-weight: 900;
    color: rgba(14, 118, 188, 0.03);
}

.aw-section-head {
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.aw-section-title {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -.04em;
    color: var(--aw-petroleum);
}

.aw-section-description {
    max-width: 64ch;
    margin: 10px auto 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--aw-muted);
}

/* ==========================================================================
07. BREADCRUMB
========================================================================== */
.aw-breadcrumb {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0 !important;
    list-style: none;
    background: transparent;
    font-size: .86rem;
    color: var(--aw-muted);
}

.aw-breadcrumb a {
    color: var(--aw-blue-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.aw-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.aw-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    display: none;
}

/* ==========================================================================
08. BLOCKS
========================================================================== */
.aw-block {
    display: grid;
    gap: 18px;
}

.aw-block+.aw-block {
    margin-top: 6px;
    padding-top: 24px;
    border-top: 1px solid rgba(23, 93, 143, 0.08);
}

.aw-block__title {
    margin: 0;
    font-size: clamp(1.18rem, 1.6vw, 1.5rem);
    line-height: 1.15;
    font-weight: 850;
    color: var(--aw-blue-deep);
    letter-spacing: -.02em;
}

.aw-block__intro {
    margin: -8px 0 0;
    font-size: .98rem;
    line-height: 1.6;
    color: var(--aw-muted);
}

/* ==========================================================================
09. FORM ROW SYSTEM
========================================================================== */
.form-row-field.aw-field {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 18px 24px;
    align-items: start;
}

.form-label-col,
.form-input-col {
    min-width: 0;
}

.aw-field {
    min-width: 0;
}

.aw-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
    font-size: .95rem;
    line-height: 1.3;
    font-weight: 760;
    color: var(--aw-petroleum);
}

.aw-help {
    margin: 8px 0 0;
    font-size: .9rem;
    line-height: 1.55;
    color: var(--aw-muted);
}

.aw-field-error {
    display: block;
    margin-top: 8px;
    font-size: .9rem;
    line-height: 1.5;
    font-weight: 700;
    color: var(--aw-danger);
}

.aw-field-error[hidden] {
    display: none !important;
}

/* ==========================================================================
10. INPUTS / SELECT / TEXTAREA
========================================================================== */
.aw-input,
.aw-select,
.form-control.aw-select {
    width: 100%;
    min-height: var(--aw-input-h);
    padding: 0 18px;
    border: 1px solid rgba(23, 93, 143, 0.14);
    border-radius: var(--aw-radius-sm);
    background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(249, 252, 255, .98) 100%);
    color: var(--aw-text);
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, .02);
    transition:
        border-color var(--aw-transition-base),
        box-shadow var(--aw-transition-base),
        transform var(--aw-transition-base),
        background var(--aw-transition-base);
}

textarea.aw-input,
textarea.aw-textarea {
    min-height: 120px;
    padding: 16px 18px;
    resize: vertical;
    line-height: 1.55;
}

.aw-input::placeholder,
.aw-select::placeholder,
textarea::placeholder {
    color: #97a6b8;
}

.aw-input:hover,
.aw-select:hover,
.form-control.aw-select:hover {
    border-color: rgba(20, 152, 219, .34);
}

.aw-input:focus,
.aw-select:focus,
.form-control.aw-select:focus {
    outline: none;
    border-color: var(--aw-blue-mid);
    box-shadow: var(--aw-shadow-focus);
    background: #fff;
    transform: translateY(-1px);
}

.aw-select,
.form-control.aw-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 52px;
    background-image:
        linear-gradient(45deg, transparent 50%, #4d6a89 50%),
        linear-gradient(135deg, #4d6a89 50%, transparent 50%);
    background-position:
        calc(100% - 24px) calc(50% - 2px),
        calc(100% - 18px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

/* ==========================================================================
11. COMBOBOX CIUDAD
========================================================================== */
.aw-combobox {
    position: relative;
    min-width: 0;
}

.aw-combobox__control {
    position: relative;
    display: flex;
    align-items: center;
}

.aw-combobox__input {
    padding-right: 56px;
}

.aw-combobox__toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--aw-blue-deep);
    cursor: pointer;
}

.aw-combobox__toggle:hover {
    background: rgba(20, 152, 219, .06);
}

.aw-combobox__toggle:focus-visible {
    outline: none;
    box-shadow: var(--aw-shadow-focus);
}

.aw-combobox__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 20;
    overflow: hidden;
    border: 1px solid rgba(23, 93, 143, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 45px rgba(15, 62, 104, .14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.aw-combobox__list {
    max-height: 280px;
    margin: 0;
    padding: 8px;
    list-style: none;
    overflow: auto;
}

.aw-combobox__list li {
    display: block;
}

.aw-combobox__list button,
.aw-combobox__option {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--aw-text-2);
    text-align: left;
    cursor: pointer;
    padding: 12px 14px;
    transition: background var(--aw-transition-fast), color var(--aw-transition-fast);
}

.aw-combobox__list button:hover,
.aw-combobox__list button[aria-selected="true"],
.aw-combobox__option:hover,
.aw-combobox__option.is-active {
    background: rgba(20, 152, 219, .08);
    color: var(--aw-blue-deep);
}

.aw-combobox__empty {
    padding: 14px 16px;
    font-size: .92rem;
    color: var(--aw-muted);
}

/* ==========================================================================
12. PASSWORD GRID
========================================================================== */
.password-fields-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.password-field-group.aw-field {
    display: grid;
    grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
    gap: 12px 16px;
    align-items: start;
}

/* ==========================================================================
13. LEGACY ROW SUPPORT
========================================================================== */
.row>[class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    min-width: 0;
}

.col-12,
.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-md-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}

/* ==========================================================================
14. VALIDATION STATES
========================================================================== */
[data-field-wrapper].is-invalid .aw-input,
[data-field-wrapper].is-invalid .aw-select,
[data-field-wrapper].is-invalid .form-control.aw-select {
    border-color: rgba(217, 45, 32, .48);
    box-shadow: 0 0 0 4px rgba(217, 45, 32, .08);
}

[data-field-wrapper].is-valid .aw-input,
[data-field-wrapper].is-valid .aw-select,
[data-field-wrapper].is-valid .form-control.aw-select {
    border-color: rgba(17, 195, 211, .34);
}

[data-field-wrapper].is-invalid .aw-label,
[data-field-wrapper].is-invalid .aw-field-error {
    color: var(--aw-danger);
}

/* ==========================================================================
15. CAPTCHA
========================================================================== */
.aw-captcha {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 22px;
    overflow: hidden;
    border-radius: var(--aw-radius-md);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(23, 93, 143, 0.12);
    box-shadow: var(--aw-shadow-xs);
}

.aw-captcha::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 0% 0%, rgba(17, 195, 211, 0.06), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, .28), transparent 42%);
}

.aw-captcha__header,
.aw-captcha__visual,
.aw-captcha__slider-wrap {
    position: relative;
    z-index: 1;
}

.aw-captcha__header-copy {
    display: grid;
    gap: 6px;
}

.aw-captcha__eyebrow {
    font-size: .9rem;
    line-height: 1.2;
    font-weight: 850;
    color: var(--aw-blue-deep);
}

.aw-captcha__helper {
    margin: 0;
    font-size: .95rem;
    line-height: 1.55;
    color: var(--aw-text-2);
}

.aw-captcha__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 18px;
    border-radius: var(--aw-radius-sm);
    border: 1px solid rgba(23, 93, 143, 0.12);
    background:
        radial-gradient(circle at top left, rgba(17, 195, 211, .06), transparent 28%),
        linear-gradient(180deg, #fbfdff 0%, #f3faff 100%);
}

.aw-captcha__cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.aw-captcha__token {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(20, 152, 219, .06);
    box-shadow: inset 0 0 0 1px rgba(20, 152, 219, .06);
    color: var(--aw-blue-mid);
}

.aw-captcha__item {
    font-size: 14px;
}

.aw-captcha__operator {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(20, 152, 219, .08);
    color: var(--aw-blue-deep);
    font-size: 16px;
}

.aw-captcha__slider-wrap {
    display: grid;
    gap: 10px;
}

.aw-captcha__value-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.aw-captcha__value-label {
    font-size: .94rem;
    color: var(--aw-muted);
    font-weight: 700;
}

.aw-captcha__value {
    min-width: 28px;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.02em;
    color: var(--aw-aqua);
}

.aw-slider-input,
.aw-captcha__slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 100%;
    height: 8px;
    border-radius: var(--aw-radius-pill);
    background: linear-gradient(90deg, rgba(20, 152, 219, .22), rgba(17, 195, 211, .18));
    outline: none;
    cursor: pointer;
}

.aw-slider-input::-webkit-slider-runnable-track,
.aw-captcha__slider::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: var(--aw-radius-pill);
    background: linear-gradient(90deg, rgba(20, 152, 219, .22), rgba(17, 195, 211, .18));
}

.aw-slider-input::-moz-range-track,
.aw-captcha__slider::-moz-range-track {
    height: 8px;
    border-radius: var(--aw-radius-pill);
    background: linear-gradient(90deg, rgba(20, 152, 219, .22), rgba(17, 195, 211, .18));
}

.aw-slider-input::-webkit-slider-thumb,
.aw-captcha__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    margin-top: -10px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--aw-gradient-primary);
    box-shadow: 0 8px 18px rgba(20, 152, 219, .28);
}

.aw-slider-input::-moz-range-thumb,
.aw-captcha__slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--aw-blue-mid);
    box-shadow: 0 8px 18px rgba(20, 152, 219, .28);
}

.aw-captcha__range {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: .96rem;
    font-weight: 700;
    color: var(--aw-text-2);
}

.aw-captcha.is-success {
    border-color: rgba(17, 137, 108, .24);
    box-shadow: 0 0 0 4px rgba(17, 137, 108, .06);
}

.aw-captcha.is-error {
    border-color: rgba(217, 45, 32, .24);
    box-shadow: 0 0 0 4px rgba(217, 45, 32, .06);
}

/* ==========================================================================
16. SWITCH / TÉRMINOS
========================================================================== */
.aw-switch-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 20px 22px;
    border-radius: var(--aw-radius-md);
    border: 1px solid rgba(23, 93, 143, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(247, 251, 255, .98) 100%);
    box-shadow: var(--aw-shadow-xs);
    transition:
        transform var(--aw-transition-base),
        box-shadow var(--aw-transition-base),
        border-color var(--aw-transition-base),
        background var(--aw-transition-base);
}

.aw-switch-card:hover {
    transform: translateY(-1px);
    border-color: rgba(20, 152, 219, .24);
}

.switch-affirmative {
    position: relative;
    width: 56px;
    height: 32px;
    flex: 0 0 auto;
}

.switch-affirmative input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.slider-round {
    position: absolute;
    inset: 0;
    border-radius: var(--aw-radius-pill);
    background: #cdd7e3;
    transition: background var(--aw-transition-base), box-shadow var(--aw-transition-base);
}

.slider-round::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px rgba(16, 24, 40, .16);
    transition: transform var(--aw-transition-base);
}

.switch-affirmative input:checked+.slider-round {
    background: var(--aw-gradient-primary);
    box-shadow: 0 8px 16px rgba(20, 152, 219, .22);
}

.switch-affirmative input:checked+.slider-round::before {
    transform: translateX(24px);
}

.switch-affirmative input:focus-visible+.slider-round {
    box-shadow: var(--aw-shadow-focus);
}

.aw-switch-card__copy {
    min-width: 0;
}

.confirm-label-text {
    display: block;
    margin: 0;
    font-size: .98rem;
    line-height: 1.65;
    color: var(--aw-text-2);
    cursor: pointer;
}

/* ==========================================================================
17. ACTIONS / BUTTONS
========================================================================== */
.aw-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 10px;
}

.aw-btn,
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--aw-btn-h);
    padding: 0 28px;
    border-radius: var(--aw-radius-pill);
    border: 0;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
    font-weight: 850;
    cursor: pointer;
    transition:
        transform var(--aw-transition-base),
        box-shadow var(--aw-transition-base),
        opacity var(--aw-transition-base),
        background var(--aw-transition-base),
        border-color var(--aw-transition-base),
        color var(--aw-transition-base);
}

.aw-btn:focus-visible,
.btn:focus-visible {
    outline: none;
    box-shadow: var(--aw-shadow-focus);
}

.aw-btn--primary,
.btn-primary,
#step1btn {
    color: #fff;
    background: var(--aw-gradient-primary);
    box-shadow: 0 14px 28px rgba(17, 195, 211, .24);
}

.aw-btn--primary:hover,
.btn-primary:hover,
#step1btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(17, 195, 211, .3);
}

.aw-btn--secondary,
.btn-secondary,
.btn-outline-info {
    color: var(--aw-blue-deep);
    background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(247, 251, 255, .98) 100%);
    border: 1px solid rgba(23, 93, 143, 0.14);
    box-shadow: var(--aw-shadow-xs);
}

.aw-btn--secondary:hover,
.btn-secondary:hover,
.btn-outline-info:hover {
    transform: translateY(-1px);
    box-shadow: var(--aw-shadow-sm);
}

.btn-success {
    color: #fff;
    background: linear-gradient(135deg, #16b38d 0%, #11c3d3 100%);
    box-shadow: 0 14px 28px rgba(17, 137, 108, .18);
}

.aw-btn[disabled],
.aw-btn:disabled,
.btn[disabled],
.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ==========================================================================
18. SUCCESS SCREEN
========================================================================== */
.aw-success-screen {
    width: min(100%, 800px);
    margin: 0 auto;
}

.aw-success-card {
    border-radius: var(--aw-radius-lg);
    border: 1px solid rgba(23, 93, 143, 0.1);
    background: var(--aw-gradient-soft);
    box-shadow: var(--aw-shadow-md);
    padding: clamp(24px, 3vw, 38px);
}

.aw-success-card hr {
    border: 0;
    height: 1px;
    margin: 28px 0;
    background: linear-gradient(90deg, transparent 0%, rgba(23, 93, 143, .16) 15%, rgba(23, 93, 143, .16) 85%, transparent 100%);
}

.aw-success-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.alert.alert-info {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(20, 152, 219, .08);
    color: var(--aw-petroleum);
    border: 1px solid rgba(20, 152, 219, .1);
}

.bg-light {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
}

.border.rounded.h-100.bg-light {
    border: 1px solid rgba(23, 93, 143, 0.1) !important;
    border-radius: 18px !important;
    box-shadow: var(--aw-shadow-xs);
}

/* ==========================================================================
19. MODAL
========================================================================== */
.modal.fade {
    background: rgba(10, 18, 28, 0.45);
}

.modal-dialog {
    max-width: 520px;
    margin: 10vh auto;
}

.modal-content.aw-modal {
    border: 0;
    border-radius: var(--aw-radius-lg);
    background: var(--aw-gradient-soft);
    box-shadow: var(--aw-shadow-lg);
    overflow: hidden;
}

.modal-header,
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border: 0;
}

.modal-body {
    padding: 0 22px 22px;
}

.modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 850;
    color: var(--aw-petroleum);
}

.close {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--aw-muted);
    cursor: pointer;
}

.close:hover {
    background: rgba(20, 152, 219, .06);
    color: var(--aw-blue-deep);
}

/* ==========================================================================
20. UTILITIES LEGACY
========================================================================== */
.text-primary {
    color: var(--aw-blue-deep) !important;
}

.text-success {
    color: var(--aw-success) !important;
}

.text-secondary {
    color: var(--aw-petroleum) !important;
}

.text-muted {
    color: var(--aw-muted) !important;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-capitalize {
    text-transform: capitalize;
}

.text-center {
    text-align: center;
}

.text-start {
    text-align: left;
}

.d-block {
    display: block !important;
}

.d-grid {
    display: grid !important;
}

.fw-bold {
    font-weight: 800 !important;
}

.fw-light {
    font-weight: 300 !important;
}

.italic {
    font-style: italic;
}

.mt-1 {
    margin-top: .25rem !important;
}

.mt-2 {
    margin-top: .5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.me-2 {
    margin-right: .5rem !important;
}

.me-sm-2 {
    margin-right: .5rem !important;
}

.lead {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--aw-muted);
}

.small {
    font-size: .875rem;
}

.shadow,
.shadow-sm {
    box-shadow: var(--aw-shadow-sm) !important;
}

/* ==========================================================================
21. RESPONSIVE (CORREGIDO)
========================================================================== */
@media (max-width: 1180px) {
    .aw-sidebar-shell {
        flex: 0 0 36% !important;
        max-width: 36% !important;
        width: 36% !important;
    }

    .aw-register-shell {
        flex: 1 1 0% !important;
        width: 64% !important;
        max-width: 64% !important;
    }

    .aw-form-card {
        padding: 30px;
    }
}

@media (max-width: 1024px) {
    .aw-sidebar-shell {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: auto;
        padding: 28px 24px;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
        box-shadow: 0 16px 34px rgba(15, 62, 104, 0.16);
    }

    .aw-register-shell {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 24px;
        min-height: auto;
    }

    .aw-sidebar {
        min-height: auto;
        gap: 24px;
    }

    .aw-summary-card {
        width: min(100%, 380px);
    }

    .password-fields-container {
        grid-template-columns: 1fr;
    }

    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .aw-sidebar-shell {
        padding: 22px 18px 18px;
    }

    .aw-sidebar-shell::after {
        right: 10px;
        bottom: 8px;
        font-size: clamp(18px, 6vw, 34px);
        letter-spacing: .16em;
    }

    .aw-register-shell {
        padding: 16px;
    }

    .aw-sidebar__title,
    .aw-link-btn {
        width: 100%;
        justify-content: center;
    }

    .aw-progress-card,
    .aw-summary-card {
        max-width: 100%;
        width: 100%;
    }

    .aw-summary-card__list li strong {
        max-width: 48%;
        word-break: break-word;
    }

    .aw-stepper {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 12px 14px;
    }

    .aw-stepper::-webkit-scrollbar {
        display: none;
    }

    .step-type {
        flex: 0 0 auto;
    }

    .step-type-icon {
        width: 46px;
        height: 46px;
    }

    .step-type:not(.no-line)::after {
        width: 42px;
    }

    .step-type span {
        font-size: .92rem;
    }

    .aw-breadcrumb {
        justify-content: flex-start;
        font-size: .82rem;
    }

    .aw-form-card {
        border-radius: 20px;
        padding: 20px 16px;
    }

    .aw-section-title {
        font-size: 1.8rem;
    }

    .aw-section-description {
        font-size: .98rem;
    }

    .form-row-field.aw-field,
    .password-field-group.aw-field,
    .aw-switch-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .aw-input,
    .aw-select,
    .form-control.aw-select {
        min-height: 52px;
        padding-inline: 16px;
        font-size: 16px;
    }

    .aw-help,
    .aw-field-error {
        font-size: .88rem;
    }

    .aw-captcha {
        padding: 18px;
    }

    .aw-captcha__visual {
        padding: 16px;
        flex-direction: column;
    }

    .aw-actions,
    .aw-success-links {
        flex-direction: column;
        align-items: stretch;
    }

    .aw-btn,
    .btn,
    #step1btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .aw-sidebar__title {
        font-size: 1.05rem;
    }

    .aw-progress-card h3 {
        font-size: 2rem;
    }

    .step-type-icon {
        width: 42px;
        height: 42px;
    }

    .aw-section-title {
        font-size: 1.58rem;
    }

    .aw-block__title {
        font-size: 1.12rem;
    }

    .aw-captcha,
    .aw-summary-card,
    .aw-switch-card {
        border-radius: 16px;
    }

    .aw-btn,
    .btn {
        min-height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}