/* NodoStudio — Diagnóstico gratis (v1) */
.dg-main { min-height: 80vh; padding: clamp(40px, 7vw, 96px) 0; position: relative; z-index: 1; }
.dg-wrap { max-width: 760px; margin: 0 auto; padding-inline: var(--gut); }
.dg-card { background: rgba(14,15,18,.86); border: 1px solid var(--linea); border-radius: 20px; padding: clamp(24px, 5vw, 48px); box-shadow: 0 40px 80px -40px rgba(37,99,255,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dg-card h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.05; }
.dg-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 6px; }
.dg-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--cielo); font-weight: 600; font-size: .95rem; margin-bottom: 18px; }
.dg-kicker .sphere { width: 14px; height: 14px; }
.dg-lead { margin-top: 18px; color: #c3c7cf; font-size: 1.12rem; }
.dg-sub { margin-top: 8px; color: var(--niebla); }
.dg-points { list-style: none; padding: 0; margin: 26px 0 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--tiza); font-weight: 500; }
.dg-points li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--nodo); margin-right: 9px; transform: translateY(-2px); box-shadow: 0 0 10px rgba(37,99,255,.8); }

.dg-progress { height: 6px; border-radius: 99px; background: var(--linea); overflow: hidden; margin-bottom: 18px; }
.dg-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--nodo), var(--cielo)); border-radius: inherit; transition: width .4s; }
.dg-step { color: var(--niebla); font-size: .9rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 6px; }

.dg-field { margin-top: 26px; }
.dg-q { font-weight: 600; margin-bottom: 12px; }
.dg-input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid #33363e; background: #0a0b0e; color: var(--tiza); font: inherit; }
.dg-input:focus { outline: none; border-color: var(--nodo); box-shadow: 0 0 0 3px rgba(37,99,255,.25); }
.dg-field > .dg-input + .dg-input { margin-top: 12px; }
.dg-other { margin-top: 12px; }
.dg-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.dg-chip { position: relative; cursor: pointer; }
.dg-chip input { position: absolute; opacity: 0; pointer-events: none; }
.dg-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid #33363e; color: #c3c7cf; transition: border-color .15s, background-color .15s, color .15s; }
.dg-chip:hover span { border-color: var(--tiza); color: var(--tiza); }
.dg-chip input:checked + span { background: var(--nodo); border-color: var(--nodo); color: #fff; }
.dg-chip input:focus-visible + span { outline: 2px solid var(--cielo); outline-offset: 2px; }
.dg-row { padding: 18px 0; border-bottom: 1px solid var(--linea); }
.dg-row:first-child { padding-top: 0; }
.dg-error { color: #ff8a8a; min-height: 1.4em; margin-top: 18px; font-weight: 500; }
.dg-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.dg-nav .btn { min-width: 130px; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }

.dg-level { margin-top: 6px; font-size: clamp(2.6rem, 7vw, 4.2rem) !important; }
.dg-level span { display: block; font-size: .42em; color: var(--cielo); letter-spacing: -0.01em; margin-top: 8px; }
.dg-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.dg-meter span { height: 10px; border-radius: 99px; background: var(--linea); }
.dg-meter span.on { background: linear-gradient(90deg, var(--nodo), var(--cielo)); box-shadow: 0 0 16px rgba(37,99,255,.55); }
.dg-result h2 { margin-top: 40px; }
.dg-help { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.dg-help li { padding: 18px 20px; border: 1px solid var(--linea); border-radius: 14px; background: rgba(37,99,255,.05); }
.dg-help h3 { font-size: 1.12rem; margin-bottom: 6px; }
.dg-help p { color: #c3c7cf; }
.dg-next { margin: 32px 0 24px; padding: 22px 24px; border-radius: 14px; border: 1px solid rgba(37,99,255,.45); background: rgba(37,99,255,.08); }
.dg-next h3 { font-size: 1.2rem; margin-bottom: 8px; }
.dg-next p { color: #c3c7cf; }

.dg-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dg-status { margin-top: 12px; font-weight: 600; color: var(--niebla); }
.dg-status.ok { color: #7ee2a8; }
.dg-status.err { color: #ff8a8a; }

@media (max-width: 640px) {
  .dg-nav .btn { min-width: 0; flex: 1; }
  .dg-chip span { min-height: 42px; padding: 8px 14px; }
}
