/* ========================================
   WIZARD RESPONSIVE FIXES v4.0
   Máxima especificidad - Sobrescribe style.css
   ======================================== */

/* ═══════════════════════════════════════
   RESET ABSOLUTO - Máxima especificidad
   Usando html body para vencer a style.css
   ═══════════════════════════════════════ */

html body.wizard-page {
    min-height: 100vh !important;
    background: #0a0a0a !important;
    padding: 90px 20px 100px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

html body.wizard-page .wizard-container {
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* ═══════════════════════════════════════
   HEADER Y PROGRESS
   ═══════════════════════════════════════ */

html body.wizard-page .wizard-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
    padding: 0 !important;
    width: 100% !important;
}

html body.wizard-page .wizard-logo {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-decoration: none !important;
    letter-spacing: -0.5px !important;
}

/* Progress bar */
html body.wizard-page .wizard-progress,
html body.wizard-page .full-progress,
html body.wizard-page .segmented-progress {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 0 auto !important;
}

html body.wizard-page .progress-step {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.4) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
}

/* PASO ACTIVO - Estilo destacado */
html body.wizard-page .progress-step.active {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border-color: #667eea !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5) !important;
}

html body.wizard-page .progress-line {
    width: 24px !important;
    height: 2px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    flex-shrink: 0 !important;
}

/* ═══════════════════════════════════════
   TÍTULOS Y TEXTOS
   ═══════════════════════════════════════ */

html body.wizard-page .wizard-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    width: 100% !important;
    color: #fff !important;
}

html body.wizard-page .wizard-subtitle {
    font-size: 14px !important;
    opacity: 0.6 !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    width: 100% !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ═══════════════════════════════════════
   FORMULARIO - Espaciado generoso
   ═══════════════════════════════════════ */

html body.wizard-page .wizard-form {
    margin-bottom: 30px !important;
    width: 100% !important;
    max-width: 100% !important;
}

html body.wizard-page .wizard-form .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

html body.wizard-page .wizard-form .form-group {
    margin-bottom: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
}

html body.wizard-page .wizard-form label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 8px !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Inputs - ancho completo con buen padding */
html body.wizard-page .wizard-form input[type="text"],
html body.wizard-page .wizard-form input[type="email"],
html body.wizard-page .wizard-form input[type="password"],
html body.wizard-page .wizard-form input[type="tel"],
html body.wizard-page .wizard-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 18px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    min-height: 52px !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
}

html body.wizard-page .wizard-form textarea {
    min-height: 130px !important;
    resize: vertical !important;
}

html body.wizard-page .wizard-form input::placeholder,
html body.wizard-page .wizard-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

html body.wizard-page .wizard-form input:focus,
html body.wizard-page .wizard-form textarea:focus {
    outline: none !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* ═══════════════════════════════════════
   SELECTION CARDS (Tipo de actividad)
   ═══════════════════════════════════════ */

html body.wizard-page .selection-cards {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    width: 100% !important;
}

html body.wizard-page .selection-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    min-height: 100px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Mixto ocupa toda la fila */
html body.wizard-page .selection-card:nth-child(3) {
    grid-column: 1 / -1 !important;
}

html body.wizard-page .selection-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

html body.wizard-page .selection-card.selected {
    background: rgba(102, 126, 234, 0.15) !important;
    border-color: #667eea !important;
    box-shadow: 0 0 25px rgba(102, 126, 234, 0.3) !important;
}

html body.wizard-page .selection-card .selection-icon {
    font-size: 32px !important;
    margin-bottom: 8px !important;
    line-height: 1 !important;
}

html body.wizard-page .selection-card .selection-label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ═══════════════════════════════════════
   DIAGNOSTIC CARDS (Paso 2)
   ═══════════════════════════════════════ */

html body.wizard-page .diagnostic-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
}

html body.wizard-page .diagnostic-card {
    padding: 24px 20px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

html body.wizard-page .diagnostic-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

html body.wizard-page .diagnostic-card.selected {
    background: rgba(102, 126, 234, 0.15) !important;
    border-color: #667eea !important;
    box-shadow: 0 0 25px rgba(102, 126, 234, 0.3) !important;
}

html body.wizard-page .diagnostic-card .diagnostic-icon {
    font-size: 40px !important;
    margin-bottom: 10px !important;
    line-height: 1 !important;
}

html body.wizard-page .diagnostic-card h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: #fff !important;
}

html body.wizard-page .diagnostic-card p {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* ═══════════════════════════════════════
   BOTONES - Grandes y espaciados
   ═══════════════════════════════════════ */

html body.wizard-page .wizard-buttons {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 12px !important;
    margin-top: 30px !important;
    padding: 0 !important;
    width: 100% !important;
}

html body.wizard-page .wizard-btn,
html body.wizard-page .wizard-btn-next,
html body.wizard-page .wizard-btn-back,
html body.wizard-page .wizard-btn-confirm {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border: none !important;
}

html body.wizard-page .wizard-btn-next,
html body.wizard-page .wizard-btn-confirm {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
}

html body.wizard-page .wizard-btn-next:hover,
html body.wizard-page .wizard-btn-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4) !important;
}

