/* ============================================================
   DentPrax · Test "¿Soy candidato?" — 30 segundos
   ============================================================ */

body.testbody{background:#fff; padding-bottom:0; overflow-x:hidden}

/* --- cabecera y progreso --- */
.t-top{position:fixed; inset:0 0 auto 0; z-index:50; background:rgba(255,255,255,.95); backdrop-filter:blur(12px)}
.t-top__in{display:flex; align-items:center; gap:16px; height:64px; max-width:var(--maxw); margin:0 auto; padding:0 20px}
.t-top__logo img{height:28px}
.t-top__partner{margin-left:auto; display:flex; align-items:center; gap:8px; font-size:.76rem; font-weight:700; color:var(--ink-45)}
.t-top__partner img{height:13px; opacity:.85}
.t-bar{height:4px; background:var(--brand-100)}
.t-bar__fill{height:100%; width:0; background:var(--brand); border-radius:0 3px 3px 0; transition:width .4s cubic-bezier(.4,0,.2,1)}

/* --- lienzo de pasos --- */
.t-stage{min-height:100svh; display:grid; place-items:center; padding:104px 20px calc(96px + env(safe-area-inset-bottom))}
.t-step{width:100%; max-width:680px; display:none; animation:tIn .38s cubic-bezier(.22,1,.36,1) both}
.t-step.is-active{display:block}
@keyframes tIn{from{opacity:0; transform:translateY(16px)} to{opacity:1; transform:none}}

.t-count{font-size:.78rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--brand-700); margin-bottom:12px}
.t-q{font-size:clamp(1.42rem,3.3vw,2.05rem); font-weight:800; letter-spacing:-.022em; line-height:1.18}
.t-help{margin-top:11px; color:var(--ink-45); font-size:.95rem; font-weight:600}
.t-body{margin-top:clamp(24px,3.5vw,34px)}

