/* Combo Recommender Styles */

.idi-recomender-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    gap: 1rem;
}

.idi-recomender-header p {
    font-size: 1.2rem;
    color: var(--wp--preset--color--secondary, #666);
    margin: 0 auto;
}

.idi-recomender-header h3 {
    font-size: 1.5rem;
}

.combo-recommender-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: inherit;
}

.combo-recommender-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.combo-recommender-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.combo-recommender-header p {
    font-size: 1.2rem;
    color: var(--wp--preset--color--secondary, #666);
    max-width: 600px;
    margin: 0 auto;
}

/* Formulario de preguntas */
.idi-recomender-questions {
    width: inherit;
    margin: 0 auto;
}



.idi-recomender-question.active {
    display: block;
}

.idi-recomender-question h3 {
    font-size: 1.5rem !important;
    width: 100%;
    margin-bottom: 1.5rem;
    color: var(--wp--preset--color--primary, #333);
    text-align: center;
    line-height: 1.4;
}

.idi-recomender-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.idi-recomender-option {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.idi-recomender-option:hover {
    border-color: var(--wp--preset--color--primario);
    background: rgba(0, 124, 186, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.1);
}

.idi-recomender-option input[type="radio"] {
    margin-right: 1rem;
    margin-top: 0.25rem;
    transform: scale(1.3);
    accent-color: var(--wp--preset--color--primario);
}

.idi-recomender-option input[type="radio"]:checked + label {
    color: var(--wp--preset--color--primario);
    font-weight: 600;
}

.idi-recomender-option:has(input[type="radio"]:checked) {
    border-color: var(--wp--preset--color--primario);
    box-shadow: 0 4px 12px rgba(148, 148, 148, 0.15);
}

.idi-recomender-option label {
    cursor: pointer;
    line-height: 1.6;
    color: var(--wp--preset--color--primary, #333);
    margin: 0;
    flex: 1;
    display: block;
}

/* Navegación del formulario */
.idi-recomender-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    border-radius: 12px;
}

.btn-prev, .btn-next {
    background: var(--wp--preset--color--primary, #007cba);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-prev:hover, .btn-next:hover:not(:disabled) {
    background: var(--wp--preset--color--secondary, #005a87);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.2);
}

.btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Indicadores de progreso */
.step-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.step-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: var(--wp--preset--color--primary, #007cba);
    transform: scale(1.2);
}

.step-indicator.completed {
    background: var(--wp--preset--color--success, #28a745);
}

/* Resultado del combo */
.idi-recomender-result {
    margin-top: 2rem;
}

/* Loading y estados de error */
.loading {
    text-align: center;
    padding: 3rem;
}

.loading h3 {
    color: var(--wp--preset--color--primary, #333);
    margin-bottom: 1rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--wp--preset--color--primary, #007cba);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    text-align: center;
    padding: 3rem;
    color: var(--wp--preset--color--danger, #dc3545);
}

.error h3 {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .combo-recommender-container {
        padding: 1rem;
    }
    
    .idi-recomender-question {
        padding: 1.5rem;
    }
    
    .idi-recomender-question h3 {
        font-size: 1.5rem !important;
    }
    
    .idi-recomender-option {
        padding: 1rem;
    }
    
    .idi-recomender-option label {
        font-size: 1rem;
    }
    
    .idi-recomender-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .btn-prev, .btn-next {
        width: 100%;
        max-width: 200px;
    }
}

/* Form Steps */
.form-step {
    margin-bottom: 3rem;
}

.form-step h3 {
    font-size: 2rem !important;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--primary, #333);
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.option-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.option-card:hover {
    border-color: var(--wp--preset--color--primary, #000);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.option-card.selected {
    border-color: var(--wp--preset--color--primary, #000);
    background: linear-gradient(135deg, rgba(0, 124, 186, 0.05), rgba(0, 124, 186, 0.1));
}

.option-header h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--primary, #333);
}

.option-content p {
    margin-bottom: 1.5rem;
    color: var(--wp--preset--color--secondary, #666);
    line-height: 1.6;
}

.option-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.combo-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.combo-preview img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.option-footer {
    text-align: center;
}

.select-option-btn {
    background: var(--wp--preset--color--primary, #007cba);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-option-btn:hover {
    background: var(--wp--preset--color--primary-dark, #005a87);
    transform: translateY(-1px);
}

/* Opciones de radio */
.radio-options {
    margin-bottom: 2rem;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.radio-option:hover {
    border-color: var(--wp--preset--color--primary, #000);
    background: rgba(0, 124, 186, 0.02);
}

.radio-option input[type="radio"] {
    margin-right: 1rem;
    transform: scale(1.2);
}

.radio-option input[type="radio"]:checked + label {
    color: var(--wp--preset--color--primary, #000);
    font-weight: bold;
}

.radio-option label {
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--wp--preset--color--primary, #333);
    margin: 0;
    display: inline-block;
    width: calc(100% - 2rem);
}

/* Botones de acción */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-next {
    background: var(--wp--preset--color--primario);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next:hover:not(:disabled) {
    background: var(--wp--preset--color--secundario);
    color: var(--wp--preset--color--primario);
    transform: translateY(-1px);
}

.btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.btn-prev {
    background: var(--wp--preset--color--secondary, #6c757d);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev:hover {
    background: var(--wp--preset--color--secondary-dark, #545b62);
}

.step-indicators {
    display: flex;
    gap: 1rem;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: var(--wp--preset--color--primario);
    color: white;
}

.step-indicator.completed {
    background: var(--wp--preset--color--secundario);
    color: #000;
}

/* Result */
.combo-recommender-result {
    margin-top: 3rem;
}

.result-container {
    text-align: center;
}

.result-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--primary, #333);
}

.result-header p {
    font-size: 1.2rem;
    color: var(--wp--preset--color--secondary, #666);
    margin-bottom: 3rem;
}

.recommended-combo {
    max-width: 800px;
    margin: 0 auto;
}

.combo-card {
    border: 2px solid var(--wp--preset--color--primary, #007cba);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.combo-image {
    height: 300px;
    overflow: hidden;
}

.combo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.combo-content {
    padding: 2rem;
}

.combo-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--primary, #333);
}

.combo-description {
    margin-bottom: 2rem;
    color: var(--wp--preset--color--secondary, #666);
    line-height: 1.6;
}

.combo-courses h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--primary, #333);
}

.courses-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.course-item:last-child {
    border-bottom: none;
}

.course-item i {
    color: var(--wp--preset--color--success, #28a745);
    font-size: 1.2rem;
}

.course-name {
    flex: 1;
    color: var(--wp--preset--color--primary, #333);
}

.course-discount {
    background: var(--wp--preset--color--warning, #ffc107);
    color: #333;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.combo-pricing {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1rem;
}

.pricing-header h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--wp--preset--color--primary, #333);
}

.currency-label {
    font-size: 0.9rem;
    color: var(--wp--preset--color--secondary, #666);
    margin: 0;
}

.pricing-details {
    text-align: center;
}

.original-price {
    text-decoration: line-through;
    color: var(--wp--preset--color--secondary, #666);
    margin-bottom: 0.5rem;
}

.combo-price {
    font-size: 2.5rem;
    color: var(--wp--preset--color--primary, #333);
    margin-bottom: 1rem;
}

.installment-info {
    font-size: 1rem;
    color: var(--wp--preset--color--secondary, #666);
    margin: 0;
}

.combo-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.btn-buy-now {
    background: var(--wp--preset--color--success, #28a745);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    background: var(--wp--preset--color--success-dark, #1e7e34);
    transform: translateY(-1px);
}

.btn-restart {
    background: var(--wp--preset--color--secondary, #6c757d);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-restart:hover {
    background: var(--wp--preset--color--secondary-dark, #545b62);
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--wp--preset--color--secondary, #666);
    text-align: center;
    margin: 0;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--wp--preset--color--primary, #007cba);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .combo-recommender-container {
        padding: 1rem;
    }
    
    .combo-recommender-header h2 {
        font-size: 2rem;
    }
    
    .radio-options {
        margin-bottom: 1rem;
    }
    
    .radio-option {
        padding: 0.75rem;
    }
    
    .radio-option label {
        font-size: 1rem;
    }
    
    .combo-actions {
        flex-direction: column;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
} 