.mq-quiz {
    max-width: 960px;
    margin: 0 auto;
    padding: 10px;
}

.mq-quiz [hidden] {
    display: none !important;
}

.mq-timer {
    font-weight: 700;
    margin-bottom: 10px;
}

.mq-progress {
    margin-bottom: 10px;
    color: #555;
}

.mq-question {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin: 0 0 16px;
    background: #fff;
}

.mq-question legend {
    font-weight: 600;
    padding: 0 8px;
    background: linear-gradient(45deg, rgba(180, 180, 220, 0.9), rgba(155, 155, 180, 0.9));
    border-radius: 7px;
}

.mq-options {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.mq-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mq-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mq-columns-mix {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.mq-option {
    position: relative;
    display: block;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s ease;
}

.mq-option:hover {
    border-color: #2271b1;
}

.mq-option input {
    position: absolute;
    opacity: 0;
}

.mq-option.selected {
    outline: 2px solid #2271b1;
    background: #f0f6fc;
}

.mq-option-inner {
    display: block;
    text-align: center;
}

.mq-option img {
    width: var(--mq-img-width, 160px);
    max-width: 100%;
    height: var(--mq-img-height, auto);
    object-fit: cover;
    display: block;
    margin: 0 auto 8px;
    border-radius: 8px;
}

.mq-option-text {
    display: block;
}

.mq-feedback {
    min-height: 20px;
    margin-top: 10px;
    font-weight: 600;
}

.mq-feedback.ok {
    color: #007017;
}

.mq-feedback.error {
    color: #d63638;
}

.mq-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.mq-result {
    margin-top: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f8f9fa;
}

@media (max-width: 767px) {
    .mq-columns-2,
    .mq-columns-3 {
        grid-template-columns: 1fr;
    }

    .mq-actions {
        flex-direction: column;
    }

    .mq-actions .button {
        width: 100%;
    }
}



.mq-result-image {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
    margin-bottom: 12px;
    border-radius: 8px;
}



/* Fondo del quiz */
.mq-quiz.mq-has-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    padding: 18px;
}

.mq-quiz.mq-has-background .mq-question,
.mq-quiz.mq-has-background .mq-result {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.08);
}

.mq-quiz.mq-has-background .mq-timer,
.mq-quiz.mq-has-background .mq-progress {
    display: inline-block;
    background: rgba(255, 255, 255, 0.85);
    padding: 4px 8px;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .mq-quiz.mq-has-background {
        padding: 12px;
    }
}


.mq-question-image {
    margin: 10px 0 15px;
    text-align: center;
}

.mq-question-image img {
    width: var(--mq-question-img-width, 320px);
    max-width: 100%;
    height: var(--mq-question-img-height, auto);
    object-fit: contain;
    border-radius: 8px;
}

