/* Consulta fisio — dashboard clínico (S100-b). Se usa en el hub del cliente (Fisioterapia)
   y en el tab Consulta fisio. Solo tokens del tenant; la escala de calor (amarillo→rojo)
   es semántica clínica, no color de marca. */

html {
  --bpm-skin-1: #4b5560;
  --bpm-skin-2: #3a424c;
  --bpm-skin-3: #2a3139;
  --bpm-muscle: #46505b;
  --bpm-muscle-hi: #5b6673;
  --bpm-muscle-lo: #3b434c;
  --bpm-sep: rgba(6, 9, 12, 0.55);
  --bpm-edge: rgba(255, 255, 255, 0.16);
  --pdx-stage:
    radial-gradient(60% 50% at 50% 30%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 70%),
    linear-gradient(180deg, #14191e 0%, #0d1115 100%);
  --pdx-good: #34c77b;
  --pdx-mid: #f0a43a;
  --pdx-bad: #f0524a;
}
html[data-theme="light"] {
  --bpm-skin-1: #e4e8ec;
  --bpm-skin-2: #d2d8de;
  --bpm-skin-3: #bec6ce;
  --bpm-muscle: #cbd2d9;
  --bpm-muscle-hi: #e1e6ea;
  --bpm-muscle-lo: #bcc4cc;
  --bpm-sep: rgba(48, 60, 72, 0.32);
  --bpm-edge: rgba(48, 60, 72, 0.38);
  --pdx-stage:
    radial-gradient(60% 50% at 50% 30%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 70%),
    linear-gradient(180deg, #f6f7f9 0%, #eceff2 100%);
  --pdx-good: #1f9d5c;
  --pdx-mid: #c27a10;
  --pdx-bad: #d23b33;
}

/* ── Contenedor ─────────────────────────────────────────────────────── */
#tab-recuperacion .pdx {
  --pdx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pdx-r: calc(16px * var(--radius-scale, 1));
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: var(--fitos-font, "Plus Jakarta Sans", "Inter", system-ui, sans-serif);
}
#tab-recuperacion #recovery-plan-bar,
#tab-recuperacion #recovery-fab-wrap { display: none !important; }

#mc-client-hub-dialog #tab-recuperacion.is-hub-embedded .physio-contextbar,
#mc-client-hub-dialog #tab-recuperacion.is-hub-embedded #recovery-fab-wrap { display: none !important; }
#mc-client-hub-dialog #tab-recuperacion.is-hub-embedded .pdx { overflow: visible; }
#mc-client-hub-dialog #tab-recuperacion.is-hub-embedded .pdx .pdx-body { overflow: visible; padding-inline: 0; }
#mc-client-hub-dialog #tab-recuperacion.is-hub-embedded .pdx .pdx-head { padding-inline: 0; padding-top: 0; background: none; }

/* ── Cabecera ───────────────────────────────────────────────────────── */
#tab-recuperacion .pdx .pdx-head {
  display: block;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 5%, transparent), transparent);
}
#tab-recuperacion .pdx .pdx-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
}
#tab-recuperacion .pdx .pdx-ident { min-width: 0; flex: 1 1 260px; }
#tab-recuperacion .pdx .pdx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
#tab-recuperacion .pdx .pdx-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}
#tab-recuperacion .pdx .pdx-title {
  margin: 6px 0 8px;
  font-family: "Syne", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  white-space: normal;
  color: var(--text);
  cursor: pointer;
  transition: color 160ms ease;
}
#tab-recuperacion .pdx .pdx-title:hover { color: color-mix(in srgb, var(--primary) 75%, var(--text)); }
#tab-recuperacion .pdx .pdx-title:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
#tab-recuperacion .pdx .pdx-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
#tab-recuperacion .pdx .pdx-meta-t b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }

#tab-recuperacion .pdx .pdx-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.3;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: var(--text);
  white-space: nowrap;
}
#tab-recuperacion .pdx .pdx-sev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#tab-recuperacion .pdx .pdx-sev.is-leve { color: var(--pdx-good); background: color-mix(in srgb, var(--pdx-good) 13%, transparent); }
#tab-recuperacion .pdx .pdx-sev.is-moderada { color: var(--pdx-mid); background: color-mix(in srgb, var(--pdx-mid) 14%, transparent); }
#tab-recuperacion .pdx .pdx-sev.is-severa { color: var(--pdx-bad); background: color-mix(in srgb, var(--pdx-bad) 14%, transparent); }
#tab-recuperacion .pdx .pdx-pill.is-active { color: var(--pdx-good); background: color-mix(in srgb, var(--pdx-good) 13%, transparent); }
#tab-recuperacion .pdx .pdx-pill.is-closed { color: var(--muted); }

