.hero { background: var(--ice); padding-block: 1rem 3.5rem; overflow: hidden; }
.hero__grid { display: grid; gap: 2.75rem; }
.hero h1 { font-size: clamp(2.125rem, 9.2vw, 4.25rem); line-height: 1.06; letter-spacing: -0.03em; }
.hero__lead { margin-top: 1.125rem; max-width: 34rem; font-size: 1.125rem; color: var(--navy-soft); }
.hero__actions { margin-top: 1.5rem; display: grid; gap: .75rem; }
.hero__downloads { display: grid; gap: .75rem; }
.hero__note { margin-top: .75rem; font-size: .9375rem; color: var(--navy-soft); }
.inapp { margin-top: 1rem; padding: 1rem; border-radius: .5rem; background: var(--white); font-size: .9375rem; line-height: 1.5; }
.hero__cover img {
  width: min(78%, 22rem); margin-inline: auto; border-radius: .375rem;
  transform: rotate(-2.5deg); box-shadow: 14px 14px 0 var(--cyan);
}

/* Diagnóstico */
.diag { padding-block: 4rem; scroll-margin-top: 0; }
.diag__intro p { margin-top: .75rem; max-width: 40rem; color: var(--navy-soft); }
.diag__panel { margin-top: 2rem; max-width: 46rem; scroll-margin-top: 1rem; }
.diag__noscript { padding: 1rem; border-radius: .5rem; background: var(--ice); }

.progreso { display: flex; align-items: center; gap: 1rem; font-size: .9375rem; color: var(--navy-soft); }
.progreso__barra { flex: 1; height: .375rem; border-radius: 1rem; background: var(--ice); overflow: hidden; }
.progreso__barra span { display: block; height: 100%; background: var(--cyan-ink); transition: width .25s; }

.paso { margin-top: 1.75rem; }
.paso__titulo { font-size: clamp(1.5rem, 6vw, 2.25rem); line-height: 1.15; }
.paso__titulo:focus { outline: none; }
.paso__dim { display: block; font: 600 .9375rem var(--body); color: var(--cyan-ink); letter-spacing: 0; margin-bottom: .375rem; }
.paso__mide { margin-top: .5rem; color: var(--navy-soft); }

.campo { margin-top: 1.75rem; }
.campo > legend, .campo > label { display: block; font: 500 1.125rem/1.35 var(--heading); }
.campo__ayuda { margin-top: .25rem; font-size: .9375rem; color: var(--navy-soft); }
.texto {
  display: block; width: 100%; margin-top: .5rem; min-height: 3.25rem; padding: .75rem 1rem;
  border: 2px solid var(--line); border-radius: .5rem; background: var(--white); font-size: 1.0625rem;
}
.texto:focus { border-color: var(--cyan-ink); outline: none; }

