/* Diagnóstico gratuito — asistente paso a paso. Tema claro (blancos y grises) con el estilo nuevo de diciembre 2026 */
.dx { background: radial-gradient(900px 480px at 88% -8%, rgba(86,189,246,.18), transparent 62%), linear-gradient(180deg, #ffffff 0, #f4f6f8 100%); color: #21254e; padding: 40px 0 88px; min-height: 78vh; }
.dx__wrap { width: min(100% - 32px, 820px); margin-inline: auto; }

/* ── Intro ── */
.dx-intro { display: grid; gap: 22px; padding-top: 24px; }
.dx-intro__eyebrow { justify-self: start; padding: 6px 12px; border-radius: 6px; background: #ffb547; color: #21254e; font: 700 11px Montserrat, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.dx-intro h1 { font-family: var(--we-font-display); font-weight: 300; font-size: clamp(1.7rem, 4.2vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; margin: 0; color: #21254e; text-wrap: balance; overflow-wrap: break-word; }
.dx-intro p { margin: 0; max-width: 58ch; color: #4e5573; line-height: 1.7; font-weight: 300; font-size: var(--we-text-lg); }
.dx-facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.dx-facts li { padding: 8px 16px; border-radius: var(--we-r-full); border: 1px solid rgba(33,37,78,.12); background: #ffffff; color: #21254e; font-size: var(--we-text-sm); font-weight: 700; }
.dx-note { font-size: var(--we-text-sm); color: #6b7088; max-width: 62ch; line-height: 1.6; }
.dx-route { display: flex; align-items: center; gap: 0; margin-top: 4px; flex-wrap: wrap; row-gap: 10px; }
.dx-route span { font-size: var(--we-text-xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #4e5573; display: inline-flex; align-items: center; }
.dx-route span + span::before { content: ''; width: 22px; height: 2px; background: var(--we-blue); margin: 0 10px; opacity: .6; }

/* ── Progreso: ruta con 5 estaciones ── */
.dx-prog { position: sticky; top: 72px; z-index: 5; padding: 14px 0 10px; margin: 0 0 22px; background: linear-gradient(180deg, rgba(250,251,252,.96) 72%, rgba(250,251,252,0)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dx-prog__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--we-text-sm); margin-bottom: 14px; }
.dx-prog__sec { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #00a0d6; font-size: var(--we-text-xs); }
.dx-prog__count { color: #4e5573; font-variant-numeric: tabular-nums; }
.dx-prog__count b { color: #21254e; font-size: var(--we-text-lg); }
.dx-track { position: relative; height: 10px; border-radius: var(--we-r-full); background: #dfe4e8; margin: 0 12px; }
.dx-track__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #00a0d6, #56bdf6); box-shadow: 0 0 14px rgba(0,160,214,.35); transition: width .55s cubic-bezier(.22,.9,.3,1); }
.dx-track__dot { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--we-white); border: 4px solid var(--we-blue); transform: translate(-50%, -50%); transition: left .55s cubic-bezier(.22,.9,.3,1); box-shadow: 0 0 0 0 rgba(14,171,217,.6); animation: dxPulse 2.2s infinite; }
@keyframes dxPulse { 0% { box-shadow: 0 0 0 0 rgba(14,171,217,.55); } 70% { box-shadow: 0 0 0 12px rgba(14,171,217,0); } 100% { box-shadow: 0 0 0 0 rgba(14,171,217,0); } }
.dx-stations { position: relative; display: flex; justify-content: space-between; margin: 10px 0 0; padding: 0; list-style: none; }
.dx-st { flex: 1 1 0; text-align: center; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #9aa1b5; transition: color .3s; line-height: 1.3; padding: 0 2px; }
.dx-st::before { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; margin: 0 auto 6px; background: #d3d9e0; transition: background .3s, transform .3s; }
.dx-st.is-done { color: #4e5573; } .dx-st.is-done::before { background: var(--we-blue); }
.dx-st.is-now { color: #21254e; } .dx-st.is-now::before { background: #21254e; transform: scale(1.35); box-shadow: 0 0 0 4px rgba(14,171,217,.45); }

/* ── Tarjeta de pregunta ── */
.dx-card { background: var(--we-white); color: var(--we-ink); border-radius: 22px; padding: clamp(24px, 5vw, 48px); box-shadow: 0 24px 60px -24px rgba(33,37,78,.22); border: 1px solid rgba(33,37,78,.06); position: relative; overflow: hidden; }
.dx-card::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 6px; background: linear-gradient(90deg, #00a0d6, #56bdf6 60%, #ffb547); }
.dx-q { display: grid; gap: 22px; animation: dxIn .42s cubic-bezier(.22,.9,.3,1) both; }
.dx-q.is-back { animation-name: dxInBack; }
@keyframes dxIn { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes dxInBack { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
.dx-q__kicker { display: flex; align-items: center; gap: 14px; }
.dx-q__num { font-family: var(--we-font-display); font-weight: 700; font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1; color: var(--we-blue); }
.dx-q__blurb { margin: 0; font-size: var(--we-text-sm); color: var(--we-gray); font-weight: 700; letter-spacing: .04em; border-left: 3px solid var(--we-blue-100); padding-left: 14px; }
.dx-q__title { margin: 0; font-family: var(--we-font-display); font-weight: 700; font-size: clamp(1.2rem, 3.6vw, 1.75rem); line-height: 1.28; color: var(--we-ink); text-wrap: balance; overflow-wrap: break-word; }
.dx-q__title:focus { outline: none; }
.dx-q__hint { margin: -10px 0 0; font-size: var(--we-text-sm); color: var(--we-gray); }

.dx-opts { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.dx-opt { position: relative; }
.dx-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.dx-opt label { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 2px solid var(--we-gray-200); border-radius: 14px; font-weight: 700; font-size: var(--we-text-base); color: var(--we-ink); background: var(--we-white); transition: border-color .18s, background .18s, transform .18s, box-shadow .18s; min-height: 58px; line-height: 1.3; }
.dx-opt label::before { content: ''; flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--we-gray-400); background: var(--we-white); transition: all .18s; }
.dx-multi .dx-opt label::before { border-radius: 6px; }
.dx-opt:hover label { border-color: var(--we-blue); transform: translateY(-1px); box-shadow: var(--we-shadow-sm); }
.dx-opt input:focus-visible + label { outline: 3px solid var(--we-focus); outline-offset: 2px; }
.dx-opt input:checked + label { border-color: var(--we-blue); background: var(--we-blue-50); box-shadow: 0 0 0 3px rgba(14,171,217,.2); }
.dx-opt input:checked + label::before { background: var(--we-blue) radial-gradient(circle, var(--we-white) 34%, transparent 38%); border-color: var(--we-blue); }
.dx-multi .dx-opt input:checked + label::before { background: var(--we-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.dx-key { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--we-gray-400); border: 1px solid var(--we-gray-200); border-radius: 6px; padding: 1px 7px; }

.dx-fields { display: grid; gap: 14px; }
.dx-field { display: grid; gap: 6px; font-weight: 700; font-size: var(--we-text-sm); color: var(--we-navy); }
.dx-field input, .dx-field textarea { font: inherit; font-weight: 400; font-size: var(--we-text-base); color: var(--we-ink); padding: 14px 16px; border: 2px solid var(--we-gray-200); border-radius: 12px; background: var(--we-white); width: 100%; box-sizing: border-box; transition: border-color .18s, box-shadow .18s; }
.dx-field textarea { min-height: 120px; resize: vertical; }
.dx-field input:focus, .dx-field textarea:focus { outline: none; border-color: var(--we-blue); box-shadow: 0 0 0 4px rgba(14,171,217,.2); }
.dx-field.is-bad input { border-color: #B3261E; }
.dx-err { margin: 0; min-height: 1.3em; color: #B3261E; font-weight: 700; font-size: var(--we-text-sm); }

.dx-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.dx-back { background: none; border: none; font: inherit; font-weight: 700; color: var(--we-blue-700); cursor: pointer; padding: 10px 4px; }
.dx-back:hover { text-decoration: underline; } .dx-back[hidden] { display: none; }
.dx-hintkeys { font-size: var(--we-text-xs); color: var(--we-gray-400); }

/* ── Consentimiento y cierre ── */
.dx-consent { display: grid; gap: 16px; }
.dx-check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--we-text-sm); line-height: 1.55; color: var(--we-ink); cursor: pointer; padding: 14px 16px; border: 2px solid var(--we-gray-200); border-radius: 12px; }
.dx-check input { flex: 0 0 22px; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--we-blue-700); }
.dx-check:has(input:checked) { border-color: var(--we-blue); background: var(--we-blue-50); }
.dx-done { text-align: center; display: grid; gap: 18px; justify-items: center; padding: 8px 0; animation: dxIn .5s both; }
.dx-done__badge { width: 84px; height: 84px; border-radius: 50%; background: var(--we-blue); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(14,171,217,.18); }
.dx-done__badge svg { width: 44px; height: 44px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: dxTick .7s .25s forwards; }
@keyframes dxTick { to { stroke-dashoffset: 0; } }
.dx-done h2 { margin: 0; font-family: var(--we-font-display); font-weight: 700; font-size: clamp(1.3rem, 4vw, 1.9rem); line-height: 1.2; color: var(--we-ink); text-wrap: balance; }
.dx-done p { margin: 0; max-width: 52ch; line-height: 1.7; color: var(--we-gray); font-size: var(--we-text-lg); font-weight: 300; }
.dx-done__sig { font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: var(--we-text-sm); color: var(--we-blue-700); }
.dx-status { margin: 0; min-height: 1.4em; font-weight: 700; font-size: var(--we-text-sm); color: var(--we-blue-700); }

.dx-hp { position: absolute; left: -9999px; }

@media (max-width: 640px) {
  .dx { padding-top: 24px; }
  .dx-prog { position: static; background: none; }
  .dx-opts { grid-template-columns: 1fr; }
  .dx-st { font-size: 0; } .dx-st.is-now { font-size: 11px; position: relative; }
  .dx-st.is-now { flex: 2 1 0; }
  .dx-hintkeys { display: none; }
  .dx-key { display: none; }
  .dx-nav .we-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-q, .dx-done, .dx-done__badge svg { animation: none; stroke-dashoffset: 0; }
  .dx-track__fill, .dx-track__dot { transition: none; animation: none; }
}
