/* Test "¿Qué oposición te encaja?" — diseño plano (sin sombras, gradientes ni blur). */
.tq {
  --tq-forest: #0F3D2E; --tq-cream: #FAF6F0; --tq-sand: #EFE8D9;
  --tq-espresso: #1C1815; --tq-terracotta: #C15F3C; --tq-terracotta-dark: #A14F32;
  --tq-sage: #D4F0DF;
  padding: 88px 16px 56px;
  background: var(--tq-forest);
  color: var(--tq-cream);
  min-height: 85vh;
}
.tq-wrap { max-width: 1120px; margin: 0 auto; }
.tq-intro { text-align: center; margin-bottom: 28px; }
.tq-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tq-sage); margin: 0 0 8px; }
.tq-intro h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; margin: 0 0 12px; color: var(--tq-cream); }
.tq-lead { max-width: 560px; margin: 0 auto; color: rgba(250,246,240,.8); line-height: 1.55; }

.tq-layout { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .tq-layout { grid-template-columns: 1.05fr 1fr; gap: 32px; } }

/* En móvil la pregunta va primero y el tablero debajo. */
@media (max-width: 899px) { .tq-card { order: -1; } }

/* ---------- Tablero de fichas ---------- */
.tq-board { border: 1px solid rgba(250,246,240,.25); border-radius: 16px; padding: 16px; }
.tq-board-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.tq-board-head h2 { font-size: .95rem; font-weight: 600; margin: 0; color: var(--tq-cream); }
.tq-count { margin: 0; font-size: .9rem; color: rgba(250,246,240,.75); }
.tq-count strong { font-size: 1.4rem; color: var(--tq-cream); }
.tq-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 520px) { .tq-grid { grid-template-columns: repeat(3, 1fr); } }
.tq-tile {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 64px; padding: 8px; border-radius: 10px;
  border: 1px solid var(--tq-cream); background: var(--tq-cream); color: var(--tq-forest);
  font-size: .82rem; font-weight: 600; line-height: 1.2;
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, opacity .4s ease;
}
.tq-tile.is-out {
  background: transparent; color: rgba(250,246,240,.4);
  border: 1px dashed rgba(250,246,240,.3);
}
.tq-tile.is-out span { text-decoration: line-through; }
.tq-tile.is-win { background: var(--tq-terracotta); border-color: var(--tq-terracotta); color: #fff; }

/* ---------- Tarjeta del test ---------- */
.tq-card { background: var(--tq-cream); color: var(--tq-espresso); border-radius: 16px; padding: 24px 20px; }
@media (min-width: 640px) { .tq-card { padding: 32px; } }
.tq-progress { height: 6px; border-radius: 3px; background: var(--tq-sand); overflow: hidden; }
.tq-progress-bar { height: 100%; width: 0; background: var(--tq-terracotta); transition: width .35s ease; }
.tq-step-label { font-size: .8rem; color: rgba(28,24,21,.65); margin: 8px 0 16px; }
.tq-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.tq-step[hidden] { display: none; }
.tq-step legend { padding: 0; margin: 0 0 12px; }
.tq-step h2 { font-size: clamp(1.15rem, 3.4vw, 1.5rem); font-weight: 700; line-height: 1.3; margin: 0; color: var(--tq-forest); }
.tq-hint { margin: 0 0 12px; font-size: .9rem; color: rgba(28,24,21,.7); }

.tq-step input[type="text"], .tq-step input[type="email"], .tq-step input[type="tel"] {
  width: 100%; padding: 14px; border-radius: 10px; font-size: 1.05rem;
  background: #fff; color: var(--tq-espresso); border: 1px solid transparent; outline: 0;
}
.tq-step input:focus { border-color: var(--tq-terracotta); }
.tq-err { min-height: 1.2em; margin: 4px 0 8px; font-size: .82rem; color: var(--tq-terracotta-dark); }

.tq-btn {
  display: block; width: 100%; margin-top: 10px; padding: 14px 20px; border: 0; border-radius: 10px;
  background: var(--tq-terracotta); color: #fff; font-size: 1rem; font-weight: 600; text-align: center;
  cursor: pointer; text-decoration: none; transition: background-color .2s ease;
}
.tq-btn:hover { background: var(--tq-terracotta-dark); }
.tq-btn:disabled { opacity: .65; cursor: not-allowed; }
.tq-back { display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; width: 40px; height: 40px; padding: 0; background: none; border: 1px solid var(--tq-sand); border-radius: 50%; color: rgba(28,24,21,.7); cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.tq-back:hover, .tq-back:focus-visible { border-color: var(--tq-terracotta); color: var(--tq-terracotta); outline: 0; }
.tq-link { display: block; margin-top: 12px; text-align: center; color: var(--tq-forest); font-weight: 600; text-decoration: underline; }

.tq-options { display: grid; gap: 10px; }
.tq-options-list { grid-template-columns: 1fr; }
@media (min-width: 640px) { .tq-options-list { grid-template-columns: 1fr 1fr; } }
.tq-opt {
  width: 100%; padding: 14px 16px; text-align: left; font-size: 1rem; font-weight: 500;
  background: #fff; color: var(--tq-espresso); border: 1px solid var(--tq-sand); border-radius: 10px; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.tq-opt:hover, .tq-opt:focus-visible { border-color: var(--tq-terracotta); background: var(--tq-sand); outline: 0; }
.tq-opt[aria-pressed="true"] { border-color: var(--tq-forest); background: var(--tq-sage); }

.tq-check { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: .85rem; cursor: pointer; }
.tq-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--tq-terracotta); }
.tq-check a { color: var(--tq-forest); text-decoration: underline; }
.tq .g-recaptcha { margin-top: 10px; max-width: 100%; overflow-x: auto; }

/* ---------- Bloqueo y resultado ---------- */
.tq-blocked p, .tq-result p { line-height: 1.55; }
.tq-result h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.tq-result .tq-eyebrow { color: var(--tq-terracotta-dark); }
.tq-result-family { margin: 8px 0 12px; font-size: 1.05rem; font-weight: 600; color: var(--tq-espresso); }
.tq-why { margin: 0 0 16px; padding: 0; list-style: none; }
.tq-why li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--tq-sand); font-size: .95rem; }
.tq-why li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--tq-terracotta); }
.tq-alt { margin: 0 0 12px; padding: 12px; border: 1px solid var(--tq-sand); border-radius: 10px; font-size: .92rem; }
.tq-alt strong { display: block; margin-bottom: 4px; }
.tq-alt a { color: var(--tq-forest); text-decoration: underline; }
.tq-result-next { margin: 12px 0 0; font-size: .92rem; color: rgba(28,24,21,.75); }

.tq-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .tq-tile, .tq-progress-bar, .tq-btn, .tq-opt { transition: none; }
}
