/* MiAuto – Test de Manejo Florida. Hereda tipografía del tema; el color principal llega en --mtf-color. */
.mtf-app {
    --mtf-color: #1E6FD9;
    --mtf-ok: #1b7f3b;
    --mtf-ok-bg: #e9f6ee;
    --mtf-bad: #b42318;
    --mtf-bad-bg: #fdecea;
    --mtf-border: rgba(0, 0, 0, .14);
    --mtf-muted: rgba(0, 0, 0, .62);
    --mtf-soft: rgba(0, 0, 0, .04);
    max-width: 760px;
    margin: 1.5em auto;
    box-sizing: border-box;
}
.mtf-app *, .mtf-app *::before, .mtf-app *::after { box-sizing: inherit; }
.mtf-app [hidden] { display: none !important; }

.mtf-screen {
    border: 1px solid var(--mtf-border);
    border-radius: 12px;
    padding: clamp(18px, 4vw, 32px);
    background: #fff;
}

/* Inicio */
.mtf-title { margin: 0 0 .4em; line-height: 1.2; }
.mtf-lead { margin: 0 0 1.2em; color: var(--mtf-muted); }
.mtf-facts { list-style: none; margin: 0 0 1.5em; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mtf-facts li { background: var(--mtf-soft); border-radius: 8px; padding: .5em .9em; font-size: .95em; }

/* Botones */
.mtf-btn {
    appearance: none;
    border: 1px solid var(--mtf-border);
    background: #fff;
    color: inherit;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    padding: .75em 1.4em;
    border-radius: 8px;
    cursor: pointer;
    transition: filter .15s, background .15s;
}
.mtf-btn:hover:not(:disabled) { background: var(--mtf-soft); }
.mtf-btn:disabled { opacity: .45; cursor: default; }
.mtf-btn:focus-visible { outline: 3px solid var(--mtf-color); outline-offset: 2px; }
.mtf-btn--primary { background: var(--mtf-color); border-color: var(--mtf-color); color: #fff; }
.mtf-btn--primary:hover:not(:disabled) { background: var(--mtf-color); filter: brightness(.92); }

/* Progreso */
.mtf-progress { margin-bottom: 1.25em; }
.mtf-progress__label { font-size: .9em; color: var(--mtf-muted); margin-bottom: .4em; }
.mtf-progress__bar { height: 6px; background: var(--mtf-soft); border-radius: 99px; overflow: hidden; }
.mtf-progress__bar span { display: block; height: 100%; width: 0; background: var(--mtf-color); transition: width .25s; }

/* Pregunta y opciones */
.mtf-question { border: 0; margin: 0; padding: 0; min-width: 0; }
.mtf-question__text { font-size: 1.15em; font-weight: 600; line-height: 1.4; padding: 0; margin-bottom: 1em; float: left; width: 100%; }
.mtf-options { clear: both; display: grid; gap: 10px; }
.mtf-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: .85em 1em;
    border: 1px solid var(--mtf-border);
    border-radius: 10px;
    cursor: pointer;
    line-height: 1.45;
    transition: border-color .15s, background .15s;
}
.mtf-option:hover { background: var(--mtf-soft); }
.mtf-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mtf-option__letter {
    flex: none;
    width: 1.9em; height: 1.9em;
    border-radius: 50%;
    border: 1px solid var(--mtf-border);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9em;
}
.mtf-option__text { padding-top: .15em; }
.mtf-option.is-selected { border-color: var(--mtf-color); box-shadow: inset 0 0 0 1px var(--mtf-color); }
.mtf-option.is-selected .mtf-option__letter { background: var(--mtf-color); border-color: var(--mtf-color); color: #fff; }
.mtf-option:focus-within { outline: 3px solid var(--mtf-color); outline-offset: 2px; }

.mtf-warning { margin: 1em 0 0; padding: .75em 1em; border-radius: 8px; background: #fff7e6; color: #7a4b00; font-size: .95em; }
.mtf-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 1.5em; }

/* Resultado */
.mtf-score { text-align: center; padding: 1.5em 1em; border-radius: 10px; margin-bottom: 1.5em; }
.mtf-score--pass { background: var(--mtf-ok-bg); color: var(--mtf-ok); }
.mtf-score--fail { background: var(--mtf-bad-bg); color: var(--mtf-bad); }
.mtf-score__badge { font-weight: 700; font-size: 1.15em; text-transform: uppercase; letter-spacing: .04em; }
.mtf-score__pct { font-size: clamp(2.6em, 10vw, 3.6em); font-weight: 800; line-height: 1.1; margin: .1em 0; }
.mtf-score__detail { margin: 0; color: inherit; opacity: .9; }

.mtf-review-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: .75em; }
.mtf-review-head h3 { margin: 0; }
.mtf-filter { font-size: .95em; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }

.mtf-review { margin: 0 0 1.5em; padding: 0; list-style: none; display: grid; gap: 10px; }
.mtf-review__item { border: 1px solid var(--mtf-border); border-left: 4px solid var(--mtf-ok); border-radius: 8px; padding: .9em 1em; }
.mtf-review__item.is-wrong { border-left-color: var(--mtf-bad); }
.mtf-review--only-wrong .mtf-review__item.is-right { display: none; }
.mtf-review__item p { margin: 0 0 .4em; }
.mtf-review__item p:last-child { margin-bottom: 0; }
.mtf-review__q { font-weight: 600; }
.mtf-review__yours { color: var(--mtf-bad); }
.mtf-review__correct { color: var(--mtf-ok); }
.mtf-review__exp { font-size: .93em; color: var(--mtf-muted); }
.mtf-review__page { font-style: italic; }

.mtf-disclaimer { font-size: .8em; color: var(--mtf-muted); margin: .8em 0 0; text-align: center; }

@media (max-width: 480px) {
    .mtf-nav .mtf-btn { flex: 1; }
    .mtf-start .mtf-btn { width: 100%; }
}