#tab-recuperacion .pdx .pdx-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
}
#tab-recuperacion .pdx .pdx-plan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  font-size: 0.8rem;
  max-width: 100%;
}
#tab-recuperacion .pdx .pdx-plan-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
#tab-recuperacion .pdx .pdx-plan.is-active .pdx-plan-dot { background: var(--pdx-good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pdx-good) 22%, transparent); }
#tab-recuperacion .pdx .pdx-plan.is-expired { border-color: color-mix(in srgb, var(--pdx-bad) 35%, var(--hairline)); }
#tab-recuperacion .pdx .pdx-plan.is-expired .pdx-plan-dot { background: var(--pdx-bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pdx-bad) 22%, transparent); }
#tab-recuperacion .pdx .pdx-plan.is-scheduled .pdx-plan-dot { background: var(--pdx-mid); }
#tab-recuperacion .pdx .pdx-plan-text { display: grid; gap: 1px; min-width: 0; line-height: 1.25; }
#tab-recuperacion .pdx .pdx-plan-text strong { font-weight: 650; color: var(--text); }
#tab-recuperacion .pdx .pdx-plan-text span { color: var(--muted); font-size: 0.74rem; font-variant-numeric: tabular-nums; }
#tab-recuperacion .pdx .pdx-plan-actions { display: inline-flex; gap: 2px; padding-left: 6px; border-left: 1px solid var(--hairline); }

#tab-recuperacion .pdx .pdx-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
#tab-recuperacion .pdx .pdx-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  width: auto;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  transition: transform 160ms var(--pdx-ease), background 160ms ease, border-color 160ms ease;
}
#tab-recuperacion .pdx .pdx-btn.ghost { border: 1px solid var(--hairline); background: var(--surface); color: var(--text); }
#tab-recuperacion .pdx .pdx-btn.ghost:hover:not(:disabled) { border-color: color-mix(in srgb, var(--primary) 45%, var(--hairline)); }
#tab-recuperacion .pdx .pdx-btn:active:not(:disabled) { transform: scale(0.97); }
#tab-recuperacion .pdx .pdx-btn:disabled { opacity: 0.45; cursor: not-allowed; }
#tab-recuperacion .pdx .pdx-btn .nav-ico { width: 16px; height: 16px; flex: none; }
#tab-recuperacion .pdx .pdx-btn.sm { height: 32px; padding: 0 12px; font-size: 0.78rem; }
#tab-recuperacion .pdx .pdx-count {
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}
#tab-recuperacion .pdx .pdx-more {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  font-size: 1.1rem;
  line-height: 1;
}
#tab-recuperacion .pdx .physio-overflow-menu { min-width: 200px; background: var(--surface-2, var(--surface)); border-color: var(--hairline); }
html[data-theme="light"] #tab-recuperacion .pdx .physio-overflow-menu { box-shadow: 0 12px 28px rgba(20, 30, 40, 0.16); }
#tab-recuperacion .pdx .physio-overflow-menu button:hover:not(:disabled) { background: color-mix(in srgb, var(--text) 6%, transparent); }

#tab-recuperacion .pdx .pdx-link {
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--primary) 85%, var(--text));
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease;
}
#tab-recuperacion .pdx .pdx-link:hover { background: color-mix(in srgb, var(--primary) 11%, transparent); }
#tab-recuperacion .pdx .pdx-link.is-muted { color: var(--muted); }
#tab-recuperacion .pdx .pdx-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

#tab-recuperacion .pdx .pdx-banners { display: grid; gap: 6px; margin-top: 14px; }
#tab-recuperacion .pdx .pdx-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 8px 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  font-size: 0.82rem;
  line-height: 1.35;
  animation: pdx-rise 360ms var(--pdx-ease) both;
}
#tab-recuperacion .pdx .pdx-banner > span { flex: 1 1 auto; min-width: 0; }
#tab-recuperacion .pdx .pdx-banner .nav-ico { width: 16px; height: 16px; flex: none; }
#tab-recuperacion .pdx .pdx-banner.is-danger { border-color: color-mix(in srgb, var(--pdx-bad) 35%, transparent); background: color-mix(in srgb, var(--pdx-bad) 10%, transparent); }
#tab-recuperacion .pdx .pdx-banner.is-danger .nav-ico { color: var(--pdx-bad); }
#tab-recuperacion .pdx .pdx-banner.is-warn { border-color: color-mix(in srgb, var(--pdx-mid) 35%, transparent); background: color-mix(in srgb, var(--pdx-mid) 10%, transparent); }
#tab-recuperacion .pdx .pdx-banner.is-warn .nav-ico { color: var(--pdx-mid); }
#tab-recuperacion .pdx .pdx-banner.is-info { background: color-mix(in srgb, var(--text) 4%, transparent); }

