:root{
  --navy:#111827;
  --navy-soft:#1c2a4a;
  --accent:#2f6fed;
  --accent-dark:#1e4fbf;
  --light:#f4f6fb;
  --gray:#5b6472;
  --border:#e3e7ef;
  --danger:#c0392b;
  --danger-bg:#fdecea;
}

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

html,body{height:100%;}

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--navy);
  line-height:1.6;
  background:var(--light);
  -webkit-font-smoothing:antialiased;
}

.app{
  max-width:560px;
  margin:0 auto;
  min-height:100vh;
  background:#fff;
  display:flex;
  flex-direction:column;
  box-shadow:0 0 40px rgba(17,24,39,0.06);
}

@media (min-width:640px){
  body{padding:24px 12px;}
  .app{min-height:auto;border-radius:18px;overflow:hidden;}
}

.progress-wrap{
  padding:16px 24px 12px;
  border-bottom:1px solid var(--border);
  flex-shrink:0;
}

.progress-top{
  display:flex;
  justify-content:space-between;
  font-size:12.5px;
  color:var(--gray);
  margin-bottom:8px;
}

.progress-track{
  height:6px;
  background:var(--border);
  border-radius:4px;
  overflow:hidden;
}

.progress-fill{
  height:100%;
  background:var(--accent);
  border-radius:4px;
  transition:width .35s ease;
}

.screen-area{
  flex:1;
  display:flex;
  flex-direction:column;
}

.screen{
  padding:32px 24px 28px;
  display:flex;
  flex-direction:column;
  flex:1;
  opacity:0;
  transform:translateY(8px);
  animation:screenIn .35s ease forwards;
}

@keyframes screenIn{
  to{opacity:1;transform:translateY(0);}
}

/* ---------- Pantalla inicial ---------- */

.screen-start{
  background:linear-gradient(180deg,var(--navy) 0%,var(--navy-soft) 100%);
  color:#fff;
  text-align:center;
  justify-content:center;
  padding:56px 28px;
  min-height:100%;
}

.kicker{
  text-transform:uppercase;
  letter-spacing:1.5px;
  font-size:12px;
  color:#9db4f0;
  font-weight:600;
  margin-bottom:16px;
}

.start-title{
  font-size:1.7rem;
  font-weight:800;
  line-height:1.3;
  margin-bottom:14px;
}

.start-sub{
  font-size:1rem;
  color:#c7cfe0;
  max-width:420px;
  margin:0 auto 30px;
}

.start-foot{
  margin-top:18px;
  font-size:12.5px;
  color:#9db4f0;
}

/* ---------- Botones ---------- */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:none;
  border-radius:10px;
  font-weight:700;
  font-size:1rem;
  padding:16px 28px;
  cursor:pointer;
  font-family:inherit;
  transition:background .15s ease, opacity .15s ease, transform .1s ease;
}

.btn:active{transform:scale(0.98);}

.btn-primary{
  background:var(--accent);
  color:#fff;
}
.btn-primary:hover{background:var(--accent-dark);}
.btn-primary:disabled{
  background:#b9c6e8;
  cursor:not-allowed;
}
.btn-primary:disabled:active{transform:none;}

.btn-ghost{
  background:transparent;
  color:var(--gray);
  padding:14px 18px;
  font-weight:600;
  font-size:0.95rem;
}
.btn-ghost:hover{color:var(--navy);}

.btn-block{width:100%;}

.btn-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:28px;
}

.btn-row .btn-primary{flex:1;}

/* ---------- Preguntas ---------- */

.q-title{
  font-size:1.2rem;
  font-weight:800;
  color:var(--navy);
  margin-bottom:22px;
  line-height:1.4;
}

