/* Métricas (2026-10-30): mismo lenguaje que Autorizar — fondo #F2F2F4, tarjetas blancas, acento #0147FF. */
.mt-entrada { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: #0147FF; color: #fff; font: inherit; text-align: left; border-radius: 22px; padding: 16px 18px; margin-bottom: 16px; cursor: pointer; box-shadow: 0 6px 18px rgba(1,71,255,.25); }
.mt-entrada > .material-symbols-outlined:first-child { font-size: 30px; }
.mt-entrada span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.mt-entrada b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.mt-entrada small { font-size: 13px; opacity: .85; }
.mt-periodos, .mt-orden { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; }
.mt-kpis div { display: flex; flex-direction: column; gap: 4px; }
.mt-kpis small { font-size: 12px; font-weight: 800; }
.sube { color: #1E8E4B; }
.baja { color: #C62828; }
.gira { animation: mt-gira 1s linear infinite; }
@keyframes mt-gira { to { transform: rotate(360deg); } }
.mt-aviso { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 0; background: #FFF1DC; color: #7A4100; font: inherit; font-size: 14px; line-height: 1.35; border-radius: 18px; padding: 14px 16px; margin-bottom: 16px; cursor: pointer; }
.mt-h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 22px 4px 2px; }
.mt-sub { color: #6B7080; font-size: 13px; margin: 0 4px 10px; }
.mt-caja { background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 1px 3px rgba(17,19,24,.06); }
.mt-barra { height: 10px; background: #ECEDF1; border-radius: 999px; overflow: hidden; }
.mt-barra i { display: block; height: 100%; border-radius: 999px; background: #0147FF; }
.mt-barra.fina { height: 6px; margin: 6px 0 8px; }
/* Redes */
.mt-redes { display: grid; gap: 10px; }
/* min-width 0: si no, el texto largo del mejor video estira la tarjeta fuera de la pantalla */
.mt-redes > *, .mt-videos > * { min-width: 0; }
.mt-red { background: #fff; border-radius: 22px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(17,19,24,.06); display: flex; flex-direction: column; gap: 10px; }
.mt-red.gana { box-shadow: 0 0 0 2px #0147FF, 0 6px 18px rgba(1,71,255,.12); }
.mt-red-cab { display: flex; align-items: center; gap: 12px; }
.mt-red-cab div { flex: 1; display: flex; flex-direction: column; }
.mt-red-cab b { font-size: 17px; font-weight: 800; }
.mt-red-cab span { color: #6B7080; font-size: 12px; }
.mt-red-cab em { font-style: normal; background: #E6EDFF; color: #0147FF; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; border-radius: 999px; padding: 4px 10px; }
.mt-red-num { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: #6B7080; }
.mt-red-num b { color: #111318; font-size: 16px; font-weight: 800; }
.mt-mejor { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #111318; text-decoration: none; background: #F2F2F4; border-radius: 12px; padding: 8px 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mt-mejor .material-symbols-outlined { font-size: 18px; color: #E0A100; flex: none; }
.av-logo.mini { width: 22px; height: 22px; border-radius: 7px; }
.av-logo.mini i { width: 13px; height: 13px; }
/* Temas */
.mt-fila { display: grid; grid-template-columns: minmax(120px, 38%) 1fr auto; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.mt-fila-n { font-weight: 700; }
.mt-fila-n small { display: block; color: #6B7080; font-weight: 500; font-size: 12px; }
.mt-fila > b { font-weight: 800; min-width: 44px; text-align: right; }
/* Conclusiones */
.mt-concl { display: flex; flex-direction: column; gap: 12px; }
.mt-concl p { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; margin: 0; }
.mt-concl .material-symbols-outlined { font-size: 20px; flex: none; border-radius: 10px; padding: 4px; }
.mt-concl .verde { background: #E3F6EA; color: #1E8E4B; }
.mt-concl .naranja { background: #FFF1DC; color: #B25E00; }
/* Video por video */
.mt-videos { display: grid; gap: 10px; }
.mt-video { position: relative; background: #fff; border-radius: 22px; padding: 10px; box-shadow: 0 1px 3px rgba(17,19,24,.06); display: flex; gap: 12px; }
.mt-pos { position: absolute; left: 4px; top: 4px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: #111318; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.mt-mini { position: relative; flex: none; width: 92px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #E4E5EA; }
.mt-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-mini em { position: absolute; left: 6px; bottom: 6px; font-style: normal; background: rgba(17,19,24,.72); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; border-radius: 999px; padding: 2px 7px; }
.mt-vinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-vinfo h3 { font-size: 14px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-fecha { color: #6B7080; font-size: 12px; margin-top: 3px; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-chip { display: inline-flex; align-items: center; gap: 5px; background: #F2F2F4; border-radius: 999px; padding: 3px 10px 3px 3px; color: #111318; text-decoration: none; font-size: 13px; }
.mt-chip b { font-weight: 800; }
.mt-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; color: #6B7080; font-size: 12px; font-weight: 600; }
.mt-stats > span { display: inline-flex; align-items: center; gap: 3px; }
.mt-stats .material-symbols-outlined { font-size: 15px; }
/* Semana a semana */
.mt-sem { display: flex; align-items: flex-end; gap: 6px; height: 200px; overflow-x: auto; padding-bottom: 2px; }
.mt-sem-col { flex: 1 0 34px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; font-size: 11px; }
.mt-sem-col b { font-size: 11px; font-weight: 800; }
.mt-sem-col span { color: #6B7080; white-space: nowrap; }
.mt-sem-col small { color: #9A9EAD; font-size: 10px; }
.mt-sem-barra { width: 100%; max-width: 38px; display: flex; flex-direction: column; border-radius: 8px 8px 3px 3px; overflow: hidden; min-height: 2px; }
.mt-sem-barra i { display: block; width: 100%; min-height: 2px; }
.mt-leyenda { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: #6B7080; }
.mt-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
/* Hoja para conectar Facebook */
.mt-pasos { padding-left: 20px; font-size: 14px; line-height: 1.45; display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.mt-pasos a { color: #0147FF; }
.mt-token { width: 100%; min-height: 80px; border: 1px solid #DADCE3; border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 13px; resize: vertical; }
/* PC: redes en fila, videos en dos columnas */
#autoScreen[data-vista="pc"] .mt-redes { grid-template-columns: repeat(3, 1fr); }
#autoScreen[data-vista="pc"] .mt-videos { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
#autoScreen[data-vista="pc"] .mt-kpis { max-width: none; grid-template-columns: repeat(4, 1fr); }
#autoScreen[data-vista="pc"] .mt-entrada { max-width: 520px; }

/* Metas de la semana */
.mt-meta { padding: 10px 0; border-bottom: 1px solid #eceef3; }
.mt-meta:last-child { border-bottom: 0; }
.mt-meta-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 14px; }
.mt-meta-cab b { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 15px; }
.mt-meta-cab small { font-weight: 500; color: #6a7183; font-size: 12px; }
.mt-meta-cab .material-symbols-outlined { font-size: 18px; color: #0147FF; }
.mt-meta .mt-barra i { background: #9DB5FF; }
.mt-meta.ok .mt-barra i { background: #0147FF; }
.mt-tareas { padding: 4px 14px; }
.mt-tarea { display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid #eceef3; background: none; color: inherit; font: inherit; font-size: 14px; line-height: 1.35; text-align: left; cursor: pointer; }
.mt-tarea:last-child { border-bottom: 0; }
.mt-tarea .material-symbols-outlined { font-size: 21px; color: #0147FF; flex: none; }
.mt-tarea span:nth-child(2) { flex: 1; min-width: 0; }
.mt-tarea em { flex: none; font-style: normal; font-size: 12px; font-weight: 600; color: #6a7183; padding-top: 2px; }
.mt-tarea.hecha span:nth-child(2) { text-decoration: line-through; color: #8a90a0; }

/* Pastilla "hoy" del movimiento de la semana (2026-11-05) */
.mt-pill{background:var(--primary,#0147FF);color:#fff;border-radius:999px;padding:1px 8px;font-size:11px;font-weight:700;line-height:1.6}
/* Video por video: cada red con sus números (2026-11-09) */
.mt-vtotal { font-size: 13px; color: #111318; margin-top: 6px; }
.mt-vtotal b { font-weight: 800; }
.mt-vredes { display: grid; gap: 6px; margin-top: 2px; }
.mt-vred { display: flex; align-items: flex-start; gap: 6px; background: #F2F2F4; border-radius: 14px; padding: 5px 10px 5px 4px; color: #111318; text-decoration: none; font-size: 12px; }
.mt-vred:hover { background: #E8E9EE; }
.mt-vred .av-logo { flex: none; }
.mt-vred-n { flex: none; font-weight: 800; line-height: 22px; min-width: 66px; }
.mt-vred-d { display: flex; flex-wrap: wrap; gap: 2px 10px; min-width: 0; line-height: 22px; font-weight: 600; color: #3A3D47; }
.mt-vred-d > span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.mt-vred-d .material-symbols-outlined { font-size: 14px; color: #6B7080; }
.mt-mas { margin-top: 12px; }
@media (max-width: 420px) { .mt-vred { flex-wrap: wrap; } .mt-vred-d { flex-basis: 100%; padding-left: 4px; } }
