/**
 * MEJORA VISUAL — Potreros (#pg-pot)
 * Reglas: .cursor/rules/mejora-visual.mdc
 * v3 (2026-07-08) · potMv3 — hub grid 3 cols, KPI radius 14px
 * v4 (2026-07-08) · potMv4 — dashboard ranking: paneles 48px+rayita, KPI/rent/reco/tabla
 * v5 (2026-07-08) · potMv5 — reco secciones + toolbar ranking grid + CTAs gemelos
 * v6 (2026-07-08) · potNovPadMv1 — padding inferior para nav (Novedades del campo visible)
 * v7 (2026-07-08) · potNovPadMv2 — 9px bajo último bloque + altura nav (sin franja enorme)
 * v8 (2026-07-08) · potNovPadMv3 — 9px margin en wrap; padding solo rail nav (56px)
 * v9 (2026-07-09) · potFiltrosMv1 — filtros Mis potreros/Novedades + CTA = Ver detalle
 * v12 (2026-07-09) · potKpiCardsMv1 — KPI 2×2 tarjetas individuales con gap y pills meta
 * v11 (2026-07-09) · potMapIcoMv1 — iconos HD mapa Agregar/Analizar/Consultar + gap mapa↔tbar
 * v10 (2026-07-09) · potMapCtaMv2 — aire bajo filtros; CTA 28px fijo; mapa Agregar/Analizar/Consultar compacto
 * Clase activadora: #pg-pot.mejora-visual
 */

html body #pg-pot.potreros-serio-v1.mejora-visual {
  --mv-gap: 9px;
  --mv-gap-inner: 8px;
  --mv-pad: 12px;
  --mv-radius: 14px;
  --mv-canvas: #adb8c8;
  --mv-card: #ffffff;
  --mv-inner-canvas: #e2e8f0;
  --mv-accent: #1e293b;
  --mv-line: #cbd5e1;
  --mv-line-strong: #64748b;
  --mv-shadow:
    0 1px 3px rgba(15, 23, 42, 0.08),
    0 4px 12px rgba(15, 23, 42, 0.1);
  --mv-head-rail: 28px;
  --mv-head-h: 48px;
  --mv-head-pad-y: 10px;
  --mv-head-rayita-h: 28px;
  --card-radius: 14px;
  --manto-serio-radius: 14px;
  /* Recuadro filtros Mis potreros / Novedades — borde gris fino (igual Partos) */
  --pot-filtros-box-borde: var(--mv-line, #cbd5e1);
}


/* ══ Canvas página ══ */
html body #pg-pot.potreros-serio-v1.mejora-visual,
html body.light #pg-pot.potreros-serio-v1.mejora-visual {
  background: var(--mv-canvas) !important;
  --pot-nav-rail-h: 56px;
  padding-left: 12px !important;
  padding-right: 12px !important;
  /* Clear nav = altura(nav)+9px vía js/pg-nav-clearance.js */
  padding-bottom: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual > .section,