.opciones { margin-top: .75rem; display: grid; gap: .5rem; }
.opcion { position: relative; display: block; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcion span {
  display: block; padding: .875rem 1rem; border-radius: .5rem; background: var(--white);
  box-shadow: inset 0 0 0 2px var(--line); line-height: 1.35;
}
.opcion small { display: block; margin-top: .125rem; font-size: .875rem; color: var(--navy-soft); }
.opcion input:checked + span { box-shadow: inset 0 0 0 2px var(--navy); background: var(--ice); font-weight: 600; }
.opcion input:focus-visible + span { outline: 3px solid var(--cyan-ink); outline-offset: 2px; }

.afirmacion { margin-top: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.afirmacion legend { font-size: 1.0625rem; line-height: 1.45; }
.afirmacion legend b { font-family: var(--heading); color: var(--cyan-ink); margin-right: .375rem; }
.respuestas { margin-top: .75rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.respuestas .opcion span { text-align: center; padding-inline: .25rem; font-family: var(--heading); font-weight: 500; }
.respuestas .opcion input:checked + span { background: var(--navy); color: var(--white); box-shadow: none; }

.check { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.25rem; font-size: .9375rem; color: var(--navy-soft); cursor: pointer; }
.check input { margin-top: .2rem; width: 1.25rem; height: 1.25rem; flex: none; accent-color: var(--navy); }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.error { margin-top: 1rem; padding: .875rem 1rem; border-radius: .5rem; background: #FCE9E6; color: #8A2414; font-weight: 600; }
.error:empty { display: none; }

.nav { margin-top: 2rem; display: flex; gap: .75rem; }
.nav .btn { flex: 1; }
.nav .btn--outline { flex: 0 1 auto; }
.retomar { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .875rem 1rem; border-radius: .5rem; background: var(--ice); font-size: .9375rem; }
.enlace { padding: .25rem 0; border: 0; background: none; color: var(--cyan-ink); font: 600 .9375rem var(--body); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* Resultado */
.resultado:focus { outline: none; }
.resultado .resultado__titulo { margin: 0 0 1rem; text-align: center; font-size: 1.375rem; }
.resultado__medidor { max-width: 22rem; margin: 0 auto; }
.medidor__aguja { transform-origin: 150px 150px; transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.resultado__nivel { margin-top: .5rem; text-align: center; font: 700 clamp(3rem, 14vw, 4.5rem)/1 var(--heading); letter-spacing: -0.03em; }
.resultado__nivel small { font-size: .35em; font-weight: 500; letter-spacing: 0; color: var(--navy-soft); }
.resultado__banda { margin-top: .75rem; text-align: center; }
.resultado__banda span { display: inline-block; padding: .375rem .875rem; border-radius: 2rem; font: 500 .9375rem var(--heading); }
.banda--debajo { background: #FCE9E6; color: #8A2414; }
.banda--rango { background: var(--ice); color: var(--navy); }
.banda--encima { background: #E3F6EA; color: #155C33; }
.resultado__mensaje { margin-top: 1rem; text-align: center; max-width: 34rem; margin-inline: auto; }
.resultado__esperado { margin-top: .5rem; text-align: center; color: var(--navy-soft); font-size: .9375rem; }
.alerta { margin-top: 1rem; padding: 1rem; border-radius: .5rem; background: #FCE9E6; color: #8A2414; font-weight: 600; }
.resultado__aviso { margin-top: 1rem; padding: .875rem 1rem; border-radius: .5rem; background: var(--ice); font-size: .9375rem; }

.resultado h3 { margin-top: 2.5rem; font-size: 1.375rem; }
.dims { margin-top: 1rem; }
.dim { padding-block: .875rem; border-top: 1px solid var(--line); }
.dim__cab { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; }
.dim__nombre { font-weight: 600; }
.dim__nota { font-family: var(--heading); font-weight: 700; white-space: nowrap; }
.dim__pista { position: relative; margin-top: .5rem; height: .625rem; border-radius: 1rem; background: var(--ice); }
.dim__barra { position: absolute; inset: 0 auto 0 0; border-radius: 1rem; background: var(--navy); }
.dim__min { position: absolute; top: -.25rem; bottom: -.25rem; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--coral); }
.dim__estado { margin-top: .375rem; font-size: .875rem; color: var(--navy-soft); }
.estado--Prioridad { color: #8A2414; font-weight: 600; }
.estado--Fortaleza { color: #155C33; font-weight: 600; }
.dims__leyenda { margin-top: .75rem; font-size: .875rem; color: var(--navy-soft); }
.dims__leyenda i { display: inline-block; width: 3px; height: .875rem; margin-right: .375rem; vertical-align: -.125rem; background: var(--coral); border-radius: 2px; }

.prios { margin-top: 1rem; display: grid; gap: 1rem; counter-reset: prio; }
.prios li { counter-increment: prio; position: relative; padding: 1rem 1rem 1rem 3.5rem; border-radius: .5rem; background: var(--ice); }
.prios li::before {
  content: counter(prio); position: absolute; left: 1rem; top: 1rem; width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--cyan); font: 700 .9375rem var(--heading);
}
.prios b { display: block; font-family: var(--heading); font-weight: 500; }
.prios p { margin-top: .25rem; color: var(--navy-soft); font-size: .9375rem; }

.resultado__acciones { margin-top: 2rem; display: grid; gap: .75rem; }

/* Siguiente paso */
.next { background: var(--navy); color: var(--white); padding-block: 4rem; }
.next__lead { margin-top: .75rem; color: #B9CBDB; max-width: 40rem; }
.next__list { margin-top: 2rem; display: grid; gap: 1.5rem; }
.next__list h3 { font-size: 1.25rem; color: var(--cyan); }
.next__list p { margin-top: .25rem; color: #B9CBDB; max-width: 34ch; }
.next__cta { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.next__cta h3 { font-size: clamp(1.5rem, 5vw, 2rem); }
.next__cta p { margin-block: 1rem 1.5rem; color: #B9CBDB; max-width: 40rem; }
.next__cta .btn { width: 100%; }

@media (min-width: 48rem) {
  .hero__actions { display: flex; flex-wrap: wrap; }
  .hero__downloads { display: contents; }
  .opciones--2 { grid-template-columns: repeat(2, 1fr); }
  .resultado__acciones { display: flex; flex-wrap: wrap; }
  .next__list { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .next__cta .btn { width: auto; }
}

@media (min-width: 62rem) {
  .hero { padding-block: 2rem 5rem; }
  .hero__grid { grid-template-columns: 7fr 4fr; gap: 4rem; align-items: center; }
  .hero__cover img { width: 100%; box-shadow: 20px 20px 0 var(--cyan); }
  .diag, .next { padding-block: 6rem; }
}
