/**
 * MEJORA VISUAL — Descartes (#pg-desc)
 * Reglas: .cursor/rules/mejora-visual.mdc
 * v1 (2026-07-08) · cache descMv1 — canvas, hero, intel, registros 48px+rayita
 * v5 (2026-07-08) · cache descScoreGoMv1 — Ver detalle = piel Lista/Mosaico
 * v6 (2026-07-08) · cache descScoreGoMv2 — Ver detalle radius = --dv-radius-chip (Lista/Mosaico)
 * v7 (2026-07-09) · cache descRegMv3 — Registros: pie 9px + sin recorte nav/overflow
 * v8 (2026-07-09) · cache descCardsMv1 — tarjetas mosaico = Animales/Partos + panel 14px
 * v9 (2026-07-09) · cache descCardsMv2 — pisa index-inline gcard/gallery + pie 9px estricto
 * Clase activadora: #pg-desc.mejora-visual
 */

html body #pg-desc.descartes-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 Registros — borde gris fino (igual Partos) */
  --desc-filtros-box-borde: var(--mv-line, #cbd5e1);
}


/* ══ Canvas página ══ */
html body #pg-desc.descartes-serio-v1.mejora-visual,
html body.light #pg-desc.descartes-serio-v1.mejora-visual {
  background: var(--mv-canvas) !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  padding-bottom: var(--pg-pad-bottom, calc(84px + env(safe-area-inset-bottom, 0px))) !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual > .section,
html body #pg-desc.descartes-serio-v1.mejora-visual .section-body,
html body #pg-desc.descartes-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;
}

html body #pg-desc.descartes-serio-v1.mejora-visual > .section > .section-body {
  padding-top: 0 !important;
}

