/* ═══════════════════════════════════════════════════════════════
   Jeloda — Premium Registration Wizard
   Modern multi-step onboarding with glassmorphism & animations
   ═══════════════════════════════════════════════════════════════ */

/* ─── Google Font ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Custom Properties ────────────────────────────────── */
:root {
    --wizard-bg-1: #0a0a0f;
    --wizard-bg-2: #0d0d18;
    --wizard-bg-3: #0a0a12;
    --accent: #2a1fbc;
    --accent-light: #60a5fa;
    --accent-glow: rgba(42, 31, 188, 0.4);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --warning: #f59e0b;
    --danger: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --card-bg: rgba(24, 24, 30, 0.85);
    --input-bg: rgba(255, 255, 255, 0.06);
    --input-border: rgba(255, 255, 255, 0.14);
    --input-focus: rgba(42, 31, 188, 0.6);
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.wizard-body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--wizard-bg-1);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Jeloda Premium Background (v2 — better contrast) ───────── */
/* Reglas: base casi-negra neutra, halo azul sutil arriba,      */
/* primary #2a1fbc reservado solo para CTAs y acentos.         */
.wizard-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(42, 31, 188, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(14, 165, 233, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, #0a0a0f 0%, #0d0d18 50%, #0a0a12 100%);
    background-attachment: fixed;
}

/* Subtle accent orb - top-left blue glow (NO satura el fondo) */
.wizard-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(42, 31, 188, 0.18) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

/* Subtle accent orb - bottom-right cyan glow */
.wizard-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.10) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

/* Line grid - ultra subtle, solo para textura */
body.wizard-body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 20%, transparent 80%);
}

/* ─── Main Wizard Container ────────────────────────────────── */
.wizard-container {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1.5rem;
}

/* Logo — siempre arriba, full width centrado */
.wizard-logo {
    text-align: center;
    margin: 0;
}

.wizard-logo img {
    max-height: 52px;
    width: auto;
    filter: drop-shadow(0 4px 16px rgba(42, 31, 188, 0.35));
    transition: var(--transition);
}

.wizard-logo img:hover {
    transform: scale(1.04);
}

/* Desktop: 2 columnas (hero izquierda, card derecha) */
@media (min-width: 980px) {
    .wizard-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto 1fr auto;
        gap: 1.5rem 4rem;
        align-items: center;
        padding: 2.5rem;
    }
    .wizard-logo {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    .wizard-hero {
        grid-column: 1;
        grid-row: 2 / span 2;
        align-self: center;
    }
    .wizard-progress {
        grid-column: 2;
        grid-row: 2;
        align-self: end;
        max-width: 480px;
        width: 100%;
        margin: 0;
    }
    .wizard-card {
        grid-column: 2;
        grid-row: 3;
        align-self: start;
    }
    .wizard-footer {
        grid-column: 1 / -1;
        grid-row: 4;
    }
}

/* ─── Hero (left column in desktop) ─────────────────────────── */
.wizard-hero {
    display: block;
    text-align: center;
    padding: 0.5rem 0 1rem;
}

.wizard-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 0.75rem;
}

.wizard-hero p {
    font-size: 1rem;
    line-height: 1.5;
    color: #a1a1aa;
    margin: 0 auto 1.25rem;
    max-width: 520px;
}

.wizard-hero .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.wizard-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #d4d4d8;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.wizard-hero .hero-badge:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(42, 31, 188, 0.4);
}

.wizard-hero .hero-badge i {
    color: #60a5fa;
    font-size: 0.85rem;
}

@media (min-width: 980px) {
    .wizard-hero {
        text-align: left;
        padding: 0;
    }
    .wizard-hero h1 {
        font-size: 3.25rem;
        margin-bottom: 1.25rem;
    }
    .wizard-hero p {
        font-size: 1.1rem;
        margin: 0 0 1.5rem;
    }
    .wizard-hero .hero-badges {
        justify-content: flex-start;
    }
}

/* ─── Progress Bar ─────────────────────────────────────────── */
.wizard-progress {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.progress-track {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 24px;
}

.progress-track::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 24px;
    right: 24px;
    height: 3px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 2px;
    z-index: 0;
}

.progress-fill {
    position: absolute;
    top: 20px;
    left: 24px;
    height: 3px;
    background: linear-gradient(90deg, #2a1fbc 0%, #60a5fa 100%);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 0 12px rgba(42, 31, 188, 0.5);
    max-width: calc(100% - 48px);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: default;
}

.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.step-circle i {
    font-size: 1rem;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

/* Progress step states */
.progress-step.active .step-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(59, 125, 221, 0.2);
    transform: scale(1.1);
}

.progress-step.active .step-label {
    color: var(--accent-light);
    font-weight: 600;
}

.progress-step.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
    box-shadow: 0 0 12px var(--success-glow);
}

