/* Sathome · Test de mando. Usa las clases comunes del tema (.sh-test-tarjeta, .sh-test-btn…). */
.sh-tm { max-width: 900px; margin: 0 auto; display: grid; gap: 1.25rem; }
.sh-tm-panel { display: grid; gap: 1.25rem; }
.sh-tm-panel[hidden], .sh-tm-espera[hidden] { display: none; }
.sh-tm-espera { text-align: center; padding: 2.5rem 1.5rem; }
.sh-tm-pulso { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--accent, #AA163D); opacity: .85; animation: sh-tm-pulso 1.6s ease-in-out infinite; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 6h10a5 5 0 0 1 4.9 4l1 5.2A3 3 0 0 1 17.6 17l-1.9-2H8.3l-1.9 2a3 3 0 0 1-5.3-1.8l1-5.2A5 5 0 0 1 7 6zm0 3v1.5H5.5V12H7v1.5h1.5V12H10v-1.5H8.5V9zm9.5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-2 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E") center / 70% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 6h10a5 5 0 0 1 4.9 4l1 5.2A3 3 0 0 1 17.6 17l-1.9-2H8.3l-1.9 2a3 3 0 0 1-5.3-1.8l1-5.2A5 5 0 0 1 7 6zm0 3v1.5H5.5V12H7v1.5h1.5V12H10v-1.5H8.5V9zm9.5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-2 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E") center / 70% no-repeat; }
@keyframes sh-tm-pulso { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .sh-tm-pulso { animation: none; } }

.sh-tm-cabecera { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.sh-tm-nombre { font-family: var(--sh-font-titulos, inherit); font-weight: 700; font-size: 1.15rem; color: var(--contrast, #232C39); margin: 0; }
.sh-tm-cabecera .sh-test-nota { margin: .2rem 0 0; }
.sh-tm-elegir select { font-size: 16px; padding: .4rem .6rem; border-radius: 8px; max-width: 260px; }
.sh-tm-progreso { font-weight: 700; color: var(--contrast, #232C39); }

/* Dibujo del mando */
.sh-tm-mando svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.sh-tm-cuerpo { fill: #E6E9ED; stroke: #B5BFC9; stroke-width: 2; }
.sh-tm-b circle, .sh-tm-b rect { fill: #fff; stroke: #4A5563; stroke-width: 2; transition: fill .08s; }
.sh-tm-b text { font: 700 13px/1 system-ui, sans-serif; fill: #232C39; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.sh-tm-b.sh-tm-ok circle, .sh-tm-b.sh-tm-ok rect { fill: #CDEFD8; stroke: #1E8A4C; }
.sh-tm-b.sh-tm-on circle, .sh-tm-b.sh-tm-on rect { fill: var(--accent, #AA163D); stroke: var(--accent-2, #8A1131); }
.sh-tm-b.sh-tm-on text { fill: #fff; }
.sh-tm-generico { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: .5rem; }
.sh-tm-gb { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 50%; border: 2px solid #4A5563; font-weight: 700; background: #fff; }
.sh-tm-gb.sh-tm-ok { background: #CDEFD8; border-color: #1E8A4C; }
.sh-tm-gb.sh-tm-on { background: var(--accent, #AA163D); color: #fff; }

/* Gatillos */
.sh-tm-gatillos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.sh-tm-gatillos > div { display: grid; grid-template-columns: 3.2em 1fr 3.5em; align-items: center; gap: .5rem; font-weight: 700; }
.sh-tm-barra { height: 16px; background: #E6E9ED; border-radius: 8px; overflow: hidden; }
.sh-tm-barra i { display: block; height: 100%; width: 0; background: var(--accent, #AA163D); }
.sh-tm-pct { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Sticks */
.sh-tm-sticks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: center; }
.sh-tm-stick canvas { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; }
.sh-tm-stick p { margin: .3rem 0 0; font-variant-numeric: tabular-nums; }
.sh-tm-veredicto { font-weight: 700; min-height: 1.5em; }

/* Estados */
.sh-tm-bien { color: #1E7A44; }
.sh-tm-aviso { color: #9A6200; }
.sh-tm-mal { color: var(--accent, #AA163D); }
.sh-tm-pend { color: var(--contrast-2, #4A5563); }
.sh-tm-lista { list-style: none; margin: 0 0 1rem; padding: 0; }
.sh-tm-lista li { padding: .45rem 0 .45rem 1.8rem; position: relative; border-bottom: 1px solid #E6E9ED; font-weight: 600; }
.sh-tm-lista li::before { position: absolute; left: .2rem; top: .45rem; font-weight: 700; }
.sh-tm-lista .sh-tm-bien::before { content: "✓"; }
.sh-tm-lista .sh-tm-mal::before { content: "✕"; }
.sh-tm-lista .sh-tm-aviso::before { content: "!"; }
.sh-tm-lista .sh-tm-pend::before { content: "…"; }
.sh-tm-cta { text-align: center; margin: 0; }
.sh-tm-cta .sh-test-btn { display: inline-block; text-decoration: none; }
.sh-tm-mini { padding: .35rem .9rem; margin-left: .3rem; }
.sh-tm .sh-test-btn:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 600px) {
	.sh-tm-gatillos { grid-template-columns: 1fr; }
	.sh-tm-sticks { gap: .5rem; }
	.sh-tm-stick p { font-size: .85rem; }
	.sh-tm .sh-test-botones .sh-test-btn { flex: 1 1 100%; min-height: 48px; }
	.sh-tm-cta .sh-test-btn { display: block; }
}
@media (max-width: 600px) { .sh-tm-b text { font-size: 17px; } }
.sh-tm-hueco { fill: #C9D0D8; }
.sh-tm-b text.sh-tm-cara { font-size: 17px; }
.sh-tm-b.sh-tm-on text.sh-tm-cara { fill: #fff !important; }