/* ══ Ritmo vertical — 9px (pisa index-inline gap 8px) ══ */
html body #pg-desc.descartes-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-desc.descartes-serio-v1.mejora-visual > .section > .section-header {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual > .section > .section-body,
html body #pg-desc.descartes-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-desc.descartes-serio-v1.mejora-visual > .section > .section-body > .section-content > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ══ Paneles — bloque blanco (pisa Pebble) ══ */
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-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-desc.descartes-serio-v1.mejora-visual .desc-serio-panel:hover {
  transform: none !important;
  border-color: var(--mv-line-strong) !important;
  box-shadow: var(--mv-shadow) !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel::before,
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel-h::before {
  display: none !important;
  content: none !important;
}

/* ══ Hero — foto + scrim + toolbar CTAs ══ */
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--hero {
  background: var(--mv-card) !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip,
html body.light #pg-desc.descartes-serio-v1.mejora-visual .desc-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-desc.descartes-serio-v1.mejora-visual .desc-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-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--hero .dash-serio-hero__kicker,
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-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-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--hero .dash-serio-hero__ico-inline {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)) !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-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-desc.descartes-serio-v1.mejora-visual .desc-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-desc.descartes-serio-v1.mejora-visual .desc-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;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-hero-toolbar-inner {
  gap: var(--mv-gap-inner) !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-hero-cta {
  transform: none !important;
  border-radius: 11px !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-hero-cta:hover {
  transform: none !important;
}

/* ══ Centro inteligencia — lienzo interior + tiles ══ */
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--intel {
  padding: 0 !important;
}

/* v2 — Impacto predictivo integrado en panel intel (sin marco doble) */
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary[hidden] {
  display: none !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary .desc-score-page-summary__head.desc-serio-panel-h {
  border-left: 4px solid var(--mv-accent) !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__go.btn.bg_,
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__go,
html body.light #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__go.btn.bg_,
html body.light #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__go {
  flex: 0 0 auto !important;
  align-self: center !important;
  width: auto !important;
  max-width: none !important;
  min-height: 28px !important;
  height: 28px !important;
  max-height: 28px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  /* Mismo radio que .desc-serio-seg (Pebble --dv-radius-chip 10px), no --manto-tbar-radius 14px */
  border-radius: var(--dv-radius-chip, var(--manto-tbar-radius, 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-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__go.btn.bg_:hover,
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__go:hover,
html body.light #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__go.btn.bg_:hover,
html body.light #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__go:hover {
  background: var(--manto-tbar-grad-seg, linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%)) !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  box-shadow: var(--manto-tbar-inset-hi), 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__go.btn.bg_:active,
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__go:active,
html body.light #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__go.btn.bg_:active,
html body.light #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__go:active {
  opacity: 0.96 !important;
  background: var(--manto-tbar-grad-cta-a, var(--manto-tbar-grad-seg)) !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__go-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;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__go-lbl {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__body {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap-inner) !important;
  margin: 0 !important;
  padding: var(--mv-pad) !important;
  background: var(--mv-inner-canvas) !important;
  border-bottom: 1px solid var(--mv-line) !important;
  box-sizing: border-box !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__hint {
  margin: 0 !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: var(--texto-suave, #64748b) !important;
  text-align: center !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--mv-gap-inner) !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__kpi {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  padding: 8px 6px !important;
  border: 1px solid var(--mv-line) !important;
  border-radius: 11px !important;
  background: var(--mv-card) !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__kpi span {
  font-size: 9px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  color: var(--texto-suave, #64748b) !important;
  text-align: center !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__kpi b {
  margin-top: 4px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: var(--texto-fuerte, #0f172a) !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__kpi--crit b {
  color: #b91c1c !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__kpi--warn b {
  color: #b45309 !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__kpi--money b {
  font-size: 13px !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-score-page-summary__note {
  margin: 0 !important;
  font-size: 10.5px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
  color: var(--texto-suave, #64748b) !important;
  text-align: center !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-intel-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--mv-gap-inner) !important;
  margin: 0 !important;
  padding: var(--mv-pad) !important;
  background: var(--mv-inner-canvas) !important;
  box-sizing: border-box !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-intel-anch {
  margin: 0 !important;
  padding: 10px 6px !important;
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line) !important;
  border-radius: 11px !important;
  box-shadow: none !important;
  transform: none !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-intel-anch:hover,
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-intel-anch:active {
  transform: none !important;
  box-shadow: none !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-intel-anch__tit {
  hyphens: none !important;
  font-size: 11px !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-intel-anch__sub {
  font-size: 9px !important;
}

/* ══ Cabeceras bloque — 48px + rayita ══ */
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel-h {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !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-desc.descartes-serio-v1.mejora-visual .desc-serio-panel-h--toolbar {
  justify-content: space-between !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-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-desc.descartes-serio-v1.mejora-visual .desc-serio-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-desc.descartes-serio-v1.mejora-visual .desc-serio-panel-h .desc-serio-htit-ico {
  width: var(--mv-head-rail) !important;
  height: var(--mv-head-rail) !important;
  object-fit: contain !important;
  display: block !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-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-desc.descartes-serio-v1.mejora-visual .desc-serio-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-desc.descartes-serio-v1.mejora-visual .desc-serio-panel-htit {
  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-desc.descartes-serio-v1.mejora-visual .desc-serio-seg {
  flex: 0 0 auto !important;
  margin: 0 !important;
  align-self: center !important;
}

/* ══ Registros — cinta filtros = tarjeta Partos/Pesaje (borde gris + lienzo gris) ══ */
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--main .desc-serio-panel--cinta {
  margin: 0 !important;
  padding: 6px var(--mv-pad) !important;
  gap: 0 !important;
  background: var(--mv-inner-canvas) !important;
  border: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--main .desc-chip-cinta {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 8px 10px 6px !important;
  background: var(--mv-inner-canvas) !important;
  border: 1px solid var(--desc-filtros-box-borde) !important;
  border-radius: var(--mv-radius) !important;
  box-shadow: var(--mv-shadow) !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: safe center !important;
  gap: 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden !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-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--main .desc-chip-cinta::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Chips Registros — misma piel que Partos/Pesaje/Vacunas (--manto-chip-ref-*) */
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--main .desc-chip-cinta .desc-chip-cinta__btn,
html body.light #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--main .desc-chip-cinta .desc-chip-cinta__btn {
  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;
  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-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--main .desc-chip-cinta .desc-chip-cinta__btn.active,
html body.light #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--main .desc-chip-cinta .desc-chip-cinta__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;
  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-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--main .desc-chip-cinta .desc-chip-cinta__btn:not(.active):hover,
html body.light #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--main .desc-chip-cinta .desc-chip-cinta__btn: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-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--main .desc-chip-cinta .desc-chip-cinta__btn.active:hover,
html body.light #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--main .desc-chip-cinta .desc-chip-cinta__btn.active:hover {
  border-color: #4a5d6e !important;
  box-shadow: var(--manto-chip-ref-shadow-on) !important;
}

/* ══ Cuerpo listado ══ */
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel-body {
  padding: var(--mv-pad) !important;
  background: var(--mv-inner-canvas) !important;
}

/* Registros — pie interior 9px (ritmo MEJORA) */
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--main > .desc-serio-panel-body {
  padding: var(--mv-pad) var(--mv-pad) var(--mv-gap) var(--mv-pad) !important;
  min-height: 0 !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .empty {
  padding: 28px 14px 32px !important;
  color: var(--texto-suave, #64748b) !important;
  text-align: center !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .empty-txt {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--texto-base, #334155) !important;
  line-height: 1.35 !important;
}

@media (max-width: 520px) {
  html body #pg-desc.descartes-serio-v1.mejora-visual .desc-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-desc.descartes-serio-v1.mejora-visual .desc-serio-panel.desc-serio-panel,
html body #pg-desc.descartes-serio-v1.mejora-visual > .section > .section-header.desc-serio-panel.desc-serio-panel--hero,
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel.desc-serio-panel--hero,
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel.desc-serio-panel--intel,
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel.desc-serio-panel--main {
  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-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip,
html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-hero-toolbar {
  border-radius: 0 !important;
}

/* Pisa Pebble con misma cadena de clases + mejora-visual */
html body #pg-desc.descartes-serio-v1.desc-pebble-vida-20260418.mejora-visual .desc-serio-panel.desc-serio-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-desc.descartes-serio-v1.desc-pebble-vida-20260418.mejora-visual .desc-serio-panel.desc-serio-panel:hover {
  transform: none !important;
  border-color: var(--mv-line-strong) !important;
  box-shadow: var(--mv-shadow) !important;
}

html body #pg-desc.descartes-serio-v1.desc-pebble-vida-20260418.mejora-visual .desc-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;
}

/* ══ v8 — Tarjetas mosaico (#desc-list .gcard) — paridad Animales / Partos ══ */

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list > .gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list > .gallery {
    gap: 12px !important;
  }
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gcard {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  width: 100% !important;
  border-radius: 12px !important;
  border: 1px solid var(--mv-line) !important;
  background: var(--mv-card) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gcard:hover {
  border-color: var(--mv-line-strong) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gcard:active {
  transform: scale(0.98) !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gph {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  background: var(--mv-inner-canvas) !important;
  border-bottom: 1px solid var(--mv-line) !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gph img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gph .gph-ph {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--mv-inner-canvas) !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gph .gph-ph img {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  opacity: 0.35 !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gbdy {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 4px !important;
  padding: 10px 8px 10px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gbdy .gnom {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gbdy .gnom .anchapnom {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
  width: 100% !important;
  max-width: 100% !important;
  line-height: 1.15 !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gbdy .gnom .anchapnom__sep {
  display: none !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gbdy .gnom .anchapnom__id,
html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gbdy .gnom .desc-card-id {
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  color: var(--texto-fuerte, #0f172a) !important;
  font-variant-numeric: tabular-nums !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gbdy .gnom .anchapnom__nom {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--texto-base, #334155) !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gbdy .gmet {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  color: var(--texto-suave, #64748b) !important;
  line-height: 1.25 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gbdy .desc-dp-row {
  margin: 2px 0 0 !important;
  padding: 0 !important;
  gap: 4px 6px !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  color: var(--texto-suave, #64748b) !important;
  border-top: none !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gbdy > .pill {
  margin-top: 6px !important;
  align-self: stretch !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 22px !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gbdy > .pill.pg_ {
  background: var(--gris-100, #f1f5f9) !important;
  color: var(--texto-base, #334155) !important;
  border: 1px solid var(--mv-line) !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gbdy > .pill.pr_ {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fca5a5 !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .gbdy > .pill.desc-pill-pend,
html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .desc-card-meta > .pill.desc-pill-pend {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fcd34d !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .desc-card-meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 3px !important;
  margin-top: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list .desc-card-fecha {
  display: block !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--texto-suave, #64748b) !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* ══ v9 — Pisa index-inline (#desc-list>div, .gallery .gcard, panel-body 10px) ══ */

html body #pg-desc#pg-desc.descartes-serio-v1.desc-pebble-vida-20260418.mejora-visual .desc-serio-panel--main > .desc-serio-panel-body {
  padding: 12px 12px 9px !important;
  background: var(--mv-inner-canvas) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

html body #pg-desc#pg-desc.descartes-serio-v1.mejora-visual #desc-list > div.gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

html body #pg-desc#pg-desc.descartes-serio-v1.mejora-visual #desc-list > div.gallery .gcard {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  width: 100% !important;
  border-radius: 12px !important;
  border: 1px solid var(--mv-line) !important;
  background: var(--mv-card) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

html body #pg-desc#pg-desc.descartes-serio-v1.mejora-visual #desc-list > div.gallery .gcard .gph {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  background: var(--mv-inner-canvas) !important;
  border-bottom: 1px solid var(--mv-line) !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

html body #pg-desc#pg-desc.descartes-serio-v1.mejora-visual #desc-list > div.gallery .gcard .gbdy {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 4px !important;
  padding: 10px 8px 10px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  background: var(--mv-card) !important;
}

html body #pg-desc#pg-desc.descartes-serio-v1.mejora-visual #desc-list > div.gallery .gcard .gbdy > .pill,
html body #pg-desc#pg-desc.descartes-serio-v1.mejora-visual #desc-list > div.gallery .gcard .desc-card-meta > .pill {
  margin-top: 0 !important;
  align-self: stretch !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 22px !important;
  padding: 5px 8px !important;
  border-radius: 8px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
}

html body #pg-desc#pg-desc.descartes-serio-v1.mejora-visual #desc-list > div.gallery .gcard .desc-card-meta > .pill.pg_ {
  background: var(--gris-100, #f1f5f9) !important;
  color: var(--texto-base, #334155) !important;
  border: 1px solid var(--mv-line) !important;
}

html body #pg-desc#pg-desc.descartes-serio-v1.mejora-visual #desc-list > div.gallery .gcard .desc-card-meta > .pill.pr_ {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fca5a5 !important;
}

/* ══ v10 — Sin franja blanca bajo contenido corto (paridad Partos v12) ══ */

body.manto-pg-desc #pg-desc.descartes-serio-v1.mejora-visual.pg > .section,
body.manto-pg-desc #pg-desc.descartes-serio-v1.mejora-visual.pg > .section > .section-body,
body.manto-pg-desc #pg-desc.descartes-serio-v1.mejora-visual.pg > .section > .section-body > .section-content {
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  min-height: 0 !important;
}

html body #app:has(#pg-desc.descartes-serio-v1.mejora-visual.active) {
  min-height: auto !important;
  height: auto !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual.active {
  min-height: auto !important;
  height: auto !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual.pg > .section,
html body #pg-desc.descartes-serio-v1.mejora-visual.pg > .section > .section-body,
html body #pg-desc.descartes-serio-v1.mejora-visual.pg > .section > .section-body > .section-content {
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  min-height: 0 !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual > .section > .section-body,
html body #pg-desc.descartes-serio-v1.mejora-visual > .section > .section-body > .section-content {
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  min-height: 0 !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--main {
  flex: 0 0 auto !important;
  min-height: 0 !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual .desc-serio-panel--main > .desc-serio-panel-body {
  flex: 0 0 auto !important;
  min-height: 0 !important;
}

html body #pg-desc.descartes-serio-v1.mejora-visual #desc-list {
  min-height: 0 !important;
}

/* Modal detalle (#m-vdesc) — pill estado 9px (pisa index-inline 4px) */
html body #m-vdesc.modo-final.desc-pebble-vida-20260418 #vd-cont .pill.vd-detail-pill,
html body #m-vdesc.modo-final.desc-pebble-vida-20260418 #vd-cont .vd-detail-pill.pill {
  border-radius: 9px !important;
  font-weight: 800 !important;
}

/* ══ Modal Prioridad y revisión (#m-desc-top10) — layout v2 ══ */

html body #m-desc-top10.m-desc-rank-modal-serio-v1 .m-desc-top10-serio-body {
  gap: 8px !important;
}

html body #m-desc-top10 .m-desc-top10-panel--tools.m-desc-top10-tools-card {
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 12px !important;
  background: linear-gradient(168deg, #fff 0%, #f1f5f9 38%, #e2e8f0 100%) !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

html body #m-desc-top10 .m-desc-top10-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

html body #m-desc-top10 .m-desc-top10-leybtn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 1 180px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  border-radius: 9px !important;
  background: var(--gris-0, #fff) !important;
  color: var(--texto-base, #334155) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html body #m-desc-top10 .m-desc-top10-leybtn:hover {
  border-color: var(--gris-400, #94a3b8) !important;
  background: var(--gris-50, #f8fafc) !important;
}

html body #m-desc-top10 .m-desc-top10-leybtn-ico {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
  margin: 0 !important;
}

html body #m-desc-top10 .m-desc-top10-leybtn-txt {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

html body #m-desc-top10 .m-desc-top10-export {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  margin-left: auto !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

html body #m-desc-top10 .m-desc-top10-export-ico {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

html body #m-desc-top10 .m-desc-top10-leycont {
  margin-top: 8px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  background: var(--gris-0, #fff) !important;
}

html body #m-desc-top10 .m-desc-top10-panel--vista {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #m-desc-top10 .m-desc-top10-vista-meta {
  margin: 0 !important;
  padding: 0 !important;
}

html body #m-desc-top10 .m-desc-top10-count {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  padding: 5px 10px !important;
  border-radius: 9px !important;
  background: var(--gris-100, #f1f5f9) !important;
  color: var(--texto-base, #334155) !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
}

html body #m-desc-top10 .m-desc-top10-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 4px !important;
  box-sizing: border-box !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  border-radius: 12px !important;
  background: var(--gris-0, #fff) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html body #m-desc-top10 .m-desc-top10-tabs .tab-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-height: 56px !important;
  padding: 8px 6px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: var(--texto-suave, #64748b) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

html body #m-desc-top10 .m-desc-top10-tabs .tab-btn .m-desc-top10-tab-ico {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
  margin: 0 !important;
  opacity: 0.88 !important;
}

html body #m-desc-top10 .m-desc-top10-tabs .tab-btn .m-desc-top10-tab-txt {
  display: block !important;
  max-width: 100% !important;
}

html body #m-desc-top10 .m-desc-top10-tabs .tab-btn:hover {
  background: var(--gris-50, #f8fafc) !important;
  border-color: var(--gris-300, #cbd5e1) !important;
  color: var(--texto-base, #334155) !important;
}

html body #m-desc-top10 .m-desc-top10-tabs .tab-btn.active {
  background: var(--manto-btn-b2-bg) !important;
  border-color: var(--manto-btn-b2-border) !important;
  color: var(--manto-btn-b2-color) !important;
  box-shadow: var(--manto-btn-b2-shadow) !important;
}

html body #m-desc-top10 .m-desc-top10-tabs .tab-btn.active .m-desc-top10-tab-ico {
  opacity: 1 !important;
}

html body #m-desc-top10 .m-desc-top10-tabs .tab-btn.active:hover {
  border-color: var(--manto-btn-b2-border-hover, var(--manto-btn-b2-border)) !important;
  box-shadow: var(--manto-btn-b2-shadow-hover, var(--manto-btn-b2-shadow)) !important;
}

html body #m-desc-top10 .m-desc-score-summary {
  border-radius: 12px !important;
}

html body #m-desc-top10 .m-desc-score-summary__item {
  border-radius: 9px !important;
}

html body #m-desc-top10 .m-desc-top10-panel--lista.m-desc-top10-ani-bloque {
  flex: 1 1 auto !important;
  min-height: 120px !important;
  display: flex !important;
  flex-direction: column !important;
}

html body #m-desc-top10 .m-desc-top10-panel--lista .m-desc-top10-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

html body #m-desc-top10 .m-desc-top10-empty,
html body #m-desc-top10 .m-desc-t10-c__empty {
  border-radius: 10px !important;
}

@media (max-width: 420px) {
  html body #m-desc-top10 .m-desc-top10-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  html body #m-desc-top10 .m-desc-top10-export {
    width: 100% !important;
    margin-left: 0 !important;
  }

  html body #m-desc-top10 .m-desc-score-summary {
    grid-template-columns: 1fr !important;
  }

  html body #m-desc-top10 .m-desc-score-summary__note {
    grid-column: 1 !important;
  }
}

/* ══ Corrección compacta #m-desc-top10 — sin bloques altos ni activo oscuro ══ */
html body #m-desc-top10.m-desc-rank-modal-serio-v1.desc-pebble-vida-20260418 .m-desc-top10-serio-body.modal-serio-body {
  padding: 8px !important;
  gap: 8px !important;
}

html body #m-desc-top10 .m-desc-top10-panel--tools.m-desc-top10-tools-card {
  display: block !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 8px !important;
  border-radius: 12px !important;
  background: var(--gris-100, #f1f5f9) !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  box-shadow: none !important;
}

html body #m-desc-top10 .m-desc-top10-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(118px, auto) !important;
  gap: 8px !important;
  align-items: center !important;
}

html body #m-desc-top10 .m-desc-top10-leybtn,
html body #m-desc-top10 .m-desc-top10-export {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

html body #m-desc-top10 .m-desc-top10-leybtn {
  justify-content: center !important;
  background: var(--manto-btn-gris-ok-bg) !important;
  border: var(--manto-btn-gris-ok-border) !important;
  color: var(--manto-btn-gris-ok-color) !important;
  box-shadow: var(--manto-btn-gris-ok-shadow) !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  text-align: center !important;
}

html body #m-desc-top10 .m-desc-top10-leybtn-txt {
  flex: 0 1 auto !important;
  text-align: center !important;
}

html body #m-desc-top10 .m-desc-top10-leybtn-ico {
  width: 18px !important;
  height: 18px !important;
}

html body #m-desc-top10 .m-desc-top10-export {
  justify-content: center !important;
  margin-left: 0 !important;
}

html body #m-desc-top10 .m-desc-top10-leybtn-ico,
html body #m-desc-top10 .m-desc-top10-export-ico {
  width: 16px !important;
  height: 16px !important;
}

html body #m-desc-top10 .m-desc-top10-leybtn-ico {
  width: 18px !important;
  height: 18px !important;
}

html body #m-desc-top10 .m-desc-score-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 6px !important;
  border-radius: 12px !important;
  background: var(--gris-100, #f1f5f9) !important;
  box-shadow: none !important;
}

html body #m-desc-top10 .m-desc-score-summary__item {
  min-height: 42px !important;
  padding: 5px 4px !important;
  border-radius: 9px !important;
}

html body #m-desc-top10 .m-desc-score-summary__lbl {
  font-size: 8.8px !important;
  line-height: 1.1 !important;
  letter-spacing: .025em !important;
}

html body #m-desc-top10 .m-desc-score-summary__val {
  font-size: 16px !important;
}

html body #m-desc-top10 .m-desc-score-summary__item--money .m-desc-score-summary__val {
  font-size: 14px !important;
}

html body #m-desc-top10 .m-desc-score-summary__note {
  font-size: 10.5px !important;
}

html body #m-desc-top10 .m-desc-top10-vista-meta {
  display: flex !important;
}

html body #m-desc-top10 .m-desc-top10-count {
  padding: 4px 9px !important;
  border-radius: 9px !important;
  background: var(--gris-0, #fff) !important;
  color: var(--texto-base, #334155) !important;
}

html body #m-desc-top10 .m-desc-top10-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #m-desc-top10 .m-desc-top10-tabs .tab-btn {
  flex-direction: row !important;
  gap: 7px !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  background: var(--manto-btn-gris-ok-bg) !important;
  border: var(--manto-btn-gris-ok-border) !important;
  color: var(--manto-btn-gris-ok-color) !important;
  -webkit-text-fill-color: var(--manto-btn-gris-ok-color) !important;
  box-shadow: var(--manto-btn-gris-ok-shadow) !important;
  font-size: 12px !important;
}

html body #m-desc-top10 .m-desc-top10-tabs .tab-btn.active {
  background: var(--manto-btn-gris-ok-bg-active) !important;
  border: var(--manto-btn-gris-ok-border-hover) !important;
  color: var(--manto-btn-gris-ok-color) !important;
  -webkit-text-fill-color: var(--manto-btn-gris-ok-color) !important;
  box-shadow: var(--manto-btn-gris-ok-shadow-hover) !important;
}

html body #m-desc-top10 .m-desc-top10-tabs .tab-btn .m-desc-top10-tab-ico {
  width: 17px !important;
  height: 17px !important;
}

html body #m-desc-top10.ani-modal-serio-v2 .m-desc-top10-ani-bloque.m-desc-top10-panel--lista {
  min-height: 70px !important;
  margin: 0 !important;
  border-radius: 12px !important;
}

@media (max-width: 420px) {
  html body #m-desc-top10 .m-desc-top10-toolbar {
    grid-template-columns: 1fr !important;
  }

  html body #m-desc-top10 .m-desc-score-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  html body #m-desc-top10 .m-desc-score-summary__note {
    grid-column: 1 / -1 !important;
  }
}

/* ── #m-desc-reportes — hub organizado (paneles + secciones) ── */
html body #m-desc-reportes .m-desc-reportes-serio-body {
  padding: 8px 10px 10px !important;
  gap: 8px !important;
  display: flex !important;
  flex-direction: column !important;
}

html body #m-desc-reportes .desc-reportes-preface {
  margin: 0 !important;
  padding: 2px 4px 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--texto-suave, #64748b) !important;
}

html body #m-desc-reportes .m-desc-reportes-panel {
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

html body #m-desc-reportes .m-desc-reportes-panel--list.ani-serio-v2-card {
  padding: 10px !important;
  border-radius: 12px !important;
  background: linear-gradient(168deg, #fff 0%, #f1f5f9 38%, #e2e8f0 100%) !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

html body #m-desc-reportes .m-desc-reportes-panel--soon {
  padding: 0 2px !important;
}

html body #m-desc-reportes .desc-reportes-section-h {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 2px !important;
}

html body #m-desc-reportes .desc-reportes-section-h__lbl {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--texto-fuerte, #0f172a) !important;
}

html body #m-desc-reportes .desc-reportes-section-h__meta {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--texto-muted, #94a3b8) !important;
  white-space: nowrap !important;
}

html body #m-desc-reportes .desc-reportes-section-h--muted .desc-reportes-section-h__lbl {
  color: var(--texto-suave, #64748b) !important;
}

html body #m-desc-reportes .desc-reportes-launch-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

html body #m-desc-reportes .desc-reportes-launch-list > li {
  margin: 0 !important;
  padding: 0 !important;
}

html body #m-desc-reportes button.desc-reportes-launch,
html body #m-desc-reportes .desc-reportes-launch.desc-reportes-launch--soon {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 48px !important;
  padding: 6px 10px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  box-sizing: border-box !important;
  text-align: left !important;
  font: inherit !important;
}

html body #m-desc-reportes button.desc-reportes-launch {
  cursor: pointer !important;
  border: 1px solid var(--manto-tbar-borde, #cbd5e1) !important;
  background: var(--manto-tbar-grad-seg, linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%)) !important;
  box-shadow: var(--manto-tbar-inset-hi), 0 2px 8px rgba(15, 23, 42, 0.06) !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}

html body #m-desc-reportes button.desc-reportes-launch:hover {
  border-color: var(--gris-400, #94a3b8) !important;
  background: var(--manto-tbar-grad-seg, linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%)) !important;
}

html body #m-desc-reportes button.desc-reportes-launch:active {
  opacity: 0.96 !important;
}

html body #m-desc-reportes .desc-reportes-launch__ico {
  flex: 0 0 auto !important;
  line-height: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
}

html body #m-desc-reportes .desc-reportes-launch__ico img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
  display: block !important;
}

html body #m-desc-reportes .desc-reportes-launch__txt {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
}

html body #m-desc-reportes .desc-reportes-launch__tit {
  display: block !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: var(--texto-fuerte, #0f172a) !important;
}

html body #m-desc-reportes .desc-reportes-launch__sub {
  display: block !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: var(--texto-suave, #64748b) !important;
}

html body #m-desc-reportes .desc-reportes-launch__chev {
  flex: 0 0 auto !important;
  color: var(--gris-300, #cbd5e1) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 2px 0 0 !important;
}

html body #m-desc-reportes .desc-reportes-launch.desc-reportes-launch--soon {
  cursor: default !important;
  background: var(--gris-50, #f8fafc) !important;
  border: 1px dashed var(--gris-300, #cbd5e1) !important;
  box-shadow: none !important;
}

html body #m-desc-reportes .desc-reportes-launch--soon .desc-reportes-launch__ico img {
  opacity: 0.55 !important;
}

html body #m-desc-reportes .desc-reportes-launch--soon .desc-reportes-launch__tit {
  color: var(--texto-base, #334155) !important;
  font-weight: 700 !important;
}

html body #m-desc-reportes .desc-reportes-launch--soon .desc-reportes-launch__sub {
  color: var(--texto-muted, #94a3b8) !important;
}

/* ══ Modal Rentabilidad (#m-desc-rent) — layout v1 ══ */
html body #m-desc-rent .m-desc-rent-serio-body {
  padding: 8px 10px 10px !important;
  gap: 8px !important;
  display: flex !important;
  flex-direction: column !important;
}

html body #m-desc-rent .m-desc-rent-hint {
  margin: 0 !important;
  padding: 2px 4px 0 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--texto-suave, #64748b) !important;
}

html body #m-desc-rent .desc-rent-serio-bloque {
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 12px !important;
}

html body #m-desc-rent .desc-rent-serio-bloque .ani-serio-v2-subl {
  margin-bottom: 8px !important;
}

