/* Tendex · gráficas interactivas: tooltip, clic para filtrar (otro clic quita), resaltado y desgloses. */
.tip { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; max-width: 300px; padding: 9px 12px; border-radius: 12px;
  background: rgba(12, 18, 34, .96); box-shadow: 0 18px 40px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(216,178,110,.35); font-size: 12.5px; line-height: 1.35; }
.tip b { display: block; color: var(--oro-2); font-family: var(--titulos); font-size: 13px; margin-bottom: 2px; }
.tip span { color: #c4cadb; }

.filtros-inicio { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 16px; min-height: 30px; }
.chip-filtro { padding: 6px 12px; border-radius: 99px; font-size: 12.5px; color: #1a1306; background: linear-gradient(180deg, var(--oro-2), var(--oro)); }
.chip-filtro b { margin-left: 4px; }
.chip-filtro.limpiar { color: var(--texto); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--borde-2); }

.clicable, [data-dep], [data-plan], [data-canal], [data-estado], [data-demanda] { cursor: pointer; }
.dona circle { transition: stroke-dasharray 1.2s cubic-bezier(.2,.8,.2,1), stroke-width .2s, opacity .25s; }
.dona circle.apagado, .demanda-barra i.apagado { opacity: .22; }
.dona circle.elegido, .dona circle.resaltado { stroke-width: 30; }
.mezcla .dona circle.elegido, .mezcla .dona circle.resaltado { stroke-width: 26; }
.mezcla li.apagado, .plan-lista li.apagado, .barra-fila.apagado, .embudo div.apagado { opacity: .4; }
.mezcla li.activo, .mezcla li.resaltado { background: rgba(216,178,110,.12); box-shadow: inset 0 0 0 1px rgba(216,178,110,.35); }
.plan-lista li { cursor: pointer; }
.plan-lista li.activo { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.barra-fila { padding: 6px 8px; margin: -6px -8px; border-radius: 12px; transition: background .2s, opacity .2s; }
.barra-fila:hover, .barra-fila.activo { background: rgba(255,255,255,.04); }
.embudo div { transition: opacity .2s, box-shadow .2s; }
.embudo div:hover, .embudo div.activo { box-shadow: inset 0 0 0 1px rgba(111,147,255,.5); }
.demanda-barra i { transition: flex-grow 1.2s cubic-bezier(.2,.8,.2,1), opacity .25s, transform .2s; }
.demanda-barra i:hover, .demanda-barra i.elegido { transform: scaleY(1.35); }
.leyenda .clicable { padding: 2px 6px; border-radius: 6px; }
.leyenda .clicable.activo, .leyenda .clicable:hover { background: rgba(255,255,255,.07); color: var(--texto); }
.top li { cursor: default; }

.detalle { margin-top: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--borde-2); display: grid; gap: 8px; animation: aparecer .25s ease; }
.detalle-cab { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.desglose { margin-top: 10px; display: grid; gap: 4px; font-size: 12.5px; animation: aparecer .25s ease; }
.desglose div { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--borde); color: #c4cadb; }
.desglose div.total { border: 0; color: var(--oro-2); font-weight: 700; }
.sub-lista { list-style: none; margin: 0 0 6px; padding: 6px 10px; display: grid; gap: 6px; font-size: 12.5px; background: rgba(111,147,255,.06) !important; border-radius: 10px; animation: aparecer .25s ease; }
.sub-lista li { display: flex; justify-content: space-between; gap: 8px; }
.sub-lista small { color: var(--suave); }
.actividad a { color: inherit; text-decoration: none; }
.actividad a:hover b { color: var(--oro-2); }
@keyframes aparecer { from { opacity: 0; transform: translateY(-4px); } }

/* Versión nueva: pantalla que bloquea hasta actualizar */
.nueva-version { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 14, .78); backdrop-filter: blur(10px); }
.nv-caja { width: min(420px, 100%); padding: 32px; border-radius: 22px; text-align: center; background: rgba(13, 20, 38, .96); box-shadow: 0 40px 120px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(216,178,110,.35); display: grid; justify-items: center; gap: 10px; }
.nv-caja h2 { font-size: 21px; }
.nv-caja .logo.grande { margin: 0 0 6px; }
.nv-caja button { margin-top: 8px; padding: 12px 22px; }

/* Marketing: borradores de contenido */
.rejilla-mk { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.pieza-mk { display: grid; gap: 8px; align-content: start; }
.pieza-mk.descartado { opacity: .5; }
.pieza-mk.publicado { box-shadow: inset 0 0 0 1px rgba(63,217,154,.45); }
.mk-cab { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; }
.mk-cab img, .mk-cab .sinfoto { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: #fff; }
.mk-cab b { display: block; font-size: 13px; }
.mk-cab select { font-size: 12px; padding: 4px 6px; }
.chip-canal { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(255,230,0,.14); color: #ffe600; }
.chip-canal.tt { background: rgba(229,143,208,.16); color: #e58fd0; }
.pieza-mk h3 { font-size: 15px; margin: 4px 0 0; }
.pieza-mk small { color: var(--suave); font-size: 11.5px; }
.pieza-mk small.mal { color: #ff6b7d; }
.mk-cuerpo { white-space: pre-wrap; font-family: inherit; font-size: 12.5px; line-height: 1.5; color: #c4cadb; margin: 0; max-height: 260px; overflow: auto; }
.mk-cuerpo mark { background: rgba(138,107,255,.22); color: #cdbfff; border-radius: 4px; padding: 0 3px; }
.mk-tags { font-size: 12px; color: var(--oro-2); margin: 0; }
.mk-pie { display: flex; justify-content: space-between; align-items: center; }
.mk-pie button { padding: 6px 12px; font-size: 12px; }
.ref-foto a { display: inline-block; }
.ref-foto img, .ref-foto .sinfoto { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: #fff; display: block; }
.ref-foto small { display: block; font-size: 11px; color: var(--suave); margin-top: 2px; }
.ref-foto small.aviso { color: #ffb86b; }
