/*
 * Cuestionario de evaluación (plans/ONBOARDING.md §4). Viene de OnboardingDocs/Fittiva_Cuestionario_Mockups.
 * Teléfono primero. Todo va debajo de .ftvo-ui para ganarle a los estilos globales de botones, enlaces y
 * formularios del tema y del kit de Elementor.
 *
 * Colores y fuente salen de las variables globales V4 del kit de Elementor (Sitio → Variables), que se
 * publican como --<nombre>: si cambian en Elementor, cambian aquí. El hex es el respaldo si la variable no
 * existe. Las --ftvo-* son el único lugar donde se leen; para un ajuste solo en esta página, redefinirlas
 * en el elemento ftv-onboarding.
 */
.ftv-onboarding {
    --ftvo-accent: var(--accent, #9BD34F);
    --ftvo-accent-soft: var(--accent-soft, #EEFFB3);        /* botón Anterior al pasar/pulsar, botón + */
    --ftvo-accent-tint: var(--accent-soft-30, #EEFFB34D);   /* fondo de la opción elegida */
    --ftvo-accent-text: var(--accent-deep, #5E7A00);        /* textos verdes */
    --ftvo-accent-ink: var(--button-black, #141414);        /* texto sobre el verde */
    --ftvo-ink: var(--surface-dark, #141414);
    --ftvo-muted: var(--text-muted, #666666);
    --ftvo-faint: var(--grey_text, #999999);                /* escala, privacidad, marcas sin elegir */
    --ftvo-line: var(--border-light, #E6E6E6);
    --ftvo-card: var(--white, #FFFFFF);
    --ftvo-soft: var(--secondary, #EDEDED);                 /* caja del deslizador, lista de situaciones */
    --ftvo-danger: #C0392B;                                 /* sin variable en el kit */
    --ftvo-font: var(--MainFont, "Poppins");
    --ftvo-radius: 18px;
    --ftvo-radius-sm: 12px;
}
.ftvo-ui {
    color: var(--ftvo-ink);
    font-family: var(--ftvo-font), "Poppins", sans-serif;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
}
.ftvo-ui *, .ftvo-ui *::before, .ftvo-ui *::after { box-sizing: border-box; }
.ftvo-ui p, .ftvo-ui h2, .ftvo-ui ul, .ftvo-ui fieldset, .ftvo-ui legend { margin: 0; }
.ftvo-ui fieldset { min-width: 0; padding: 0; border: 0; }
.ftvo-ui legend { padding: 0; }
.ftvo-ui button {
    margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
    color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; text-transform: none; text-decoration: none;
}
/* El tema (Hello Elementor) pinta los botones de rosa (#c36) en :hover/:focus/:active con más peso que la regla
   de arriba: se anulan aquí y cada botón define sus estados más abajo. */
.ftvo-ui button:hover, .ftvo-ui button:focus, .ftvo-ui button:active {
    border: 0; background: transparent; box-shadow: none; color: inherit; text-decoration: none;
}
.ftvo-ui a { text-decoration: none; }
.ftvo-ui [hidden] { display: none !important; }
.ftvo-ui :focus-visible { outline: 2px solid var(--ftvo-accent); outline-offset: 2px; }
.ftvo-ui [tabindex="-1"]:focus { outline: none; }

/* ---------- Progreso ---------- */
.ftvo-ui .ftvo-progress { margin-bottom: 20px; }
.ftvo-ui .ftvo-progress__meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; }
.ftvo-ui .ftvo-progress__step { color: var(--ftvo-accent-text); font-weight: 600; }
.ftvo-ui .ftvo-progress__pct { color: var(--ftvo-muted); }
.ftvo-ui .ftvo-progress__segs { display: flex; gap: 6px; }
.ftvo-ui .ftvo-progress__seg { display: grid; gap: 6px; flex-basis: 0; min-width: 0; }
.ftvo-ui .ftvo-progress__track { display: block; height: 6px; border-radius: 999px; background: var(--ftvo-line); overflow: hidden; }
.ftvo-ui .ftvo-progress__fill { display: block; height: 100%; border-radius: inherit; background: var(--ftvo-accent); transition: width .3s ease; }
.ftvo-ui .ftvo-progress__seg.is-done .ftvo-progress__fill { width: 100% !important; }
.ftvo-ui .ftvo-progress__label { overflow: hidden; color: var(--ftvo-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ftvo-ui .ftvo-progress__seg.is-current .ftvo-progress__label { color: var(--ftvo-accent-text); font-weight: 600; }

/* ---------- Tarjeta y pregunta ---------- */
.ftvo-ui .ftvo-card {
    padding: 24px 20px;
    border: 1px solid var(--ftvo-line);
    border-radius: var(--ftvo-radius);
    background: var(--ftvo-card);
}
@media (min-width: 768px) {
    .ftvo-ui .ftvo-card { padding: 32px; }
}
.ftvo-ui .ftvo-q__legend { display: grid; gap: 6px; width: 100%; }
.ftvo-ui .ftvo-q__kicker { color: var(--ftvo-accent-text); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ftvo-ui .ftvo-q__title { color: var(--ftvo-ink); font-size: 21px; font-weight: 600; line-height: 1.25; }
@media (min-width: 768px) {
    .ftvo-ui .ftvo-q__title { font-size: 24px; }
}
.ftvo-ui .ftvo-q__hint { margin-top: 6px; color: var(--ftvo-muted); font-size: 14px; }
.ftvo-ui .ftvo-q__body { display: grid; gap: 20px; margin-top: 20px; }

/* ---------- Opciones (radio y casillas como tarjetas) ---------- */
.ftvo-ui .ftvo-opts { display: grid; gap: 10px; }
@media (min-width: 600px) {
    .ftvo-ui .ftvo-opts--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ftvo-ui .ftvo-opt {
    position: relative;
    display: flex; align-items: flex-start; gap: 12px;
    min-height: 56px;
    margin: 0;
    padding: 15px 16px;
    border: 1.5px solid var(--ftvo-line);
    border-radius: var(--ftvo-radius-sm);
    background: var(--ftvo-card);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.ftvo-ui .ftvo-opt:hover { border-color: var(--ftvo-faint); }
.ftvo-ui .ftvo-opt.is-checked { border-color: var(--ftvo-accent); background: var(--ftvo-accent-tint); }
.ftvo-ui .ftvo-opt input {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.ftvo-ui .ftvo-opt:has(input:focus-visible) { outline: 2px solid var(--ftvo-accent); outline-offset: 2px; }
.ftvo-ui .ftvo-opt:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.ftvo-ui .ftvo-opt:has(input:disabled) input { cursor: not-allowed; }
.ftvo-ui .ftvo-opt__mark {
    flex: none; width: 20px; height: 20px; margin-top: 1px;
    border: 1.5px solid var(--ftvo-faint); border-radius: 50%; background: var(--ftvo-card);
}
.ftvo-ui .ftvo-opt:has(input[type="checkbox"]) .ftvo-opt__mark { border-radius: 6px; }
.ftvo-ui .ftvo-opt.is-checked .ftvo-opt__mark { border-color: var(--ftvo-accent); background: var(--ftvo-accent); box-shadow: inset 0 0 0 4px var(--ftvo-card); }
.ftvo-ui .ftvo-opt.is-checked:has(input[type="checkbox"]) .ftvo-opt__mark { box-shadow: none; }
.ftvo-ui .ftvo-opt__text { display: grid; gap: 2px; min-width: 0; }
.ftvo-ui .ftvo-opt__label { font-size: 15px; font-weight: 500; }
.ftvo-ui .ftvo-opt.is-checked .ftvo-opt__label { font-weight: 600; }
.ftvo-ui .ftvo-opt__sub { color: var(--ftvo-muted); font-size: 12.5px; }

/* Mosaicos (zonas): texto centrado, sin marca */
.ftvo-ui .ftvo-opts--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) {
    .ftvo-ui .ftvo-opts--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
    .ftvo-ui .ftvo-opts--tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.ftvo-ui .ftvo-opts--tiles .ftvo-opt { align-items: center; justify-content: center; min-height: 84px; padding: 14px 10px; text-align: center; }
.ftvo-ui .ftvo-opts--tiles .ftvo-opt__mark { display: none; }
.ftvo-ui .ftvo-opts--tiles .ftvo-opt__text { align-content: center; }
.ftvo-ui .ftvo-opts--tiles .ftvo-opt__label { font-size: 14px; font-weight: 600; }
.ftvo-ui .ftvo-slot { display: grid; gap: 10px; }
.ftvo-ui .ftvo-slot__label { margin-bottom: 10px; color: var(--ftvo-muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* Sí / no con lista de situaciones */
.ftvo-ui .ftvo-items {
    display: grid; gap: 8px;
    padding: 16px 16px 16px 34px;
    border-radius: var(--ftvo-radius-sm);
    background: var(--ftvo-soft);
    font-size: 14px;
    list-style: disc;
}
.ftvo-ui .ftvo-items li::marker { color: var(--ftvo-accent); }

/* ---------- Perfil: deslizador, contadores, sexo ---------- */
.ftvo-ui .ftvo-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
.ftvo-ui .ftvo-field--slider, .ftvo-ui .ftvo-field--choice { grid-column: 1 / -1; }
.ftvo-ui .ftvo-field { display: grid; gap: 10px; align-content: start; }
.ftvo-ui .ftvo-field__label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.ftvo-ui .ftvo-field__note { margin-top: -4px; color: var(--ftvo-muted); font-size: 12.5px; }
.ftvo-ui .ftvo-field__note a { color: var(--ftvo-accent-text); text-decoration: underline; }

.ftvo-ui .ftvo-slider { padding: 18px 20px 14px; border-radius: 14px; background: var(--ftvo-soft); }
.ftvo-ui .ftvo-slider__value { color: var(--ftvo-muted); font-size: 14px; }
.ftvo-ui .ftvo-slider__value b { color: var(--ftvo-accent-text); font-size: 34px; font-weight: 700; line-height: 1.1; }
.ftvo-ui .ftvo-slider input[type="range"] {
    width: 100%; height: 28px; margin: 6px 0 0; padding: 0;
    border: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.ftvo-ui .ftvo-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 5px; border-radius: 999px;
    background: linear-gradient(to right, var(--ftvo-accent) var(--ftvo-pct), var(--ftvo-line) var(--ftvo-pct));
}
.ftvo-ui .ftvo-slider input[type="range"]::-moz-range-track { height: 5px; border-radius: 999px; background: var(--ftvo-line); }
.ftvo-ui .ftvo-slider input[type="range"]::-moz-range-progress { height: 5px; border-radius: 999px; background: var(--ftvo-accent); }
.ftvo-ui .ftvo-slider input[type="range"]::-webkit-slider-thumb {
    width: 24px; height: 24px; margin-top: -9.5px;
    border: 3px solid var(--ftvo-accent); border-radius: 50%; background: var(--ftvo-card);
    -webkit-appearance: none; appearance: none;
}
.ftvo-ui .ftvo-slider input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px; border: 3px solid var(--ftvo-accent); border-radius: 50%; background: var(--ftvo-card);
}
.ftvo-ui .ftvo-slider__scale { display: flex; justify-content: space-between; color: var(--ftvo-faint); font-size: 11px; }

.ftvo-ui .ftvo-stepper {
    display: inline-flex; align-items: stretch; width: max-content;
    border: 1.5px solid var(--ftvo-line); border-radius: var(--ftvo-radius-sm); background: var(--ftvo-card); overflow: hidden;
}
.ftvo-ui .ftvo-stepper__btn { width: 48px; color: var(--ftvo-muted); font-size: 22px; cursor: pointer; }
.ftvo-ui .ftvo-stepper__btn[data-step="1"] { background: var(--ftvo-accent-soft); color: var(--ftvo-accent-text); }
.ftvo-ui .ftvo-stepper__btn:hover, .ftvo-ui .ftvo-stepper__btn:active { background: var(--ftvo-soft); color: var(--ftvo-ink); }
.ftvo-ui .ftvo-stepper__btn[data-step="1"]:hover, .ftvo-ui .ftvo-stepper__btn[data-step="1"]:active { background: var(--ftvo-accent); color: var(--ftvo-accent-ink); }
.ftvo-ui .ftvo-stepper__box { display: grid; justify-items: center; padding: 6px 4px; }
.ftvo-ui .ftvo-stepper input[type="number"] {
    width: 72px; height: auto; margin: 0; padding: 0;
    border: 0; background: transparent; box-shadow: none;
    color: var(--ftvo-ink); font: inherit; font-size: 24px; font-weight: 700; text-align: center;
    -moz-appearance: textfield;
}
.ftvo-ui .ftvo-stepper input[type="number"]::-webkit-inner-spin-button,
.ftvo-ui .ftvo-stepper input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.ftvo-ui .ftvo-stepper__unit { color: var(--ftvo-muted); font-size: 12px; line-height: 1; }
@media (max-width: 479px) {
    .ftvo-ui .ftvo-stepper { width: 100%; }
    .ftvo-ui .ftvo-stepper__btn { width: 38px; flex: none; }
    .ftvo-ui .ftvo-stepper__box { flex: 1; }
    .ftvo-ui .ftvo-stepper input[type="number"] { width: 100%; font-size: 22px; }
}

/* Ayuda (tooltip) del sexo: se abre con clic o teclado */
.ftvo-ui .ftvo-tip__btn {
    display: inline-grid; place-items: center; width: 20px; height: 20px;
    border: 1.5px solid var(--ftvo-faint); border-radius: 50%;
    color: var(--ftvo-muted); font-size: 12px; font-weight: 700; font-style: italic; cursor: pointer;
}
.ftvo-ui .ftvo-tip__btn:hover { border-color: var(--ftvo-accent); color: var(--ftvo-accent-text); }
.ftvo-ui .ftvo-tip__btn[aria-expanded="true"] { border-color: var(--ftvo-accent); background: var(--ftvo-accent); color: var(--ftvo-accent-ink); }
.ftvo-ui .ftvo-tip {
    display: block; flex-basis: 100%;
    padding: 12px 14px; border-radius: 10px;
    background: var(--ftvo-ink); color: var(--ftvo-card); font-size: 13px; font-weight: 400; line-height: 1.45;
}
.ftvo-ui .ftvo-field--choice .ftvo-field__label { flex-wrap: wrap; margin-bottom: 14px; }
.ftvo-ui .ftvo-field--choice .ftvo-tip { margin-top: 6px; }

/* ---------- Navegación ---------- */
.ftvo-ui .ftvo-error { margin-top: 16px; color: var(--ftvo-danger); font-size: 14px; }
.ftvo-ui .ftvo-nav { display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.ftvo-ui .ftvo-nav--end { justify-content: flex-end; }
.ftvo-ui .ftvo-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 50px; padding: 0 26px;
    border-radius: 999px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: opacity .15s ease, background-color .15s ease;
}
.ftvo-ui .ftvo-btn--primary { margin-left: auto; background: var(--ftvo-accent); color: var(--ftvo-accent-ink); }
.ftvo-ui .ftvo-btn--primary:hover, .ftvo-ui .ftvo-btn--primary:focus, .ftvo-ui .ftvo-btn--primary:active {
    background: color-mix(in srgb, var(--ftvo-accent) 88%, #000000); color: var(--ftvo-accent-ink);
}
.ftvo-ui .ftvo-btn--primary:disabled, .ftvo-ui .ftvo-btn--primary:disabled:hover { background: var(--ftvo-accent); opacity: .4; cursor: not-allowed; }
.ftvo-ui .ftvo-btn--ghost { padding: 0 18px; color: var(--ftvo-muted); }
.ftvo-ui .ftvo-btn--ghost:hover, .ftvo-ui .ftvo-btn--ghost:focus-visible, .ftvo-ui .ftvo-btn--ghost:active {
    background: var(--ftvo-accent-soft); color: var(--ftvo-ink);
}
@media (max-width: 479px) {
    .ftvo-ui .ftvo-btn--primary { flex: 1 1 100%; }
    .ftvo-ui .ftvo-nav--end .ftvo-btn { flex: 1 1 100%; }
}

.ftvo-ui .ftvo-privacy { margin-top: 18px; color: var(--ftvo-faint); font-size: 12.5px; text-align: center; }
.ftvo-ui .ftvo-privacy a { color: var(--ftvo-accent-text); text-decoration: underline; }
.ftvo-ui .ftvo-privacy__icon {
    display: inline-block; width: 9px; height: 8px; margin-right: 6px; border-radius: 2px; background: var(--ftvo-faint); vertical-align: 0;
}

/* ---------- Pantallas de mensaje: continuar, listo, rechazo ---------- */
.ftvo-ui .ftvo-msg { display: grid; gap: 10px; }
.ftvo-ui .ftvo-msg__kicker { color: var(--ftvo-accent-text); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ftvo-ui .ftvo-msg__title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.ftvo-ui .ftvo-msg__text { color: var(--ftvo-muted); font-size: 15px; }
.ftvo-ui .ftvo-msg .ftvo-nav { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
    .ftvo-ui * { transition: none !important; }
}