/* Bloque 1 — precios en la misma fila siempre */
html body #m-desc-rent .desc-rent-precios-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: end !important;
  width: 100% !important;
  margin: 0 !important;
}

html body #m-desc-rent .desc-rent-precio-fg {
  margin: 0 !important;
  min-width: 0 !important;
}

html body #m-desc-rent .desc-rent-precio-fg .flbl {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  margin-bottom: 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body #m-desc-rent .desc-rent-precio-fg .fi {
  width: 100% !important;
  min-height: 38px !important;
  height: 38px !important;
  border-radius: 9px !important;
  text-align: center !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums !important;
}

/* Bloque 2 — 4 tabs misma fila, radius 9px, centrados */
html body #m-desc-rent .m-desc-rent-seg.desc-anal-rent-seg {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 0 0 10px !important;
  padding: 4px !important;
  box-sizing: border-box !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  border-radius: 12px !important;
  background: var(--gris-0, #fff) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  flex-wrap: nowrap !important;
}

html body #m-desc-rent .desc-anal-seg-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 4px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--texto-suave, #64748b) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif !important;
  cursor: pointer !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  transition: background 0.12s, border-color 0.12s, color 0.12s !important;
}

html body #m-desc-rent .desc-anal-seg-btn:hover {
  background: var(--gris-50, #f8fafc) !important;
  border-color: var(--gris-300, #cbd5e1) !important;
  color: var(--texto-base, #334155) !important;
}

html body #m-desc-rent .desc-anal-seg-btn.active {
  border: 1px solid var(--manto-tbar-borde, #cbd5e1) !important;
  background: var(--manto-tbar-grad-seg, linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%)) !important;
  color: var(--texto-base, #334155) !important;
  box-shadow: var(--manto-tbar-inset-hi), 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

html body #m-desc-rent .desc-anal-rent-search-wrap {
  margin: 0 0 8px !important;
}

html body #m-desc-rent .desc-rent-search-fg {
  margin: 0 !important;
}

html body #m-desc-rent .desc-anal-rent-host {
  min-height: 0 !important;
}

