/* =====================================================================
   TAREAS POR SECTOR — 7 gráficos "estilo cripto" + uno de resumen
   (06/10/2026). Misma estética que Ahora y Toda la planta.
   OJO, CHROME VIEJO: sin gap en flex (márgenes); en grid, grid-gap.
   ===================================================================== */
.en-tareas #contenido { max-width: none; padding: 0; }
.tr { display: flex; flex-direction: column; height: calc(100vh - 53px); background: #030a14; color: #e2e8f0;
  font-family: 'Space Grotesk', 'Segoe UI', Arial, sans-serif; overflow: hidden; }
.tr .mono { font-family: 'JetBrains Mono', Consolas, monospace; }

.tr-cab { display: flex; align-items: center; padding: 8px 16px; border-bottom: 1px solid #17304f; background: #051424; flex-shrink: 0; }
.tr-titulo { font-weight: 700; letter-spacing: 3px; font-size: 14px; color: #22d3ee; }
.tr-titulo small { display: block; font-size: 10px; letter-spacing: 0; color: #94a3b8; font-weight: 400; }
.tr-fecha { margin-left: auto; display: flex; align-items: center; font-size: 13px; }
.tr-fecha > * { margin-left: 8px; }
.tr-fecha span { min-width: 150px; text-align: center; font-weight: 600; }
.tr-vivo { color: #34d399; font-size: 11px; font-weight: 700; min-width: 0 !important; animation: trLatido 2s ease-in-out infinite; }

.tr-grilla { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr;
  grid-gap: 10px; padding: 10px; }

/* ---------- Cada tarjeta ---------- */
.tr-t { --tc: 34, 211, 238; position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 20, 38, .96), rgba(4, 11, 22, .96)); border: 1px solid rgba(var(--tc), .3);
  border-radius: 8px; box-shadow: inset 0 0 30px rgba(var(--tc), .05); padding: 8px 10px 6px; }
.tr-t::before { content: ''; position: absolute; top: 0; left: 0; width: 30%; height: 1px;
  background: linear-gradient(90deg, rgba(var(--tc), 0), rgba(var(--tc), .9), rgba(var(--tc), 0)); animation: trBarrido 8s linear infinite; }
@keyframes trBarrido { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.tr-t-cab { display: flex; align-items: center; flex-shrink: 0; }
.tr-t-cab h3 { margin: 0 8px 0 0; font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase; color: rgb(var(--tc));
  text-shadow: 0 0 10px rgba(var(--tc), .5); white-space: nowrap; }
.tr-que { font-size: 10.5px; color: #64748b; white-space: nowrap; }
.tr-esp { flex: 1; }
.tr-num { font-size: 30px; line-height: 1; color: #f8fafc; text-shadow: 0 0 14px rgba(var(--tc), .6); margin-left: 10px; }
.tr-dif { font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
/* Más trabajo = ámbar (no es "bueno" como en las criptos); menos = verde. */
.tr-dif.sube, .tr-resumen small.sube { color: #fbbf24; background: rgba(120, 53, 15, .35); }
.tr-dif.baja, .tr-resumen small.baja { color: #34d399; background: rgba(6, 78, 59, .35); }

.tr-capas { display: flex; flex-wrap: wrap; font-size: 10.5px; color: #94a3b8; margin-top: 3px; flex-shrink: 0; }
.tr-capas span { margin-right: 10px; white-space: nowrap; }
.tr-capas i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }
.tr-capas b { color: #e2e8f0; }

.tr-lienzo { position: relative; flex: 1; min-height: 0; margin-top: 4px; cursor: crosshair; }
.tr-lienzo canvas { position: absolute; top: 0; left: 0; }
.tr-punta { display: none; position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px rgba(var(--tc), .5), 0 0 14px rgba(var(--tc), 1); animation: trLatido 1.6s ease-in-out infinite; }
.tr-globo { display: none; position: absolute; top: 2px; padding: 3px 8px; border-radius: 4px; font-size: 11px; white-space: nowrap;
  background: rgba(2, 6, 14, .92); border: 1px solid rgba(var(--tc), .5); color: #e2e8f0; pointer-events: none; z-index: 2; }
.tr-globo small { color: #94a3b8; }
.tr-pie { font-size: 10.5px; color: #64748b; flex-shrink: 0; margin-top: 2px; }
.tr-pie b { color: #cbd5e1; }
@keyframes trLatido { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ---------- De un vistazo ---------- */
.tr-resumen ul { list-style: none; margin: 6px 0 0; padding: 0; flex: 1; }
.tr-resumen li { --tc: 34, 211, 238; display: flex; align-items: center; padding: 4px 0; border-bottom: 1px solid rgba(148, 163, 184, .08); font-size: 13px; }
.tr-resumen li i { width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: rgb(var(--tc)); box-shadow: 0 0 6px rgb(var(--tc)); }
.tr-resumen li b { font-size: 16px; margin-left: 8px; min-width: 36px; text-align: right; color: rgb(var(--tc)); }
.tr-resumen small { font-size: 10.5px; padding: 0 5px; border-radius: 3px; }
.tr-resumen p { font-size: 10.5px; color: #64748b; margin: 6px 0 0; }
.tr-ritmo { font-size: 11px; color: #94a3b8; margin-top: 3px; flex-shrink: 0; }
.tr-ritmo b { color: #c084fc; font-size: 12.5px; }
.tr-globo small.tr-comen { color: #fcd34d; }
/* El globo en los gráficos donde NO está el mouse (la misma hora, sombreada en todos). */
.tr-globo.otro { opacity: .85; border-style: dashed; }
.tr-globo .tr-g-sube { color: #fbbf24; }
.tr-globo .tr-g-baja { color: #34d399; }