.progress-step.completed .step-label {
    color: var(--success);
}

/* ─── Wizard Card (High Contrast Glass) ─────────────────────── */
.wizard-card {
    width: 100%;
    background: linear-gradient(180deg, rgba(24, 24, 30, 0.85) 0%, rgba(18, 18, 24, 0.85) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
        0 0 0 1px rgba(0, 0, 0, 0.40),
        0 30px 80px -20px rgba(0, 0, 0, 0.7),
        0 0 80px -30px rgba(42, 31, 188, 0.25);
}

.wizard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    pointer-events: none;
}

@media (min-width: 768px) {
    .wizard-card {
        padding: 2.5rem;
    }
}

@media (min-width: 980px) {
    .wizard-card {
        padding: 2.5rem 2.25rem;
    }
}

/* ─── Step Panels ──────────────────────────────────────────── */
.wizard-steps {
    position: relative;
    overflow: hidden;
    min-height: 340px;
}

.wizard-step {
    display: none;
    animation-duration: 0.4s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-step.active {
    display: block;
}

.wizard-step.slide-in-right {
    animation-name: slideInRight;
}

.wizard-step.slide-in-left {
    animation-name: slideInLeft;
}

.wizard-step.slide-out-left {
    animation-name: slideOutLeft;
}

.wizard-step.slide-out-right {
    animation-name: slideOutRight;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-40px); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

/* ─── Step Header ──────────────────────────────────────────── */
.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.step-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ─── Form Fields ──────────────────────────────────────────── */
.wizard-form-group {
    margin-bottom: 1.25rem;
}

.wizard-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.wizard-body .wizard-input-wrap {
    position: relative !important;
    display: block !important;
}

body.wizard-body .wizard-input-wrap .field-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    pointer-events: none;
    z-index: 5;
    line-height: 1;
    margin: 0 !important;
    padding: 0 !important;
    width: 1em !important;
    height: 1em !important;
    overflow: visible !important;
}

body.wizard-body .wizard-input {
    width: 100% !important;
    padding: 0.85rem 1rem 0.85rem 2.75rem !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 400;
    transition: all 0.2s ease;
    outline: none !important;
    height: auto !important;
    line-height: 1.5 !important;
    box-shadow: none;
}

body.wizard-body .wizard-input::placeholder {
    color: #71717a !important;
    font-weight: 300;
}

body.wizard-body .wizard-input::placeholder {
    color: var(--text-muted) !important;
    font-weight: 300;
}

body.wizard-body .wizard-input:focus {
    border-color: rgba(42, 31, 188, 0.6) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(42, 31, 188, 0.18) !important;
    background: rgba(59, 125, 221, 0.06) !important;
    box-shadow: 0 0 0 3px rgba(59, 125, 221, 0.15) !important;
}

body.wizard-body .wizard-input:focus ~ .field-icon {
    color: var(--accent-light);
}

body.wizard-body .wizard-input.is-valid {
    border-color: var(--success) !important;
}

body.wizard-body .wizard-input.is-invalid {
    border-color: var(--danger) !important;
}

/* Select styling */
body.wizard-body .wizard-select {
    width: 100% !important;
    padding: 0.85rem 2.5rem 0.85rem 2.75rem !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    height: auto !important;
    line-height: 1.5 !important;
}

body.wizard-body .wizard-select:focus {
    border-color: rgba(42, 31, 188, 0.6) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(42, 31, 188, 0.18) !important;
}

body.wizard-body .wizard-select option {
    background: #18181b;
    color: #ffffff;
}

/* Password toggle */
body.wizard-body .btn-password-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px !important;
    font-size: 0.95rem;
    transition: var(--transition);
    z-index: 5;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1;
}

body.wizard-body .btn-password-toggle:hover {
    color: var(--accent-light);
}

/* Password strength */
.password-strength {
    margin-top: 0.5rem;
    display: flex;
    gap: 4px;
    align-items: center;
}

.strength-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.strength-bar.active.weak { background: var(--danger); }
.strength-bar.active.medium { background: var(--warning); }
.strength-bar.active.strong { background: var(--success); }

.strength-text {
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 0.5rem;
    min-width: 50px;
    text-align: right;
}

.strength-text.weak { color: var(--danger); }
.strength-text.medium { color: var(--warning); }
.strength-text.strong { color: var(--success); }