/* KPIs — tarjetas con diseño */
html body #m-desc-rent .desc-anal-rent-kpis {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 0 8px !important;
}

@media (min-width: 520px) {
  html body #m-desc-rent .desc-anal-rent-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

html body #m-desc-rent .desc-anal-kpi {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-height: 72px !important;
  padding: 10px 8px !important;
  margin: 0 !important;
  text-align: center !important;
  border-radius: 10px !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  background: linear-gradient(168deg, #fff 0%, #f1f5f9 38%, #e2e8f0 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  overflow: hidden !important;
}

html body #m-desc-rent .desc-anal-kpi::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 10px !important;
  bottom: 10px !important;
  width: 2px !important;
  border-radius: 0 !important;
  background: color-mix(in srgb, var(--gris-400, #94a3b8) 42%, transparent) !important;
}

html body #m-desc-rent .desc-anal-kpi--neg::before {
  background: color-mix(in srgb, #b91c1c 45%, transparent) !important;
}

html body #m-desc-rent .desc-anal-kpi--warn::before {
  background: color-mix(in srgb, #b45309 45%, transparent) !important;
}

html body #m-desc-rent .desc-anal-kpi-l {
  font-size: 9.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;
}

html body #m-desc-rent .desc-anal-kpi b {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: var(--texto-fuerte, #0f172a) !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1 !important;
}