/* ── Cuerpo y rejilla ───────────────────────────────────────────────── */
#tab-recuperacion .pdx .pdx-body {
  container: pdx / inline-size;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 20px 28px;
}
#tab-recuperacion .pdx .pdx-body[hidden] { display: none !important; }

#tab-recuperacion .pdx .pdx-grid { display: grid; gap: 14px; min-width: 0; }
#tab-recuperacion .pdx .pdx-grid--main { grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr); }
#tab-recuperacion .pdx .pdx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#tab-recuperacion .pdx .pdx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container pdx (max-width: 1020px) {
  #tab-recuperacion .pdx .pdx-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tab-recuperacion .pdx .pdx-grid--3 > :last-child { grid-column: 1 / -1; }
}
@container pdx (max-width: 760px) {
  #tab-recuperacion .pdx .pdx-grid--main,
  #tab-recuperacion .pdx .pdx-grid--2,
  #tab-recuperacion .pdx .pdx-grid--3 { grid-template-columns: minmax(0, 1fr); }
  #tab-recuperacion .pdx .pdx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#tab-recuperacion .pdx .pdx-card {
  position: relative;
  min-width: 0;
  padding: 16px;
  border-radius: var(--pdx-r);
  border: 1px solid var(--hairline);
  background: var(--surface);
  animation: pdx-rise 480ms var(--pdx-ease) both;
  animation-delay: calc(var(--pdx-i, 0) * 45ms);
}
#tab-recuperacion .pdx .pdx-card.is-flash,
#tab-recuperacion .pdx .pdx-card .is-flash { animation: pdx-flash 1200ms ease-out; }
#tab-recuperacion .pdx .pdx-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
#tab-recuperacion .pdx .pdx-card-titles { min-width: 0; }
#tab-recuperacion .pdx .pdx-card-head h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
#tab-recuperacion .pdx .pdx-card-sub { margin: 3px 0 0; font-size: 0.75rem; line-height: 1.4; color: var(--muted); }
#tab-recuperacion .pdx .pdx-card-foot { margin: 12px 0 0; font-size: 0.72rem; color: var(--muted); }
#tab-recuperacion .pdx .pdx-sub-h {
  margin: 16px 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── KPIs ───────────────────────────────────────────────────────────── */
#tab-recuperacion .pdx .pdx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#tab-recuperacion .pdx .pdx-kpis:empty { display: none; }
@container pdx (max-width: 760px) {
  #tab-recuperacion .pdx .pdx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#tab-recuperacion .pdx .pdx-kpi {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  min-height: 112px;
  padding: 14px 16px;
  border-radius: var(--pdx-r);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 180ms ease, transform 220ms var(--pdx-ease), box-shadow 220ms ease;
  animation: pdx-rise 460ms var(--pdx-ease) both;
  animation-delay: calc(var(--pdx-i, 0) * 50ms);
}
#tab-recuperacion .pdx .pdx-kpi:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--hairline));
  transform: translateY(-1px);
  box-shadow: 0 8px 22px color-mix(in srgb, #000 16%, transparent);
}
#tab-recuperacion .pdx .pdx-kpi:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
#tab-recuperacion .pdx .pdx-kpi.is-warn { border-color: color-mix(in srgb, var(--pdx-mid) 30%, var(--hairline)); }
#tab-recuperacion .pdx .pdx-kpi-l { font-size: 0.74rem; font-weight: 600; color: var(--muted); }
#tab-recuperacion .pdx .pdx-kpi-v {
  font-size: 1.9rem;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
#tab-recuperacion .pdx .pdx-kpi-v small { margin-left: 2px; font-size: 0.8rem; font-weight: 550; letter-spacing: 0; color: var(--muted); }
#tab-recuperacion .pdx .pdx-kpi-sub {
  font-size: 0.74rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#tab-recuperacion .pdx :is(.pdx-kpi-v, .pdx-kpi-sub, .pdx-stats b).is-good { color: var(--pdx-good); }
#tab-recuperacion .pdx :is(.pdx-kpi-v, .pdx-kpi-sub, .pdx-stats b).is-mid { color: var(--pdx-mid); }
#tab-recuperacion .pdx :is(.pdx-kpi-v, .pdx-kpi-sub, .pdx-stats b).is-bad { color: var(--pdx-bad); }
#tab-recuperacion .pdx .pdx-spark {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 84px;
  height: 28px;
  overflow: visible;
}
#tab-recuperacion .pdx .pdx-spark-line { fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; }
#tab-recuperacion .pdx .pdx-spark-area { fill: color-mix(in srgb, var(--primary) 16%, transparent); stroke: none; }
#tab-recuperacion .pdx .pdx-spark circle { fill: var(--primary); stroke: var(--surface); stroke-width: 1.5; }
#tab-recuperacion .pdx .pdx-meter {
  display: block;
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 9%, transparent);
  overflow: hidden;
}
#tab-recuperacion .pdx .pdx-meter i {
  display: block;
  height: 100%;
  width: var(--pdx-w, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 70%, transparent), var(--primary));
  animation: pdx-grow-x 900ms var(--pdx-ease) both 200ms;
  transform-origin: left center;
}

