/* VARIABLES */
body[data-theme="prestamos"] {
    --primary:       #0070D9;
    --primary-dark:  #005BEA;
    --gradient:      linear-gradient(145deg, #005BEA 0%, #00C6FB 100%);
    --primary-light: rgba(0, 112, 217, 0.08);
}

body[data-theme="ventas"] {
    --primary:       #02aa56;
    --primary-dark:  #028a44;
    --gradient:      linear-gradient(145deg, #02aa56 0%, #39d688 100%);
    --primary-light: rgba(2, 170, 86, 0.08);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

button{
    outline: none !important;
}

.registro-container {
    display: grid;
    grid-template-columns: minmax(480px, 45%) 1fr;
    min-height: 100vh;
}

.registro-container .left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 36px 20px;
    background: #fff;
}

/* Inner content container — constrains form width */
.left-section .form-inner {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.left-section .logo-container {
    margin-bottom: 18px;
    flex-shrink: 0;
    animation: fadeSlideDown .5s ease-out both;
}

.left-section .logo-container .logo-color {
    height: 28px;
    width: auto;
}

.left-section .logo-container .logo-white {
    display: none;
    height: 28px;
    width: auto;
}

.left-section .form-header {
    margin-bottom: 14px;
    flex-shrink: 0;
    animation: fadeSlideDown .5s ease-out .1s both;
}

.left-section .form-header .title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    font-family: "Lato", sans-serif;
    line-height: 1.2;
}

.badge-free {
    display: inline-block;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.8px;
    vertical-align: middle;
    margin-left: 6px;
    animation: badgePulse 2s ease-in-out infinite;
    position: relative;
    top: -2px;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(16,185,129,0.3); }
    50% { box-shadow: 0 4px 16px rgba(16,185,129,0.5); }
}

/* Security indicator */
.security-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 11.5px;
    color: #9ca3af;
}

.security-indicator i {
    font-size: 12px;
    color: #10B981;
}

.left-section .form-header .subtitle {
    font-size: 12.5px;
    color: #6b7280;
    margin: 0;
}

/* Mobile-only elements hidden on desktop */
.mobile-trust { display: none; }
.mobile-hero-wrapper { display: contents; }
.mobile-clouds { display: none; }

/* FORM */
#register-form {
    width: 100%;
    flex: 1;
}

/* INPUT ITEMS */
.input-item {
    margin-bottom: 10px;
    position: relative;
    animation: fadeSlideDown .4s ease-out both;
}

.two-col-inputs,
.checkbox-item,
.coupon-row {
    animation: fadeSlideDown .4s ease-out both;
}

.mobile-step > :nth-child(1) { animation-delay: .15s; }
.mobile-step > :nth-child(2) { animation-delay: .25s; }
.mobile-step > :nth-child(3) { animation-delay: .35s; }
.mobile-step > :nth-child(4) { animation-delay: .45s; }
.mobile-step > :nth-child(5) { animation-delay: .55s; }
.mobile-step > :nth-child(6) { animation-delay: .65s; }
.mobile-step > :nth-child(7) { animation-delay: .75s; }
.mobile-step > :nth-child(8) { animation-delay: .85s; }
.mobile-step > :nth-child(9) { animation-delay: .95s; }

.input-item label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.input-item .inp-container {
    position: relative;
}

.input-item .inp-container input,
.input-item .inp-container select {
    width: 100%;
    height: 40px;
    border: 1.5px solid #e5e7eb;
    border-radius: 7px;
    padding-left: 38px;
    padding-right: 12px;
    font-size: 13.5px;
    color: #1a1a2e;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    appearance: auto;
}

.input-item .inp-container input:focus,
.input-item .inp-container select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    transform: translateY(-1px);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

/* Bolder whatsapp icon */
.input-item .inp-container i.fa-whatsapp {
    -webkit-text-stroke: 1px #b0b8c4;
    paint-order: stroke fill;
}

/* FA icon inside input */
.input-item .inp-container i.icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #b0b8c4;
    z-index: 2;
    pointer-events: none;
    width: 16px;
    text-align: center;
    line-height: 1;
}