.options{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.option{
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  padding:15px 16px;
  border-radius:12px;
  border:1.5px solid var(--border);
  background:#fff;
  font-size:0.98rem;
  color:var(--navy);
  cursor:pointer;
  font-family:inherit;
  transition:border-color .15s ease, background .15s ease;
}

.option:hover{border-color:#c7cdd8;}

.option .dot{
  width:18px;
  height:18px;
  border-radius:50%;
  border:2px solid #c7cdd8;
  flex-shrink:0;
  transition:border-color .15s ease, background .15s ease;
  position:relative;
}

.option.selected{
  border-color:var(--accent);
  background:#eef3fd;
}
.option.selected .dot{
  border-color:var(--accent);
  background:var(--accent);
  box-shadow:inset 0 0 0 3px #fff;
}

/* ---------- Pantalla de datos ---------- */

.lead-title{
  font-size:1.35rem;
  font-weight:800;
  color:var(--navy);
  margin-bottom:8px;
}

.lead-sub{
  font-size:0.95rem;
  color:var(--gray);
  margin-bottom:24px;
  line-height:1.55;
}

.field{
  margin-bottom:16px;
}

.field label{
  display:block;
  font-size:0.85rem;
  font-weight:700;
  color:var(--navy);
  margin-bottom:6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"]{
  width:100%;
  padding:13px 14px;
  border-radius:10px;
  border:1.5px solid var(--border);
  font-size:0.98rem;
  font-family:inherit;
  color:var(--navy);
  background:#fff;
}

.field input:focus{
  outline:none;
  border-color:var(--accent);
}

.field.has-error input{
  border-color:var(--danger);
  background:var(--danger-bg);
}

.field-error{
  font-size:0.8rem;
  color:var(--danger);
  margin-top:6px;
  display:none;
}

.field.has-error .field-error{display:block;}

.checkbox-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:20px 0 6px;
  padding:14px;
  border-radius:10px;
  border:1.5px solid var(--border);
}

.checkbox-row.has-error{
  border-color:var(--danger);
  background:var(--danger-bg);
}

.checkbox-row input{
  margin-top:3px;
  width:18px;
  height:18px;
  flex-shrink:0;
  accent-color:var(--accent);
}

.checkbox-row label{
  font-size:0.88rem;
  color:var(--navy);
  line-height:1.5;
}

.privacy-note{
  font-size:0.78rem;
  color:var(--gray);
  margin-top:14px;
  line-height:1.5;
}

/* ---------- Carga ---------- */

.screen-loading{
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:100px 28px;
  min-height:100%;
}

.spinner{
  width:40px;
  height:40px;
  border:3px solid var(--border);
  border-top-color:var(--accent);
  border-radius:50%;
  margin:0 auto 24px;
  animation:spin .8s linear infinite;
}

@keyframes spin{to{transform:rotate(360deg);}}

.loading-text{
  font-size:0.95rem;
  color:var(--gray);
}

/* ---------- Resultado ---------- */

.result-badge{
  display:inline-block;
  background:#eaf0fd;
  color:var(--accent-dark);
  font-size:11.5px;
  font-weight:700;
  padding:5px 12px;
  border-radius:20px;
  margin-bottom:16px;
  align-self:flex-start;
}

.result-title{
  font-size:1.3rem;
  font-weight:800;
  color:var(--navy);
  margin-bottom:16px;
  line-height:1.35;
}

.result-body{
  font-size:0.95rem;
  color:var(--gray);
  margin-bottom:20px;
  line-height:1.65;
}

.result-block{
  background:var(--light);
  border-radius:12px;
  padding:16px 18px;
  margin-bottom:14px;
}

.result-block.outline{
  background:#fff;
  border:1.5px solid var(--border);
}

.result-block-label{
  font-size:0.82rem;
  font-weight:700;
  color:var(--navy);
  margin-bottom:6px;
}

.result-block-text{
  font-size:0.9rem;
  color:var(--gray);
  line-height:1.6;
}

.result-transition{
  font-size:0.92rem;
  color:var(--navy);
  font-weight:500;
  margin:4px 0 22px;
  line-height:1.6;
}

.no-decide-block{
  background:#fff;
  border:1.5px solid var(--border);
  border-radius:12px;
  padding:18px 18px;
  margin-bottom:18px;
}

.no-decide-title{
  font-size:0.95rem;
  font-weight:700;
  color:var(--navy);
  margin-bottom:8px;
  line-height:1.5;
}

.no-decide-intro{
  font-size:0.88rem;
  font-weight:700;
  color:var(--gray);
  margin-bottom:8px;
}

.no-decide-item{
  font-size:0.9rem;
  color:var(--gray);
  margin-bottom:6px;
  line-height:1.55;
  padding-left:2px;
}

.no-decide-closing{
  font-size:0.9rem;
  color:var(--navy);
  font-weight:500;
  margin-top:10px;
  line-height:1.55;
}

.session-box{
  background:var(--navy);
  border-radius:14px;
  padding:20px 18px;
  color:#fff;
  margin-bottom:18px;
}

.session-box-title{
  font-size:0.92rem;
  font-weight:700;
  margin-bottom:12px;
}

.session-item{
  font-size:0.87rem;
  color:#dbe2f0;
  margin-bottom:8px;
  line-height:1.55;
}
.session-item:last-child{margin-bottom:0;}

.cta-sub{
  text-align:center;
  font-size:0.82rem;
  color:var(--gray);
  margin-top:8px;
}

.restart-link{
  text-align:center;
  margin-top:22px;
}

.restart-link a{
  font-size:0.82rem;
  color:var(--gray);
  text-decoration:underline;
  cursor:pointer;
}

@media (max-width:400px){
  .screen{padding:26px 18px 22px;}
  .start-title{font-size:1.45rem;}
}
