/* Pulso del Tiempo (js/core/tenseEqualizer.js): escenario negro con neón (decisión del CEO 2026-10-25), ficha y matriz en la marca */
.teq { display: grid; gap: 18px; }
.teq-stage { background: #050505; border-radius: 18px; padding: 14px 10px 6px; box-shadow: 0 10px 30px rgba(13, 43, 69, .22); position: relative; }
.teq-canvas { display: block; width: 100%; height: 260px; touch-action: manipulation; }
.teq-hint { position: absolute; left: 0; right: 0; top: 44%; text-align: center; color: #F0F0F5; opacity: .7;
  font-family: 'Outfit', Arial, sans-serif; font-size: 14px; pointer-events: none; transition: opacity .4s; }
.teq-hint.off { opacity: 0; }

.teq-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.teq-compact .teq-main { grid-template-columns: minmax(0, 1fr); }
.teq-info, .teq-pick { background: #fff; border: 1px solid #D9E3E6; border-radius: 18px; padding: 20px; box-shadow: 0 4px 14px rgba(13, 43, 69, .06); min-width: 0; }
.teq-info { display: grid; gap: 12px; }
.teq-info p { margin: 0; }
.teq-chip { display: inline-flex; align-items: center; gap: 8px; font-family: 'Outfit', Arial, sans-serif; font-weight: 600; font-size: 13px;
  background: #E8F7F7; color: #0D2B45; border-radius: 999px; padding: 4px 12px; justify-self: start; }
.teq-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; box-shadow: 0 0 0 1.5px #0D2B45 inset; }
.teq-dot[data-fam="simple"] { background: #FF4D6D; }
.teq-dot[data-fam="cont"] { background: #00E5FF; }
.teq-dot[data-fam="perf"] { background: #E6FF00; }
.teq-dot[data-fam="pc"] { background: linear-gradient(90deg, #B388FF 50%, #E6FF00 50%); }
.teq-dot[data-fam="plans"], .teq-dot[data-fam="habits"] { background: #FFB020; }
.teq .teq-name { font-size: 26px; margin: 0; color: #0D2B45; }
.teq-form { font-family: 'Outfit', Arial, sans-serif; font-weight: 500; font-size: 15px; color: #0D2B45; background: #E8F7F7; border-radius: 12px; padding: 8px 12px; }
.teq-ex { font-size: 18px; font-family: 'Outfit', Arial, sans-serif; font-weight: 500; color: #0D2B45; }
.teq-ex mark { background: #E6FF00; color: #0D2B45; padding: 0 4px; border-radius: 4px; }
.teq-kv { display: grid; gap: 4px; }
.teq-kv b { font-family: 'Outfit', Arial, sans-serif; font-weight: 600; font-size: 13px; color: #0E7C7E; }

.teq-matrix { display: grid; gap: 8px; }
.teq-row { display: grid; grid-template-columns: 130px repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.teq-head span { font-family: 'Outfit', Arial, sans-serif; font-weight: 600; font-size: 13px; color: #4B6072; text-align: center; }
.teq-flabel { display: flex; align-items: center; gap: 8px; font-family: 'Outfit', Arial, sans-serif; font-weight: 600; font-size: 14px; color: #0D2B45; }
.teq-sep { font-family: 'Outfit', Arial, sans-serif; font-weight: 600; font-size: 14px; color: #0E7C7E; border-top: 1px solid #D9E3E6; padding-top: 12px; margin-top: 6px; }
.teq .teq-pick button.teq-tb { font: 500 13.5px/1.25 'Outfit', Arial, sans-serif; color: #0D2B45; background: #fff; border: 1.5px solid #D9E3E6;
  border-radius: 14px; min-height: 56px; padding: 8px 10px; cursor: pointer; text-align: left; box-shadow: none;
  transition: border-color .15s, background .15s, transform .15s; }
.teq .teq-pick button.teq-tb:hover { border-color: #0E7C7E; transform: translateY(-1px); }
.teq .teq-pick button.teq-tb:focus-visible { outline: 3px solid #0E7C7E; outline-offset: 2px; }
.teq .teq-pick button.teq-tb[aria-pressed="true"] { background: #050505; color: #F0F0F5; border-color: #050505; }
/* Versión pública: los tiempos que solo ven los estudiantes */
.teq .teq-pick button.teq-tb.teq-locked { border-style: dashed; color: #4B6072; background: #F5F7F8; }
.teq .teq-pick button.teq-tb.teq-locked::after { content: 'Estudiantes'; display: block; margin-top: 4px; font-size: 11px; font-weight: 600; color: #0E7C7E; }
.teq .teq-pick button.teq-tb.teq-locked[aria-pressed="true"] { background: #E8F7F7; color: #0D2B45; border-color: #0E7C7E; }
.teq-is-locked .teq-form, .teq-is-locked .teq-kv { display: none; }
.teq-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.teq-cta[hidden] { display: none; }
.teq .teq-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font: 600 15px 'Outfit', Arial, sans-serif;
  text-decoration: none; border: 1.5px solid #0E7C7E; color: #0E7C7E; background: #fff; }
.teq .teq-link.primary { background: #0E7C7E; color: #fff; }
/* Botones de abajo cuando la página no trae los estilos del portal (sitio público) */
.teq .teq-actions button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  font: 600 15px 'Outfit', Arial, sans-serif; background: #0E7C7E; color: #fff; border: 1.5px solid #0E7C7E; }
.teq .teq-actions button.secondary { background: #fff; color: #0D2B45; border-color: #D9E3E6; }
.teq-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #4B6072; font-size: 13px; margin-top: 14px; }
.teq-legend span { display: inline-flex; align-items: center; gap: 6px; }
.teq-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

@media (max-width: 820px) {
  .teq-main { grid-template-columns: minmax(0, 1fr); }
  .teq-canvas { height: 210px; }
  .teq-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .teq-head .teq-sp { display: none; }
  .teq-flabel { grid-column: 1 / -1; margin-top: 6px; }
  .teq .teq-pick button.teq-tb { font-size: 12.5px; min-height: 52px; padding: 6px 8px; }
  .teq-info, .teq-pick { padding: 16px; }
}
/* En celular la barra se queda arriba mientras se eligen los tiempos (debajo del botón del menú) */
@media (max-width: 820px) and (min-height: 600px) {
  .teq:not(.teq-compact) .teq-stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 5; }
}
@media print { .teq-stage, .teq-pick { display: none; } }