/* --- opciones de texto --- */
.t-opts{display:grid; gap:11px}
.t-opt{
  display:flex; align-items:center; gap:14px; width:100%; text-align:left; cursor:pointer;
  background:#fff; border:1.6px solid var(--line); border-radius:var(--r); padding:16px 18px;
  font-weight:600; font-size:1.01rem; transition:.15s ease;
}
.t-opt:hover{border-color:var(--brand); background:var(--brand-050)}
.t-opt.is-sel{border-color:var(--brand); background:var(--brand-050); box-shadow:0 0 0 3px rgba(0,166,214,.13)}
.t-opt__k{
  flex:none; width:27px;height:27px; border-radius:7px; border:1.4px solid var(--brand-200);
  display:grid; place-items:center; font-size:.76rem; font-weight:800; color:var(--brand-700); background:#fff;
}
.t-opt.is-sel .t-opt__k{background:var(--brand); border-color:var(--brand); color:#fff}

/* --- opciones con croquis dental --- */
.t-cards{display:grid; grid-template-columns:repeat(3,1fr); gap:13px}
.t-cards--6{grid-template-columns:repeat(3,1fr)}
@media (max-width:620px){ .t-cards, .t-cards--6{grid-template-columns:repeat(2,1fr)} }
.t-card{
  cursor:pointer; background:#fff; border:1.6px solid var(--line); border-radius:var(--r);
  padding:14px 12px 15px; text-align:center; transition:.15s ease; display:flex; flex-direction:column; gap:9px;
}
.t-card:hover{border-color:var(--brand); box-shadow:var(--sh-1); transform:translateY(-2px)}
.t-card.is-sel{border-color:var(--brand); background:var(--brand-050); box-shadow:0 0 0 3px rgba(0,166,214,.13)}
.t-card__img{background:#fff; border-radius:10px; padding:6px}
.t-card.is-sel .t-card__img{background:#fff}
.t-card__img img{width:100%; height:auto; aspect-ratio:420/280; object-fit:contain}
.t-card b{font-size:.9rem; font-weight:700; line-height:1.25}

/* --- campos --- */
.t-field{position:relative}
.t-input{
  width:100%; border:0; border-bottom:2.2px solid var(--brand-200); background:transparent;
  padding:12px 2px; font-size:clamp(1.2rem,2.4vw,1.55rem); font-weight:600; color:var(--ink);
  outline:none; border-radius:0; font-family:inherit;
}
.t-input::placeholder{color:var(--ink-25); font-weight:500}
.t-input:focus{border-color:var(--brand)}
.t-input.is-err{border-color:var(--coral)}
.t-err{color:var(--coral); font-size:.86rem; font-weight:700; margin-top:9px; display:none}
.t-err.is-on{display:block}
.t-note{font-size:.82rem; color:var(--ink-45); margin-top:14px; line-height:1.5}
.t-note a{color:var(--brand-700); text-decoration:underline}
.t-phone{display:flex; align-items:center; gap:10px; border-bottom:2.2px solid var(--brand-200)}
.t-phone:focus-within{border-color:var(--brand)}
.t-phone__cc{font-size:clamp(1.2rem,2.4vw,1.55rem); font-weight:700; color:var(--ink-45)}
.t-phone .t-input{border-bottom:0}

.t-check{display:flex; gap:12px; align-items:flex-start; cursor:pointer; font-size:.95rem; color:var(--ink-70); font-weight:600}
.t-check input{width:20px;height:20px; accent-color:var(--brand); margin-top:2px; flex:none}

/* --- acciones --- */
.t-actions{display:flex; align-items:center; gap:14px; margin-top:26px; flex-wrap:wrap}
.t-hint{font-size:.8rem; color:var(--ink-25); font-weight:600}
@media (max-width:560px){ .t-hint{display:none} .t-actions .btn{width:100%} }

.t-back{
  position:fixed; left:20px; bottom:calc(20px + env(safe-area-inset-bottom)); z-index:50;
  display:none; align-items:center; gap:7px; background:#fff; border:1.4px solid var(--line);
  border-radius:100px; padding:9px 16px; font-size:.87rem; font-weight:700; color:var(--ink-70); cursor:pointer;
}
.t-back.is-on{display:inline-flex}
.t-back:hover{border-color:var(--brand); color:var(--brand-700)}
.t-back svg{width:15px;height:15px}

/* --- portada --- */
.t-intro{text-align:center}
.t-intro__art{width:min(260px,58vw); margin:0 auto 22px}
.t-intro__art img{width:100%; height:auto; aspect-ratio:1/1; object-fit:contain}
.t-intro h1{font-size:clamp(1.9rem,4.6vw,2.7rem); line-height:1.1}
.t-intro p{margin:16px auto 30px; max-width:46ch; color:var(--ink-70)}
.t-intro__meta{display:flex; flex-wrap:wrap; gap:10px 22px; justify-content:center; margin-top:26px;
  font-size:.85rem; color:var(--ink-45); font-weight:700}
.t-intro__meta span{display:inline-flex; align-items:center; gap:7px}
.t-intro__meta svg{width:16px;height:16px; color:var(--brand)}

/* --- cargando --- */
.t-load{text-align:center}
.t-load__ring{width:64px;height:64px;margin:0 auto 24px; border-radius:50%;
  border:5px solid var(--brand-100); border-top-color:var(--brand); animation:tSpin .9s linear infinite}
@keyframes tSpin{to{transform:rotate(360deg)}}
.t-load p{font-weight:700; color:var(--ink-70)}

/* --- resultado --- */
.t-res{text-align:center}
.t-res__ico{width:76px;height:76px;margin:0 auto 22px;border-radius:50%;background:#e8f8ef;display:grid;place-items:center}
.t-res__ico svg{width:38px;height:38px;color:var(--ok)}
.t-res h2{font-size:clamp(1.55rem,3.4vw,2.2rem)}
.t-res > p{margin:15px auto 0; max-width:50ch; color:var(--ink-70)}
.t-res__cards{display:grid; grid-template-columns:repeat(3,1fr); gap:13px; margin:30px 0}
@media (max-width:620px){.t-res__cards{grid-template-columns:1fr}}
.t-res__card{background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--r); padding:20px 16px}
.t-res__card span{display:block; font-size:.76rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-45); margin-bottom:7px}
.t-res__card b{font-size:1.24rem; color:var(--brand-700); line-height:1.15; letter-spacing:-.02em}
.t-res__card em{display:block; font-style:normal; font-size:.79rem; color:var(--ink-45); font-weight:600; margin-top:5px}
.t-res__ctas{display:grid; gap:11px; max-width:420px; margin:0 auto}
.t-res__sum{margin-top:30px; text-align:left; background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:20px 22px}
.t-res__sum h3{font-size:.8rem; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-45); margin-bottom:14px}
.t-res__sum dl{display:grid; grid-template-columns:auto 1fr; gap:9px 18px; margin:0; font-size:.92rem}
.t-res__sum dt{color:var(--ink-45); font-weight:600}
.t-res__sum dd{margin:0; font-weight:700; text-align:right}
.t-res__legal{font-size:.79rem; color:var(--ink-45); margin-top:22px; line-height:1.55}

/* --- animación del alineador en la portada --- */
.t-intro__vid{
  width:100%; height:auto; aspect-ratio:1/1; display:block;
  object-fit:contain; border-radius:var(--r-lg); background:#fff;
}
.t-intro__vid{transition:opacity .18s linear}
