/* Signature · registro y progreso de entrenamientos en la app del paciente (28-oct-2026). Solo bajo body.nl-signature o en lo que crea portal-signature.js. */
.sg-tarjeta { padding: 4px 2px 20px; margin-bottom: 20px; border-bottom: 1px solid var(--color-border, rgba(255,255,255,.08)); }
.sg-tj-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sg-tj-mas { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--color-border, rgba(255,255,255,.14)); background: transparent; color: var(--color-text, #fff); display: grid; place-items: center; cursor: pointer; }
.sg-tj-mas:active { transform: scale(.94); }
.sg-vacio { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--color-text-secondary, rgba(255,255,255,.65)); }
.sg-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.sg-kpis > div { display: flex; flex-direction: column; gap: 2px; }
.sg-kpis b { font-size: 24px; font-weight: 700; line-height: 1.1; color: var(--color-text, #fff); }
.sg-kpis b i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--color-text-secondary, rgba(255,255,255,.65)); }
.sg-kpis span { font-size: 11px; color: var(--color-text-secondary, rgba(255,255,255,.65)); }
.sg-kpis small { margin-left: 4px; font-weight: 700; }
.sg-kpis small.is-mas { color: #34d399; } .sg-kpis small.is-menos { color: #f87171; }
.sg-tit { margin: 14px 0 8px; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 700; color: var(--color-text-tertiary, rgba(255,255,255,.45)); }
.sg-barras { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 96px; align-items: end; }
.sg-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.sg-col .sg-bar { display: block; width: 100%; max-width: 16px; min-height: 0; border-radius: 4px 4px 2px 2px; background: #60a5fa; }
.sg-col.is-hoy .sg-bar { background: #34d399; }
.sg-col em { font-style: normal; font-size: 9px; color: var(--color-text-tertiary, rgba(255,255,255,.45)); }
.sg-ult { list-style: none; margin: 0; padding: 0; }
.sg-ult li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--color-border, rgba(255,255,255,.08)); font-size: 13px; }
.sg-ult li span { color: var(--color-text-secondary, rgba(255,255,255,.65)); } .sg-ult li em { font-style: normal; color: var(--color-text-secondary, rgba(255,255,255,.65)); font-size: 12px; }
.sg-nota-tj { margin: 10px 0 0; font-size: 11px; color: var(--color-text-tertiary, rgba(255,255,255,.45)); }
/* hoja de registro */
.sg-hoja .sg-q { margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: var(--color-text, #fff); } .sg-hoja .sg-q small { font-weight: 400; color: var(--color-text-tertiary, rgba(255,255,255,.5)); }
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-chip { padding: 9px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--color-border, rgba(255,255,255,.16)); background: transparent; color: var(--color-text, #fff); font: 600 13px/1 inherit; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .1s ease; }
.sg-chip:active { transform: scale(.96); } .sg-chip.is-on { background: #fff; color: #000; border-color: #fff; }
.sg-min { display: flex; flex-direction: column; gap: 10px; }
.sg-input { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--color-border, rgba(255,255,255,.16)); background: rgba(255,255,255,.04); color: var(--color-text, #fff); font-size: 16px; }
.sg-nota { resize: none; font-family: inherit; }
.sg-guardar { width: 100%; margin-top: 20px; padding: 14px; border-radius: 14px; border: 0; background: #fff; color: #000; font: 700 15px/1 inherit; cursor: pointer; }
.sg-guardar[disabled] { opacity: .6; }

/* ── Check-in diario · preguntas del entrenamiento (16-nov-2026) ──
   Mismo formato que el check-in semanal (checkin-semanal-portal.css, que carga antes): icono, pregunta grande, fichas de elección, barra con número grande y texto libre.
   Aquí solo lo que cambia: fichas de 2 columnas con icono de color y barras con color (--sgc). */
.sg-ci-sino, .sg-ci-tipos { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sg-ci-sino button, .sg-ci-tipos button { justify-content: center; min-height: 96px; padding: var(--space-3) var(--space-2); }
.sg-ci-sino .material-symbols-outlined, .sg-ci-tipos .material-symbols-outlined { font-size: 30px; color: var(--sgc, currentColor); transition: transform var(--dur-press, 160ms) var(--ease); }
.sg-ci-sino button.on .material-symbols-outlined, .sg-ci-tipos button.on .material-symbols-outlined { transform: scale(1.08); }
.sg-ci-nombre { font-size: var(--fs-body); font-weight: var(--fw-semibold); line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.sg-ci-sino b { font-size: 22px; }
.sg-ci-barra.on .nl-sem-num { color: var(--sgc, var(--color-text)); }
.sg-ci-barra.on input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--sgc, var(--color-text)) var(--p, 50%), var(--color-track) var(--p, 50%)); }
.sg-ci-barra.on input[type=range]::-moz-range-progress { background: var(--sgc, var(--color-text)); }
.sg-ci-palabra { margin: calc(var(--space-2) * -1) 0 var(--space-2); min-height: 1.3em; font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--sgc, var(--color-text-secondary)); }
.nl-sem-chips.sg-ci-rapidos { margin-top: var(--space-3); flex-wrap: nowrap; gap: 6px; }
.nl-sem-chips.num.sg-ci-rapidos button { flex: 1 1 0; min-width: 0; padding: 0 4px; }
.sg-ci-nombre, .sg-ci-sino small { color: var(--color-text-secondary); }
.sg-ci-tipos button.on .sg-ci-nombre, .sg-ci-sino button.on small { color: inherit; }
@media (prefers-reduced-motion: reduce) { .sg-ci-sino .material-symbols-outlined, .sg-ci-tipos .material-symbols-outlined { transition: none; transform: none !important; } }