/* ── Mapa corporal ──────────────────────────────────────────────────── */
#tab-recuperacion .pdx .pdx-map-card { display: flex; flex-direction: column; }
#tab-recuperacion .pdx .pdx-seg.physio-map-view-toggle {
  display: inline-flex;
  flex: none;
  padding: 3px;
  gap: 2px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border: 0;
}
#tab-recuperacion .pdx .pdx-seg .ghost {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  box-shadow: none;
}
#tab-recuperacion .pdx .pdx-seg .ghost.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px color-mix(in srgb, #000 22%, transparent);
}
#tab-recuperacion .pdx .pdx-map-stage {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: clamp(380px, 54vh, 500px);
  margin: 0;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--hairline) 80%, transparent);
  background: var(--pdx-stage);
  overflow: hidden;
}
#tab-recuperacion .pdx .body-pain-map {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 14px 10px 10px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
}
#tab-recuperacion .pdx .body-pain-map .bpm-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#tab-recuperacion .pdx .bpm-view--anat {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bpm-in 420ms var(--pdx-ease) both;
}
#tab-recuperacion .pdx .bpm-view--anat .bpm-svg {
  height: 100%;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  overflow: visible;
}
#tab-recuperacion .pdx .bpm-view-label { display: none; }

.bpm-view--anat .bpm-svg { overflow: visible; }
.bpm-view--anat .bpm-outline { fill: none; stroke: var(--bpm-edge); stroke-width: 0.9; stroke-linejoin: round; pointer-events: none; }
.bpm-view--anat .bpm-skin,
.bpm-view--anat .bpm-head { stroke: none; }
.bpm-view--anat .bpm-relief { fill: var(--bpm-muscle-lo); stroke: var(--bpm-sep); stroke-width: 0.7; pointer-events: none; }
.bpm-view--anat .bpm-seg {
  fill: var(--bpm-muscle);
  stroke: var(--bpm-sep);
  stroke-width: 0.75;
  stroke-linejoin: round;
  cursor: pointer;
  outline: none;
  transition: fill 220ms ease, stroke 220ms ease;
}
.bpm-view--anat .bpm-seg:is(:hover, .is-hover, :focus-visible) { fill: var(--bpm-muscle-hi); }
.bpm-view--anat .bpm-seg.bpm-seg-active { fill: color-mix(in srgb, var(--bpm-heat) var(--bpm-mix, 40%), var(--bpm-muscle)); stroke: color-mix(in srgb, var(--bpm-heat) 35%, var(--bpm-sep)); }
.bpm-view--anat .bpm-seg.bpm-seg-active:is(:hover, .is-hover, :focus-visible) { fill: color-mix(in srgb, var(--bpm-heat) calc(var(--bpm-mix, 40%) + 14%), var(--bpm-muscle-hi)); }
.bpm-view--anat .bpm-seg.bpm-seg-pending {
  fill: color-mix(in srgb, var(--primary) 55%, var(--bpm-muscle));
  stroke: var(--primary);
  stroke-width: 1.2;
  animation: bpm-pending 1.2s ease-in-out infinite;
}
.body-pain-map-disabled .bpm-view--anat .bpm-seg { cursor: default; }
.bpm-view--anat .bpm-detail path { fill: none; stroke: var(--bpm-sep); stroke-width: 0.7; stroke-linecap: round; opacity: 0.75; pointer-events: none; }
.bpm-view--anat .bpm-spine { stroke-dasharray: 1.4 3.2; opacity: 0.9; }
.bpm-view--anat .bpm-spine--front { stroke-dasharray: none; opacity: 0.5; }
.bpm-view--anat .bpm-rl { fill: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.bpm-marker { animation: bpm-pop 520ms var(--pdx-ease, ease-out) both; animation-delay: calc(240ms + var(--bpm-i, 0) * 90ms); transform-box: fill-box; transform-origin: center; }
.bpm-marker-glow { fill: var(--bpm-heat); opacity: 0.9; transform-box: fill-box; transform-origin: center; animation: bpm-breathe 2.8s ease-in-out infinite; }
html:not([data-theme="light"]) .bpm-marker-glow { mix-blend-mode: screen; }
.bpm-marker-ring { fill: none; stroke: var(--bpm-heat); stroke-width: 1; opacity: 0.85; }
.bpm-marker-core { fill: #fff; stroke: var(--bpm-heat); stroke-width: 2; }
.bpm-marker-tag rect { fill: rgba(12, 15, 18, 0.88); stroke: var(--bpm-heat); stroke-width: 0.8; }
.bpm-marker-tag text { fill: #fff; font-size: 8.5px; font-weight: 750; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-variant-numeric: tabular-nums; }

.body-pain-map--anat .bpm-tip {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 3px;
  min-width: 168px;
  max-width: 230px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--surface-2, var(--surface));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-size: 0.74rem;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% + 4px));
  transition: opacity 140ms ease, transform 180ms var(--pdx-ease, ease-out);
}
.body-pain-map--anat .bpm-tip.is-on { opacity: 1; transform: translate(-50%, -100%); }
.body-pain-map--anat .bpm-tip strong { font-size: 0.78rem; font-weight: 700; }
.body-pain-map--anat .bpm-tip-val { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.body-pain-map--anat .bpm-tip-val i { width: 8px; height: 8px; border-radius: 50%; background: var(--bpm-heat); box-shadow: 0 0 8px var(--bpm-heat); }
.body-pain-map--anat .bpm-tip-val.is-none { color: var(--muted); font-weight: 500; }
.body-pain-map--anat .bpm-tip em { font-style: normal; color: var(--muted); font-size: 0.7rem; }

#tab-recuperacion .pdx .bpm-legend,
.body-pain-map--anat .bpm-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}
.body-pain-map--anat .bpm-legend-bar {
  width: 120px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, hsl(48 92% 60%), hsl(25 92% 56%), hsl(2 92% 52%));
}
#tab-recuperacion .pdx .body-pain-map-hint { margin: 4px 0 0; text-align: center; font-size: 0.72rem; color: var(--muted); }

