/* ============================================================
   Relevo · Landing con test de 60 segundos
   Basado en el test de DentPrax. Colores de marca en :root.
   ============================================================ */
:root{
  /* Marca (Academy Talent). Para OTTO se cambian estas variables. */
  --brand:#1b3a6b; --brand-600:#15305a; --brand-700:#122848;
  --brand-050:#eef3fa; --brand-100:#dde6f3; --brand-200:#bccde6;
  --accent:#f2a900;
  --ink:#141b26; --ink-70:#3e4756; --ink-45:#6b7483; --ink-25:#a6adb8;
  --line:#e1e6ee; --bg:#ffffff; --bg-soft:#f5f7fb;
  --coral:#d6453a; --ok:#14935a;
  --r:16px; --r-lg:24px;
  --font:'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0; font-family:var(--font); color:var(--ink); background:var(--bg); line-height:1.55; overflow-x:hidden}
h1,h2,h3{margin:0; letter-spacing:-.02em; line-height:1.15; text-wrap:balance}
p{margin:0}
a{color:var(--brand)}
button{font-family:inherit; color:inherit}
[hidden]{display:none!important}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1.6px solid transparent;
  border-radius:100px; padding:15px 28px; font-weight:800; font-size:1rem; cursor:pointer; text-decoration:none; transition:.15s ease}
.btn:active{transform:translateY(1px)}
.btn--primary{background:var(--brand); color:#fff; box-shadow:0 6px 18px rgba(27,58,107,.28)}
.btn--primary:hover{background:var(--brand-600)}
.btn--ghost{background:#fff; color:var(--brand); border-color:var(--brand-200)}
.btn--lg{padding:18px 34px; font-size:1.06rem}
.btn:focus-visible,.t-opt:focus-visible,.t-skip:focus-visible{outline:3px solid var(--accent); outline-offset:2px}

/* --- 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); padding-top:env(safe-area-inset-top,0px)}
.t-top__in{display:flex; align-items:center; gap:16px; height:64px; max-width:1180px; margin:0 auto; padding:0 20px}
.t-top__logo{display:flex; align-items:center; gap:10px; font-weight:800; font-size:1.02rem; color:var(--brand); text-decoration:none}
.t-top__logo img{height:28px}
.t-top__tag{margin-left:auto; font-size:.76rem; font-weight:700; color:var(--ink-45); text-align:right}
.t-bar{height:4px; background:var(--brand-100)}
.t-bar__fill{height:100%; width:0; background:var(--accent); 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:96px 16px calc(120px + env(safe-area-inset-bottom))}
.t-step{width:100%; max-width:640px; animation:tIn .38s cubic-bezier(.22,1,.36,1) both}
@keyframes tIn{from{opacity:0; transform:translateY(16px)} to{opacity:1; transform:none}}
@media (prefers-reduced-motion:reduce){.t-step{animation:none}}

.t-count{font-size:.76rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--brand); margin-bottom:12px}
.t-q{font-size:clamp(1.4rem,3.3vw,2rem); font-weight:800}
.t-help{margin-top:10px; color:var(--ink-45); font-size:.95rem; font-weight:600}
.t-body{margin-top:clamp(22px,3.5vw,32px)}

/* --- opciones --- */
.t-opts{display:grid; gap:11px}
.t-opts--2{grid-template-columns:1fr 1fr}
@media (max-width:480px){.t-opts--2{grid-template-columns:1fr}}
.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(27,58,107,.12)}
.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); background:#fff}
.t-opt__k svg{width:15px; height:15px; opacity:0}
.t-opt.is-sel .t-opt__k{background:var(--brand); border-color:var(--brand); color:#fff}
.t-opt.is-sel .t-opt__k svg{opacity:1}

/* --- campos --- */
.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.5rem); 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:10px; display:none}
.t-err.is-on{display:block}
.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.5rem); 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}
.t-check--mismo{margin-bottom:22px}
.t-check--legal{margin-top:22px; font-size:.86rem; font-weight:500; line-height:1.5}

