/* TEST PROYECTO.CL: se superpone a style-home.css sin modificar su sistema visual. */
.test-main { min-height: 38rem; padding-top: clamp(2.75rem, 6vw, 6rem);
  padding-bottom: clamp(2.75rem, 6vw, 6rem); background: radial-gradient(circle at 8% 10%,var(--color-cyan-soft),transparent 37%),var(--color-black); }
.test-layout { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); }
.test-intro { padding-top: clamp(0rem, 2vw, 1.5rem); }
.test-intro h1 { font-size: clamp(2.25rem, 3vw + 1rem, 4.2rem); letter-spacing: -.035em; margin-block: var(--space-5); }
.test-intro h1 span { color: var(--color-cyan); }
.test-lead { font-size: var(--fs-md); color: var(--color-text-muted); max-width: 38rem; line-height: var(--lh-relaxed); }
.test-highlights { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: var(--space-6); }
.test-highlights span { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .75rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: var(--fs-xs); }
.test-highlights svg { width: 1rem; height: 1rem; color: var(--color-cyan); }
.test-info { padding: var(--space-6); border-left: 2px solid var(--color-orange); background: var(--color-surface); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.test-info h2 { font-size: var(--fs-md); margin-bottom: .7rem; }
.test-info p { color: var(--color-text-muted); font-size: var(--fs-sm); }
.test-byline { margin-top: var(--space-5); color: var(--color-text-faint); font-size: var(--fs-xs); }
.test-byline strong { color: var(--color-text-muted); }
.test-interactive { min-width: 0; }
.test-panel { min-height: 27rem; border: 1px solid var(--color-border-strong); background: var(--color-surface); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3.1vw, 2.5rem); box-shadow: var(--shadow-lg); }
.test-progress { height: .45rem; background: var(--color-surface-alt); overflow: hidden; border-radius: var(--radius-full); margin-bottom: .7rem; }
.test-progress > span { display: block; height: 100%; background: var(--color-cyan); border-radius: inherit; transition: width .25s var(--ease); }
.test-count { color: var(--color-cyan); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-5); }
.test-question { font-size: var(--fs-lg); margin-bottom: .7rem; letter-spacing: -.015em; }
.test-hint { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-6); }
.test-options { display: grid; gap: .7rem; }
.test-option { display: flex; width: 100%; align-items: center; gap: .9rem; font: inherit; color: var(--color-text); text-align: left; min-height: 3.4rem; cursor: pointer; border: 1px solid var(--color-border-strong); padding: .85rem 1.05rem; background: var(--color-black-soft); border-radius: var(--radius-md); transition: border-color var(--transition-fast), background var(--transition-fast); }
.test-option:hover, .test-option:focus-visible { border-color: var(--color-cyan); background: var(--color-cyan-soft); }
.test-option-mark { display: flex; flex: 0 0 1.7rem; height: 1.7rem; align-items: center; justify-content: center; color: var(--color-cyan); font-size: .75rem; font-weight: var(--fw-bold); background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: .45rem; }
.test-back { appearance: none; border: none; background: none; padding: .4rem 0; margin-top: 1.25rem; color: var(--color-text-muted); font: inherit; font-size: var(--fs-sm); cursor: pointer; text-decoration: underline; text-underline-offset: .22rem; }
.test-back:hover { color: var(--color-white); }
.test-result-heading { font-size: var(--fs-xl); margin-bottom: .8rem; }
.test-result-text { color: var(--color-text-muted); margin-bottom: 1.5rem; }
.test-signal { display: inline-flex; padding: .4rem .8rem; border-radius: var(--radius-full); border: 1px solid var(--color-border-strong); font-weight: var(--fw-semibold); font-size: var(--fs-xs); margin-bottom: 1.3rem; }
.test-result--low .test-signal { color: #95deb1; border-color: #2f7854; background: rgba(47,120,84,.16); }
.test-result--medium .test-signal { color: #f0c16a; border-color: #a36e20; background: rgba(163,110,32,.16); }
.test-result--high .test-signal { color: #ffb6a5; border-color: #b95b4b; background: rgba(185,91,75,.16); }
.test-result h3 { font-size: var(--fs-base); margin-block: 1.1rem .55rem; }
.test-flag-list { list-style: disc; padding-left: 1.3rem; color: var(--color-text-muted); margin-bottom: 1.2rem; }
.test-flag-list li { margin-bottom: .5rem; }
.test-next-step { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: 1.6rem; }
.test-result-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.test-result-actions .btn { height: auto; min-height: var(--btn-height); text-align: center; padding-top: .7rem;
  padding-bottom: .7rem; }
.test-disclaimer { font-size: var(--fs-xs); color: var(--color-text-faint); line-height: var(--lh-relaxed); padding: 1rem .3rem 0; }
.test-mobile-menu { display: none; }
@media (max-width: 1050px) {
  .test-layout { grid-template-columns: minmax(0, 1fr); max-width: 50rem; }
  .test-intro { padding-top: 0; }
}
@media (max-width: 1039px) {
  .test-mobile-menu { display: block; position: relative; }
  .test-mobile-menu summary { list-style: none; cursor: pointer; color: var(--color-text); font-size: var(--fs-sm); padding: .55rem .6rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
  .test-mobile-menu summary::-webkit-details-marker { display: none; }
  .test-mobile-menu summary span { padding-left: .5rem; }
  .main-nav .test-mobile-menu ul { display: grid; position: absolute; right: 0; top: calc(100% + .75rem); width: min(18rem, calc(100vw - 2rem)); padding: .6rem; background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); gap: 0; z-index: 90; }
  .test-mobile-menu li a { display: block; padding: .8rem; font-size: var(--fs-sm); color: var(--color-text); border-radius: var(--radius-sm); }
  .test-mobile-menu li a:hover { background: var(--color-cyan-soft); }
}
@media (max-width: 620px) {
  /* En móviles, priorizamos la pregunta sobre el texto explicativo lateral. */
  .test-info, .test-byline { display: none; }
  .test-highlights { margin-bottom: 0; }
  .site-header .header-actions { display: none; }
  .site-header .container { justify-content: space-between; }
  .test-intro h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .test-result-actions .btn { width: 100%; }
  .test-panel { min-height: 24rem; }
}
@media (prefers-reduced-motion: reduce) {
  .test-progress > span { transition: none; }
}
