/* ===== Generador de sopas de letras =====
   Usa el diseño del Generador de contadores (contador.css) y agrega lo suyo. */
.sp-words { min-height: 190px; resize: vertical; font: 15px/1.5 Inter, Arial, sans-serif; }
.sp-count { float: right; font-weight: 700; color: var(--brand-2); font-size: 13px; }
.sp-sheet { background: #fff; color: #111827; border-radius: 12px; border: 1px solid var(--line); padding: 22px 22px 16px; max-width: 640px; margin: 0 auto;
  box-shadow: 0 6px 24px rgba(15, 23, 42, .08); }
.sp-sheet h3 { margin: 0; text-align: center; font-size: 22px; color: #111827; }
.sp-sheet .sp-instr { text-align: center; color: #374151; font-size: 14px; margin: 6px 0 10px; }
.sp-name { display: flex; gap: 14px; font-size: 13px; color: #374151; margin-bottom: 12px; }
.sp-name span { flex: 1; border-bottom: 1px solid #9ca3af; padding-bottom: 2px; }
.sp-name span:first-child { flex: 2; }
#grid svg { display: block; width: 100%; height: auto; }
#wordlist { columns: 3; column-gap: 16px; list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; color: #111827; }
#wordlist li { break-inside: avoid; padding: 2px 0 2px 20px; position: relative; }
#wordlist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border: 1.5px solid #6b7280; border-radius: 2px; }
@media (max-width: 480px) { #wordlist { columns: 2; } .sp-sheet { padding: 14px 12px; } }
.sp-pv-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-pv-btns .btn { width: auto; }
#info { text-align: center; margin: 10px 0 0; font-size: 13px; }
.sp-warn { color: #b45309; font-weight: 600; }
.sp-dl { display: grid; gap: 10px; }
.sp-dl .btn { width: 100%; }
.sp-solcheck { align-self: end; margin-bottom: 12px; }

/* Introducción, ventajas, menú interno y temas listos */
.sp-temas { margin-top: 28px; }
.sp-temas h2 { font-size: clamp(22px, 3.4vw, 28px); margin: 0 0 4px; }
.sp-temas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 12px; }
.sp-tema { display: grid; gap: 4px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.sp-tema b { font-size: 15px; }
.sp-tema span { font-size: 13px; color: var(--muted); }
.sp-tema .btn { width: auto; justify-self: start; margin-top: 6px; }