/* --- acciones --- */
.t-actions{display:flex; align-items:center; gap:14px; margin-top:26px; flex-wrap:wrap}
.t-actions--c{justify-content:center}
.t-hint{font-size:.8rem; color:var(--ink-25); font-weight:600}
.t-skip{background:none; border:0; padding:8px 4px; font-size:.9rem; font-weight:700; color:var(--ink-45); text-decoration:underline; cursor:pointer}
@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:40;
  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 svg{width:15px; height:15px}

/* --- pausas, carga y resultado --- */
.t-load,.t-inter,.t-res{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(--accent); animation:tSpin .9s linear infinite}
@keyframes tSpin{to{transform:rotate(360deg)}}
.t-load p{font-weight:700; color:var(--ink-70)}
.t-res__ico{width:76px; height:76px; margin:0 auto 22px; border-radius:50%; background:#e7f6ee; display:grid; place-items:center}
.t-res__ico svg{width:38px; height:38px; color:var(--ok)}
.t-res__ico--no{background:var(--bg-soft)}
.t-res__ico--no svg{color:var(--ink-45)}
.t-inter h2,.t-res h2{font-size:clamp(1.55rem,3.4vw,2.1rem)}
.t-inter p,.t-res > p{margin:14px auto 0; max-width:46ch; color:var(--ink-70); font-size:1.05rem}
.t-res__nota{background:var(--brand-050); border-radius:12px; padding:14px 16px; font-weight:600}
.t-res__legal{font-size:.8rem!important; color:var(--ink-45)!important; margin-top:26px!important}

/* --- portada del test --- */
.t-hero{position:relative; margin:0 0 22px; border-radius:20px; overflow:hidden; aspect-ratio:16/8; background:var(--brand-100)}
.t-hero img{width:100%; height:100%; object-fit:cover; object-position:50% 35%; display:block}
.t-hero span{position:absolute; left:14px; bottom:14px; background:var(--accent); color:var(--ink); font-weight:800;
  font-size:.92rem; padding:7px 13px; border-radius:100px; box-shadow:0 6px 18px rgba(0,0,0,.18)}
@media (max-width:560px){.t-hero{aspect-ratio:16/9; margin-bottom:18px}}

/* --- respuestas con ilustración (2×2) --- */
.t-cards{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.t-card{cursor:pointer; background:#fff; border:1.6px solid var(--line); border-radius:var(--r);
  padding:10px 10px 13px; display:flex; flex-direction:column; gap:9px; text-align:center; transition:.15s ease}
.t-card:hover{border-color:var(--brand); transform:translateY(-2px); box-shadow:0 8px 22px rgba(27,58,107,.10)}
.t-card.is-sel{border-color:var(--brand); background:var(--brand-050); box-shadow:0 0 0 3px rgba(27,58,107,.14)}
.t-card__img img{width:100%; height:auto; aspect-ratio:420/280; display:block; border-radius:12px}
.t-card b{font-size:.92rem; font-weight:700; line-height:1.25}
.t-card:focus-visible{outline:3px solid var(--accent); outline-offset:2px}

/* --- analizando --- */
.t-analiza{text-align:center}
.t-analiza img{width:100%; height:auto; aspect-ratio:16/8; object-fit:cover; border-radius:20px; display:block}
.t-analiza p{margin-top:22px; font-weight:800; font-size:1.15rem}
.t-analiza__bar{height:10px; border-radius:10px; background:var(--brand-100); margin:16px auto 0; max-width:420px; overflow:hidden}
.t-analiza__bar i{display:block; height:100%; width:0; background:linear-gradient(90deg,var(--brand),var(--accent)); border-radius:10px;
  animation:tCarga 1.7s cubic-bezier(.4,0,.2,1) forwards}
@keyframes tCarga{to{width:100%}}

/* --- pausas con foto --- */
.t-inter__foto{position:relative; width:min(300px,72vw); margin:0 auto 22px}
.t-inter__foto img{width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; border-radius:50%; display:block;
  border:6px solid #fff; box-shadow:0 14px 40px rgba(27,58,107,.22)}
.t-inter--logro .t-inter__foto img{border-radius:28px}
.t-badge{position:absolute; left:50%; bottom:-14px; transform:translateX(-50%); white-space:nowrap;
  display:inline-flex; align-items:center; gap:7px; background:var(--ok); color:#fff; font-weight:800;
  font-size:.9rem; padding:8px 15px; border-radius:100px; box-shadow:0 8px 20px rgba(20,147,90,.35)}
.t-badge svg{width:16px; height:16px}
.t-fases{list-style:none; padding:0; margin:30px auto 22px; display:flex; justify-content:center; gap:8px; max-width:520px}
.t-fases li{flex:1; display:flex; flex-direction:column; align-items:center; gap:7px; font-size:.78rem; font-weight:700; color:var(--ink-45); position:relative}
.t-fases li svg,.t-fases li b{width:30px; height:30px; border-radius:50%; display:grid; place-items:center}
.t-fases li.ok svg{background:var(--ok); color:#fff; padding:7px}
.t-fases li.now b{background:var(--accent); color:var(--ink); font-size:.85rem}
.t-fases li.now{color:var(--ink)}
.t-fases li.next b{background:var(--brand-100); color:var(--ink-45); font-size:.85rem}
.t-fases li:nth-child(3)::after{background:var(--brand-100)}
.t-fases li:not(:last-child)::after{content:""; position:absolute; top:15px; left:calc(50% + 20px); right:calc(-50% + 20px); height:3px; background:var(--ok); border-radius:3px}

/* --- canal de precalificación --- */
.t-saludo{font-size:1.15rem; font-weight:800; color:var(--brand); margin-bottom:8px}
.t-sub{font-size:1.15rem; font-weight:800; padding-top:20px; border-top:1px solid var(--line); margin-bottom:14px}
.t-canal{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.t-opt--canal{flex-direction:column; justify-content:center; text-align:center; padding:20px 12px; gap:10px; font-size:1.02rem}
.t-canal__ico{width:52px; height:52px; border-radius:50%; display:grid; place-items:center; background:var(--brand-050); color:var(--brand)}
.t-canal__ico svg{width:26px; height:26px}
.t-opt--whatsapp .t-canal__ico{background:#e7f8ee; color:#1fa855}
.t-opt--canal.is-sel .t-canal__ico{background:var(--brand); color:#fff}
.t-opt--whatsapp.is-sel .t-canal__ico{background:#25d366; color:#fff}

/* --- cierre --- */
.t-res__ico--big{width:96px; height:96px; background:var(--ok); box-shadow:0 0 0 10px #e7f6ee}
.t-res__ico--big svg{color:#fff; width:46px; height:46px}
.t-res__foto{margin-bottom:34px}
.t-aviso{margin:24px auto 0; max-width:440px; text-align:left; display:flex; gap:14px; align-items:flex-start;
  background:#fff4d6; border:2px solid var(--accent); border-radius:16px; padding:16px 18px;
  box-shadow:0 10px 26px rgba(242,169,0,.22)}
.t-aviso__ico{flex:none; width:46px; height:46px; border-radius:50%; background:var(--accent); color:var(--ink); display:grid; place-items:center}
.t-aviso__ico svg{width:24px; height:24px}
.t-aviso b{display:block; color:var(--ink); font-size:1.08rem; font-weight:800; line-height:1.25; margin-bottom:5px}
.t-aviso div span{display:block; color:var(--ink); font-size:1rem; font-weight:600; line-height:1.45}

/* --- aviso de cookies (barra compacta) --- */
.cookies{position:fixed; left:0; right:0; bottom:0; z-index:60; background:#fff; border-top:1px solid var(--line);
  box-shadow:0 -6px 24px rgba(20,27,38,.08); padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  display:flex; align-items:center; gap:12px; justify-content:center}
.cookies p{font-size:.78rem; color:var(--ink-45); max-width:520px; line-height:1.4}
.cookies div{display:flex; gap:8px; flex:none}
.cookies .btn{padding:8px 14px; font-size:.82rem; box-shadow:none}

body:has(#cookies:not([hidden])) .t-back{bottom:calc(76px + env(safe-area-inset-bottom))}
.t-fases li:nth-child(3)::after{background:var(--brand-100)}