/* Country flag image (special case) */
.input-item .inp-container .icon-country {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: auto;
    border-radius: 2px;
    z-index: 2;
    pointer-events: none;
}

/* Eye toggle for passwords */
.input-item .inp-container .eye-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    color: #b0b8c4;
    background: none;
    border: none;
    padding: 0;
    z-index: 2;
    line-height: 1;
    transition: color .2s;
}

.input-item .inp-container .eye-toggle:hover { color: #6b7280; }

/* Two-column grid for password fields */
.two-col-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkbox-item {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
}

.checkbox-item label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.4;
    margin: 0;
    width: 100%;
}

.checkbox-item label a {
    color: var(--primary);
    text-decoration: none;
}
.checkbox-item label a:hover { text-decoration: underline; }

/* Hide native checkbox completely */
.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom visual box */
.custom-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 6px;
    border: 2px solid #d1d5db;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: background .18s, border-color .18s, box-shadow .18s;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.custom-check i {
    font-size: 11px;
    color: #fff;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity .15s, transform .15s;
}

.checkbox-item input[type="checkbox"]:checked + .custom-check {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,112,217,0.25);
}

.checkbox-item input[type="checkbox"]:checked + .custom-check i {
    opacity: 1;
    transform: scale(1);
}

.checkbox-item label:hover .custom-check {
    border-color: var(--primary);
}

.checkbox-item input[type="checkbox"]:focus + .custom-check {
    box-shadow: 0 0 0 3px var(--primary-light);
}

.coupon-row {
    margin-bottom: 6px;
}

.coupon-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 8px;
    font-size: 12.5px;
    color: #4b5563;
}

/* Hide native coupon checkbox */
.coupon-check-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.coupon-check-label .custom-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 6px;
    border: 2px solid #d1d5db;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .18s, border-color .18s;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.coupon-check-label .custom-check i {
    font-size: 11px;
    color: #fff;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity .15s, transform .15s;
}

.coupon-check-label input[type="checkbox"]:checked + .custom-check {
    background: var(--primary);
    border-color: var(--primary);
}

.coupon-check-label input[type="checkbox"]:checked + .custom-check i {
    opacity: 1;
    transform: scale(1);
}

.coupon-check-label:hover .custom-check { border-color: var(--primary); }

.coupon-expand {
    display: none;
    gap: 8px;
    align-items: center;
}

.coupon-expand.active { display: flex; }

.coupon-expand input {
    flex: 1;
    height: 40px;
    font-size: 15px;
    text-transform: uppercase;
    border: 1.5px solid #e5e7eb;
    border-radius: 7px;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    transition: border-color .2s;
}

.coupon-expand input:focus { border-color: var(--primary); }

.btn-aplicar {
    height: 40px;
    padding: 0 16px;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.btn-aplicar:hover {
    background: var(--primary);
    color: #fff;
}

.btn-registro {
    width: 100%;
    height: 44px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .2s, transform .15s, box-shadow .2s;
    margin-top: 6px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-registro::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
    0%   { left: -100%; }
    50%  { left: 150%; }
    100% { left: 150%; }
}

.btn-registro:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-registro:active { transform: scale(0.98); box-shadow: none; }

.btn-registro.deshabilitado,
.btn-registro:disabled {
    opacity: 0.7;
    cursor: pointer;
    pointer-events: auto;
}

.link-login {
    margin-top: 10px;
    text-align: center;
    font-size: 12.5px;
    color: #6b7280;
    flex-shrink: 0;
}

.link-login a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.link-login a:hover { text-decoration: underline; }

.help-link {
    margin-top: 8px;
    text-align: center;
    flex-shrink: 0;
    padding-bottom: 12px;
}

.help-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all .25s;
    background: linear-gradient(145deg, #25D366 0%, #128C7E 100%);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.help-link a:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    filter: brightness(1.08);
}

.help-link a i { font-size: 18px; }


/* Keyframes for animated orbs */
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(22px, -28px) scale(1.06); }
    66%       { transform: translate(-16px, 14px) scale(0.94); }
}

