/* ===========================================================
   Lead Magnet 2026 — Landing + Quiz
   Lenguaje visual heredado de plantilla/informe_mock_ebike.html
   =========================================================== */

:root{
  --green:#6fea8f; --green-dark:#4cd073; --teal:#4fb1d5; --blue:#1f4fe6;
  --ink:#0a0a0a; --muted:#6b7280; --surface:#f7f7f5; --line:#e7e7e3;
  --red-soft:#fdecec; --red:#d64545; --green-soft:#e9fbee;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:"Figtree",system-ui,sans-serif;color:var(--ink);background:#fff;
  -webkit-font-smoothing:antialiased;line-height:1.45;
}
h1,h2,h3{font-family:"Bricolage Grotesque","Figtree",system-ui,sans-serif}

.wrap{max-width:640px;margin:0 auto;padding:0 20px}
.center{text-align:center}
.ic{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}

/* subrayado/acento verde estilo plantilla */
.hl{background:var(--green);padding:0 8px;border-radius:8px;box-decoration-break:clone;-webkit-box-decoration-break:clone}

/* ================= HERO ================= */
.hero{background:var(--surface);padding:44px 0 34px;text-align:center;border-bottom:1px solid var(--line)}
.brand{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin-bottom:16px}
.hero h1{font-size:33px;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.hero .sub{margin-top:14px;color:var(--muted);font-size:16px}
.chips{margin-top:18px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.chip{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 13px;font-size:12.5px;font-weight:600;color:var(--ink)}
.chip .ic{width:14px;height:14px;color:var(--green-dark)}

/* Tira de fuentes del hero (nombres en texto, nunca logos: ver el comentario
   del index.html). Se lee como una fila de avales sin pesar en la portada. */
.srcs-lbl{margin-top:24px;font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.srcs{margin-top:9px;display:flex;flex-wrap:wrap;gap:5px 18px;justify-content:center;align-items:baseline}
.srcs span{font-family:"Bricolage Grotesque","Figtree",system-ui,sans-serif;font-size:14.5px;font-weight:800;letter-spacing:-.01em;color:#a2a29b}
@media(max-width:520px){ .srcs{gap:4px 12px} .srcs span{font-size:12.5px} }

@media(min-width:520px){ .hero h1{font-size:38px} }

/* ================= QUIZ SHELL ================= */
.quiz{padding:26px 0 10px;min-height:60vh}
.qz-top{display:flex;align-items:center;gap:12px;margin-bottom:26px;min-height:34px}
.qz-back{width:34px;height:34px;flex:0 0 auto;border:1px solid var(--line);background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--ink);cursor:pointer;transition:border-color .15s,background .15s}
.qz-back:hover{border-color:#cfcfca;background:var(--surface)}
.qz-back .ic{width:17px;height:17px}
.qz-back[hidden]{display:none}
.qz-progress{flex:1;height:6px;background:var(--line);border-radius:999px;overflow:hidden}
.qz-progress i{display:block;height:100%;width:10%;background:var(--green);border-radius:999px;transition:width .5s cubic-bezier(.2,.7,.2,1)}

/* pantallas */
.screen[hidden]{display:none}
.screen{animation:screenIn .38s cubic-bezier(.2,.7,.2,1)}
@keyframes screenIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

.screen h2{font-size:25px;font-weight:800;letter-spacing:-.02em;line-height:1.14;margin-bottom:8px}
.lede{color:var(--muted);font-size:15px;margin-bottom:22px}
.lede.center{text-align:center}

/* ================= OPCIONES ================= */
.opts{display:flex;flex-direction:column;gap:10px}
.opt{
  display:flex;align-items:center;gap:14px;width:100%;text-align:left;
  background:#fff;border:1.5px solid var(--line);border-radius:16px;padding:15px 16px;
  font:inherit;font-size:15.5px;font-weight:600;color:var(--ink);cursor:pointer;
  transition:border-color .16s,background .16s,transform .08s;
}
.opt:hover{border-color:#cfcfca}
.opt:active{transform:scale(.99)}
.opt.sel{border-color:var(--green-dark);background:var(--green-soft)}
.opt .oic{flex:0 0 auto;width:40px;height:40px;border-radius:12px;background:var(--surface);display:flex;align-items:center;justify-content:center;color:var(--ink)}
.opt.sel .oic{background:#fff}
.opt .oic .ic{width:20px;height:20px}
.opt .otxt{flex:1;line-height:1.3}
.opt .mark{flex:0 0 auto;width:24px;height:24px;border-radius:50%;border:1.5px solid var(--line);display:flex;align-items:center;justify-content:center;color:#fff;transition:background .15s,border-color .15s}
.opt .mark.sq{border-radius:8px}
.opt .mark .ic{width:15px;height:15px;opacity:0;transition:opacity .15s;stroke-width:3}
.opt.sel .mark{background:var(--green-dark);border-color:var(--green-dark)}
.opt.sel .mark .ic{opacity:1}

/* ================= BOTONES ================= */
.btn-primary{
  display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin-top:20px;
  background:var(--ink);color:#fff;font-family:inherit;font-weight:700;font-size:16.5px;
  padding:16px 22px;border:none;border-radius:999px;cursor:pointer;
  transition:transform .08s,opacity .15s,box-shadow .15s;box-shadow:0 6px 20px rgba(10,10,10,.14);
}
.btn-primary:hover{transform:translateY(-1px)}
.btn-primary:active{transform:translateY(0)}
.btn-primary:disabled{opacity:.4;cursor:not-allowed;box-shadow:none;transform:none}
.btn-primary .ic{width:19px;height:19px;stroke:#fff}

.btn-ghost{
  display:block;width:100%;margin-top:10px;background:none;border:none;
  color:var(--muted);font-family:inherit;font-weight:600;font-size:14.5px;
  padding:12px;cursor:pointer;text-decoration:underline;text-underline-offset:3px;
}
.btn-ghost:hover{color:var(--ink)}

/* ================= CAMPOS ================= */
.field{position:relative;display:flex;align-items:center;background:#fff;border:1.5px solid var(--line);border-radius:16px;transition:border-color .16s;overflow:hidden}
.field:focus-within{border-color:var(--green-dark)}
.field .ipre{display:flex;align-items:center;justify-content:center;padding-left:16px;color:var(--muted)}
.field .ipre .ic{width:19px;height:19px}
.field input{flex:1;width:100%;border:none;outline:none;background:none;font:inherit;font-size:16px;font-weight:500;color:var(--ink);padding:16px}
.field .ipre + input{padding-left:12px}
.field input::placeholder{color:#a7a7a2;font-weight:400}

.flabel{display:block;font-size:13px;font-weight:700;color:var(--ink);margin:16px 0 7px 2px}
.flabel:first-of-type{margin-top:4px}

.ta{width:100%;border:1.5px solid var(--line);border-radius:16px;font:inherit;font-size:15.5px;font-weight:500;color:var(--ink);padding:14px 16px;resize:vertical;outline:none;margin-top:12px;transition:border-color .16s}
.ta:focus{border-color:var(--green-dark)}
.ta::placeholder{color:#a7a7a2;font-weight:400}

.err{color:var(--red);font-size:13.5px;font-weight:600;margin-top:10px}
.err[hidden]{display:none}

.fineprint{color:var(--muted);font-size:12px;text-align:center;margin-top:12px}

/* consentimiento RGPD */
.consent{display:flex;gap:11px;align-items:flex-start;margin-top:18px;font-size:13px;line-height:1.45;color:var(--muted);cursor:pointer}
.consent input{flex:0 0 auto;width:20px;height:20px;margin-top:1px;accent-color:var(--green-dark);cursor:pointer}
.consent a{color:var(--ink);text-decoration:underline;text-underline-offset:2px}

/* ================= P1 · "TE VEO" ================= */
.preview{display:flex;align-items:center;gap:14px;background:#fff;border:1.5px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 12px 34px rgba(10,10,10,.08)}
.pv-favicon{width:44px;height:44px;flex:0 0 auto;border-radius:11px;border:1px solid var(--line);object-fit:contain;background:#fff}
.pv-spin{width:44px;height:44px;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.pv-body{min-width:0}
.pv-title{font-weight:700;font-size:15.5px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pv-domain{font-size:12.5px;color:var(--muted);margin-top:3px}
.analyzing{margin-top:16px;text-align:center}
.live{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--green-dark)}
.live i{width:7px;height:7px;border-radius:50%;background:var(--green-dark);animation:pulse 1.6s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.25}}

/* spinner ring */
.ring{width:26px;height:26px;border-radius:50%;border:2.5px solid var(--line);border-top-color:var(--green-dark);animation:spin .8s linear infinite;display:inline-block}
.ring.big{width:44px;height:44px;border-width:3px}
@keyframes spin{to{transform:rotate(360deg)}}

/* ================= REVEAL ================= */
.analyst.reveal-card{margin-top:4px;border-left:3px solid var(--green);padding:2px 0 2px 16px}
.analyst .lbl{display:flex;align-items:center;gap:6px;font-size:10.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--green-dark);margin-bottom:8px}
.analyst .lbl .ic{width:14px;height:14px}
.analyst p{font-size:16px;font-weight:600;line-height:1.5}
#revealConfirm{margin-top:26px}

.chipsel{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;margin-top:16px}
.chipsel button{background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:11px 16px;font:inherit;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer;transition:border-color .15s,background .15s}
.chipsel button:hover{border-color:var(--green-dark);background:var(--green-soft)}

/* ================= ESPERA REVEAL ================= */
.wait{text-align:center;padding:34px 0}
.wait .ring{margin-bottom:22px}
.wait h2{margin-bottom:6px}

/* ================= FINAL ================= */
.final{text-align:center;padding:16px 0 30px}
.final-clock{width:78px;height:78px;margin:0 auto 22px;border-radius:50%;background:var(--green-soft);display:flex;align-items:center;justify-content:center;animation:softpulse 2.4s ease-in-out infinite}
.final-clock .ic{width:38px;height:38px;color:var(--green-dark);stroke-width:2}
@keyframes softpulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(111,234,143,.4)}50%{transform:scale(1.04);box-shadow:0 0 0 14px rgba(111,234,143,0)}}
.final h2{font-size:27px}
.expect{margin-top:26px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:14px}
.ex-row{display:flex;align-items:center;gap:12px;font-size:14.5px;font-weight:600;line-height:1.35}
.ex-row .ic{width:20px;height:20px;color:var(--green-dark)}

/* ================= FOOTER ================= */
.qz-footer{padding:26px 0 40px;text-align:center;font-size:11px;color:var(--muted)}

/* Línea legal bajo el consentimiento */
.legal-mini { font-size: 11px; color: var(--muted); line-height: 1.45; margin-top: 8px; }

/* Banner de cookies (el píxel solo carga al aceptar) */
/* Sin esto la barra no se oculta NUNCA: el display:flex de abajo pisa el
   display:none que el navegador da a [hidden], asi que ni al aceptar ni al
   volver a entrar desaparece. */
.cookie-bar[hidden] { display: none; }
.cookie-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(10,10,10,.25); max-width: 616px; margin: 0 auto;
  flex-wrap: wrap;
}
.cookie-bar p { font-size: 12.5px; margin: 0; }
.cookie-bar a { color: var(--green); }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions button {
  font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  border-radius: 999px; padding: 8px 14px; border: 1px solid #3a3a3a;
  background: transparent; color: #fff;
}
.cookie-actions #ckYes { background: var(--green); border-color: var(--green); color: var(--ink); }
