/* =====================================================================
   Estilos de la carcasa de assessments
   ---------------------------------------------------------------------
   Portados del bloque de diagnóstico de la maqueta (tema claro). La
   landing oscura no viaja: el marketing vive en WordPress y cada ruta
   arranca directamente en las preguntas.
   ===================================================================== */
:root {
  --blue: #005EE9;
  --blue-light: #467FF7;
  --blue-deep: #0022A3;
  --grad: linear-gradient(37deg, #005EE9 0%, #0F172A 100%);
  --font-base: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-base);
  background: #F9F9F9;
  color: #1b1e24;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--font-head); }

.dtop {
  border-bottom: 1px solid #e6eaf0;
  background: rgba(249, 249, 249, .92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.dtop .container { display: flex; align-items: center; height: 66px; gap: 14px; }
.dtop .navtag { font-size: 13px; color: #6a7c8e; border-left: 1px solid #e6eaf0; padding-left: 14px; }
.logo-img { height: 30px; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap { max-width: 820px; margin: 0 auto; padding: 34px 22px 90px; }

.card {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(15, 33, 56, .08);
  padding: 36px;
}
.card h1 { font-size: 26px; color: #101828; margin: 0 0 10px; font-weight: 600; }
.card h2 { color: #101828; font-family: var(--font-head); font-weight: 600; }

.pill {
  display: inline-block;
  background: rgba(0, 94, 233, .10);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-head);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 94, 233, .18);
}

.muted { color: #6a7c8e; }
.small { font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 999px;
  transition: .15s;
  text-decoration: none;
}
.btn:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: #6a7c8e; padding: 13px 10px; }
.btn.ghost:hover { color: var(--blue-deep); background: transparent; transform: none; }
.btnrow { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; gap: 12px; }

.progress { height: 6px; background: #e7edf2; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-light)); width: 0; transition: .3s; }
.progress-label { font-size: 12px; color: #6a7c8e; margin-bottom: 22px; }

.qdim {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--blue);
  margin-bottom: 8px;
}
.qnote {
  font-size: 14px;
  color: #4a4f57;
  background: #eef3fb;
  border-left: 3px solid var(--blue);
  padding: 11px 15px;
  border-radius: 0 8px 8px 0;
  margin: 14px 0 20px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid #dbe2ea;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: .12s;
  background: #fff;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.opt:hover { border-color: var(--blue); background: #f4f8ff; }
.opt.sel { border-color: var(--blue); background: #eef4ff; box-shadow: 0 0 0 3px rgba(0, 94, 233, .12); }
.opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c4d0da; flex: 0 0 auto; transition: .12s; }
.opt.sel .dot { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: #101828; }
.field .req { color: #d9573f; }
.field .hint { font-weight: 400; color: #6a7c8e; font-size: 13px; }

select, input[type=text], input[type=email], input[type=tel] {
  width: 100%;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid #dbe2ea;
  border-radius: 10px;
  background: #fff;
  color: #1b1e24;
  font-family: inherit;
}
select:focus, input:focus { outline: none; border-color: var(--blue); }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip {
  border: 1.5px solid #dbe2ea;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  background: #fff;
  color: #1b1e24;
  text-align: center;
  transition: .12s;
  font-family: inherit;
}
.chip:hover { border-color: var(--blue); }
.chip.sel { border-color: var(--blue); background: #eef4ff; font-weight: 600; color: var(--blue-deep); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check2 { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 14px 0; color: #33415a; }
.check2 input { margin-top: 3px; }
.err { color: #d9573f; font-size: 13px; margin-top: 6px; display: none; }
.err.show { display: block; }

.levelhead { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.levelbadge {
  width: 58px; height: 58px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-family: var(--font-head); font-size: 22px; flex: 0 0 auto;
}

.gate {
  background: #eef3fb;
  border: 1px solid #d3e0f5;
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 24px;
}
.gate h3 { margin: 0 0 8px; color: var(--blue-deep); font-size: 17px; font-weight: 600; }

.dsection { margin-top: 32px; padding-top: 28px; border-top: 1px solid #e6eaf0; }

.palanca {
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  background: #fff;
}
.palanca .n {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 600; font-family: var(--font-head);
  display: flex; align-items: center; justify-content: center; font-size: 14px; flex: 0 0 auto;
}
.palanca .pdim {
  font-size: 12px; font-weight: 600; font-family: var(--font-head);
  color: var(--blue); text-transform: uppercase; letter-spacing: .5px;
}

.cta {
  background: var(--grad);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  margin-top: 32px;
  box-shadow: 0 10px 34px rgba(0, 94, 233, .18);
}
.cta h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.cta p { margin: 0 0 16px; color: #dceaff; }
.cta .btn { background: #fff; color: var(--blue-deep); }
.cta .btn:hover { background: #eaf1ff; color: var(--blue); }
.cta .ctaopts { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn.ghostlight { background: transparent; border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; }
.cta .btn.ghostlight:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.cta .ctamicro { color: #dceaff; font-size: 13px; margin: 12px 0 0; }

.genspin {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid #e7edf2; border-top-color: var(--blue);
  margin: 0 auto 22px; animation: genrot .9s linear infinite;
}
@keyframes genrot { to { transform: rotate(360deg); } }

.aiband {
  display: flex; align-items: center; gap: 12px;
  background: #eef4ff; border: 1px solid #d3e0f5; border-radius: 12px;
  padding: 13px 16px; margin-bottom: 20px; font-size: 14px; color: #33415a;
}
.aiband .genspin { width: 20px; height: 20px; border-width: 3px; margin: 0; flex: 0 0 auto; }

.pmodal {
  display: none; position: fixed; inset: 0;
  background: rgba(4, 6, 12, .6); z-index: 200; overflow: auto; padding: 34px 16px;
}
.pmodal.open { display: block; }
.pmodal .pbox {
  max-width: 780px; margin: 0 auto; background: #fff; color: #1b1e24;
  border-radius: 18px; padding: 36px 38px; position: relative; font-size: 15px; line-height: 1.7;
}
.pmodal h2 { font-family: var(--font-head); color: var(--blue-deep); font-size: 24px; margin: 0 0 14px; }
.pmodal h3 { font-family: var(--font-head); color: var(--blue); font-size: 16px; margin: 20px 0 6px; font-weight: 600; }
.pmodal p { margin: 0 0 10px; color: #33415a; }
.pmodal .pclose {
  position: absolute; top: 16px; right: 20px; border: none; background: #eef2f6;
  color: #1b1e24; width: 34px; height: 34px; border-radius: 50%; font-size: 17px; cursor: pointer; line-height: 1;
}
.plink { cursor: pointer; color: var(--blue); text-decoration: underline; background: none; border: 0; font: inherit; padding: 0; }

svg text { font-family: var(--font-base); }

.turnstile-holder { margin: 18px 0 4px; }

@media (max-width: 560px) {
  .chips, .grid2 { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .card h1 { font-size: 22px; }
  .wrap { padding: 20px 14px 70px; }
}