#tab-recuperacion .pdx .pdx-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
#tab-recuperacion .pdx .pdx-points:empty { display: none; }
#tab-recuperacion .pdx .pdx-point {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--text) 3%, transparent);
  font-size: 0.76rem;
}
#tab-recuperacion .pdx .pdx-point > i { width: 8px; height: 8px; border-radius: 50%; background: var(--bpm-heat); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bpm-heat) 22%, transparent); }
#tab-recuperacion .pdx .pdx-point b { font-variant-numeric: tabular-nums; }
#tab-recuperacion .pdx .pdx-point time { color: var(--muted); font-size: 0.7rem; }
#tab-recuperacion .pdx .pdx-point .pain-point-del { width: 24px; height: 24px; min-width: 24px; padding: 0; border-radius: 50%; color: var(--muted); }
#tab-recuperacion .pdx .pdx-point .pain-point-del:hover { color: var(--pdx-bad); background: color-mix(in srgb, var(--pdx-bad) 12%, transparent); }
#tab-recuperacion .pdx .pdx-point .pain-point-del .nav-ico { width: 13px; height: 13px; }
#tab-recuperacion .pdx .pdx-points-empty { font-size: 0.75rem; color: var(--muted); }

/* ── Gráficos ───────────────────────────────────────────────────────── */
#tab-recuperacion .pdx .pdx-eva-card { display: flex; flex-direction: column; }
#tab-recuperacion .pdx .physio-eva-chart { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; height: auto; gap: 0; overflow: visible; padding: 0; border: 0; border-radius: 0; background: none; }
#tab-recuperacion .pdx .pdx-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 4px; }
#tab-recuperacion .pdx .pdx-stats > span {
  display: grid;
  gap: 1px;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