html body #m-desc-rent .desc-anal-kpi--neg b {
  color: #b91c1c !important;
}

html body #m-desc-rent .desc-anal-kpi--warn b {
  color: #b45309 !important;
}

html body #m-desc-rent .desc-anal-micro {
  margin: 0 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--texto-suave, #64748b) !important;
}

html body #m-desc-rent .desc-anal-micro--muted {
  color: var(--texto-muted, #94a3b8) !important;
}

@media (max-width: 360px) {
  html body #m-desc-rent .desc-anal-seg-btn {
    font-size: 9.5px !important;
    padding: 0 2px !important;
  }

  html body #m-desc-rent .desc-anal-kpi-l {
    font-size: 8.5px !important;
  }

  html body #m-desc-rent .desc-anal-kpi b {
    font-size: 17px !important;
  }
}

/* ══ Modal Historial (#m-desc-historial) — layout v2 unificado ══ */
html body #m-desc-historial {
  --desc-hist-r: 10px;
  --desc-hist-panel-bg: linear-gradient(168deg, #fff 0%, #f8fafc 55%, #f1f5f9 100%);
  --desc-hist-panel-border: 1px solid var(--gris-300, #cbd5e1);
  --desc-hist-panel-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(15, 23, 42, 0.05);
}

html body #m-desc-historial .m-desc-historial-body {
  gap: 8px !important;
}

