/* Página /diagnostico: cuestionario ERP (usa los tokens y componentes del sitio) */
.dg { background: #000; color: #fff; min-height: 100vh; padding: 130px 0 96px; position: relative; overflow: hidden; }
.dg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 92% 0%, rgba(155, 233, 22, .12), transparent 34%), radial-gradient(circle at 0% 100%, rgba(155, 233, 22, .07), transparent 34%); pointer-events: none; }
.dg > .wrap { position: relative; }
.dg-screen { display: none; }
.dg-screen.is-active { display: block; animation: dg-in .45s var(--ease); }
@keyframes dg-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Pantalla 1: presentación + formulario */
.dg-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.dg-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--lime); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.dg-kicker::before { content: ''; width: 28px; height: 2px; background: var(--lime); }
.dg h1 { margin: 16px 0 18px; font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 600; color: #fff; }
.dg h1 span { color: var(--lime); }
.dg-lead { max-width: 56ch; color: #c9cec9; margin: 0 0 26px; }
.dg-bullets { display: grid; gap: 12px; margin: 0; padding: 0; }
.dg-bullets li { display: flex; align-items: center; gap: 12px; color: #c9cec9; font-size: .9375rem; }
.dg-bullets .ic { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: rgba(155, 233, 22, .14); color: var(--lime); flex: none; }
.dg-card { border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.dg-form-card { padding: 30px; }
.dg-form-card h2 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 600; color: #fff; }
.dg-hint { margin: 0 0 20px; color: #9aa39a; font-size: .8125rem; line-height: 1.55; }
.dg-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.dg-form > .full, .dg-form > .dg-err, .dg-form > .dg-send { grid-column: 1 / -1; }
.dg-send { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 4px; }
.dg-send small { color: #8a938a; font-size: .75rem; text-align: center; }
.dg-err { display: none; margin: 0; padding: 10px 14px; border-radius: 8px; background: rgba(255, 107, 90, .14); border: 1px solid #ff8a7a; color: #ffc2b8; font-size: .8125rem; }
.dg-err.show { display: block; }

/* Pantalla 2: preguntas */
.dg-quiz { max-width: 920px; margin-inline: auto; overflow: hidden; }
.dg-top { padding: 22px 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.dg-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #9aa39a; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.dg-progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.dg-progress span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--lime); box-shadow: 0 0 14px rgba(155, 233, 22, .5); transition: width .45s var(--ease); }
.dg-q { padding: 38px; }
.dg-q.animate { animation: dg-in .4s var(--ease); }
.dg-num { margin-bottom: 10px; color: var(--lime); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.dg-q h2 { margin: 0 0 12px; color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
.dg-desc { max-width: 70ch; margin: 0 0 26px; color: #a6afa6; font-size: .9375rem; line-height: 1.65; }
.dg-opts { display: grid; gap: 12px; }
.dg-opt { display: block; width: 100%; text-align: left; padding: 17px 20px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; background: rgba(255, 255, 255, .03); color: #e4e8e4; cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease), box-shadow .25s; }
.dg-opt strong { display: block; margin-bottom: 4px; color: #fff; font-size: 1rem; font-weight: 600; }
.dg-opt small { display: block; color: #98a198; font-size: .8125rem; line-height: 1.45; }
.dg-opt:hover { border-color: rgba(155, 233, 22, .6); background: rgba(155, 233, 22, .06); transform: translateY(-2px); }
.dg-opt.selected { border-color: var(--lime); background: rgba(155, 233, 22, .12); box-shadow: inset 0 0 0 1px rgba(155, 233, 22, .3); }
.dg-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.dg-foot .status { color: #7f887f; font-size: .75rem; }

/* Pantalla 3: resultado */
.dg-res-intro { max-width: 820px; margin: 0 auto 34px; text-align: center; }
.dg-badge { display: inline-block; padding: 7px 14px; border: 1px solid rgba(155, 233, 22, .35); border-radius: 99px; background: rgba(155, 233, 22, .08); color: var(--lime); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.dg-res-intro h2 { margin: 16px 0 12px; color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); line-height: 1.04; font-weight: 600; letter-spacing: -.03em; }
.dg-res-intro p { margin: 0; color: #a6afa6; line-height: 1.65; }
.dg-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dg-rc { padding: 26px; }
.dg-rc h3 { margin: 0 0 6px; color: #fff; font-size: 1.125rem; font-weight: 600; }
.dg-rc .sub { margin: 0 0 18px; color: #98a198; font-size: .8125rem; line-height: 1.55; }
.dg-score { color: var(--lime); font-size: 4.5rem; line-height: .95; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dg-score small { color: #7f887f; font-size: 1.375rem; letter-spacing: 0; font-weight: 500; }
.dg-meter { height: 10px; margin: 18px 0 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.dg-meter span { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--lime), #c9ff6a); transition: width 1.1s var(--ease); }
.dg-labels { display: flex; justify-content: space-between; color: #707970; font-size: .6875rem; }
.dg-chart { display: grid; gap: 16px; margin-top: 20px; }
.dg-bar { display: grid; grid-template-columns: 170px 1fr 48px; gap: 12px; align-items: center; }
.dg-bar label { color: #d4d9d4; font-size: .8125rem; }
.dg-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.dg-track span { display: block; width: 0; height: 100%; border-radius: 99px; background: var(--lime); transition: width 1.1s var(--ease); }
.dg-bar b { color: var(--lime); font-size: .8125rem; text-align: right; font-variant-numeric: tabular-nums; }
.dg-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.dg-ins { padding: 22px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(255, 255, 255, .03); transition: transform .35s var(--ease), border-color .3s; }
.dg-ins:hover { transform: translateY(-4px); border-color: rgba(155, 233, 22, .5); }
.dg-ins .n { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 8px; background: rgba(155, 233, 22, .14); color: var(--lime); font-size: .6875rem; font-weight: 700; }
.dg-ins h4 { margin: 0 0 8px; color: #fff; font-size: 1rem; font-weight: 600; }
.dg-ins p { margin: 0; color: #9aa39a; font-size: .8125rem; line-height: 1.6; }
.dg-detail { margin-top: 18px; }
.dg-detail p, .dg-detail li { color: #b4bdb4; font-size: .9375rem; line-height: 1.75; }
.dg-detail ul { margin: 12px 0 0; padding-left: 1.2em; list-style: disc; }
.dg-detail li::marker { color: var(--lime); }
.dg-cta { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-top: 20px; padding: 30px; border: 1px solid rgba(155, 233, 22, .35); border-radius: 12px; background: linear-gradient(135deg, rgba(155, 233, 22, .14), rgba(255, 255, 255, .03)); }
.dg-cta h3 { margin: 0 0 6px; color: #fff; font-size: 1.5rem; font-weight: 600; }
.dg-cta p { margin: 0; max-width: 64ch; color: #b4bdb4; font-size: .9375rem; line-height: 1.6; }
.dg-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dg-restart { display: block; margin: 22px auto 0; background: none; border: 0; color: #8a938a; font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dg-restart:hover { color: var(--lime); }

@media (max-width: 960px) {
    .dg { padding: 110px 0 64px; }
    .dg-intro { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .dg-grid2, .dg-insights { grid-template-columns: minmax(0, 1fr); }
    .dg-cta { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
    .dg-form { grid-template-columns: minmax(0, 1fr); }
    .dg-form-card { padding: 22px 18px; }
    .dg-q { padding: 24px 18px; } .dg-top { padding: 18px; }
    .dg-foot { flex-direction: column-reverse; align-items: stretch; }
    .dg-bar { grid-template-columns: 110px 1fr 42px; }
    .dg-score { font-size: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) { .dg-screen.is-active, .dg-q.animate { animation: none; } .dg-meter span, .dg-track span, .dg-progress span { transition: none; } }

/* Contenido centrado verticalmente en la pantalla */
.dg { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; padding: 80px 0; }
.dg > .wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
@media (max-width: 960px) { .dg { justify-content: flex-start; } }