@keyframes float-orb-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%       { transform: translate(-18px, 20px) scale(1.04); }
    80%       { transform: translate(14px, -12px) scale(0.97); }
}

.registro-container .right-section {
    background: var(--gradient);
    position: sticky;
    top: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 58px 48px 72px;
    height: 100vh;
    align-self: start;
}


/* Animated background orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.09);
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}

.bg-orb-1 {
    width: 230px; height: 230px;
    top: -70px; right: -70px;
    animation: float-orb 11s ease-in-out infinite;
}

.bg-orb-2 {
    width: 170px; height: 170px;
    bottom: 70px; left: -55px;
    animation: float-orb-b 13s ease-in-out infinite;
    animation-delay: 2s;
}

.bg-orb-3 {
    width: 90px; height: 90px;
    bottom: 220px; right: 40px;
    animation: float-orb 9s ease-in-out infinite;
    animation-delay: 1s;
    background: rgba(255,255,255,0.07);
}

.bg-orb-4 {
    width: 50px; height: 50px;
    top: 40%; left: 15%;
    animation: float-orb-b 7s ease-in-out infinite;
    animation-delay: 3.5s;
    background: rgba(255,255,255,0.06);
}

.right-section .wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.right-section .wave-container .wave {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transform: rotate(180deg);
    opacity: 0.08;
}

/* ── Clouds Animation ── */
.clouds-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.cloud {
    position: absolute;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.cloud svg {
    width: 100%;
    height: 100%;
}

.cloud-1 {
    width: 350px;
    top: 5%;
    animation: cloudDrift 30s linear infinite;
}

.cloud-2 {
    width: 280px;
    top: 30%;
    animation: cloudDrift 42s linear infinite;
    animation-delay: -12s;
}

.cloud-3 {
    width: 320px;
    top: 55%;
    animation: cloudDrift 36s linear infinite;
    animation-delay: -22s;
}

.cloud-4 {
    width: 240px;
    top: 78%;
    animation: cloudDrift 48s linear infinite;
    animation-delay: -6s;
}

@keyframes cloudDrift {
    from { left: -350px; }
    to   { left: 100%; }
}

/* ── Right Hero Layout ── */
.right-hero {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    gap: 0;
}

.right-section .right-logo {
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.right-section .right-logo img {
    height: 42px;
    width: auto;
}

/* ── Hero Headline ── */
.right-headline {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 16px 0;
    font-family: "Lato", "Inter", sans-serif;
    line-height: 1.15;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
    max-width: 460px;
    animation: heroFadeIn .7s ease-out .2s both;
}

.right-headline .highlight {
    background: rgba(255,255,255,0.2);
    padding: 2px 12px;
    border-radius: 8px;
    display: inline-block;
    animation: highlightPop .6s ease-out .8s both;
}

@keyframes highlightPop {
    0%   { opacity: 0; transform: scale(0.5); }
    60%  { transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1); }
}

.right-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 28px 0;
    line-height: 1.6;
    max-width: 400px;
    position: relative;
    z-index: 2;
    animation: heroFadeIn .7s ease-out .35s both;
}

/* ── Trust Badge ── */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.15);
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
    animation: heroFadeIn .7s ease-out .5s both;
}

.trust-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 8px rgba(74,222,128,0.6);
    animation: trustPulse 2s ease-in-out infinite;
}

@keyframes trustPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(74,222,128,0.6); }
    50% { box-shadow: 0 0 16px rgba(74,222,128,0.9); }
}

/* ── Feature Pills ── */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    max-width: 460px;
    position: relative;
    z-index: 2;
    animation: heroFadeIn .7s ease-out .65s both;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.12);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: all .25s ease;
    white-space: nowrap;
}

.pill:hover {
    background: rgba(0,0,0,0.22);
    transform: translateY(-2px);
}

.pill i {
    font-size: 13px;
    opacity: 0.85;
}