html body #m-desc-historial .desc-hist-serio-bloque {
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 12px !important;
}

html body #m-desc-historial .desc-hist-serio-bloque .ani-serio-v2-subl {
  margin-bottom: 8px !important;
}

/* Bloque 1 — recuadro tipo chip-cinta (referencia Animales / Registros) */
html body #m-desc-historial .desc-hist-period-shell {
  box-sizing: border-box !important;
  width: 100% !important;
  padding: 8px 10px 6px !important;
  border: 1px solid var(--desc-filtros-box-borde, #cbd5e1) !important;
  border-radius: 11px !important;
  background: var(--mv-inner-canvas, #e2e8f0) !important;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.08),
    0 4px 12px rgba(15, 23, 42, 0.1) !important;
}

html body #m-desc-historial .desc-hist-period-shell .desc-serio-period-btns {
  margin: 0 !important;
  padding: 0 !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: stretch !important;
  overflow: visible !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Botones: piel chip global (--manto-chip-ref-*), sin rediseño custom */
html body #m-desc-historial .desc-hist-period-shell .desc-serio-period-btns .fp {
  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 4px !important;
  font-size: 12px !important;
  font-weight: var(--manto-period-sel-fw, 800) !important;
  line-height: 1 !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;
  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 #m-desc-historial .desc-hist-period-shell .desc-serio-period-btns .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 #m-desc-historial .desc-hist-period-shell .desc-serio-period-btns .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, 800) !important;
  box-shadow: var(--manto-chip-ref-shadow-on) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

html body #m-desc-historial .desc-hist-period-shell .desc-serio-period-btns .fp.active:hover {
  border-color: #4a5d6e !important;
  box-shadow: var(--manto-chip-ref-shadow-on) !important;
}

