/* Test «¿Qué puede hacer solo tu hijo a su edad?» */
.test-inner { max-width: 760px; }
.test-paso h2 { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.3rem); margin: .2em 0 .8em; }
.test-paso[hidden] { display: none; }

.test-edades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.test-edades button {
  font: 600 1.6rem var(--display); color: var(--ink); background: #fff;
  border: 2px solid var(--sky); border-radius: 18px; padding: 18px 0; cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s;
}
.test-edades button:hover { transform: translateY(-2px); border-color: var(--leaf); }
.test-edades button.activo { background: var(--ink); color: var(--rose); border-color: var(--ink); }

.test-nombre { display: block; margin-top: 26px; font-weight: 600; }
.test-nombre span { font-weight: 400; color: var(--muted); }
.test-nombre input {
  display: block; width: 100%; margin-top: 8px; padding: 14px 16px; font: inherit;
  border: 2px solid var(--sky); border-radius: 14px; background: #fff; color: var(--ink);
}
.test-nombre input:focus { outline: none; border-color: var(--leaf); }

.test-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.test-lista label {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff;
  border: 2px solid var(--sky); border-radius: 16px; cursor: pointer; font-size: 1.08rem;
}
.test-lista input { width: 24px; height: 24px; accent-color: var(--leaf); flex: none; }
.test-lista label:has(input:checked) { border-color: var(--leaf); background: #fffaf0; }

.test-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.test-acciones .button { cursor: pointer; border: 0; font: inherit; }

.test-resultado { text-align: center; }
.test-marcador { position: relative; width: 180px; margin: 10px auto 6px; }
.test-marcador svg { width: 100%; transform: rotate(-90deg); }
.test-marcador circle { fill: none; stroke-width: 10; }
.test-marcador .pista { stroke: var(--sky); }
.test-marcador .avance { stroke: var(--leaf); stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.test-marcador p { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; line-height: 1; }
.test-marcador strong { font: 700 3.4rem var(--display); }
.test-marcador span { color: var(--muted); margin-top: 6px; }
#test-mensaje { font-size: 1.12rem; max-width: 560px; margin: 0 auto; }
.test-semana { margin: 28px auto 0; padding: 20px 24px; max-width: 520px; background: var(--ink); color: #fff; border-radius: 20px; text-align: left; }
.test-semana .eyebrow { color: var(--rose); margin: 0 0 8px; }
.test-semana ul { margin: 0; padding-left: 1.2em; font-size: 1.1rem; }
.test-semana li::marker { content: "★  "; color: var(--rose); }
.test-cita { margin: 28px auto 0; max-width: 560px; font-family: var(--display); font-size: 1.25rem; }
.test-cita cite { display: block; margin-top: 8px; font: .9rem var(--body); color: var(--muted); font-style: normal; }
.test-resultado .test-acciones { justify-content: center; }
.test-mas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; text-align: left; }
.test-tarjeta { display: grid; gap: 6px; align-content: start; padding: 20px; background: #fff; border: 2px solid var(--sky); border-radius: 18px; transition: border-color .15s, transform .15s; }
.test-tarjeta:hover { border-color: var(--leaf); transform: translateY(-2px); }
.test-tarjeta img { width: 70px; border-radius: 4px; box-shadow: 0 4px 12px rgba(20, 38, 74, .2); }
.test-tarjeta .eyebrow { margin: 0; }
.test-tarjeta strong { font-family: var(--display); font-size: 1.2rem; }
.test-tarjeta span:last-child { color: var(--muted); }
.test-otra { margin-top: 24px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }

@media (max-width: 640px) {
  .test-mas { grid-template-columns: 1fr; }
  .test-edades button { font-size: 1.3rem; padding: 14px 0; }
}

/* Hoja para imprimir: solo se ve en papel */
.test-hoja { display: none; }
@media print {
  @page { size: letter landscape; margin: 14mm; }
  body > *:not(.page), .page > *:not(.test-hoja) { display: none !important; }
  .test-hoja { display: block !important; color: #14264a; font-family: var(--body); }
  .hoja-cabeza { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
  .hoja-cabeza img { width: 64px; }
  .hoja-cabeza h1 { font-family: var(--display); font-size: 30pt; margin: 0; white-space: nowrap; }
  .test-hoja table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .test-hoja th, .test-hoja td { border: 2px solid #14264a; height: 15mm; font-size: 13pt; text-align: center; }
  .test-hoja th { height: 10mm; font-size: 15pt; }
  .test-hoja th:first-child, .test-hoja td:first-child { width: 42%; text-align: left; padding: 0 10px; }
  .test-hoja tr.nueva td:first-child { font-weight: 700; }
  .hoja-pie { margin-top: 10px; font-size: 10pt; text-align: right; }
}

/* Suscripción a Hey! dentro del resultado */
.test-hey { margin: 30px auto 0; padding: 22px 24px; max-width: 560px; background: #fff; border: 2px solid var(--rose); border-radius: 20px; text-align: left; }
.test-hey .eyebrow { margin: 0 0 6px; }
.test-hey p { margin: 0; }
.test-hey .newsletter { margin-top: 14px; }
.test-hey .newsletter input { color: var(--ink); background: #fff; border: 2px solid var(--sky); }
.test-hey .newsletter input::placeholder { color: var(--muted); }
.test-hey .newsletter .button { background: var(--ink); color: #fff; }
