/* Programa y Actividades · etiquetas por programa y panel de avance (v3.4.7) */

/* Etiqueta: queda sobre la ubicación; un vástago fino termina en un punto en el lugar exacto. */
.marker.pm {
  --pm-bg: #f2f4f7; --pm-fg: #475467; --pm-bd: #d0d5dd; --pm-glyph: #98a2b3; --pm-track: #e4e7ec; --pm-fill: #98a2b3;
  width: auto; height: 24px; padding: 0 8px 2px 7px; border: 1px solid var(--pm-bd); border-radius: 6px;
  background: var(--pm-bg) !important; color: var(--pm-fg);
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
  transform: translate(-50%, calc(-100% - 9px));
  transform-origin: 50% calc(100% + 9px);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .12), 0 1px 3px rgba(16, 24, 40, .08);
  transition: opacity .15s ease, box-shadow .15s ease;
}
.map-world.live-zoom .marker.pm { transform: translate(-50%, calc(-100% - 9px)) scale(var(--inverse-live-scale)); }
.marker.pm.pm-tri { --pm-bg: #ffffff; --pm-fg: #101828; --pm-bd: #b3c1ea; --pm-glyph: #1636a8; --pm-track: #eaecf0; --pm-fill: #3aa57f; }
.marker.pm.pm-io { --pm-bg: #101828; --pm-fg: #ffffff; --pm-bd: #101828; --pm-glyph: #5fbf9a; --pm-track: #344054; --pm-fill: #5fbf9a; }
.marker.pm .pm-glyph { width: 9px; height: 9px; flex: none; fill: var(--pm-glyph); pointer-events: none; }
.marker.pm .pm-val { pointer-events: none; }
.marker.pm .pm-bar { position: absolute; left: 4px; right: 4px; bottom: 3px; height: 2px; border-radius: 1px; background: var(--pm-track); overflow: hidden; pointer-events: none; }
.marker.pm .pm-bar i { display: block; width: var(--pm-p, 0%); height: 100%; background: var(--pm-fill); }
.marker.pm .pm-stem { position: absolute; left: 50%; top: 100%; width: 1.5px; height: 9px; margin-left: -.75px; background: var(--pm-bd); pointer-events: none; }
.marker.pm.pm-io .pm-stem { background: #101828; }
.marker.pm .pm-stem::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--pm-glyph); box-shadow: 0 0 0 1.5px #ffffff; }
.marker.pm .pm-gap { position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; border: 2px solid #ffffff; background: #f0a500; color: #f0a500; pointer-events: none; }
.marker.pm.pm-radar-red .pm-gap { background: #d92d20; color: #d92d20; }
.marker.pm .pm-gap::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid currentColor; animation: pmPing 2.4s ease-out infinite; }
@keyframes pmPing { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.pulse-lite .marker.pm .pm-gap::after { animation-timing-function: steps(10, end); }
@media (prefers-reduced-motion: reduce) { .marker.pm .pm-gap::after { animation: none; opacity: .5; } }

/* Sin el pulso de color anterior */
.marker.pm:before, .marker.pm:after { display: none !important; animation: none !important; }
.marker.pm:hover { z-index: 5; box-shadow: 0 0 0 3px rgba(16, 24, 40, .1), 0 1px 3px rgba(16, 24, 40, .12); }
.marker.pm.sel { z-index: 6; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #101828; }
.marker.pm.pm-hl { z-index: 5; box-shadow: 0 0 0 3px rgba(32, 220, 137, .45); }
.marker.pm.pm-dim { opacity: .28; }
.marker.pm.pm-dim .pm-gap::after { display: none; }
.marker.pm.pm-off, .card.pm-off { display: none !important; }
.marker.pm.loop-focus { z-index: 5; box-shadow: 0 0 0 3px rgba(32, 220, 137, .55); }
.wizard-mode .marker.pm.ghost { opacity: .4; }

/* Panel derecho */
#progPanel { display: grid; gap: 12px; align-content: start; }
#progPanel[hidden] { display: none !important; }
.pv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pv-clear { flex: none; min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid #3a5c66; background: transparent; color: #fff; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.pv-clear:hover { border-color: var(--mint); }
.pv-card { display: grid; gap: 7px; width: 100%; padding: 13px 14px; border-radius: 12px; background: #fff; border: 1.5px solid #dcebe6; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease; }
.pv-card.hv { border-color: var(--mint); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.pv-card.on { border-color: #101828; box-shadow: 0 0 0 4px rgba(32, 220, 137, .45); }
.pv-head { display: flex; align-items: center; gap: 8px; }
.pv-head b { flex: 1; font-size: .86rem; font-weight: 800; }
.pv-head strong { font-size: 1.55rem; font-weight: 800; line-height: 1; }
.pv-head strong.small { font-size: 1.1rem; color: #3d5a62; }
.pv-icon { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.pv-icon.io { background: #101828; } .pv-icon.io .pv-g { fill: #5fbf9a; }
.pv-icon.tri { background: #eef2ff; } .pv-icon.tri .pv-g { fill: #1636a8; }
.pv-icon.out { background: #f2f4f7; } .pv-icon.out .pv-g { fill: #98a2b3; }
.pv-g { width: 10px; height: 10px; }
.pv-bar { display: block; height: 8px; border-radius: 4px; background: #e7eeec; overflow: hidden; }
.pv-bar i { display: block; height: 100%; background: #3dbd8b; }
.pv-sub { font-size: .74rem; color: #4a646b; line-height: 1.35; }
.pv-gap { display: flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; }
.pv-gap i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.pv-gap.red { color: #a31f1f; } .pv-gap.red i { background: #d92d20; }
.pv-gap.yel { color: #7a5600; } .pv-gap.yel i { background: #f0a500; }
.pv-kick { font-size: .66rem; letter-spacing: .1em; font-weight: 800; color: #9ff0c9; text-transform: uppercase; }
.pv-comp { display: grid; gap: 6px; }
.pv-compbar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; font-size: .7rem; font-weight: 800; color: #fff; }
.pv-compbar span { display: grid; place-items: center; min-width: 18px; }
.pv-complab { display: flex; justify-content: space-between; font-size: .7rem; color: #b9d2cb; }
.pv-legend { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #153a45; font-size: .78rem; color: #d7eeea; }
.pv-legend > span:not(.pv-kick) { display: flex; align-items: center; gap: 10px; }
.pv-legend small { color: #a9c6bf; font-size: .72rem; line-height: 1.4; }
.pv-pill { flex: none; width: 44px; height: 20px; box-sizing: border-box; border-radius: 5px; display: flex; align-items: center; justify-content: center; gap: 4px; font-style: normal; font-size: .66rem; font-weight: 700; border: 1px solid #d0d5dd; background: #f2f4f7; color: #475467; }
.pv-pill .pv-g { width: 8px; height: 8px; fill: #98a2b3; }
.pv-pill.io { background: #101828; border-color: #101828; color: #fff; } .pv-pill.io .pv-g { fill: #5fbf9a; }
.pv-pill.tri { background: #fff; border-color: #b3c1ea; color: #101828; } .pv-pill.tri .pv-g { fill: #1636a8; }
.pv-dots { flex: none; width: 44px; display: flex; justify-content: center; gap: 6px; }
.pv-dots b { width: 9px; height: 9px; border-radius: 50%; }
.pv-dots b.red { background: #d92d20; } .pv-dots b.yel { background: #f0a500; }

/* Botón para reabrir el panel si se cerró */
.prog-reopen { position: absolute; right: 14px; top: 14px; z-index: 8; border: 0; border-radius: 11px; padding: 10px 14px; background: rgba(13, 41, 51, .92); color: #fff; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; box-shadow: 0 8px 22px rgba(13, 41, 51, .25); }
.prog-reopen:hover { background: #17404c; }
.prog-reopen[hidden] { display: none; }
.appview-site .prog-reopen { display: none; }

/* v3.4.8.3 · actividades agrupadas cuando se tocan en el plano */
.marker.pm.pm-clustered { display: none !important; }
.marker.pm.pm-cluster { z-index: 4; cursor: pointer; gap: 4px; padding-right: 9px; box-shadow: 3px -3px 0 -1px var(--pm-bg), 3px -3px 0 0 var(--pm-bd), 0 1px 2px rgba(16,24,40,.12), 0 1px 3px rgba(16,24,40,.08); }
.marker.pm.pm-cluster .pm-glyph + .pm-glyph { margin-left: -2px; }
.marker.pm.pm-cluster .pm-cl-label { font-weight: 500; opacity: .75; pointer-events: none; }
.marker.pm.pm-cluster[aria-expanded="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #101828; }
.pm-cluster-list { position: absolute; z-index: 30; width: 290px; transform: translate(-50%, 10px); background: #fff; border: 1px solid #eaecf0; border-radius: 10px; box-shadow: 0 12px 16px -4px rgba(16,24,40,.12), 0 4px 6px -2px rgba(16,24,40,.05); overflow: hidden; }
.map-world.live-zoom .pm-cluster-list { display: none; }
.pm-cl-head { padding: 9px 12px; font-size: 12px; font-weight: 600; color: #475467; border-bottom: 1px solid #f2f4f7; }
.pm-cluster-list button { width: 100%; display: grid; grid-template-columns: 20px 1fr auto auto; align-items: center; gap: 8px; padding: 8px 12px; border: 0; background: #fff; text-align: left; cursor: pointer; font-family: inherit; color: #101828; }
.pm-cluster-list button:hover, .pm-cluster-list button.on { background: #f9fafb; }
.pm-cl-g { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; border: 1px solid #d0d5dd; background: #f2f4f7; }
.pm-cl-g svg { width: 8px; height: 8px; fill: #98a2b3; }
.pm-cl-io { background: #101828; border-color: #101828; } .pm-cl-io svg { fill: #5fbf9a; }
.pm-cl-tri { background: #fff; border-color: #b3c1ea; } .pm-cl-tri svg { fill: #1636a8; }
.pm-cl-t { display: flex; flex-direction: column; min-width: 0; }
.pm-cl-t b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-cl-t small { font-size: 11.5px; color: #667085; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-cl-p { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pm-cl-gap { width: 8px; height: 8px; border-radius: 50%; }
.pm-cl-gap-red { background: #d92d20; } .pm-cl-gap-yel { background: #f0a500; }
.marker.pm.pm-cluster .pm-g-io { fill: #5fbf9a; }
.marker.pm.pm-cluster .pm-g-tri { fill: #1636a8; }
.marker.pm.pm-cluster.pm-io .pm-g-tri { fill: #8ea6f5; }
.marker.pm.pm-cluster .pm-g-out { fill: #98a2b3; }
