/* Páginas que no son la portada, con el diseño nuevo (3/11/2026): el test (/test/ y /en/test/), la
   privacidad, el aviso legal, /whatsapp/ y las páginas que escribe el servidor (confirmar el correo y
   la baja de la newsletter). Se carga después de landing.css: aquí va solo lo propio de estas páginas
   y lo que de landing.css estorba en ellas. El movimiento, solo con html.mov (lo pone inicio.js si no
   se ha pedido «reducir movimiento»); sin JS o con «reducir movimiento», todo se ve quieto. */

/* ---------- Cabecera de página (banda oscura con el titular) ---------- */
.pg-cab { padding: 64px 0 72px; }
.pg-cab .wrap { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.pg-cab .h1 { max-width: 20ch; }
.pg-cab .sub { max-width: 60ch; }
.pg-fecha { margin: 0; font-size: 14px; color: var(--dsoft); }

/* ---------- Texto largo: privacidad y aviso legal ---------- */
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 68ch); gap: 64px; justify-content: center; padding: 64px 32px 104px; max-width: 1200px; margin: 0 auto; }
.indice { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.indice-t { margin: 0 0 12px; font-weight: 650; color: var(--ink); }
.indice ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.indice a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--soft); text-decoration: none; line-height: 1.35; }
.indice a:hover { color: var(--ink); border-left-color: var(--ink); }
.doc { font-size: 17px; line-height: 1.7; color: #3a3b3f; min-width: 0; }
.doc > :first-child { margin-top: 0; }
.doc h2 { font-family: var(--display); font-weight: 650; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin: 56px 0 14px; scroll-margin-top: 96px; text-wrap: balance; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 1.25em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--soft); }
.doc a { color: var(--sky-ink); text-underline-offset: 3px; }
.doc .corto { font-size: 19px; line-height: 1.6; color: var(--ink); background: var(--card); border-radius: var(--r-m); padding: 22px 24px; margin-bottom: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 16px; line-height: 1.55; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--line); }
.doc th { width: 30%; padding-right: 24px; font-weight: 650; color: var(--ink); }
.doc tr:first-child th, .doc tr:first-child td { border-top: 1px solid var(--line); }