/* ── Video CTA Button ── */
.video-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px 12px 14px;
    background: rgba(0,0,0,0.15);
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .3s ease;
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
    animation: heroFadeIn .7s ease-out .8s both;
}

.video-cta-btn:hover {
    background: rgba(0,0,0,0.25);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.play-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.play-circle i {
    color: var(--primary);
    font-size: 13px;
    margin-left: 2px;
}

/* ── Stats Row ── */
.stats-row {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
    animation: heroFadeIn .7s ease-out .95s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item strong {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: block;
}

.stat-item strong span {
    font-size: inherit;
    font-weight: inherit;
}

.stat-item span {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.2);
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Left section animations ── */
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Country Flags Row ── */
.country-flags-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    animation: heroFadeIn .7s ease-out 1.1s both;
}

.country-flags-row img {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.3);
    transition: transform .2s;
}

.country-flags-row img:hover {
    transform: scale(1.2);
}

.flags-more {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.12);
    padding: 3px 8px;
    border-radius: 10px;
}

/* ── Testimonials Carousel ── */
.testimonials-carousel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    height: 130px;
    animation: heroFadeIn .7s ease-out 1.25s both;
}

.testimonials-track {
    display: flex;
    flex-direction: column;
    animation: testimonialScroll 18s linear infinite;
}

.testimonials-carousel:hover .testimonials-track {
    animation-play-state: paused;
}

@keyframes testimonialScroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.tcard {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: left;
    margin-bottom: 10px;
    border-left: 3px solid rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.tcard-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tcard-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.tcard-info {
    flex: 1;
    min-width: 0;
}

.tcard-info strong {
    display: inline;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-right: 6px;
}

.tcard-stars {
    display: inline;
}

.tcard-stars i {
    color: #FBBF24;
    font-size: 10px;
    margin-right: 1px;
}

.tcard-info span {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    margin-top: 1px;
}

.tcard p {
    font-size: 12.5px;
    color: rgba(255,255,255,0.88);
    line-height: 1.45;
    margin: 0;
}

/* Copyright fixed at bottom */
.right-footer {
    position: absolute;
    bottom: 20px;
    left: 48px;
    right: 48px;
    font-size: 12px;
    color: rgba(255,255,255,0.50);
    z-index: 2;
    text-align: center;
}

.step-mini-cards {
    display: none;
    gap: 10px;
    margin: 18px 0 4px;
}

.mini-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
}

.mini-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-card-icon i {
    font-size: 16px;
    color: #fff;
}

.mini-card-text {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
}

.mobile-step-header {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.step-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.step-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: background .3s;
}

.step-dots span.active { background: var(--primary); }

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 14px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    transition: width .35s ease;
    border-radius: 2px;
}

.step-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin: 0;
}


.step-nav {
    display: none;
    gap: 10px;
    margin-top: 14px;
}

.btn-next-step {
    flex: 1;
    height: 48px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .2s, transform .15s, box-shadow .2s;
}

.btn-next-step:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-next-step:active { transform: scale(0.98); box-shadow: none; }