#tab-recuperacion .pdx .pdx-stats b {
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
#tab-recuperacion .pdx .pdx-stats--eva b { font-size: 1.45rem; }
#tab-recuperacion .pdx .pdx-eva-plot { flex: 1 1 auto; display: flex; align-items: center; min-height: 0; }
#tab-recuperacion .pdx .pdx-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
#tab-recuperacion .pdx .pdx-grid-line { stroke: color-mix(in srgb, var(--text) 8%, transparent); stroke-width: 1; }
#tab-recuperacion .pdx .pdx-grid-line.is-base { stroke: color-mix(in srgb, var(--text) 18%, transparent); }
#tab-recuperacion .pdx .pdx-axis { fill: var(--muted); font-size: 10.5px; font-weight: 550; font-variant-numeric: tabular-nums; }
#tab-recuperacion .pdx .pdx-thresh-band { fill: color-mix(in srgb, var(--pdx-bad) 6%, transparent); }
#tab-recuperacion .pdx .pdx-thresh-line { stroke: color-mix(in srgb, var(--pdx-bad) 60%, transparent); stroke-width: 1.2; stroke-dasharray: 5 5; }
#tab-recuperacion .pdx .pdx-thresh-label { fill: var(--pdx-bad); font-size: 10px; font-weight: 700; }
#tab-recuperacion .pdx .pdx-eva-area { animation: pdx-fade 900ms ease both 250ms; }
#tab-recuperacion .pdx .pdx-eva-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: pdx-draw 1100ms var(--pdx-ease) both 120ms;
  filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--primary) 35%, transparent));
}
#tab-recuperacion .pdx .pdx-eva-pt { cursor: default; outline: none; animation: pdx-fade 360ms ease both; animation-delay: calc(500ms + var(--pdx-d, 0) * 45ms); }
#tab-recuperacion .pdx .pdx-eva-hit { fill: transparent; }
#tab-recuperacion .pdx .pdx-eva-dot {
  fill: var(--surface);
  stroke: var(--primary);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 180ms var(--pdx-ease);
}
#tab-recuperacion .pdx .pdx-eva-pt.is-consult .pdx-eva-dot { fill: var(--primary); stroke: var(--surface); stroke-width: 2.2; }
#tab-recuperacion .pdx .pdx-eva-pt.is-alert .pdx-eva-dot { stroke: var(--pdx-bad); }
#tab-recuperacion .pdx .pdx-eva-pt.is-consult.is-alert .pdx-eva-dot { fill: var(--pdx-bad); stroke: var(--surface); }
#tab-recuperacion .pdx .pdx-eva-pt:is(:hover, :focus-visible) .pdx-eva-dot { transform: scale(1.45); }
#tab-recuperacion .pdx .pdx-eva-bubble { animation: pdx-fade 360ms ease both 1000ms; }
#tab-recuperacion .pdx .pdx-eva-bubble rect { fill: var(--primary); }
#tab-recuperacion .pdx .pdx-eva-bubble text { fill: var(--on-primary, #fff); font-size: 11.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
#tab-recuperacion .pdx .pdx-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--muted);
}
#tab-recuperacion .pdx .pdx-legend span { display: inline-flex; align-items: center; gap: 6px; }
#tab-recuperacion .pdx .pdx-legend em { margin-left: auto; font-style: normal; font-variant-numeric: tabular-nums; }
#tab-recuperacion .pdx .pdx-legend i { width: 9px; height: 9px; border-radius: 50%; }
#tab-recuperacion .pdx .pdx-legend i.is-consult { background: var(--primary); }
#tab-recuperacion .pdx .pdx-legend i.is-app { border: 2px solid var(--primary); }
#tab-recuperacion .pdx .pdx-legend i.is-thresh { width: 14px; height: 0; border-radius: 0; border-top: 1.5px dashed var(--pdx-bad); }

#tab-recuperacion .pdx .pdx-bar rect {
  fill: var(--pdx-heat);
  opacity: 0.92;
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: pdx-grow-y 700ms var(--pdx-ease) both;
  animation-delay: calc(150ms + var(--pdx-b, 0) * 45ms);
}
#tab-recuperacion .pdx .pdx-bar:hover rect { opacity: 1; }
#tab-recuperacion .pdx .pdx-bar-val { fill: var(--text); font-size: 10px; font-weight: 700; animation: pdx-fade 300ms ease both 600ms; }
#tab-recuperacion .pdx .pdx-avg-line { stroke: color-mix(in srgb, var(--text) 45%, transparent); stroke-width: 1; stroke-dasharray: 3 4; }
#tab-recuperacion .pdx .pdx-avg-label { fill: var(--muted); font-size: 10px; font-weight: 650; }