/* Field validation messages */
.field-feedback {
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: none;
    align-items: center;
    gap: 4px;
}

.field-feedback.show { display: flex; }
.field-feedback.valid { color: var(--success); }
.field-feedback.invalid { color: var(--danger); }

/* Row grid for form */
.wizard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ─── Navigation Buttons ───────────────────────────────────── */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-wizard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-wizard:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-prev {
    background: transparent;
    color: #a1a1aa;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.btn-prev:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
}

.btn-next {
    background: linear-gradient(135deg, #2a1fbc 0%, #4f46e5 100%);
    color: #ffffff;
    flex: 1;
    max-width: 220px;
    box-shadow: 0 4px 16px rgba(42, 31, 188, 0.35);
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(42, 31, 188, 0.50);
}

.btn-next:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit-wizard {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    flex: 1;
    max-width: 260px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-submit-wizard:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.50);
}

/* Loading spinner in button */
.btn-wizard .spinner-icon {
    display: none;
    animation: spin 1s linear infinite;
}

.btn-wizard.loading .btn-text { display: none; }
.btn-wizard.loading .spinner-icon { display: inline-block; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── Step 3: Single Plan Card ─────────────────────────────── */
.single-plan-card {
    background: var(--card-bg);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.single-plan-card .plan-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 125, 221, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.single-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
    background-size: 200% 100%;
    animation: shimmerBar 3s ease-in-out infinite;
}

@keyframes shimmerBar {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.plan-header-row {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, var(--accent), #1e40af);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-price-block {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 0.5rem;
}

.plan-currency {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.plan-amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -2px;
}

.plan-cents {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.plan-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 2px;
}

.plan-tagline {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 0.2px;
}

.plan-features-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1rem;
    text-align: left;
}

.plan-feat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.plan-feat svg,
.plan-feat i {
    color: var(--success) !important;
    font-size: 0.8rem;
    flex-shrink: 0;
    width: 1em !important;
    height: 1em !important;
}

/* Duration selector */
.duration-selector {
    margin-top: 1.25rem;
    text-align: center;
}

.duration-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
}

.duration-options {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 4px;
}

.duration-option {
    flex: 1;
    padding: 0.65rem 0.75rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    font-family: 'Outfit', sans-serif;
}

.duration-option:hover {
    color: var(--text-secondary);
}

.duration-option.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* Cost summary */
.cost-summary {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1rem;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cost-row.total {
    border-top: 1px solid var(--glass-border);
    margin-top: 0.3rem;
    padding-top: 0.65rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cost-value {
    font-weight: 600;
    color: var(--text-primary);
}

.cost-row.total .cost-value {
    color: var(--accent-light);
    font-size: 1.3rem;
}

/* ─── Step 4: Checkout Summary ─────────────────────────────── */
.checkout-summary {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item .label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-item .label i {
    color: var(--accent-light);
    font-size: 0.85rem;
    width: 20px;
}

.checkout-item .value {
    font-weight: 600;
    color: var(--text-primary);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-top: 0.5rem;
    background: rgba(59, 125, 221, 0.08);
    border: 1px solid rgba(59, 125, 221, 0.2);
    border-radius: var(--radius-md);
}

.checkout-total .label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.checkout-total .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-light);
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--success);
}

.security-badge i {
    font-size: 1rem;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.payment-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.85rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    gap: 0.35rem;
}

.payment-method-icon i {
    font-size: 1rem;
}

/* ─── Step 5: Success ──────────────────────────────────────── */
.success-container {
    text-align: center;
    padding: 2rem 0;
}

.success-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 40px var(--success-glow), 0 0 80px rgba(16, 185, 129, 0.15);
}

.checkmark-circle i {
    font-size: 2.5rem;
    color: #fff;
    animation: checkDraw 0.4s ease 0.3s both;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes checkDraw {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.success-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.success-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.success-details {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.success-detail-row:last-child {
    border-bottom: none;
}

.success-detail-row .detail-label {
    color: var(--text-muted);
}

.success-detail-row .detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

.success-redirect {
    margin-top: 1.5rem;
}

.redirect-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.redirect-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.redirect-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 2px;
    width: 0%;
    animation: fillProgress 5s linear forwards;
}

@keyframes fillProgress {
    to { width: 100%; }
}

.btn-go-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--accent), #1e40af);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-go-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
    color: #fff;
    text-decoration: none;
}

/* ─── Footer ───────────────────────────────────────────────── */
.wizard-footer {
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem 0;
}

.wizard-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.wizard-footer a {
    color: var(--accent-light);
    text-decoration: none;
    transition: var(--transition);
}