.btn-prev-step {
    height: 48px;
    padding: 0 20px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-prev-step:hover { background: #e5e7eb; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.btn-prev-step:active { transform: scale(0.98); box-shadow: none; }

/* Submit step nav — always visible; back button hidden on desktop */
.step-nav-submit {
    display: flex !important;
    margin-top: 4px;
}

.step-nav-submit .btn-prev-step {
    display: none;
}

.step-nav-submit .btn-registro {
    flex: 1;
    margin-top: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-info {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 0 20px;
    margin-top: 4px;
    border-top: 1px solid #f3f4f6;
}

.step-info a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.step-info a.help-wa {
    font-weight: 600;
    color: var(--primary);
}

.step-info a:hover { opacity: 0.8; }
.step-info a i { font-size: 15px; }

.mobile-footer { display: none !important; }

.label-error {
    color: #ef4444;
    font-size: 11px;
    margin-top: 3px;
    display: none;
}

.label-error.show { display: block; }
label.error { display: none !important; }

/* Required field asterisk */
.req { color: #ef4444; }

.hide { display: none; }
.hide-container { display: none !important; }
.app-container { position: relative; }
.form-body { height: 100%; }
.login-response { display: none !important; }

@media (max-width: 1100px) {
    .registro-container .left-section  { padding: 36px 32px; }
    .registro-container .right-section { padding: 50px 32px 72px; }
    .right-footer { left: 32px; right: 32px; }
    .right-headline { font-size: 30px; }
    .right-subtitle { font-size: 15px; }
    .stats-row { gap: 16px; }
    .stat-item strong { font-size: 24px; }
}

@media (max-width: 820px) {

    .registro-container {
        grid-template-columns: 1fr;
        height: auto;
        overflow: auto;
    }

    .registro-container .right-section { display: none !important; }

    .registro-container .left-section {
        height: auto;
        min-height: 100vh;
        padding: 0;
        overflow: visible;
        align-items: stretch;
        background: #fff;
    }

    .left-section .form-inner {
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }

    /* ── Mobile hero wrapper (single gradient) ── */
    .mobile-hero-wrapper {
        display: block;
        background: linear-gradient(145deg, #005BEA 0%, #00C6FB 100%);
        padding: 28px 24px 32px;
        text-align: center;
        width: 100%;
        position: relative;
        overflow: hidden;
    }

    .mobile-clouds {
        display: block;
    }

    body[data-theme="ventas"] .mobile-hero-wrapper {
        background: linear-gradient(145deg, #02aa56 0%, #39d688 100%);
    }

    .left-section .logo-container {
        margin-bottom: 16px;
        animation: none;
    }

    .left-section .logo-container .logo-color {
        display: none;
    }

    .left-section .logo-container .logo-white {
        display: block;
        height: 26px;
        margin: 0 auto;
    }

    .left-section .form-header {
        margin-bottom: 16px;
        animation: none;
    }

    .left-section .form-header .title {
        color: #fff;
        font-size: 22px;
    }

    .left-section .form-header .subtitle {
        color: rgba(255,255,255,0.8);
        font-size: 13px;
    }

    /* ── Mobile trust + stats ── */
    .mobile-trust {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
    }

    .trust-badge-mobile {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(0,0,0,0.15);
        border-radius: 50px;
        padding: 8px 20px;
        font-size: 12px;
        font-weight: 600;
        color: #fff;
    }

    .mobile-stats {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 12px;
        color: rgba(255,255,255,0.8);
    }

    .mobile-stats strong {
        color: #fff;
        font-weight: 800;
    }

    .mobile-stat-dot {
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: rgba(255,255,255,0.4);
    }

    /* ── Mobile step header ── */
    .mobile-step-header {
        display: flex;
        margin-bottom: 0;
    }

    .mobile-step-header .step-title {
        display: none;
    }

    .mobile-step-header .step-dots span {
        background: rgba(255,255,255,0.3);
    }

    .mobile-step-header .step-dots span.active {
        background: #fff;
    }

    .mobile-step-header .progress-bar {
        background: rgba(255,255,255,0.2);
        margin-bottom: 0;
    }

    .mobile-step-header .progress-bar-fill {
        background: #fff;
    }

    /* ── Form area with white card ── */
    #register-form {
        background: #fff;
        border-radius: 24px 24px 0 0;
        margin-top: -16px;
        padding: 28px 22px 0;
        position: relative;
        z-index: 2;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    }

    /* Hide all steps, show only active */
    .mobile-step { display: none; }
    .mobile-step.active { display: block; }

    /* Show step nav buttons */
    .step-nav { display: flex; }

    /* Show step info below nav */
    .step-info { display: flex; }

    /* Show mini feature cards */
    .step-mini-cards { display: flex; }

    /* Show back button in submit row on mobile */
    .step-nav-submit .btn-prev-step { display: flex; }

    /* Hide desktop-only elements */
    .desktop-only { display: none !important; }

    /* ── Mini cards improved ── */
    .mini-card {
        background: #fff;
        border: 1.5px solid #e5e7eb;
        border-radius: 14px;
        padding: 16px 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    .mini-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: var(--primary-light);
    }

    .mini-card-icon i {
        color: var(--primary);
    }

    /* ── Buttons mobile ── */
    .btn-next-step,
    .btn-registro {
        height: 50px;
        border-radius: 12px;
        font-size: 16px;
    }

    .btn-prev-step {
        height: 50px;
        border-radius: 12px;
        border: 2px solid #d1d5db;
        background: #fff;
        font-weight: 700;
    }

    /* Security indicator */
    .security-indicator {
        margin-top: 12px;
        margin-bottom: 4px;
    }

    /* ── Step info links ── */
    .step-info {
        padding: 18px 0 24px;
    }

    .step-info a.help-wa {
        background: linear-gradient(145deg, #25D366 0%, #128C7E 100%);
        color: #fff;
        padding: 10px 24px;
        border-radius: 50px;
        font-weight: 600;
    }

    /* Passwords: single column on mobile */
    .two-col-inputs { grid-template-columns: 1fr; }

    /* Input items */
    .input-item { animation: none; }

    .input-item .inp-container input,
    .input-item .inp-container select {
        font-size: 16px;
        height: 48px;
        border-radius: 10px;
        border: 2px solid #d1d5db;
        background: #f9fafb;
    }

    .input-item .inp-container input:focus,
    .input-item .inp-container select:focus {
        border-color: var(--primary);
        background: #fff;
    }

    .input-item label {
        font-size: 11px;
    }
}

/* Confirm modal */
.swal-confirm-popup { border-radius: 20px !important; padding: 32px 28px 28px !important; max-width: 480px !important; }
.swal-confirm-body  { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.swal-confirm-icon-wrap { width: 72px; height: 72px; background: #EEF2FF; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.swal-confirm-icon-wrap i { font-size: 32px; color: var(--primary, #0070D9); }
.swal-confirm-title { font-size: 22px; font-weight: 800; color: #111; margin: 0; text-align: center; }
.swal-confirm-subtitle { font-size: 14px; color: #6b7280; margin: 0; text-align: center; }
.swal-confirm-contact { display: flex; align-items: center; gap: 10px; background: #EEF2FF; border-radius: 50px; padding: 12px 24px; font-size: 18px; font-weight: 600; color: #111; }
.swal-confirm-contact i { font-size: 20px; color: var(--primary, #0070D9); }
.swal-confirm-info { display: flex; gap: 10px; background: #f3f4f6; border-radius: 12px; padding: 14px 16px; text-align: left; width: 100%; box-sizing: border-box; }
.swal-confirm-info > i { font-size: 20px; color: #25D366; flex-shrink: 0; margin-top: 2px; }
.swal-confirm-info p { font-size: 13px; color: #374151; margin: 0 0 4px; line-height: 1.5; }
.swal-confirm-info p:last-child { margin: 0; }
.swal-confirm-actions { gap: 12px !important; margin-top: 8px !important; width: 100%; justify-content: center; padding: 0 !important; }
.swal-confirm-btn { background: var(--gradient); color: #fff; border: none; border-radius: 10px; padding: 13px 28px; font-size: 15px; font-weight: 600; cursor: pointer; flex: 1; min-width: 0; transition: filter .2s, transform .15s, box-shadow .2s; }
.swal-confirm-btn:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.swal-confirm-btn:active { transform: scale(0.98); box-shadow: none; }
.swal-cancel-btn  { background: transparent; color: #111; border: 2px solid #d1d5db; border-radius: 10px; padding: 11px 28px; font-size: 15px; font-weight: 600; cursor: pointer; flex: 1; min-width: 0; transition: background .2s, border-color .2s, transform .15s, box-shadow .2s; }
.swal-cancel-btn:hover { background: #f3f4f6; border-color: #9ca3af; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.swal-cancel-btn:active { transform: scale(0.98); box-shadow: none; }
