:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --background: #ffffff;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), 
                url('../assets/gymfondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Desktop only: fixed height layout */
@media (min-width: 769px) {
    body {
        height: 100vh;
        overflow: hidden;
    }
}

/* Wizard Container - Centered */
.wizard-container {
    width: 100%;
    max-width: 700px;
    min-height: auto;
    margin: 2rem auto;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

/* Desktop */
@media (min-width: 769px) {
    .wizard-container {
        max-height: 90vh;
        overflow: hidden;
    }
}

/* Mobile: Full width */
@media (max-width: 768px) {
    .wizard-container {
        max-width: 95%;
        margin: 1rem auto;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .wizard-container {
        max-width: 100%;
        margin: 0.5rem;
        border-radius: 10px;
    }
}

/* Wizard Logo */
.wizard-logo {
    padding: 1rem 0;
    text-align: center;
    background: var(--surface);
    flex-shrink: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease;
}

.wizard-logo.hidden {
    display: none;
}

.wizard-logo img {
    width: 140px;
    height: auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .wizard-logo {
        padding: 1rem 0;
    }
    
    .wizard-logo img {
        width: 90px;
    }
}

/* Progress Bar */
.progress-container {
    background: var(--surface);
    padding: 1.25rem 1.5rem;
    flex-shrink: 0; /* Don't shrink */
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .progress-container {
        padding: 1rem;
        max-width: 100%;
    }
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    width: 20%;
    transition: width 0.4s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: var(--transition);
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.8;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    text-align: center;
    color: var(--text-secondary);
}

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

/* Wizard Content */
.wizard-content {
    padding: 2rem 1.5rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Desktop: Centered layout */
@media (min-width: 769px) {
    .wizard-content {
        padding: 2.5rem 2rem;
    }
}

/* Mobile: Natural flow */
@media (max-width: 768px) {
    .wizard-content {
        padding: 1.5rem 1rem;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
}

/* Custom Scrollbar for Wizard Content */
.wizard-content::-webkit-scrollbar {
    width: 8px;
}

.wizard-content::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 4px;
}

.wizard-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.wizard-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
    width: 100%;
    max-width: 900px;
}

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

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

.step-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

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

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

.step-body {
    max-width: 750px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .step-body {
        padding: 0 0.5rem;
        max-width: 100%;
    }
}

/* Country Selection */
.country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .country-grid {
        gap: 1rem;
    }
}

.country-card {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation; /* Improve touch responsiveness */
    min-height: 44px; /* Minimum touch target size */
}

.country-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.country-card.selected {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.country-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.65rem;
}

.country-card .country-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.country-card h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Forms */
.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Form Sections */
.form-section {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.25rem;
}

.form-section-title i {
    color: var(--primary-color);
    font-size: 1rem;
}

@media (max-width: 480px) {
    .form-section {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .form-section-title {
        font-size: 0.85rem;
        padding-bottom: 0.6rem;
    }
}

/* Form Row - Para campos relacionados en la misma línea */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Form Full - Para campos que ocupan toda la línea */
.form-full {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
    margin-bottom: 0rem;
}

/* Mobile: Todos los campos verticales */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.required-asterisk {
    color: var(--danger-color);
    font-weight: 600;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.optional-label {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Tooltip */
.tooltip-icon {
    position: relative;
    cursor: help;
    color: var(--text-secondary);
    margin-left: auto;
}

.tooltip-icon:hover {
    color: var(--primary-color);
}

.tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--text-primary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.tooltip-icon::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    right: 10px;
    border: 6px solid transparent;
    border-top-color: var(--text-primary);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip-icon:hover::after,
.tooltip-icon:hover::before {
    opacity: 1;
}

/* Mobile: Adjust tooltip */
@media (max-width: 768px) {
    .tooltip-icon::after {
        white-space: normal;
        max-width: 200px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    .tooltip-icon::before {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}

/* Input Fields */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.6rem 0.85rem;
    padding-right: 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: inherit;
    background: #ffffff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Phone Input with Country Code Selector - Horizontal Layout */
.phone-input-wrapper {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    position: relative;
    align-items: stretch;
}

.phone-country-select {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    padding: 0.6rem 0.85rem;
    padding-right: 2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: inherit;
    background: #ffffff;
    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='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    flex-shrink: 0;
    overflow: visible;
    white-space: nowrap;
}

.phone-country-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: white;
}

.phone-country-select:disabled {
    background-color: var(--background);
    cursor: not-allowed;
    opacity: 0.7;
}

.phone-input-wrapper input[type="tel"] {
    flex: 1;
    min-width: 0;
    padding-right: 2.5rem;
}

/* Adjust success icon position for phone input - on the number input */
.form-group:has(.phone-input-wrapper) .success-icon-field {
    right: 0.85rem;
    top: 2.2rem;
    transform: none;
}

/* Mobile: Larger text to prevent zoom */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents auto-zoom on iOS */
    }
    
    .phone-country-select {
        font-size: 14px;
        width: 150px;
        min-width: 150px;
        max-width: 150px;
        padding: 0.6rem 0.6rem;
        padding-right: 1.8rem;
        background-position: right 0.5rem center;
    }
    
    .phone-input-wrapper {
        gap: 0.4rem;
        flex-wrap: wrap;
    }
    
    .phone-input-wrapper input[type=\"tel\"] {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .phone-input-wrapper {
        flex-direction: row;
        align-items: stretch;
    }
    
    .phone-country-select {
        width: 140px;
        min-width: 140px;
        max-width: 140px;
    }
    
    .form-group:has(.phone-input-wrapper) .success-icon-field {
        right: 0.85rem;
        top: 2.2rem;
        transform: none;
    }
}

@media (max-width: 480px) {
    .phone-country-select {
        width: 130px;
        min-width: 130px;
        max-width: 130px;
        font-size: 13px;
        padding: 0.55rem 0.5rem;
        padding-right: 1.6rem;
    }
    
    .phone-input-wrapper {
        gap: 0.3rem;
    }
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: lab(100% 0.01 -0.01);
}

.form-group input.valid {
    border-color: var(--success-color);
    background: rgba(34, 197, 94, 0.02);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.02);
}

.form-group select {
    padding-right: 2.5rem;
    appearance: none;
    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='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

/* Success Icon in Field */
.success-icon-field {
    position: absolute;
    right: 0.85rem;
    top: 2.2rem;
    color: var(--success-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
}

.form-group input.valid ~ .success-icon-field,
.form-group select.valid ~ .success-icon-field {
    opacity: 1;
}

/* Error Messages */
.error-message {
    color: var(--danger-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 18px;
}

.error-message:empty {
    display: none;
}

.error-message::before {
    content: "⚠";
    font-size: 0.875rem;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.toggle-password i {
    font-size: 1rem;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.35rem;
}

.strength-bar {
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background: var(--danger-color);
}

.strength-fill.medium {
    width: 66%;
    background: var(--warning-color);
}

.strength-fill.strong {
    width: 100%;
    background: var(--success-color);
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.strength-value {
    font-weight: 600;
}

.strength-value.weak {
    color: var(--danger-color);
}

.strength-value.medium {
    color: var(--warning-color);
}

.strength-value.strong {
    color: var(--success-color);
}

/* Plan Selection */
.plan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.plan-card {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.plan-card.selected {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.plan-card.featured {
    border-color: var(--primary-color);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.plan-price .currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.plan-body {
    flex: 1;
    margin-bottom: 1.5rem;
}

.plan-body p {
    text-align: center;
    color: var(--text-secondary);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.plan-features li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.btn-select-plan {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-select-plan:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Confirmation */
.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--success-color);
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.confirmation-message {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.message-box,
.next-steps,
.summary-box {
    background: var(--background);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.message-box h3,
.next-steps h4,
.summary-box h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.email-display {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    text-align: center;
    margin: 0.65rem 0;
}

.info-text {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.9rem;
}

.next-steps ol {
    padding-left: 1.25rem;
}

.next-steps li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

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

.summary-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.summary-value {
    color: var(--text-primary);
    text-align: right;
}

/* Navigation Buttons */
.wizard-navigation {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    flex-shrink: 0; /* Don't shrink */
    background: var(--surface);
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    max-width: 750px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .wizard-navigation {
        max-width: 100%;
        padding: 0.85rem 1rem;
    }
}

.btn {
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 100px;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.btn-primary {
    margin-left: auto; /* Always push to the right */
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary i {
    font-size: 0.85rem;
}

.btn-primary:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--background);
    border-color: var(--secondary-color);
}

.btn-secondary i {
    font-size: 0.85rem;
}

/* Mobile-specific adjustments (consolidated) */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .step-header {
        margin-bottom: 1rem;
    }
    
    .step-header h2 {
        font-size: 1.2rem;
    }
    
    .step-header p {
        font-size: 0.85rem;
    }

    .progress-steps {
        gap: 0.4rem;
    }

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

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .wizard-form {
        gap: 0.75rem;
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .country-card h3 {
        font-size: 0.8rem;
    }

    .country-card img,
    .country-card .country-icon {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }

    .wizard-navigation {
        padding: 0.85rem 1rem;
    }

    .btn {
        padding: 0.65rem 1rem;
        min-width: 80px;
        font-size: 0.85rem;
    }
    
    .upload-area {
        padding: 1.25rem 1rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .upload-area h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .upload-area p {
        margin-bottom: 0.85rem;
    }
    
    .btn-upload {
        padding: 0.55rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .upload-hint {
        font-size: 0.7rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .wizard-logo {
        padding: 0.5rem 0;
    }
    
    .wizard-logo img {
        width: 65px;
    }

    .progress-container {
        padding: 0.65rem;
    }

    .step-label {
        display: none;
    }
    
    .progress-steps {
        gap: 0.35rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .wizard-content {
        padding: 0.85rem 0.65rem;
    }
    
    .step-header {
        margin-bottom: 0.85rem;
    }

    .step-header h2 {
        font-size: 1.1rem;
    }
    
    .step-header p {
        font-size: 0.8rem;
    }
    
    .wizard-form {
        gap: 0.65rem;
    }
    
    .form-row {
        gap: 0.65rem;
    }
    
    .form-group {
        gap: 0.25rem;
    }
    
    .form-group label {
        font-size: 0.75rem;
    }
    
    .form-group label i {
        font-size: 0.8rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.6rem 0.75rem;
        padding-right: 2.5rem;
        font-size: 16px; /* Prevents auto-zoom */
    }
    
    .success-icon-field {
        right: 0.75rem;
        top: 2rem;
        font-size: 0.85rem;
    }
    
    .error-message {
        font-size: 0.7rem;
    }
    
    .country-grid {
        gap: 0.45rem;
    }
    
    .country-card {
        padding: 0.75rem 0.3rem;
    }
    
    .country-card h3 {
        font-size: 0.75rem;
    }
    
    .country-card img,
    .country-card .country-icon {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
        margin-bottom: 0.35rem;
    }

    .message-box,
    .next-steps,
    .summary-box {
        padding: 0.85rem;
    }

    .wizard-navigation {
        padding: 0.75rem 0.65rem;
    }
    
    .btn {
        padding: 0.6rem 0.85rem;
        min-width: 75px;
        font-size: 0.8rem;
    }
    
    .upload-area {
        padding: 1rem 0.75rem;
    }
    
    .upload-icon {
        font-size: 2rem;
        margin-bottom: 0.4rem;
    }
    
    .upload-area h3 {
        font-size: 0.95rem;
    }
    
    .btn-upload {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .upload-hint {
        font-size: 0.65rem;
    }
}

/* Logo Upload */
.logo-upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background: var(--background);
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.upload-area h3 {
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-upload {
    padding: 0.65rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-upload:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.upload-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Preview Container */
.preview-container {
    margin-top: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    background: var(--background);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.preview-header h4 {
    margin: 0;
    color: var(--text-primary);
}

.btn-remove {
    padding: 0.5rem 1rem;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-remove:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.image-preview {
    width: 100%;
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.image-preview img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 4px;
}

.file-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.optional-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.optional-note i {
    color: var(--primary-color);
    margin-top: 0.125rem;
}

/* reCAPTCHA v2 Container */
.recaptcha-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recaptcha-container .g-recaptcha {
    display: flex;
    justify-content: center;
    transform: scale(0.9);
    transform-origin: 0 0;
}

.recaptcha-container #recaptcha-error {
    margin-top: 0.25rem;
}

/* Mobile */
@media (max-width: 768px) {
    .recaptcha-container {
        margin-top: 1rem;
    }
    
    .recaptcha-container .g-recaptcha {
        transform: scale(0.85);
    }
}

@media (max-width: 480px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.75);
    }
}

/* Registration States */
.registration-loading,
.registration-success,
.registration-error {
    text-align: center;
    padding: 1rem;
}

.registration-loading h3,
.registration-success h2,
.registration-error h2 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.35rem;
}

.registration-loading p {
    color: var(--text-secondary);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 6px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success Icon (for registration success) */
.registration-success .success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--success-color);
    animation: scaleIn 0.5s ease;
}

.registration-success .success-icon svg {
    width: 100%;
    height: 100%;
}

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

/* Error Icon */
.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--danger-color);
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: shake 0.5s ease;
}

.error-message-text {
    color: var(--danger-color);
    margin-bottom: 2rem;
}

#retryBtn {
    margin-top: 1rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ============================================ */
/* WIZARD TABS - Toggle Style                   */
/* ============================================ */
.wizard-tabs-container {
    padding: 1rem 1.5rem;
    background: var(--surface);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.wizard-tabs {
    display: inline-flex;
    gap: 0;
    background: #f1f5f9;
    border-radius: var(--border-radius);
    padding: 0.25rem;
    position: relative;
    max-width: 300px;
    width: 100%;
}

.wizard-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: calc(var(--border-radius) - 2px);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
}

.wizard-tab:hover:not(.active) {
    background: rgba(0, 0, 0, 0.02);
}

.wizard-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wizard-tab i {
    font-size: 1rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@media (max-width: 768px) {
    .wizard-tabs-container {
        padding: 0.75rem 1rem;
    }
    
    .wizard-tabs {
        max-width: 100%;
    }
    
    .wizard-tab {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
    
    .wizard-tab i {
        display: none;
    }
    
    .wizard-tab span {
        display: inline;
    }
}

@media (max-width: 480px) {
    .wizard-tabs-container {
        padding: 0.6rem 0.75rem;
    }
    
    .wizard-tabs {
        max-width: 100%;
    }
    
    .wizard-tab {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        gap: 0;
    }
    
    .wizard-tab span {
        display: inline;
    }
    
    .wizard-tab i {
        display: none;
    }
}

/* ============================================ */
/* APP DOWNLOAD SECTION                         */
/* ============================================ */
.app-download-section {
    text-align: center;
    padding: 2rem 1rem;
}

.app-store-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.app-store-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #1e293b;
    color: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.app-store-button:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.app-store-button:active {
    transform: translateY(0);
}

.app-store-button i {
    font-size: 1.5rem;
}

.app-search-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .app-download-section {
        padding: 1.5rem 0.75rem;
    }
    
    .app-store-buttons {
        gap: 0.85rem;
        max-width: 100%;
    }
    
    .app-store-button {
        padding: 0.9rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .app-store-button i {
        font-size: 1.3rem;
    }
    
    .app-search-hint {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .app-download-section {
        padding: 1.25rem 0.5rem;
    }
    
    .app-store-button {
        padding: 0.85rem 1rem;
        font-size: 0.85rem;
        gap: 0.6rem;
    }
    
    .app-store-button i {
        font-size: 1.2rem;
    }
    
    .app-search-hint {
        font-size: 0.75rem;
    }
}

/* ============================================ */
/* STEP 1 - BIENVENIDA + PAÍSES INTEGRADO      */
/* ============================================ */

/* Welcome Badge - Ahora en step header */
.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50px;
}

.step-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.welcome-badge span:not(.step-number-badge) {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.welcome-badge i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Features Inline - Para el paso 1 integrado */
.welcome-features-inline {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.feature-inline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.feature-inline i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Country Section */
.country-section {
    margin-bottom: 1.5rem;
}

.country-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
    .welcome-features-inline {
        gap: 0.75rem 1rem;
    }
    
    .feature-inline {
        font-size: 0.75rem;
    }
    
    .feature-inline i {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .welcome-features-inline {
        gap: 0.5rem 0.75rem;
    }
    
    .feature-inline {
        font-size: 0.7rem;
    }
    
    .feature-inline i {
        font-size: 0.8rem;
    }
    
    .welcome-badge {
        padding: 0.4rem 0.85rem;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .step-number-badge {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .welcome-badge span:not(.step-number-badge) {
        font-size: 0.75rem;
    }
}

/* Terms Checkbox - Ahora en step 1 */
.welcome-terms {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    position: relative;
    padding-left: 28px;
}

.terms-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.terms-checkbox:hover .checkmark {
    border-color: var(--primary-color);
}

.terms-checkbox input:checked ~ .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.terms-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.terms-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Mobile Responsive - Terms */
@media (max-width: 768px) {
    .welcome-terms {
        padding: 0.85rem;
        margin-top: 0.85rem;
    }
    
    .terms-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .welcome-terms {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .checkmark {
        width: 16px;
        height: 16px;
    }
    
    .checkmark:after {
        left: 4px;
        top: 0px;
        width: 4px;
        height: 9px;
    }
    
    .terms-checkbox {
        padding-left: 24px;
    }
    
    .terms-text {
        font-size: 0.7rem;
    }
}