/* ── Cumplimiento HEP (heatmap) ─────────────────────────────────────── */
#tab-recuperacion .pdx .pdx-hm { display: grid; gap: 6px; }
#tab-recuperacion .pdx .pdx-hm-row { display: grid; grid-template-columns: 46px repeat(7, minmax(0, 1fr)); gap: 6px; align-items: center; }
#tab-recuperacion .pdx .pdx-hm-days em { font-style: normal; text-align: center; font-size: 0.66rem; font-weight: 700; color: var(--muted); }
#tab-recuperacion .pdx .pdx-hm-wk { font-size: 0.68rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
#tab-recuperacion .pdx .pdx-hm-cell {
  height: 24px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  transition: transform 160ms var(--pdx-ease);
  animation: pdx-fade 400ms ease both 200ms;
}
#tab-recuperacion .pdx .pdx-hm-cell:hover { transform: scale(1.08); }
#tab-recuperacion .pdx .pdx-hm-cell.is-done { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 88%, #fff), var(--primary)); box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 30%, transparent); }
#tab-recuperacion .pdx .pdx-hm-cell.is-miss { background: color-mix(in srgb, var(--pdx-mid) 10%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pdx-mid) 55%, transparent); }
#tab-recuperacion .pdx .pdx-hm-cell.is-future { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
#tab-recuperacion .pdx .pdx-hm-cell.is-today { outline: 2px solid color-mix(in srgb, var(--text) 55%, transparent); outline-offset: 2px; }
#tab-recuperacion .pdx .pdx-hm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: 0.7rem; color: var(--muted); }
#tab-recuperacion .pdx .pdx-hm-legend span { display: inline-flex; align-items: center; gap: 5px; }
#tab-recuperacion .pdx .pdx-hm-legend i { width: 10px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--text) 8%, transparent); }
#tab-recuperacion .pdx .pdx-hm-legend i.is-done { background: var(--primary); }
#tab-recuperacion .pdx .pdx-hm-legend i.is-miss { background: transparent; box-shadow: inset 0 0 0 1.5px var(--pdx-mid); }
#tab-recuperacion .pdx .pdx-hm-legend strong { margin-left: auto; color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }

#tab-recuperacion .pdx .pdx-sessions { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
#tab-recuperacion .pdx .pdx-sessions li {
  display: grid;
  grid-template-columns: 8px 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text) 3%, transparent);
  font-size: 0.78rem;
}
#tab-recuperacion .pdx .pdx-sess-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pdx-mid); }
#tab-recuperacion .pdx .pdx-sessions li.is-done .pdx-sess-dot { background: var(--primary); }
#tab-recuperacion .pdx .pdx-sessions time { color: var(--muted); font-variant-numeric: tabular-nums; }
#tab-recuperacion .pdx .pdx-sessions b { font-size: 0.74rem; font-variant-numeric: tabular-nums; }
#tab-recuperacion .pdx .pdx-sessions b.is-none { color: var(--muted); font-weight: 500; }

/* ── HEP / gym / historial ──────────────────────────────────────────── */
#tab-recuperacion .pdx .pdx-hep-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
#tab-recuperacion .pdx .pdx-hep-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--text) 2%, transparent);
}
#tab-recuperacion .pdx .pdx-hep-n {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 13%, transparent);
  color: color-mix(in srgb, var(--primary) 85%, var(--text));
  font-size: 0.7rem;
  font-weight: 750;
}
#tab-recuperacion .pdx .pdx-hep-name { min-width: 0; display: grid; }
#tab-recuperacion .pdx .pdx-hep-name strong { font-size: 0.82rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tab-recuperacion .pdx .pdx-hep-name em { font-style: normal; font-size: 0.7rem; color: var(--muted); text-transform: capitalize; }
#tab-recuperacion .pdx .pdx-hep-dose {
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  font-size: 0.72rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
#tab-recuperacion .pdx .pdx-hep-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--text) 18%, transparent);
}
#tab-recuperacion .pdx .pdx-hep-list li.is-done .pdx-hep-check { border-color: transparent; background: var(--primary); color: var(--on-primary, #fff); }
#tab-recuperacion .pdx .pdx-hep-check .nav-ico { width: 13px; height: 13px; }
#tab-recuperacion .pdx .pdx-more-note { margin: 8px 0 0; font-size: 0.72rem; color: var(--muted); }

#tab-recuperacion .pdx .pdx-gym-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
#tab-recuperacion .pdx .pdx-gym-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--pdx-mid) 32%, transparent);
  background: color-mix(in srgb, var(--pdx-mid) 9%, transparent);
  font-size: 0.8rem;
  font-weight: 650;
  text-transform: capitalize;
}
#tab-recuperacion .pdx .pdx-gym-list .nav-ico { width: 15px; height: 15px; color: var(--pdx-mid); }

#tab-recuperacion .pdx .pdx-note {
  margin: 0;
  padding: 11px 14px;
  border-radius: 12px;
  border-left: 3px solid var(--primary);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text);
  overflow-wrap: anywhere;
}
#tab-recuperacion .pdx .pdx-note.is-empty { border-left-color: var(--hairline); color: var(--muted); font-size: 0.78rem; }
#tab-recuperacion .pdx .pdx-inj-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
#tab-recuperacion .pdx .pdx-inj {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
#tab-recuperacion .pdx .pdx-inj:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--hairline)); }
#tab-recuperacion .pdx .pdx-inj.is-on { border-color: color-mix(in srgb, var(--primary) 55%, var(--hairline)); background: color-mix(in srgb, var(--primary) 7%, transparent); }
#tab-recuperacion .pdx .pdx-inj:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
#tab-recuperacion .pdx .pdx-inj-dot { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--text) 25%, transparent); }
#tab-recuperacion .pdx .pdx-inj-dot.is-active { background: var(--pdx-good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pdx-good) 22%, transparent); }
#tab-recuperacion .pdx .pdx-inj-t { display: grid; min-width: 0; }
#tab-recuperacion .pdx .pdx-inj-t strong { font-size: 0.82rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tab-recuperacion .pdx .pdx-inj-t em { font-style: normal; font-size: 0.7rem; color: var(--muted); }