/* Bloque 2 — organización y tarjetas gemelas */
html body #m-desc-historial .desc-hist-hint {
  margin: 0 0 8px !important;
  padding: 8px 10px !important;
  border-radius: var(--desc-hist-r) !important;
  border: var(--desc-hist-panel-border) !important;
  background: var(--gris-50, #f8fafc) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: var(--texto-suave, #64748b) !important;
  font-weight: 600 !important;
}

html body #m-desc-historial .desc-hist-stats-host,
html body #m-desc-historial .desc-hist-summary,
html body #m-desc-historial .desc-stats-period-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #m-desc-historial .desc-hist-kpi,
html body #m-desc-historial .desc-hist-motivos-wrap,
html body #m-desc-historial .desc-stats-period-row,
html body #m-desc-historial .desc-stats-period-empty {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border-radius: var(--desc-hist-r) !important;
  border: var(--desc-hist-panel-border) !important;
  background: var(--desc-hist-panel-bg) !important;
  box-shadow: var(--desc-hist-panel-shadow) !important;
}

html body #m-desc-historial .desc-hist-kpi {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: nowrap !important;
  padding: 12px 14px !important;
  position: relative !important;
  margin: 0 !important;
}

html body #m-desc-historial .desc-hist-kpi::before {
  content: none !important;
  display: none !important;
}