/* ---------- /whatsapp/ y las páginas del servidor ---------- */
.pg-simple { min-height: calc(100vh - 160px); display: flex; align-items: center; }
.pg-simple .wrap { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; padding-top: 64px; padding-bottom: 96px; }
.pg-simple .h1 { max-width: 18ch; }
.pg-simple p { margin: 0; max-width: 56ch; font-size: 19px; line-height: 1.6; color: #c9cace; }
.pg-simple form { margin: 0; }
.pg-simple .lnk { color: #f4f4f2; }
.pg-pie { padding: 28px 0; font-size: 13px; color: var(--soft); }
.pg-pie .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.pg-pie a { color: var(--soft); }

/* ---------- Botón secundario (compartir, repetir) ---------- */
.btn.otro { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.otro:hover { background: var(--ink); color: #fff; }
.dark .btn.otro { color: #f4f4f2; box-shadow: inset 0 0 0 1.5px #5a5b60; }
.dark .btn.otro:hover { background: #f4f4f2; color: var(--ink); }

/* ---------- El test ---------- */
.test-pg main { display: block; }
.t-intro { padding: 72px 0 104px; }
.t-intro-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; }
.t-intro-txt { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.t-h1 { font-size: clamp(40px, 5.6vw, 72px); }
.t-h1 em { position: relative; font-style: normal; color: var(--brand); }
/* El trazo de debajo: sin non-scaling-stroke, que en Chrome corta el guion cuando la palabra es larga */
.t-h1 .trazo path { vector-effect: none; stroke-width: 2.4; }
.t-intro .sub { color: #c9cace; font-size: 20px; max-width: 34em; }
.t-datos { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; padding: 0; list-style: none; }
.t-datos li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--dsoft); }
.t-datos b { font-family: var(--display); font-size: 34px; line-height: 1; font-weight: 650; letter-spacing: -0.03em; color: #f4f4f2; }
.t-empezar { min-height: 68px; padding: 0 40px; font-size: 20px; box-shadow: 0 10px 30px -12px rgba(255, 225, 0, .55); }
/* «Sin compromiso y sin dar tu correo para ver el resultado» (4/11/2026) */
.t-sin { display: inline-flex; align-items: center; gap: 10px; margin: -8px 0 0; font-size: 16px; font-weight: 600; color: #f4f4f2; }
.t-sin svg { flex-shrink: 0; color: var(--brand); }
.t-vista { position: relative; margin: 0; color: var(--dsoft); }
.t-vista svg { width: 100%; height: auto; display: block; }
.t-vista .base { fill: none; stroke: var(--dline); stroke-width: 14; stroke-linecap: round; }
.t-vista .marcas { fill: none; stroke: #3a3b3f; stroke-width: 2; stroke-linecap: round; }
.t-vista figcaption { margin-top: 14px; text-align: center; font-size: 15px; }
.t-vista .q { font-family: var(--display); font-weight: 650; font-size: 64px; fill: var(--brand); }

/* Una pregunta por pantalla */
.t-pregunta { padding: 48px 0 96px; min-height: calc(100vh - 72px); }
.t-preg-in { max-width: 880px; }
.t-progreso { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; }
.t-cuenta { font-weight: 650; font-size: 15px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-barra { position: relative; flex: 1; height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.t-barra i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: var(--ink); transition: width .45s var(--ease); }
.t-campo { border: 0; margin: 0; padding: 0; min-width: 0; }
.t-q { display: block; padding: 0; margin: 0 0 32px; font-family: var(--display); font-weight: 650; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.t-q:focus { outline: none; }
.t-opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.t-opcion { display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 18px 22px; border-radius: 18px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 18px; font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s var(--ease); }
.t-opcion:hover { border-color: var(--ink); }
.t-opcion:active { transform: scale(.985); }
.t-opcion[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #141400; }
.t-letra { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--soft); border: 1.5px solid var(--line); }
.t-opcion[aria-pressed="true"] .t-letra { color: #141400; border-color: #141400; }
.t-atras { margin-top: 28px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* El resultado */
.t-res-cab { padding: 64px 0 80px; }
.t-res-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.t-medidor { position: relative; margin: 0; max-width: 440px; width: 100%; justify-self: center; }
.t-medidor svg { display: block; width: 100%; height: auto; overflow: visible; }
.t-arco-base { fill: none; stroke: var(--dline); stroke-width: 14; stroke-linecap: round; }
.t-arco { fill: none; stroke: var(--brand); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 0 100; }
[data-nivel="ok"] .t-arco, [data-nivel="medio"] .t-arco { stroke: var(--sky); }
.t-cifra { position: absolute; left: 0; right: 0; bottom: 4%; margin: 0; text-align: center; font-family: var(--mono); font-weight: 600; font-size: clamp(64px, 9vw, 104px); line-height: 1; letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.t-cifra small { font-size: .42em; margin-left: .06em; color: var(--dsoft); }
.t-res-txt { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.t-frase { margin: 0; font-size: 15px; font-weight: 600; color: var(--dsoft); }
.t-nivel { margin: 0; font-family: var(--display); font-weight: 650; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.035em; color: #fff; text-wrap: balance; }
[data-nivel="alto"] .t-nivel, [data-nivel="muy"] .t-nivel { color: var(--brand); }
.t-nivel-texto { margin: 0; font-size: 19px; line-height: 1.55; color: #c9cace; max-width: 34em; }
.t-orientativo { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--dsoft); max-width: 46em; }
.dark a.t-ir-correo { margin-top: 4px; font-weight: 650; color: var(--brand); text-underline-offset: 4px; }
.dark a.t-ir-correo:hover { color: #fff; }

.t-tareas { padding: 80px 0; }
.t-tareas .h2 { max-width: 22ch; margin-bottom: 36px; }
.t-fallos { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.t-fallo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: stretch; }
.t-fallo p { margin: 0; padding: 20px 22px; border-radius: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.5; }
.t-fallo b { font-size: 13px; font-weight: 650; }
.t-hoy { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.t-hoy b { color: var(--soft); }
.t-con { background: var(--ink); color: #f4f4f2; }
.t-con b { color: var(--brand); }
.t-flecha { align-self: center; justify-self: center; width: 22px; height: 22px; background: var(--ink); -webkit-mask: var(--flecha) center / contain no-repeat; mask: var(--flecha) center / contain no-repeat; }
.t-empieza { position: absolute; top: -11px; left: 18px; z-index: 1; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #141400; }
.t-fallo:has(.t-empieza) { margin-top: 10px; }
.t-sinfallos { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-size: 17px; }
.t-mas { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-weight: 650; cursor: pointer; }
.t-mas:hover { background: var(--ink); color: #fff; }

/* «Te mando tu resultado por correo» (4/11/2026): la banda amarilla, encima de la auditoría */
.t-correo { padding: 80px 0; background: var(--brand); color: #141400; scroll-margin-top: 72px; }
.t-correo:focus { outline: none; }
.t-correo-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.t-correo-txt { display: flex; flex-direction: column; gap: 16px; }
.t-correo-eti { margin: 0; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: #141400; color: var(--brand); font-size: 13px; font-weight: 700; }
.t-correo .h2 { color: #141400; max-width: 20ch; text-wrap: balance; }
.t-correo-txt > p:last-child { margin: 0; font-size: 18px; line-height: 1.55; color: #3d3a00; max-width: 32em; }
.t-correo-form { box-shadow: 0 24px 48px -28px rgba(20, 20, 0, .45); }
.t-correo-form .campo { font-size: 14px; font-weight: 600; color: var(--ink); }
.t-correo-form .campo input { min-height: 54px; font-size: 17px; }
.t-correo-form .btn { min-height: 56px; font-size: 17px; }
.t-correo .hecho { box-shadow: 0 24px 48px -28px rgba(20, 20, 0, .45); }
.t-aud-eti { margin: 0; font-size: 14px; font-weight: 650; color: var(--brand); }

.t-aud { padding: 88px 0; }
.t-aud-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.t-aud-txt { display: flex; flex-direction: column; gap: 18px; }
.t-aud-txt p { margin: 0; font-size: 18px; line-height: 1.6; color: #c9cace; max-width: 32em; }
.t-aud .form .campos > .campo:last-child:nth-child(odd) { grid-column: 1 / -1; }

.t-pie { padding: 48px 0 72px; }
.t-pie .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.t-compartir { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.t-compartir span { font-weight: 600; margin-right: 6px; }
.t-compartir .btn, .t-pie .btn { min-height: 44px; }

/* ---------- Movimiento (solo con html.mov) ---------- */
@keyframes ll-palabra { from { transform: translate3d(0, 108%, 0); } to { transform: none; } }
@keyframes ll-brillo { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes ll-trazar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ll-ya { to { opacity: 1; } }
@keyframes ll-sube { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* Hasta que el JS parte el titular en palabras, no se ve (si el JS no llega, sale a los 2,5 s) */
  .mov:not(.mov-listo) h1[data-palabras] { opacity: 0; animation: ll-ya 0s 2.5s forwards; }
  .mov h1[data-palabras] .pal { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .06em .16em; margin-block: -.06em -.16em; }
  .mov h1[data-palabras] .pal > * { display: inline-block; animation: ll-palabra 1s var(--ease) both; animation-delay: calc(var(--i) * 75ms + 120ms); }
  /* La palabra resaltada: un barrido de luz, una sola vez */
  .mov h1[data-palabras] .pal > em {
    background: linear-gradient(100deg, var(--brand) 42%, #fffbe0 50%, var(--brand) 58%) 100% 0 / 260% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: ll-palabra 1s var(--ease) both, ll-brillo 2.4s var(--ease) both;
    animation-delay: calc(var(--i) * 75ms + 120ms), 1.5s;
  }
  /* El trazo de debajo, después */
  .mov h1[data-palabras] .trazo path { animation: ll-trazar .9s var(--ease) 1.2s both; }
  .mov .t-intro .sub, .mov .t-intro .t-datos, .mov .t-intro .t-sin, .mov .t-intro .t-empezar, .mov .t-vista { animation: ll-sube .8s var(--ease) both; }
  .mov .t-intro .sub { animation-delay: .55s; }
  .mov .t-intro .t-datos { animation-delay: .7s; }
  .mov .t-intro .t-sin { animation-delay: .78s; }
  .mov .t-intro .t-empezar { animation-delay: .85s; }
  .mov .t-vista { animation-delay: .5s; }
  .mov .t-pregunta.entra .t-campo { animation: ll-sube .45s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  .t-barra i, .t-opcion { transition: none; }
}

/* ---------- Tableta ---------- */
@media (max-width: 1100px) {
  .doc-grid { grid-template-columns: 200px minmax(0, 68ch); gap: 40px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  .pg-cab { padding: 40px 0 48px; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px 16px 72px; }
  .indice { position: static; background: var(--card); border-radius: var(--r-m); padding: 18px 20px; }
  .indice ol { border-left: 0; }
  .indice a { padding: 8px 0; border-left: 0; margin-left: 0; min-height: 36px; }
  .doc { font-size: 17px; }
  .doc h2 { font-size: 23px; margin-top: 44px; }
  .doc .corto { font-size: 17px; padding: 18px; }
  /* Las tablas de dos columnas, una fila debajo de otra */
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: 100%; }
  .doc tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .doc tr:first-child { border-top: 1px solid var(--line); }
  .doc th, .doc td { padding: 0; border: 0 !important; }
  .doc th { margin-bottom: 4px; font-size: 14px; }
  .pg-simple .wrap { padding-top: 40px; padding-bottom: 64px; }
  .pg-simple p { font-size: 17px; }

  .t-intro { padding: 40px 0 64px; }
  .t-intro-in, .t-res-in, .t-aud-in, .t-correo-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .t-h1 { font-size: 40px; }
  .t-intro .sub { font-size: 17px; }
  .t-datos { gap: 12px 28px; }
  .t-datos b { font-size: 28px; }
  .t-empezar { width: 100%; min-height: 64px; font-size: 19px; }
  .t-sin { font-size: 15px; align-items: flex-start; }
  .t-correo { padding: 56px 0; }
  .t-correo-in { gap: 28px; }
  .t-correo-txt > p:last-child { font-size: 17px; }
  .t-vista { display: none; }
  .t-pregunta { padding: 28px 0 64px; }
  .t-progreso { margin-bottom: 28px; }
  .t-q { font-size: 26px; margin-bottom: 24px; }
  .t-opciones { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .t-opcion { min-height: 64px; padding: 14px 16px; font-size: 17px; }
  .t-res-cab { padding: 40px 0 56px; }
  .t-medidor { max-width: 320px; }
  .t-tareas, .t-aud { padding: 56px 0; }
  .t-fallo { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 36px auto; }
  .t-flecha { transform: rotate(90deg); }
  .t-pie .wrap { flex-direction: column; align-items: flex-start; }
}