/* ── Vacíos ─────────────────────────────────────────────────────────── */
#tab-recuperacion .pdx .pdx-empty-mini,
#tab-recuperacion .pdx .pdx-chart-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 10px;
  text-align: center;
}
#tab-recuperacion .pdx .pdx-empty-mini > .nav-ico {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--muted);
}
#tab-recuperacion .pdx .pdx-empty-mini.is-ok > .nav-ico { color: var(--pdx-good); background: color-mix(in srgb, var(--pdx-good) 12%, transparent); }
#tab-recuperacion .pdx :is(.pdx-empty-mini, .pdx-chart-empty) p { margin: 0; font-size: 0.84rem; font-weight: 650; color: var(--text); }
#tab-recuperacion .pdx :is(.pdx-empty-mini, .pdx-chart-empty) span { font-size: 0.74rem; color: var(--muted); max-width: 300px; }
#tab-recuperacion .pdx :is(.pdx-empty-mini, .pdx-chart-empty) .pdx-btn { margin-top: 6px; }
#tab-recuperacion .pdx .pdx-chart-empty { flex: 1 1 auto; align-content: center; }
#tab-recuperacion .pdx .pdx-chart-empty svg { width: min(100%, 300px); height: auto; }
#tab-recuperacion .pdx .pdx-ghost-line { fill: none; stroke: color-mix(in srgb, var(--text) 16%, transparent); stroke-width: 2.5; stroke-dasharray: 6 7; stroke-linecap: round; }

#tab-recuperacion .pdx-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 56px 20px;
  text-align: center;
}
#tab-recuperacion .pdx-empty[hidden] { display: none !important; }
#tab-recuperacion .pdx-empty .pdx-empty-ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}
#tab-recuperacion .pdx-empty .pdx-empty-ico .nav-ico { width: 26px; height: 26px; }
#tab-recuperacion .pdx-empty h4 { margin: 0; font-size: 1.05rem; font-weight: 700; }
#tab-recuperacion .pdx-empty p { max-width: 440px; margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
#tab-recuperacion .pdx-empty .btn-primary { width: auto; min-width: 180px; margin-top: 8px; min-height: 40px; padding-inline: 20px; border-radius: 10px; }

/* ── Movimiento ─────────────────────────────────────────────────────── */
@keyframes pdx-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pdx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pdx-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pdx-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pdx-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pdx-flash {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 55%, transparent); }
  100% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--primary) 0%, transparent); }
}
@keyframes bpm-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes bpm-pop { 0% { opacity: 0; transform: scale(0.4); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes bpm-breathe { 0%, 100% { transform: scale(0.92); opacity: 0.85; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes bpm-pending { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  #tab-recuperacion .pdx *,
  .bpm-view--anat * { animation: none !important; transition: none !important; }
  #tab-recuperacion .pdx .pdx-card,
  #tab-recuperacion .pdx .pdx-kpi,
  #tab-recuperacion .pdx .pdx-banner,
  #tab-recuperacion .pdx .bpm-view--anat { animation: none !important; }
}

/* ── Móvil ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  #tab-recuperacion .pdx .pdx-head { padding: 14px 14px 12px; }
  #tab-recuperacion .pdx .pdx-body { padding: 12px 12px 24px; gap: 12px; }
  #tab-recuperacion .pdx .pdx-head-side { align-items: stretch; width: 100%; }
  #tab-recuperacion .pdx .pdx-plan { width: 100%; }
  #tab-recuperacion .pdx .pdx-plan-text { flex: 1 1 auto; }
  #tab-recuperacion .pdx .pdx-actions { justify-content: flex-start; }
  #tab-recuperacion .pdx .pdx-actions .btn-primary.pdx-btn { flex: 1 1 100%; justify-content: center; }
  #tab-recuperacion .pdx .pdx-actions .ghost.pdx-btn { flex: 1 1 0; justify-content: center; }
  #tab-recuperacion .pdx .pdx-kpi { min-height: 100px; padding: 12px; }
  #tab-recuperacion .pdx .pdx-kpi-v { font-size: 1.6rem; }
  #tab-recuperacion .pdx .pdx-spark { display: none; }
  #tab-recuperacion .pdx .pdx-map-stage { height: 420px; }
  #tab-recuperacion .pdx .pdx-card { padding: 14px; }
}