html body.wizard-page .wizard-btn-back {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

html body.wizard-page .wizard-btn-back:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ═══════════════════════════════════════
   RECOMMENDATION (Paso 5)
   ═══════════════════════════════════════ */

html body.wizard-page .recommendation-container {
    text-align: center !important;
    padding: 20px 10px !important;
}

html body.wizard-page .recommendation-badge {
    display: inline-block !important;
    padding: 8px 16px !important;
    background: rgba(102, 126, 234, 0.15) !important;
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #667eea !important;
    margin-bottom: 16px !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

html body.wizard-page .recommendation-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    color: #fff !important;
    line-height: 1.2 !important;
}

html body.wizard-page .recommendation-price {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #667eea !important;
    margin-bottom: 20px !important;
    line-height: 1 !important;
}

html body.wizard-page .recommendation-price span {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

html body.wizard-page .recommendation-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 24px !important;
    padding: 0 10px !important;
}

html body.wizard-page .recommendation-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    text-align: left !important;
}

html body.wizard-page .recommendation-features li {
    padding: 10px 0 10px 32px !important;
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    position: relative !important;
}

html body.wizard-page .recommendation-features li::before {
    content: "✓" !important;
    position: absolute !important;
    left: 0 !important;
    color: #667eea !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

/* ═══════════════════════════════════════
   PAYMENT PROCESSING (Paso 6)
   ═══════════════════════════════════════ */

html body.wizard-page .payment-processing {
    text-align: center !important;
    padding: 50px 20px !important;
}

html body.wizard-page .payment-spinner {
    width: 56px !important;
    height: 56px !important;
    border: 3px solid rgba(102, 126, 234, 0.2) !important;
    border-top-color: #667eea !important;
    border-radius: 50% !important;
    animation: wizard-spin 1s linear infinite !important;
    margin: 0 auto 24px !important;
}

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

html body.wizard-page .payment-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    color: #fff !important;
}

html body.wizard-page .payment-status {
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ═══════════════════════════════════════
   ERROR MESSAGES
   ═══════════════════════════════════════ */

html body.wizard-page .password-error {
    color: #ef4444 !important;
    font-size: 14px !important;
    margin-top: 10px !important;
    display: none !important;
    text-align: center !important;
}

html body.wizard-page .password-error.visible {
    display: block !important;
}

/* ═══════════════════════════════════════
   TABLET (768px+)
   ═══════════════════════════════════════ */
@media (min-width: 768px) {
    html body.wizard-page {
        padding: 110px 30px 50px !important;
    }
    
    html body.wizard-page .wizard-container {
        max-width: 650px !important;
    }
    
    html body.wizard-page .wizard-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        margin-bottom: 40px !important;
    }
    
    html body.wizard-page .wizard-title {
        font-size: 32px !important;
    }
    
    html body.wizard-page .wizard-subtitle {
        font-size: 16px !important;
        margin-bottom: 35px !important;
    }
    
    html body.wizard-page .wizard-form .form-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }
    
    html body.wizard-page .selection-cards {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    html body.wizard-page .selection-card:nth-child(3) {
        grid-column: auto !important;
    }
    
    html body.wizard-page .diagnostic-cards {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }
    
    html body.wizard-page .wizard-buttons {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    
    html body.wizard-page .wizard-btn,
    html body.wizard-page .wizard-btn-next,
    html body.wizard-page .wizard-btn-back,
    html body.wizard-page .wizard-btn-confirm {
        width: auto !important;
        min-width: 160px !important;
    }
}

/* ═══════════════════════════════════════
   DESKTOP (1024px+)
   ═══════════════════════════════════════ */
@media (min-width: 1024px) {
    html body.wizard-page {
        padding: 120px 40px 60px !important;
    }
    
    html body.wizard-page .wizard-container {
        max-width: 720px !important;
    }
    
    html body.wizard-page .wizard-title {
        font-size: 36px !important;
    }
    
    html body.wizard-page .progress-step {
        width: 44px !important;
        height: 44px !important;
        font-size: 15px !important;
    }
    
    /* Centrar botón Confirmar en paso 5 */
    html body.wizard-page .wizard-btn-confirm {
        margin: 0 auto !important;
        display: block !important;
    }
    
    html body.wizard-page .progress-line {
        width: 60px !important;
    }
}

/* ═══════════════════════════════════════
   SMALL MOBILE (375px y menos)
   ═══════════════════════════════════════ */
@media (max-width: 375px) {
    html body.wizard-page {
        padding: 80px 16px 80px !important;
    }
    
    html body.wizard-page .wizard-title {
        font-size: 22px !important;
    }
    
    html body.wizard-page .wizard-subtitle {
        font-size: 13px !important;
    }
    
    html body.wizard-page .progress-step {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    
    html body.wizard-page .progress-line {
        width: 16px !important;
    }
    
    html body.wizard-page .selection-card {
        padding: 16px 8px !important;
        min-height: 90px !important;
    }
    
    html body.wizard-page .selection-card .selection-icon {
        font-size: 28px !important;
    }
    
    html body.wizard-page .selection-card .selection-label {
        font-size: 13px !important;
    }
    
    html body.wizard-page .wizard-form input,
    html body.wizard-page .wizard-form textarea {
        padding: 14px 16px !important;
        font-size: 16px !important;
    }
}
