/* =========================================================
   Autodiagnóstico · piel de la landing 1.1 (oscura con neón)
   Se carga al final: solo cambia la apariencia, no el motor.
   ========================================================= */
:root {
  --n-noche: #020C21;
  --n-noche-2: #061733;
  --n-neon: #2EE6D6;
  --n-neon-rgb: 46, 230, 214;
  --n-texto: #E7EEF3;
  --n-texto-2: #B3C1CD;
  --n-texto-3: #8B9DAE;
  --n-linea: rgba(255, 255, 255, .09);
  --n-card: rgba(255, 255, 255, .035);
  --n-ease: cubic-bezier(.18, 1, .32, 1);
  --hz-font-display: "Red Hat Display", "Segoe UI", Arial, sans-serif;
  --hz-display-tracking: -0.025em;
  --n-mono: "Red Hat Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
body.hz {
  background: radial-gradient(900px 500px at 85% -10%, rgba(var(--n-neon-rgb), .10), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(1, 151, 148, .12), transparent 60%), var(--n-noche) !important;
  color: var(--n-texto);
}
body.hz main { padding-top: clamp(16px, 3vw, 40px); }

/* Contenedor */
.hz .gh-diagnostic {
  --gh-ink: #fff; --gh-muted: var(--n-texto-2); --gh-line: var(--n-linea); --gh-soft: var(--n-card); --gh-green: var(--n-neon); --gh-green-dark: #19C7B8;
  color: var(--n-texto);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid rgba(var(--n-neon-rgb), .22);
  box-shadow: 0 0 0 1px rgba(2, 12, 33, .6), 0 30px 90px rgba(0, 0, 0, .55), 0 0 60px rgba(var(--n-neon-rgb), .07);
}
.hz .gh-diagnostic h1, .hz .gh-diagnostic h2, .hz .gh-diagnostic h3 { color: #fff; font-weight: 800; }
.hz .gh-diagnostic p { color: var(--n-texto-2); }
.hz .gh-eyebrow, .hz .gh-question-topic, .hz .gh-result-kicker, .hz .gh-card-eyebrow, .hz .gh-section-heading > div > span, .hz .gh-contact > div > span {
  font-family: var(--n-mono); font-weight: 500; letter-spacing: .14em; color: var(--n-neon) !important;
  text-shadow: 0 0 14px rgba(var(--n-neon-rgb), .45);
}

/* Botones */
.hz .gh-button { font-family: var(--hz-font-display); font-weight: 800; letter-spacing: 0; transition: transform .5s var(--n-ease), box-shadow .5s var(--n-ease), background-color .3s, border-color .3s, color .3s; }
.hz .gh-button:hover { transform: translateY(-2px); }
.hz .gh-button-primary { background: var(--n-neon); color: #02161A; box-shadow: 0 0 0 1px rgba(var(--n-neon-rgb), .6), 0 10px 40px rgba(var(--n-neon-rgb), .35); }
.hz .gh-button-primary:hover { background: #5FF0E3; box-shadow: 0 0 0 1px var(--n-neon), 0 14px 50px rgba(var(--n-neon-rgb), .5); }
.hz .gh-button-secondary, .hz .gh-button-dark { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.hz .gh-button-secondary:hover, .hz .gh-button-dark:hover { background: rgba(var(--n-neon-rgb), .08); border-color: var(--n-neon); color: var(--n-neon); }
.hz .gh-button:disabled, .hz .gh-button[disabled] { opacity: .4; }
.hz .gh-button:focus-visible, .hz .gh-review button:focus-visible, .hz .gh-result-footer button:focus-visible { outline: 2px solid var(--n-neon); outline-offset: 3px; }

/* Portada del autodiagnóstico */
.hz .gh-intro-accent {
  background: radial-gradient(circle at 50% 38%, rgba(var(--n-neon-rgb), .22), transparent 46%), radial-gradient(circle at 50% 38%, rgba(1, 151, 148, .25), transparent 70%), linear-gradient(180deg, #04172E, var(--n-noche));
  border-right: 1px solid rgba(var(--n-neon-rgb), .18);
}
.hz .gh-intro-iso { filter: drop-shadow(0 0 18px rgba(var(--n-neon-rgb), .55)) drop-shadow(0 0 2px rgba(var(--n-neon-rgb), .9)); animation: n-respira 4.5s ease-in-out infinite; }
@keyframes n-respira { 50% { filter: drop-shadow(0 0 30px rgba(var(--n-neon-rgb), .75)) drop-shadow(0 0 3px rgba(var(--n-neon-rgb), 1)); transform: translateY(-4px); } }
.hz .gh-intro-copy h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.hz .gh-intro-note { background: rgba(var(--n-neon-rgb), .06); border-color: rgba(var(--n-neon-rgb), .3); color: #CFF7F3; }
.hz .gh-intro-list li { color: var(--n-texto); }
.hz .gh-intro-list i, .hz .gh-intro-note i { color: var(--n-neon); }
.hz .gh-intro-meta { background: rgba(var(--n-neon-rgb), .08) !important; color: var(--n-neon) !important; border: 1px solid rgba(var(--n-neon-rgb), .3); font-family: var(--n-mono); font-weight: 500 !important; }
.hz .gh-privacy { color: var(--n-texto-3) !important; }

/* Isologo "del ruido a la luz" (assets/js/isologo-luz.js) */
.hz .gh-intro-accent { position: relative; overflow: hidden; }
.hz .gh-intro-luz { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hz .gh-intro-caja { display: block; width: clamp(130px, 60%, 230px); aspect-ratio: 380 / 480; visibility: hidden; }
@media (max-width: 760px) { .hz .gh-intro-caja { width: 68px; } }

/* Avance: un hilo de luz con chispa en la punta */
.hz .gh-progress-header, .hz .gh-navigation { background: transparent; border-color: var(--n-linea); }
.hz .gh-step-count { color: var(--n-texto-3); font-family: var(--n-mono); font-weight: 500; letter-spacing: .06em; }
.hz .gh-progress-track { height: 3px; overflow: visible; background: rgba(255, 255, 255, .08); }
.hz .gh-progress-track > span { position: relative; background: linear-gradient(90deg, rgba(1, 151, 148, .6), var(--n-neon)); box-shadow: 0 0 12px rgba(var(--n-neon-rgb), .7); transition: width .8s var(--n-ease); }
.hz .gh-progress-track > span::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); background: #fff; box-shadow: 0 0 6px #fff, 0 0 16px var(--n-neon), 0 0 30px var(--n-neon); }

/* Preguntas */
.hz .gh-question-content h2 { color: #fff; font-weight: 800; }
.hz .gh-helper, .hz .gh-auto-hint, .hz .gh-text-meta { color: var(--n-texto-3); }
.hz .gh-question-shell { animation: n-entra .7s var(--n-ease) both; }
@keyframes n-entra { from { opacity: 0; transform: translateY(14px); } }
.hz .gh-option-card { background: var(--n-card); border-color: rgba(255, 255, 255, .1); color: var(--n-texto); transition: border-color .3s, background-color .3s, box-shadow .4s, transform .5s var(--n-ease); }
.hz .gh-option:hover .gh-option-card { background: rgba(var(--n-neon-rgb), .06); border-color: rgba(var(--n-neon-rgb), .5); transform: translateX(4px); }
.hz .gh-option input:checked + .gh-option-card { background: rgba(var(--n-neon-rgb), .12); border-color: var(--n-neon); color: #fff; box-shadow: 0 0 0 1px var(--n-neon), 0 0 28px rgba(var(--n-neon-rgb), .22); }
.hz .gh-option input:focus-visible + .gh-option-card { outline: 2px solid var(--n-neon); }
.hz .gh-option-marker { background: rgba(255, 255, 255, .06); color: var(--n-texto-2); font-family: var(--n-mono); font-weight: 500; }
.hz .gh-option input:checked + .gh-option-card .gh-option-marker { background: var(--n-neon); color: #02161A; box-shadow: 0 0 14px rgba(var(--n-neon-rgb), .7); }
.hz .gh-option input:checked + .gh-option-card .gh-option-check { color: var(--n-neon); }
.hz .gh-text-answer label { color: var(--n-texto); }
.hz .gh-diagnostic textarea, .hz .gh-diagnostic input[type="text"], .hz .gh-diagnostic input[type="email"], .hz .gh-diagnostic input[type="tel"], .hz .gh-diagnostic select {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16); color: #fff; border-radius: 12px;
}
.hz .gh-diagnostic textarea:focus, .hz .gh-diagnostic input:focus, .hz .gh-diagnostic select:focus { border-color: var(--n-neon); outline: 2px solid rgba(var(--n-neon-rgb), .25); }
.hz .gh-diagnostic input[type="checkbox"] { accent-color: var(--n-neon); }
.hz .gh-diagnostic label { color: var(--n-texto-2); }
.hz .gh-validation { color: #FF9C8F; }
@media (max-width: 767px) { .hz .gh-navigation { background: rgba(2, 12, 33, .92); backdrop-filter: blur(10px); } }

/* Resultado */
.hz .gh-result { background: transparent; box-shadow: none; }
.hz .gh-result-header h1 { color: #fff; font-weight: 900; letter-spacing: -.035em; }
.hz .gh-result-kicker-mark { background: var(--n-neon); box-shadow: 0 0 0 .3rem rgba(var(--n-neon-rgb), .15), 0 0 12px var(--n-neon); }
.hz .gh-report-source { color: var(--n-texto-3); }
.hz .gh-size-pill, .hz .gh-section-count { background: rgba(var(--n-neon-rgb), .07); border-color: rgba(var(--n-neon-rgb), .3); color: var(--n-neon); }
.hz .gh-bento-card, .hz .gh-topic { background: var(--n-card); border-color: rgba(255, 255, 255, .09); box-shadow: none; }
.hz .gh-bento-lead { background: radial-gradient(circle at 85% 12%, rgba(var(--n-neon-rgb), .22), transparent 40%), linear-gradient(150deg, #052A33, #031327 70%); border-color: rgba(var(--n-neon-rgb), .3); box-shadow: 0 0 50px rgba(var(--n-neon-rgb), .08); }
.hz .gh-lead-copy p, .hz .gh-lead-priority small, .hz .gh-lead-footer { color: var(--n-texto-2); }
.hz .gh-lead-priority { background: rgba(255, 255, 255, .05); border-color: rgba(var(--n-neon-rgb), .25); }
.hz .gh-lead-priority span, .hz .gh-lead-top .gh-card-eyebrow { color: var(--n-neon); }
.hz .gh-lead-symbol { color: var(--n-neon); border-color: rgba(var(--n-neon-rgb), .35); }
.hz .gh-stat-value { color: #fff; font-weight: 900; }
.hz .gh-bento-stat h3 { color: var(--n-texto); }
.hz .gh-bento-stat p, .hz .gh-stat-range { color: var(--n-texto-3); }
.hz .gh-bento-high { background: linear-gradient(160deg, rgba(225, 76, 79, .14), rgba(225, 76, 79, .03)); border-color: rgba(225, 76, 79, .3); }
.hz .gh-bento-medium { background: linear-gradient(160deg, rgba(232, 160, 50, .13), rgba(232, 160, 50, .03)); border-color: rgba(232, 160, 50, .28); }
.hz .gh-bento-unknown { background: linear-gradient(160deg, rgba(96, 150, 230, .14), rgba(96, 150, 230, .03)); border-color: rgba(96, 150, 230, .3); }
.hz .gh-bento-low, .hz .gh-bento-valid, .hz .gh-bento-average { background: linear-gradient(160deg, rgba(var(--n-neon-rgb), .1), rgba(var(--n-neon-rgb), .02)); border-color: rgba(var(--n-neon-rgb), .25); }
.hz .gh-bento-high .gh-stat-value { color: #FF8F8F; text-shadow: 0 0 22px rgba(255, 110, 110, .35); }
.hz .gh-bento-medium .gh-stat-value { color: #FFC56B; text-shadow: 0 0 22px rgba(255, 190, 90, .3); }
.hz .gh-bento-unknown .gh-stat-value { color: #9CC2FF; text-shadow: 0 0 22px rgba(130, 170, 255, .3); }
.hz .gh-bento-low .gh-stat-value, .hz .gh-bento-valid .gh-stat-value { color: var(--n-neon); text-shadow: 0 0 22px rgba(var(--n-neon-rgb), .4); }
.hz .gh-bento-coverage { background: rgba(96, 150, 230, .08); border-color: rgba(96, 150, 230, .25); }
.hz .gh-bento-coverage h3 { color: #fff; }
.hz .gh-bento-coverage p, .hz .gh-bento-coverage small { color: var(--n-texto-2); }
.hz .gh-section-heading h2 { color: #fff; }
.hz .gh-section-heading p, .hz .gh-category-note, .hz .gh-response-line, .hz .gh-focus-pattern { color: var(--n-texto-3); }
.hz .gh-topic-ordinal { color: rgba(var(--n-neon-rgb), .55); font-family: var(--n-mono); }
.hz .gh-topic h3 { color: #fff; }
.hz .gh-topic-level { background: rgba(225, 76, 79, .15); color: #FFB0A8; }
.hz .gh-topic-medium .gh-topic-level { background: rgba(232, 160, 50, .15); color: #FFD28A; }
.hz .gh-topic-reported { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.hz .gh-topic-reported p { color: var(--n-texto); }
.hz .gh-topic-reported span, .hz .gh-topic-action span, .hz .gh-topic-evidence span, .hz .gh-topic-foot span { color: var(--n-texto-3); font-family: var(--n-mono); font-weight: 500; }
.hz .gh-topic-action p { color: var(--n-neon); }
.hz .gh-topic-evidence p, .hz .gh-focus-details, .hz .gh-focus-details p, .hz .gh-focus-limit { color: var(--n-texto-2); }
.hz .gh-topic-foot, .hz .gh-focus-details, .hz .gh-related-practice { border-color: var(--n-linea); }
.hz .gh-topic-foot strong { color: #fff; }
.hz .gh-related-practice h4 { color: var(--n-texto); }
.hz .gh-empty-topics, .hz .gh-report-bases, .hz .gh-report-relations, .hz .gh-report-method, .hz .gh-review { background: var(--n-card); border-color: rgba(255, 255, 255, .1); color: var(--n-texto-2); box-shadow: none; }
.hz .gh-report-gaps { background: rgba(96, 150, 230, .07); border-color: rgba(96, 150, 230, .25); color: var(--n-texto-2); }
.hz .gh-report-bases > span, .hz .gh-report-gaps > span { color: var(--n-neon); font-family: var(--n-mono); font-weight: 500; }
.hz .gh-report-gaps > span { color: #9CC2FF; }
.hz .gh-report-relations p, .hz .gh-report-method p, .hz .gh-report-relations small { color: var(--n-texto-2); }
.hz .gh-report-relations h3 { color: #fff; }
.hz .gh-report-relations article, .hz .gh-review li, .hz .gh-review[open] summary { border-color: var(--n-linea); }
.hz .gh-report-warning { background: rgba(232, 160, 50, .1); border-color: rgba(232, 160, 50, .35); color: #FFD9A0; }
.hz .gh-unknown-pill { background: rgba(96, 150, 230, .18); color: #BFD6FF; }
.hz .gh-review summary, .hz .gh-review li strong, .hz .gh-result details > summary { color: var(--n-texto); }
.hz .gh-review li small { color: var(--n-texto-3); }
.hz .gh-review button { background: transparent; border-color: rgba(255, 255, 255, .25); color: var(--n-texto); }
.hz .gh-review button:hover { border-color: var(--n-neon); color: var(--n-neon); }
.hz .gh-contact { background: radial-gradient(circle at 92% 10%, rgba(var(--n-neon-rgb), .2), transparent 35%), linear-gradient(135deg, #04223A, #020C21); border-color: rgba(var(--n-neon-rgb), .35); box-shadow: 0 0 60px rgba(var(--n-neon-rgb), .1); }
.hz .gh-contact p { color: var(--n-texto-2); }
.hz .gh-result-footer button { color: var(--n-texto-2); }
.hz .gh-result-footer button:hover { color: var(--n-neon); }
.hz .gh-result-footer p { color: var(--n-texto-3); }
.hz .gh-magic-card::before { background: radial-gradient(300px circle at var(--gh-magic-x) var(--gh-magic-y), rgba(var(--gh-magic-rgb), 1), transparent 65%); }
.hz .gh-magic-card::after { background: radial-gradient(300px circle at var(--gh-magic-x) var(--gh-magic-y), rgba(var(--gh-magic-rgb), .14), transparent 70%); }
.hz .gh-bento-average, .hz .gh-topic, .hz .gh-bento-low, .hz .gh-bento-valid { --gh-magic-rgb: var(--n-neon-rgb); }
@media (hover: hover) and (pointer: fine) { .hz .gh-magic-card:hover { box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .8), 0 0 30px rgba(var(--gh-magic-rgb), .12); } }

/* Pie de la página independiente */
.hz .hz-footer, .hz .hz-footer p { color: var(--n-texto-3); background: transparent; }
.hz .hz-header { background: rgba(2, 12, 33, .8); border-color: var(--n-linea); }

@media (prefers-reduced-motion: reduce) { .hz .gh-intro-iso, .hz .gh-question-shell { animation: none; } }

/* Entrada al autodiagnóstico: "Despeja el ruido" (assets/js/ruido.js) */
.hzn { position: fixed; inset: 0; z-index: 200; touch-action: none; background: transparent; }
.hzn canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.hzn.lista { cursor: none; }
.hzn-pincel { position: absolute; left: 0; top: 0; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; border: 1.5px solid rgba(46, 230, 214, .7); box-shadow: 0 0 30px rgba(46, 230, 214, .45), inset 0 0 20px rgba(46, 230, 214, .25); pointer-events: none; opacity: 0; transition: opacity .3s; }
.hzn.activa .hzn-pincel { opacity: 1; }
.hzn-txt { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 90vw); text-align: center; display: grid; gap: 12px; justify-items: center; pointer-events: none; transition: opacity .6s; }
.hzn-carga { font-family: var(--n-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--n-texto-2); text-shadow: 0 0 14px #020C21; transition: opacity .5s; }
.hzn-txt b { font-family: var(--hz-font-display); font-weight: 900; font-size: clamp(34px, 6vw, 68px); letter-spacing: -.035em; line-height: 1; color: #fff; text-shadow: 0 0 30px rgba(2, 12, 33, .95); opacity: 0; transform: translateY(10px); transition: opacity .7s var(--n-ease), transform .9s var(--n-ease); }
.hzn-ayuda { color: var(--n-texto-2); font-size: 16px; text-shadow: 0 0 16px #020C21; opacity: 0; transition: opacity .7s .15s; }
.hzn-mano { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--n-neon); box-shadow: 0 0 20px rgba(46, 230, 214, .6); opacity: 0; animation: hznBarre 2.2s var(--n-ease) infinite; }
@keyframes hznBarre { 0% { transform: translateX(-60px); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateX(60px); opacity: 0; } }
.hzn.lista .hzn-carga { opacity: 0; }
.hzn.lista .hzn-txt b { opacity: 1; transform: none; }
.hzn.lista .hzn-ayuda { opacity: 1; }
.hzn:not(.lista) .hzn-mano { animation: none; }
.hzn-saltar { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .25); background: rgba(2, 12, 33, .6); color: #fff; font-family: var(--hz-font-display); font-weight: 800; font-size: 14px; cursor: pointer; }
.hzn-saltar:hover { border-color: var(--n-neon); color: var(--n-neon); }
.hzn-anillo { position: fixed; z-index: 201; left: var(--x); top: var(--y); width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid var(--n-neon); box-shadow: 0 0 24px var(--n-neon); pointer-events: none; animation: hznAnillo 1.4s var(--n-ease) forwards; }
@keyframes hznAnillo { to { transform: scale(90); opacity: 0; } }