html body #pg-pot.potreros-serio-v1.mejora-visual .section-body,
html body #pg-pot.potreros-serio-v1.mejora-visual .section-content {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ══ Ritmo vertical — 9px (pisa index-inline gap 8px) ══ */
html body #pg-pot.potreros-serio-v1.mejora-visual > .section {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap) !important;
  row-gap: var(--mv-gap) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual > .section > .section-header {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual > .section > .section-body,
html body #pg-pot.potreros-serio-v1.mejora-visual > .section > .section-body > .section-content {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap) !important;
  row-gap: var(--mv-gap) !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual > .section > .section-body > .section-content > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual #pot-main-vista-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap) !important;
  row-gap: var(--mv-gap) !important;
  margin-bottom: var(--mv-gap, 9px) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual #pot-main-vista-wrap > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ══ Paneles — bloque blanco (pisa Pebble) ══ */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line-strong) !important;
  border-radius: var(--mv-radius) !important;
  box-shadow: var(--mv-shadow) !important;
  overflow: hidden !important;
  transform: none !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel:hover,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel:hover {
  transform: none !important;
  border-color: var(--mv-line-strong) !important;
  box-shadow: var(--mv-shadow) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel::before,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel::before,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel-h::before {
  display: none !important;
  content: none !important;
}

/* ══ Hero — foto + scrim + toolbar ══ */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel--hero {
  background: var(--mv-card) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip {
  background-color: #1e293b !important;
  background-image:
    var(--mv-hero-scrim-leche),
    var(--hero-img) !important;
  background-size: auto, cover !important;
  background-position: center, center 42% !important;
  background-repeat: no-repeat, no-repeat !important;
  min-height: 102px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-bottom: 3px solid var(--mv-line-strong) !important;
  border-radius: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  overflow: hidden !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel--hero .dash-serio-hero__head-row {
  min-height: 92px !important;
  padding: 14px var(--mv-pad) !important;
  position: relative !important;
  z-index: 1 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel--hero .dash-serio-hero__kicker,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel--hero .dash-serio-hero__title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel--hero .pot-hero-lottie.dash-serio-hero__ico-inline {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel--hero .dash-serio-hero__stat.recuadro-contador {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  padding: 5px 4px 6px !important;
  flex: 0 0 72px !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 12px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 14px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transform: none !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel--hero .dash-serio-hero__stat.recuadro-contador :is(
  .dash-serio-hero__stat-lbl,
  .dash-serio-hero__stat-unit,
  .dash-serio-hero__stat-val
) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-hero-toolbar {
  padding: var(--mv-pad) !important;
  background: var(--mv-inner-canvas) !important;
  border-top: 1px solid var(--mv-line) !important;
  border-radius: 0 !important;
}

/* ══ Hub Vista general / Dashboard / Diagnosticar ══ */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-hub-strip.pot-serio-v1__filter-strip {
  margin: 0 !important;
  padding: var(--mv-pad) !important;
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line-strong) !important;
  border-radius: var(--mv-radius) !important;
  box-shadow: var(--mv-shadow) !important;
  gap: var(--mv-gap-inner) !important;
}

/* ══ KPIs campo ══ */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpis-wrap {
  margin: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-panel {
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line-strong) !important;
  border-radius: var(--mv-radius) !important;
  box-shadow: var(--mv-shadow) !important;
  overflow: hidden !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-quick-row {
  background: var(--mv-inner-canvas) !important;
  border-bottom: 1px solid var(--mv-line) !important;
}

/* ══ Cabeceras panel — 48px + rayita (Mapa / Mis potreros / Novedades) ══ */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel-h {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: var(--mv-head-pad-y) var(--mv-pad) !important;
  height: var(--mv-head-h) !important;
  min-height: var(--mv-head-h) !important;
  max-height: var(--mv-head-h) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  background: var(--mv-card) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--mv-line) !important;
  border-left: 4px solid var(--mv-accent) !important;
  box-shadow: none !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--map .pot-panel-h {
  justify-content: flex-start !important;
  padding: var(--mv-head-pad-y) var(--mv-pad) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel-h .pes-serio-panel-htit-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel-h .serio-v1-icon-box.header-bloque {
  width: var(--mv-head-rail) !important;
  min-width: var(--mv-head-rail) !important;
  max-width: var(--mv-head-rail) !important;
  height: var(--mv-head-rail) !important;
  min-height: var(--mv-head-rail) !important;
  max-height: var(--mv-head-rail) !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel-h .pot-panel-h-ico {
  width: var(--mv-head-rail) !important;
  height: var(--mv-head-rail) !important;
  object-fit: contain !important;
  display: block !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel-h .serio-v1-title-box--header-bloque {
  --hb-flank: var(--mv-head-rayita-h) !important;
  position: relative !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 0 0 10px !important;
  box-sizing: border-box !important;
  align-self: center !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel-h .serio-v1-title-box--header-bloque::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  width: 1px !important;
  height: var(--hb-flank) !important;
  background: var(--mv-line, #cbd5e1) !important;
  pointer-events: none !important;
  transform: translateY(-50%) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel-h-tit {
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  color: var(--texto-fuerte, #0f172a) !important;
  text-shadow: none !important;
  margin: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel-h-actions--nov,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel-h .pot-mis-cta {
  flex: 0 0 auto !important;
  align-self: center !important;
}

/* ══ Mis potreros / Novedades — CTA cabecera = «Ver detalle» Descartes (28px, gris seg) ══ */
html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta.btn.bg_,
html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta,
html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--nov .pot-panel-h .pot-kpi-qbtn.pot-kpi-qbtn--nov-panel,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta.btn.bg_,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--nov .pot-panel-h .pot-kpi-qbtn.pot-kpi-qbtn--nov-panel,
html body.light #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta.btn.bg_,
html body.light #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta,
html body.light #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--nov .pot-panel-h .pot-kpi-qbtn.pot-kpi-qbtn--nov-panel,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta.btn.bg_,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--nov .pot-panel-h .pot-kpi-qbtn.pot-kpi-qbtn--nov-panel {
  flex: 0 0 auto !important;
  align-self: center !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 28px !important;
  height: 28px !important;
  max-height: 28px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  border-radius: var(--dv-radius-chip, 10px) !important;
  border: 1px solid var(--manto-tbar-borde, #cbd5e1) !important;
  background: var(--manto-tbar-grad-seg, linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%)) !important;
  overflow: hidden !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif !important;
  line-height: 1.1 !important;
  text-shadow: none !important;
  box-shadow: var(--manto-tbar-inset-hi), 0 2px 8px rgba(15, 23, 42, 0.06) !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transform: none !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta.btn.bg_:hover,
html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta:hover,
html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--nov .pot-panel-h .pot-kpi-qbtn.pot-kpi-qbtn--nov-panel:hover,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta.btn.bg_:hover,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta:hover,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--nov .pot-panel-h .pot-kpi-qbtn.pot-kpi-qbtn--nov-panel:hover,
html body.light #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta.btn.bg_:hover,
html body.light #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta:hover,
html body.light #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--nov .pot-panel-h .pot-kpi-qbtn.pot-kpi-qbtn--nov-panel:hover,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta.btn.bg_:hover,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta:hover,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--nov .pot-panel-h .pot-kpi-qbtn.pot-kpi-qbtn--nov-panel:hover {
  transform: none !important;
  filter: none !important;
  background: var(--manto-tbar-grad-seg, linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%)) !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  border-color: var(--manto-tbar-borde, #cbd5e1) !important;
  box-shadow: var(--manto-tbar-inset-hi), 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta.btn.bg_:active,
html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta:active,
html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--nov .pot-panel-h .pot-kpi-qbtn.pot-kpi-qbtn--nov-panel:active,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta.btn.bg_:active,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta:active,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--nov .pot-panel-h .pot-kpi-qbtn.pot-kpi-qbtn--nov-panel:active,
html body.light #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta.btn.bg_:active,
html body.light #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta:active,
html body.light #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel--nov .pot-panel-h .pot-kpi-qbtn.pot-kpi-qbtn--nov-panel:active,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta.btn.bg_:active,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta:active,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--nov .pot-panel-h .pot-kpi-qbtn.pot-kpi-qbtn--nov-panel:active {
  transform: none !important;
  filter: none !important;
  opacity: 0.96 !important;
  background: var(--manto-tbar-grad-cta-a, var(--manto-tbar-grad-seg)) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--list .pot-panel-h .pot-mis-cta__ico,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--nov .pot-panel-h .pot-kpi-qbtn--nov-panel .pot-kpi-qbtn__ico {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  filter: none !important;
  opacity: 1 !important;
}

/* ══ Franjas de filtro — recuadro tarjeta + chips (clone Partos/Descartes) ══ */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--list .pot-filter-strip--pot,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--nov .pot-filter-strip--nov {
  width: auto !important;
  max-width: none !important;
  margin: 6px var(--mv-pad) var(--mv-gap, 9px) !important;
  padding: 8px 10px 6px !important;
  background: var(--mv-inner-canvas) !important;
  border: 1px solid var(--pot-filtros-box-borde) !important;
  border-radius: var(--mv-radius) !important;
  box-shadow: var(--mv-shadow) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: safe flex-start !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x !important;
  overscroll-behavior-x: contain !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--list .pot-filter-strip--pot::-webkit-scrollbar,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--nov .pot-filter-strip--nov::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Chips filtros — piel global --manto-chip-ref-* (pisa index-inline B3 / tbar activo) */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--pot [id^="pot-f-"].fp.fp,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--nov [id^="pot-nov-f-"].fp.fp,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--pot [id^="pot-f-"].fp.fp,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--nov [id^="pot-nov-f-"].fp.fp {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 72px !important;
  max-width: none !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  gap: 6px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: var(--manto-period-sel-fw, 600) !important;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  border: 1px solid var(--manto-chip-ref-brd-off) !important;
  background: var(--manto-chip-ref-grad-off) !important;
  color: var(--manto-chip-ref-txt-off) !important;
  -webkit-text-fill-color: var(--manto-chip-ref-txt-off) !important;
  box-shadow: var(--manto-chip-ref-shadow-off) !important;
  text-shadow: none !important;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--pot [id^="pot-f-"].fp.fp.active,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--nov [id^="pot-nov-f-"].fp.fp.active,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--pot [id^="pot-f-"].fp.fp.active,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--nov [id^="pot-nov-f-"].fp.fp.active {
  background: var(--manto-chip-ref-grad-on) !important;
  border: 1px solid var(--manto-chip-ref-brd-on) !important;
  color: var(--manto-chip-ref-txt-on) !important;
  -webkit-text-fill-color: var(--manto-chip-ref-txt-on) !important;
  font-weight: var(--manto-period-sel-fw-active, 700) !important;
  box-shadow: var(--manto-chip-ref-shadow-on) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--pot [id^="pot-f-"].fp.fp:not(.active):hover,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--nov [id^="pot-nov-f-"].fp.fp:not(.active):hover,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--pot [id^="pot-f-"].fp.fp:not(.active):hover,
html body.light #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--nov [id^="pot-nov-f-"].fp.fp:not(.active):hover {
  border-color: #c4cbd4 !important;
  box-shadow: var(--manto-chip-ref-shadow-off), 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--pot .pot-filter-ico,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--nov .pot-filter-ico {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
  display: block !important;
  object-fit: contain !important;
  opacity: 0.88 !important;
  filter: none !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--pot #pot-f-cerca .pot-filter-ico,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--nov #pot-nov-f-cerca .pot-filter-ico {
  width: 15px !important;
  height: 15px !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--pot [id^="pot-f-"].fp.fp.active .pot-filter-ico,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-filter-strip--nov [id^="pot-nov-f-"].fp.fp.active .pot-filter-ico {
  opacity: 1 !important;
}

/* Otros filter-strip (hub) — sin recuadro tarjeta */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel .pot-serio-v1__filter-strip:not(.pot-filter-strip--pot):not(.pot-filter-strip--nov) {
  margin: 0 !important;
  padding: var(--mv-pad) !important;
  background: var(--mv-inner-canvas) !important;
  border: none !important;
  border-bottom: 1px solid var(--mv-line) !important;
  border-radius: 0 !important;
  gap: var(--mv-gap-inner) !important;
}

/* ══ Cuerpos — lienzo interior ══ */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel-body {
  padding: var(--mv-pad) !important;
  background: var(--mv-inner-canvas) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel-map-wrap {
  background: var(--mv-card) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--map .pot-panel-map-actions-below {
  margin: 0 !important;
  padding: var(--mv-pad) !important;
  background: var(--mv-inner-canvas) !important;
  border-top: 1px solid var(--mv-line) !important;
  gap: var(--mv-gap-inner) !important;
}

/* ══ Dashboard ranking (vista alterna) ══ */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dashboard-wrap {
  padding-bottom: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-kpi {
  border-radius: 11px !important;
  border: 1px solid var(--mv-line) !important;
  box-shadow: none !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-kpi-grid {
  gap: var(--mv-gap-inner) !important;
  margin-bottom: var(--mv-gap) !important;
}

@media (max-width: 520px) {
  html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel--hero .dash-serio-hero__stat.recuadro-contador {
    flex: 0 0 66px !important;
    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
  }
}

/* ══ v1 — Radius 14px todos los bloques (pisa index-inline / Pebble) ══ */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel.pot-serio-panel,
html body #pg-pot.potreros-serio-v1.mejora-visual > .section > .section-header.pot-serio-panel.pot-serio-panel--hero,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel.pot-serio-panel--hero,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel.pot-panel,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel.pot-panel--map,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel.pot-panel--list,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel.pot-panel--nov,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-panel.pot-kpi-panel {
  border-radius: var(--mv-radius) !important;
  border: 1px solid var(--mv-line-strong) !important;
  box-shadow: var(--mv-shadow) !important;
  overflow: hidden !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-serio-hero-toolbar {
  border-radius: 0 !important;
}

/* Pisa Pebble con misma cadena de clases + mejora-visual */
html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-serio-panel.pot-serio-panel,
html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel.pot-panel {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line-strong) !important;
  border-radius: var(--mv-radius) !important;
  box-shadow: var(--mv-shadow) !important;
  overflow: hidden !important;
  transform: none !important;
}

html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-serio-panel.pot-serio-panel:hover,
html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-panel.pot-panel:hover {
  transform: none !important;
  border-color: var(--mv-line-strong) !important;
  box-shadow: var(--mv-shadow) !important;
}

html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip {
  background-color: #1e293b !important;
  background-image:
    var(--mv-hero-scrim-leche),
    var(--hero-img) !important;
  background-size: auto, cover !important;
  background-position: center, center 42% !important;
  background-repeat: no-repeat, no-repeat !important;
}

/* ══ v2 — Hub compacto · KPI sin doble marco · mapa pegado a cabecera + más alto ══ */

/* ══ v3 — Hub 3 columnas igibles · KPI radius 14px forzado ══ */

/* 1. Vista general | Dashboard · Ranking | Diagnosticar — misma fila, 3 columnas */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-hub-strip.pot-serio-v1__filter-strip {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.95fr) !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 6px !important;
  padding: 6px 8px !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-hub-strip #pot-hub-btn-vista {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-hub-strip #pot-hub-btn-dashboard {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-hub-strip .pot-diag-cta {
  grid-column: 3 !important;
  grid-row: 1 !important;
  margin-left: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-hub-strip #pot-hub-btn-vista,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-hub-strip #pot-hub-btn-dashboard,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-hub-strip .pot-diag-cta {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 6px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-hub-strip .pot-diag-cta {
  padding: 0 5px !important;
  gap: 4px !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-hub-strip .pot-diag-cta img {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0 !important;
}

/* 2. KPI Novedad/Aforo — un solo marco (sin rayas dobles del wrap Pebble + inset) */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpis-wrap,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpis-wrap:hover,
html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-kpis-wrap,
html body #pg-pot.potreros-serio-v1.pot-pebble-vida-20260418.mejora-visual .pot-kpis-wrap:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual #pot-kpis > div.pot-kpi-panel,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-panel,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-panel.pot-kpi-panel {
  border: 1px solid var(--mv-line-strong) !important;
  border-radius: var(--mv-radius) !important;
  box-shadow: var(--mv-shadow) !important;
  overflow: hidden !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-quick-row {
  padding: 6px 10px !important;
  border-bottom: none !important;
  background: var(--mv-inner-canvas) !important;
  border-radius: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-qbtn {
  border-radius: 11px !important;
}

/* ══ v12 — KPI campo 2×2 · tarjetas individuales (estilo Descartes score) ══ */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-panel-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--mv-gap-inner) !important;
  padding: var(--mv-pad) !important;
  margin: 0 !important;
  background: var(--mv-inner-canvas) !important;
  border-top: 1px solid var(--mv-line) !important;
  box-sizing: border-box !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-cell,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-cell:nth-child(2n),
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-cell:nth-child(n+3) {
  cursor: pointer !important;
  border: 1px solid var(--mv-line) !important;
  border-radius: 11px !important;
  background: var(--mv-card) !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transition: border-color 0.15s ease, background 0.15s ease !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-cell:hover,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-cell:active {
  background: var(--mv-card) !important;
  border-color: var(--mv-line-strong) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-cell--alert {
  border-color: #f59e0b !important;
  background: linear-gradient(168deg, #ffffff 0%, #fffbeb 42%, #fef3c7 100%) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-cell-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  padding: 10px 8px 8px !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-ico {
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  opacity: 1 !important;
  margin: 0 0 2px !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-ico--svg img,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-cell[data-potfiltro="abono"] .pot-kpi-ico--svg img {
  width: 26px !important;
  height: 26px !important;
  display: block !important;
  object-fit: contain !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  text-align: center !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-tit {
  font-size: 8.5px !important;
  font-weight: 800 !important;
  color: var(--texto-suave, #64748b) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
  max-width: 100% !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-num {
  font-size: 22px !important;
  font-weight: 900 !important;
  color: var(--texto-fuerte, #0f172a) !important;
  line-height: 1 !important;
  margin-top: 3px !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-cell--alert .pot-kpi-num {
  color: #b45309 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-meta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 4px !important;
  padding: 2px 7px !important;
  max-width: none !important;
  width: auto !important;
  align-self: center !important;
  text-align: center !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  border-radius: 6px !important;
  background: var(--mv-inner-canvas) !important;
  color: var(--texto-suave, #64748b) !important;
  flex-shrink: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-cell--alert .pot-kpi-meta {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #b45309 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-kpi-cell:not(.pot-kpi-cell--alert) .pot-kpi-meta {
  background: var(--mv-inner-canvas) !important;
  color: var(--texto-suave, #64748b) !important;
}

/* 3. Mapa — sin hueco bajo cabecera; altura un poco mayor (solo embebido en página) */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--map {
  gap: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--map #pot-mapa-slot {
  margin: 0 !important;
  padding: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--map .pot-panel-map-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap, 9px) !important;
  padding: var(--mv-pad) var(--mv-pad) 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual #pot-mapa-slot #pot-mapa:not(.pot-mapa--fs),
html body #pg-pot.potreros-serio-v1.mejora-visual #pot-mapa-slot #pot-mapa-stack #pot-mapa:not(.pot-mapa--fs),
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel-map-wrap #pot-mapa:not(.pot-mapa--fs) {
  height: 304px !important;
  min-height: 304px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

/* ══ v4 — Dashboard · Ranking (paneles MEJORA dentro de #pot-dash-rank-host) ══ */

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dashboard-wrap {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-rank-host {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap) !important;
  row-gap: var(--mv-gap) !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  color: var(--texto-base, #334155) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-panels {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap) !important;
  row-gap: var(--mv-gap) !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel.pot-panel--dash {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line-strong) !important;
  border-radius: var(--mv-radius) !important;
  box-shadow: var(--mv-shadow) !important;
  overflow: hidden !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--dash .pot-panel-h {
  justify-content: flex-start !important;
}

/* KPI — grid en lienzo interior, tiles blancas */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-kpi-body {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap-inner) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--mv-gap-inner) !important;
  margin: 0 !important;
}

@media (min-width: 640px) {
  html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 900px) {
  html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-kpi {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  padding: 8px 6px !important;
  margin: 0 !important;
  border: 1px solid var(--mv-line) !important;
  border-radius: 11px !important;
  background: var(--mv-card) !important;
  box-shadow: none !important;
  text-align: center !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-kpi-lbl {
  font-size: 9px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  color: var(--texto-suave, #64748b) !important;
  line-height: 1.15 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-kpi-val {
  font-size: 17px !important;
  font-weight: 900 !important;
  color: var(--texto-fuerte, #0f172a) !important;
  margin-top: 4px !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1.1 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-kpi-meta {
  font-size: 9px !important;
  color: var(--texto-suave, #64748b) !important;
  margin-top: 4px !important;
  line-height: 1.25 !important;
  font-weight: 650 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-hint {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 10.5px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
  color: var(--texto-suave, #64748b) !important;
  text-align: center !important;
}

/* Período económico — presets + fechas en franja interior */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-rent-body {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap-inner) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-rent-presets {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: var(--mv-gap-inner) !important;
  align-items: center !important;
  margin: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-rent-preset {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 32px !important;
  height: 32px !important;
  max-height: 32px !important;
  border-radius: 11px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 0 8px !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-rent-dates {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--mv-gap-inner) !important;
  margin: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-filt {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin: 0 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  color: var(--texto-suave, #64748b) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-filt .fi {
  min-width: 0 !important;
  width: 100% !important;
  border-radius: 10px !important;
}

/* Recomendaciones — tiles blancos sobre lienzo */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-body {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap-inner) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-lead {
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
  color: var(--texto-suave, #64748b) !important;
  text-align: center !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-s10-wrap,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-exec,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-list,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-details,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-empty {
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid var(--mv-line) !important;
  border-radius: 11px !important;
  background: var(--mv-card) !important;
  box-shadow: none !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-s10-tit,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-subtit {
  margin: 0 0 6px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--texto-fuerte, #0f172a) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-s10-lbl {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
  color: var(--texto-base, #334155) !important;
  cursor: pointer !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-s10-hint {
  margin: 6px 0 0 !important;
  font-size: 10px !important;
  color: var(--texto-suave, #64748b) !important;
  line-height: 1.35 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-exec {
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: var(--texto-base, #334155) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-subtit {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-list {
  list-style: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap-inner) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-li {
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid var(--mv-line) !important;
  border-radius: 11px !important;
  background: var(--mv-inner-canvas) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-li-tipo {
  display: inline-block !important;
  margin: 0 0 4px !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  background: var(--mv-inner-canvas) !important;
  border: 1px solid var(--mv-line) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--texto-suave, #64748b) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-li-pot {
  color: var(--texto-fuerte, #0f172a) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-li-det,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-li-act {
  margin-top: 6px !important;
  font-size: 11px !important;
  color: var(--texto-base, #334155) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-btn {
  margin-top: 8px !important;
  min-height: 32px !important;
  height: 32px !important;
  border-radius: 11px !important;
  font-size: 11px !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--mv-gap-inner) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-copy-gemini,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-gemini-exec {
  width: 100% !important;
  min-height: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-foot {
  margin: 0 !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  color: var(--texto-suave, #64748b) !important;
  text-align: center !important;
}

/* Ranking — toolbar franja + tabla en cuerpo */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--dash-rank .pot-dash-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: var(--mv-gap-inner) !important;
  margin: 0 !important;
  padding: var(--mv-pad) !important;
  background: var(--mv-inner-canvas) !important;
  border: none !important;
  border-bottom: 1px solid var(--mv-line) !important;
  border-radius: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-btn {
  flex: 1 1 auto !important;
  min-height: 32px !important;
  height: 32px !important;
  border-radius: 11px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-table-body {
  padding: var(--mv-pad) !important;
  overflow-x: auto !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-table-wrap {
  margin: 0 !important;
  border: 1px solid var(--mv-line) !important;
  border-radius: 11px !important;
  background: var(--mv-card) !important;
  overflow-x: auto !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-table {
  font-size: 11px !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-table th {
  background: var(--mv-inner-canvas) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-th-btn {
  border-radius: 8px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

/* Pisa legacy: quitar marcos sueltos del dashboard antiguo */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco.ani-serio-v2-card,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-rent-bar {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ══ v5 — Reco + Ranking: organización interior y toolbar compacto ══ */

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--dash .pot-panel-body {
  padding: var(--mv-pad) !important;
  background: var(--mv-inner-canvas) !important;
  box-sizing: border-box !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--dash .pot-panel-h {
  border-left: 4px solid var(--mv-accent) !important;
}

/* Recomendaciones — secciones blancas, sin cajas duplicadas */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-section {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap-inner) !important;
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid var(--mv-line) !important;
  border-radius: 11px !important;
  background: var(--mv-card) !important;
  box-shadow: none !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-s10-wrap {
  display: none !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-subtit {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--texto-suave, #64748b) !important;
  background: transparent !important;
  border: none !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-exec {
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 1px solid var(--mv-line) !important;
  border-radius: 10px !important;
  background: var(--mv-inner-canvas) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: var(--texto-base, #334155) !important;
  box-shadow: none !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-empty {
  margin: 0 !important;
  padding: 10px !important;
  border: 1px dashed var(--mv-line) !important;
  border-radius: 10px !important;
  background: var(--mv-inner-canvas) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
  color: var(--texto-suave, #64748b) !important;
  text-align: center !important;
  box-shadow: none !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-list {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap-inner) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-s10-lbl {
  margin: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-s10-ch {
  width: 16px !important;
  height: 16px !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-foot-shell {
  margin: 0 calc(-1 * var(--mv-pad)) calc(-1 * var(--mv-pad)) !important;
  padding: var(--mv-pad) !important;
  border-top: 1px solid var(--mv-line) !important;
  background: var(--mv-card) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap-inner) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--mv-gap-inner) !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-copy-gemini,
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-reco-gemini-exec {
  width: 100% !important;
  min-height: 32px !important;
  height: 32px !important;
  max-height: 32px !important;
  padding: 0 8px !important;
  border-radius: 11px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Ranking — toolbar en grid: semáforo arriba, botones en fila */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-toolbar--rank {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: auto auto !important;
  align-items: stretch !important;
  gap: var(--mv-gap-inner) !important;
  margin: 0 !important;
  padding: var(--mv-pad) !important;
  background: var(--mv-inner-canvas) !important;
  border: none !important;
  border-bottom: 1px solid var(--mv-line) !important;
  border-radius: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-toolbar--rank .pot-dash-filt {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-dash-toolbar--rank .pot-dash-btn {
  flex: none !important;
  width: 100% !important;
  min-height: 32px !important;
  height: 32px !important;
  max-height: 32px !important;
  padding: 0 8px !important;
  margin: 0 !important;
  border-radius: 11px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--dash-rank .pot-dash-toolbar:not(.pot-dash-toolbar--rank) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* ══ Mapa — Agregar · Analizar · Consultar (compacto, piel chips MEJORA VISUAL) ══ */
html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--map .pot-panel-map-wrap .gemelo-mapa-ux3-tbar {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2 !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 6px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--map .gemelo-mapa-ux3-tbar__btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 8px !important;
  margin: 0 !important;
  border-radius: var(--dv-radius-chip, 10px) !important;
  border: 1px solid var(--manto-chip-ref-brd-off) !important;
  background: var(--manto-chip-ref-grad-off) !important;
  color: var(--manto-chip-ref-txt-off) !important;
  -webkit-text-fill-color: var(--manto-chip-ref-txt-off) !important;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-shadow: none !important;
  box-shadow: var(--manto-chip-ref-shadow-off) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  transform: none !important;
  filter: none !important;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--map .gemelo-mapa-ux3-tbar__btn-ico {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  flex-shrink: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--map .gemelo-mapa-ux3-tbar__btn-ico .gemelo-mapa-ux3-tbar__btn-img {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--map .gemelo-mapa-ux3-tbar__btn-lbl {
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--map .gemelo-mapa-ux3-tbar__btn--active {
  background: var(--manto-chip-ref-grad-on) !important;
  border: 1px solid var(--manto-chip-ref-brd-on) !important;
  color: var(--manto-chip-ref-txt-on) !important;
  -webkit-text-fill-color: var(--manto-chip-ref-txt-on) !important;
  box-shadow: var(--manto-chip-ref-shadow-on) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--map .gemelo-mapa-ux3-tbar__btn:not(.gemelo-mapa-ux3-tbar__btn--active):hover {
  border-color: #c4cbd4 !important;
  box-shadow: var(--manto-chip-ref-shadow-off), 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  transform: none !important;
  filter: none !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--map .gemelo-mapa-ux3-tbar__btn:active {
  opacity: 0.96 !important;
  transform: none !important;
  filter: none !important;
}

html body #pg-pot.potreros-serio-v1.mejora-visual .pot-panel--map .pot-panel-map-actions-below {
  margin-top: var(--mv-gap, 9px) !important;
  padding-top: 0 !important;
}