.wizard-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.login-link a {
    color: var(--accent-light);
    font-weight: 600;
}

/* ─── WhatsApp FAB ─────────────────────────────────────────── */
.fab-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: fabPulse 2s infinite;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    color: #fff;
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ─── Confetti Canvas ──────────────────────────────────────── */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* ─── Utility ──────────────────────────────────────────────── */
.d-none { display: none !important; }
.text-center { text-align: center; }

/* Override OneUI/global form styles bleeding in */
body.wizard-body #main-container {
    padding: 0 !important;
    margin: 0 !important;
}

body.wizard-body #page-footer {
    display: none !important;
}

/* Hide Yros Chat Widget */
#yros-floating-btn,
#yros-chat-window,
#yros-welcome-popup {
    display: none !important;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .wizard-container {
        margin: 1rem auto;
        width: 100%;
        padding: 0 0.75rem;
        min-height: auto;
    }

    .wizard-card {
        padding: 1.75rem 1.25rem;
        border-radius: var(--radius-lg);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .pricing-card {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        text-align: left;
        padding: 1.25rem;
        gap: 0 1rem;
    }

    .pricing-card .pricing-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .pricing-card .pricing-name {
        align-self: end;
    }

    .pricing-card .pricing-price {
        text-align: right;
        align-self: center;
    }

    .pricing-card .pricing-inscription {
        grid-column: 1 / -1;
    }

    .pricing-card .pricing-features {
        grid-column: 1 / -1;
    }

    .pricing-card.selected::after {
        top: 50%;
        transform: translateY(-50%);
    }

    .wizard-row {
        grid-template-columns: 1fr;
    }

    .step-label {
        font-size: 0.6rem;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .wizard-nav {
        flex-direction: column-reverse;
    }

    .btn-next,
    .btn-submit-wizard {
        max-width: 100%;
        width: 100%;
    }

    .btn-prev {
        width: 100%;
        justify-content: center;
    }

    .duration-selector {
        flex-wrap: wrap;
    }

    .duration-option {
        flex: 1 1 45%;
    }
}

@media (max-width: 380px) {
    .wizard-card {
        padding: 1.25rem 1rem;
    }

    .step-header h2 {
        font-size: 1.25rem;
    }

    .pricing-price {
        font-size: 1.5rem;
    }
}

/* ─── Responsive: tablet portrait (768-979) ────────────────── */
@media (min-width: 768px) and (max-width: 979px) {
    .wizard-container {
        max-width: 720px;
        margin: 1.5rem auto;
    }
    .wizard-card {
        padding: 2rem 1.75rem;
    }
}

/* ─── Responsive: desktop pequeño (980-1199) ────────────────── */
@media (min-width: 980px) and (max-width: 1199px) {
    .wizard-container {
        gap: 1.5rem 2rem;
        max-width: 1000px;
    }
    .wizard-hero h1 {
        font-size: 2.4rem;
    }
    .wizard-hero p {
        font-size: 1.05rem;
    }
}

/* ─── Responsive: large desktop (≥1600) ────────────────────── */
@media (min-width: 1600px) {
    .wizard-container {
        max-width: 1320px;
    }
    .wizard-hero h1 {
        font-size: 3.4rem;
    }
}

/* ─── Responsive: small tablets / large phones (480-767) ───── */
@media (min-width: 480px) and (max-width: 767px) {
    .wizard-container {
        max-width: 460px;
    }
    .wizard-card {
        padding: 1.75rem 1.5rem;
    }
    .step-header h2 {
        font-size: 1.4rem;
    }
}

/* ─── Responsive: extra small (≤379) ya cubierto arriba ────── */
/* Reduce intensidad de orbes en pantallas pequeñas para GPU */
@media (max-width: 767px) {
    .wizard-bg::before {
        filter: blur(30px);
        opacity: 0.85;
    }
    .wizard-bg::after {
        background-size: 48px 48px;
    }
    body.wizard-body::before {
        opacity: 0.3;
    }
}

/* ─── Responsive: prefers-reduced-motion ───────────────────── */
@media (prefers-reduced-motion: reduce) {
    .wizard-bg,
    .wizard-bg::before,
    .wizard-bg::after {
        animation: none !important;
    }
}

/* ─── NATIVE PAYMENT UI STYLES ────────────────────────────────── */
.payment-tabs-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
}

.payment-tabs {
    display: flex;
    gap: 0.5rem;
}

.payment-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.payment-tab.active {
    background: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.payment-alert {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.payment-alert.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.nequi-polling {
    background: var(--glass-bg);
    border: 1px dashed var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.payment-polling-ui {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.polling-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--glass-bg-hover);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
