/* QuizFunnel — estilos del motor genérico de embudos gamificados.
   Paleta alineada a las landings de embudo (ink #0B1F3A, azul #0072CE, cielo #00AEEF). */

.quiz-funnel { max-width: 640px; margin: 0 auto; min-height: 420px; position: relative; }

.qf-card {
    background: #fff; border-radius: 18px; padding: 2.2rem 2rem;
    box-shadow: 0 20px 50px rgba(11, 31, 58, .16);
    transition: opacity .18s ease, transform .18s ease;
}
.qf-enter { opacity: 0; transform: translateY(14px); }
/* La tarjeta saliente vive ~180ms más en el DOM: no debe seguir aceptando clics. */
.qf-leave { opacity: 0; transform: translateY(-14px); pointer-events: none; }

.qf-kicker {
    display: inline-block; font-family: 'Montserrat', sans-serif; font-weight: 600;
    font-size: .74rem; letter-spacing: 2.2px; text-transform: uppercase;
    color: #0072CE; background: #E9F4FD; border: 1px solid #cfe6f9;
    padding: .4rem .9rem; border-radius: 30px; margin-bottom: 1rem;
}
.qf-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.55rem; color: #0B1F3A; letter-spacing: -.3px; text-wrap: balance; margin-bottom: .6rem; }
.qf-sub { color: #5b6b7d; font-size: 1rem; line-height: 1.55; margin-bottom: 1.1rem; }
.qf-meta { font-size: .8rem; color: #8393a3; margin: 1rem 0 0; }
.qf-meta i { margin-right: .35rem; }

.qf-bullets { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.qf-bullets li { display: flex; gap: .6rem; align-items: flex-start; color: #33445a; font-size: .95rem; padding: .3rem 0; }
.qf-bullets li i { color: #16A34A; margin-top: .2rem; }

.qf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border: none; border-radius: 12px; padding: .8rem 1.6rem;
    font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.qf-btn-primary { background: linear-gradient(135deg, #0072CE, #00AEEF); color: #fff; }
.qf-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 114, 206, .4); }
.qf-btn-ghost { background: #fff; color: #0072CE; border: 1px solid #cfe6f9; }
.qf-btn-ghost:hover { color: #0072CE; background: #E9F4FD; }
.qf-btn-block { width: 100%; }
.qf-btn[disabled] { opacity: .7; cursor: default; transform: none; }

.qf-progress { margin-bottom: 1.4rem; }
.qf-progress-label { font-size: .78rem; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #8393a3; margin-bottom: .45rem; }
.qf-progress-bar { height: 8px; border-radius: 6px; background: #eef4fa; overflow: hidden; }
.qf-progress-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #0072CE, #00AEEF); transition: width .35s ease; }

.qf-qtext { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.3rem; color: #0B1F3A; line-height: 1.35; text-wrap: balance; margin-bottom: .4rem; }
.qf-qhelp { color: #8393a3; font-size: .88rem; margin-bottom: 1rem; }

.qf-options { display: flex; flex-direction: column; gap: .65rem; margin-top: 1.1rem; }
.qf-option {
    display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left;
    background: #f9fbfd; border: 1.5px solid #dbe4ee; border-radius: 12px;
    padding: .9rem 1.1rem; font-size: .98rem; color: #33445a; cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.qf-option:hover { border-color: #00AEEF; background: #fff; transform: translateX(3px); }
.qf-option-dot { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b9c9da; transition: all .15s ease; }
.qf-option:hover .qf-option-dot { border-color: #00AEEF; }
.qf-option-picked { border-color: #0072CE; background: #E9F4FD; }
.qf-option-picked .qf-option-dot { border-color: #0072CE; background: #0072CE; box-shadow: inset 0 0 0 3px #E9F4FD; }

.qf-number-wrap { display: flex; align-items: center; gap: .6rem; margin: 1.1rem 0 .4rem; }
.qf-number {
    flex: 1; border: 1.5px solid #dbe4ee; border-radius: 12px; padding: .85rem 1rem;
    font-size: 1.25rem; font-weight: 600; color: #0B1F3A; background: #f9fbfd; min-width: 0;
}
.qf-number:focus { outline: none; border-color: #00AEEF; box-shadow: 0 0 0 3px rgba(0, 174, 239, .15); background: #fff; }
.qf-number-prefix, .qf-number-suffix { font-weight: 600; color: #5b6b7d; white-space: nowrap; }

.qf-question .qf-btn { margin-top: .9rem; }
.qf-back { display: inline-flex; align-items: center; gap: .45rem; background: none; border: none; color: #8393a3; font-size: .85rem; margin-top: 1.2rem; cursor: pointer; padding: 0; }
.qf-back:hover { color: #0072CE; }

.qf-error { color: #DC2626; font-size: .85rem; margin: .3rem 0 0; }

.qf-gate-ready { display: inline-flex; align-items: center; gap: .5rem; color: #16A34A; font-weight: 600; font-size: .9rem; margin-bottom: .9rem; }
.qf-gate-form .qf-gate-row { display: flex; gap: .75rem; }
.qf-gate-form input {
    width: 100%; border: 1px solid #dbe4ee; border-radius: 10px; padding: .7rem .9rem;
    margin-bottom: .75rem; font-size: .95rem; background: #f9fbfd; transition: border-color .2s, box-shadow .2s;
}
.qf-gate-form input:focus { outline: none; border-color: #00AEEF; box-shadow: 0 0 0 3px rgba(0, 174, 239, .15); background: #fff; }
.qf-privacy { text-align: center; font-size: .75rem; color: #8393a3; margin: .8rem 0 0; }
.qf-privacy i { margin-right: .3rem; }

.qf-result { text-align: center; }
.qf-score { color: #0072CE; margin-bottom: .4rem; }
.qf-score-num { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 4.2rem; line-height: 1; }
.qf-score-max { font-size: 1.4rem; font-weight: 600; color: #8393a3; }
.qf-result-headline { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.5rem; color: #0B1F3A; margin-bottom: .5rem; text-wrap: balance; }
.qf-result-line { font-size: 1.05rem; color: #33445a; margin: .4rem 0; }
.qf-result-line strong { color: #0B1F3A; }

.qf-groups { text-align: left; margin: 1.4rem 0 .4rem; }
.qf-group { display: flex; align-items: center; gap: .7rem; padding: .32rem 0; }
.qf-group-label { flex: 0 0 128px; font-size: .85rem; font-weight: 600; color: #33445a; }
.qf-group-bar { flex: 1; height: 9px; border-radius: 6px; background: #eef4fa; overflow: hidden; }
.qf-group-fill { height: 100%; border-radius: 6px; transition: width .7s cubic-bezier(.2, .7, .3, 1); }
.qf-group-pct { flex: 0 0 42px; text-align: right; font-size: .82rem; font-weight: 700; color: #33445a; }

.qf-weakest { background: #fdf6ec; border: 1px solid #f3dfc0; border-radius: 10px; padding: .7rem .9rem; font-size: .9rem; color: #7a5218; text-align: left; margin-top: .9rem; }
.qf-weakest i { color: #d97706; margin-right: .4rem; }

.qf-ctas { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; }

@media (max-width: 575.98px) {
    .qf-card { padding: 1.6rem 1.25rem; }
    .qf-gate-form .qf-gate-row { flex-direction: column; gap: 0; }
    .qf-group-label { flex-basis: 96px; font-size: .78rem; }
    .qf-score-num { font-size: 3.4rem; }
}