html body #m-desc-historial .desc-hist-kpi::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 10px !important;
  bottom: 10px !important;
  width: 2px !important;
  border-radius: 0 !important;
  background: color-mix(in srgb, var(--gris-400, #94a3b8) 42%, transparent) !important;
  pointer-events: none !important;
}

html body #m-desc-historial .desc-hist-motivos-wrap {
  padding: 10px 12px !important;
  margin: 0 !important;
  position: relative !important;
}

html body #m-desc-historial .desc-hist-motivos-tit {
  margin: 0 0 8px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--texto-suave, #64748b) !important;
}

html body #m-desc-historial .desc-hist-motivo-n {
  background: var(--gris-100, #f1f5f9) !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  color: var(--texto-fuerte, #0f172a) !important;
  box-shadow: none !important;
}

html body #m-desc-historial .desc-hist-motivos-empty {
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  border: 1px dashed var(--gris-300, #cbd5e1) !important;
  background: var(--gris-50, #f8fafc) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--texto-muted, #94a3b8) !important;
  text-align: center !important;
}

html body #m-desc-historial .desc-hist-list-head {
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: var(--desc-hist-r) !important;
  border: var(--desc-hist-panel-border) !important;
  background: var(--gris-100, #f1f5f9) !important;
  box-shadow: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--texto-suave, #64748b) !important;
}

html body #m-desc-historial .desc-stats-period-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  cursor: pointer !important;
}

html body #m-desc-historial .desc-stats-period-empty {
  display: block !important;
  margin: 0 !important;
  padding: 16px 14px !important;
  border-style: dashed !important;
  border-top: 1px dashed var(--gris-300, #cbd5e1) !important;
  background: var(--gris-50, #f8fafc) !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--texto-suave, #64748b) !important;
}

/* Gana Pebble Vida + index-inline — mismo radio/ancho en todo el bloque 2 */
html body #m-desc-historial.modo-final.desc-pebble-vida-20260418 .desc-hist-kpi,
html body #m-desc-historial.modo-final.desc-pebble-vida-20260418 .desc-hist-motivos-wrap,
html body #m-desc-historial.modo-final.desc-pebble-vida-20260418 .desc-stats-period-row,
html body #m-desc-historial.modo-final.desc-pebble-vida-20260418 .desc-stats-period-empty {
  border-radius: var(--desc-hist-r) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html body #m-desc-historial.modo-final.desc-pebble-vida-20260418 .desc-hist-kpi::before {
  content: none !important;
  display: none !important;
}

html body #m-desc-historial #desc-stats > div.desc-hist-summary,
html body #m-desc-historial #desc-stats > div.desc-stats-period-list,
html body #m-desc-historial #desc-stats > div.desc-hist-list-head {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 100% !important;
}

@media (max-width: 360px) {
  html body #m-desc-historial .desc-hist-period-shell {
    padding: 6px 8px 5px !important;
  }

  html body #m-desc-historial .desc-hist-period-shell .desc-serio-period-btns {
    gap: 4px !important;
  }

  html body #m-desc-historial .desc-hist-period-shell .desc-serio-period-btns .fp {
    padding: 0 2px !important;
    font-size: 10.5px !important;
  }
}
