/* Component colours share the cascade layer used by the existing tour. */
/* The dashboard has a dark sidebar and KPI tiles around a light workspace. */
#recorrido .app {
  --canvas: #faf9f7;
  --panel: #fff;
  --raised: #edf0f5;
  --edge: #d1d7e0;
  --primary: #172034;
  --muted: #48566d;
  --accent: #90400c;
  --selected: #ff9a55;
  --good: #186345;
  --bad: #9b2e30;
  --info: #244c90;
  --warm: #755006;
  --tx: var(--primary);
  --tx2: var(--muted);
  --tx3: var(--muted);
  color-scheme: light;
}
#recorrido .app .sb {
  --panel: #101624;
  --raised: #26334a;
  --edge: #465168;
  --primary: #fbfcff;
  --muted: #c3cede;
  --accent: #ffc18c;
  color-scheme: dark;
  background: var(--panel) !important;
  color: var(--primary) !important;
}
@layer pv-componentes {
  #recorrido .app .sb :is(.pn,.brand,.mobile-views),
  #recorrido .app .sb .me i { color: var(--primary) !important; }
  #recorrido .app .sb :is(button[data-v],.brand b,.pn b,.me b) { color: var(--primary) !important; }
  #recorrido .app .sb button[data-v].on { color: #20150e !important; background: var(--selected) !important; }
  #recorrido .app .sb .mobile-views select { color: var(--primary) !important; background: var(--raised) !important; }
  #recorrido .app .mv { background: var(--canvas) !important; color: var(--primary) !important; }
  #recorrido .app .pnl { background: var(--panel) !important; color: var(--primary) !important; }
  #recorrido .app .mv :is(h3,h4,h5,.rw span,.tb td,.tb td:first-child) { color: var(--primary) !important; }
  #recorrido .app .mv :is(.vh p,.brief p,.smp,.lg2,.br small,.tb th) { color: var(--muted) !important; }
  #recorrido .app .mv .smp { border-color: #bbb3a7 !important; color: #674318 !important; }
  #recorrido .app .tbw td::before { color: var(--muted) !important; }
  #recorrido .app .kp > div,
  #recorrido .app .chat .u,
  #recorrido .app .ask {
    background: #172136 !important;
    border-color: #35435c !important;
    color: #fff !important;
  }
  #recorrido .app .kp b { color: #fff !important; }
  #recorrido .app .kp small,
  #recorrido .app .ask span { color: #d1dbec !important; }
  #recorrido .app .kp em { color: #8ee9b9 !important; }
  #recorrido .app .kp em.dn { color: #ffaaa9 !important; }
  #recorrido .app .ask i { color: #241708 !important; background: var(--selected) !important; }
  #recorrido .app .chat .h { color: #502e1c !important; background: #ffeddf !important; }
  #recorrido .app .mv .seg2 .on { color: #fff !important; background: #28364d !important; }
  #recorrido .app .rec h5 { color: #83410f !important; }
  #recorrido .app .rc2 :is(p,b), #recorrido .app .pipe .ld { color: var(--primary) !important; }
  #recorrido .app .pipe h5 em { color: #34465f !important; background: #edf0f5 !important; }
  #recorrido .app .qk div,
  #recorrido .app .rc2,
  #recorrido .app .seg2 > div,
  #recorrido .app .pipe .ld {
    background: var(--raised) !important; color: var(--primary) !important;
  }
  #recorrido .app .pipe > div { background: var(--panel) !important; color: var(--primary) !important; }
  #recorrido .app .pipe h5, #recorrido .app .pipe .ld b { color: var(--primary) !important; }
  #recorrido .app .seg2 span { color: var(--muted) !important; }
  #recorrido .app .vh .act span { color: var(--primary) !important; background: var(--raised) !important; }
  #recorrido .app .tb td:first-child, #recorrido .app .tb td { color: var(--primary) !important; }
  #recorrido .app .tb th { color: var(--muted) !important; }
  #recorrido .app .rc2 a { color: var(--accent) !important; }
  #recorrido .app .qk em { color: var(--muted) !important; }
  #recorrido .app .qk b.n { color: #733509 !important; background: #ffe0c4 !important; }
  #recorrido .app .br .tr2 { background: #e2e6ed !important; }
  #recorrido .app .lc2 svg g { stroke: #d9dee7; }
  #recorrido .app .lc2 svg .ln2 { stroke: #ab480e; }
  #recorrido .app .st2.sg { color: #165b3c !important; background: #ddf6e8 !important; }
  #recorrido .app .st2.sr { color: #932a2d !important; background: #ffeded !important; }
  #recorrido .app .st2.sy { color: #704600 !important; background: #fff1cb !important; }
  #recorrido .app .st2.sbl { color: #274d89 !important; background: #e8efff !important; }
  #recorrido .tourbar .auto { color: #515567 !important; }

  /* The broad top service card is light. Smaller service cards have their own dark surface. */
  #servicios-web .bento .bx { --svc-bg: #12161d; --svc-text: #f7f8fb; --svc-soft: #d1d7e0; }
  #servicios-web .bento .bx.w4 { --svc-bg: #fff; --svc-text: #182136; --svc-soft: #414b5b; }
  #servicios-web .bento .bx { background: var(--svc-bg) !important; color: var(--svc-text) !important; }
  #servicios-web .bento .bx > h3 { color: var(--svc-text) !important; }
  #servicios-web .bento .bx > :is(p,ul,small),
  #servicios-web .bento .bx > small span { color: var(--svc-soft) !important; }
  #servicios-web .bento .bx .ic2 { background: #fff0e4 !important; color: #91400d !important; }
  #servicios-web .bento .bx .tg {
    display: inline-flex !important; align-items: center; width: max-content !important; max-width: calc(100% - 96px);
    height: auto !important; min-height: 24px; padding: 4px 10px !important; line-height: 1.2 !important; white-space: normal;
    text-align: center; cursor: default !important; background: #ffead9 !important; color: #713107 !important;
  }
  #servicios-web .bento .bx .tg::after { content: none !important; }
  #servicios-web .dsg :is(.ty,.dv) { background: #fbfaf8 !important; color: #1c2535 !important; }
  #servicios-web .dsg .sw { color: #161718 !important; }
  #servicios-web .dsg .sw:nth-child(2) { color: #fff !important; }
  #servicios-web .cart > div, #servicios-web .blog > div { background: #fbfaf8 !important; color: #202735 !important; }
  #servicios-web :is(.cart,.blog) b { color: #202735 !important; }
  #servicios-web .blog span { color: #505b6d !important; }
  #servicios-web .cart span { color: #fff !important; background: #172136 !important; }
  #servicios-web .cart > div:hover span { color: #fff !important; background: #8d3809 !important; }
  #servicios-web .ba .new b { color: #fff !important; }
  #servicios-web .ba .tt { color: #fff !important; background: #372c28 !important; }
  #servicios-web .allin { background: #172136 !important; color: #fff !important; }
  #servicios-web .allin h3 { color: #fff !important; }
  #servicios-web .allin span { color: #e9edf5 !important; }

}

/* Keep the portfolio title, role tag, counts and link readable across all filter states. */
  #portafolio .pvr-top { flex-wrap: wrap; }
  #portafolio .pvr-top .pvr-n { flex: 1 1 8.5em; }
  #portafolio .pvr-top .pvr-b { max-width: 100%; white-space: normal; line-height: 1.2; }
  #portafolio :is(.pvr-cnt,.pvr-empty) { color: #65503f; }
  #portafolio .pvr-n small, #portafolio .pvr-u i { color: #91400e; }
  #portafolio .pvr-m { color: #100c14; }
  #portafolio .pvr-c:nth-child(3n) .pvr-m { background: linear-gradient(135deg,#ad91f7,#9173eb); }
  #portafolio .pvr-b { color: #604d40; }
  #portafolio .pvr-bd { color: #843807; }
  #portafolio .pvr-chip:not([aria-pressed="true"]) em { color: #684e3a; }

@media (max-width: 420px) {
  #servicios-web .bento .bx { padding: 22px 18px; }
  #servicios-web .bento .bx .tg { top: 22px; right: 18px; }
  #servicios-web .cart { gap: 5px; }
  #servicios-web .cart > div { min-width: 0; padding: 6px; }
  #servicios-web .cart span { padding-inline: 4px; }
  #servicios-web .dsg .sw { padding-inline: 4px; letter-spacing: 0; }
}

#servicios-web .hd .ey, #portafolio .hd h2 .serif, #portafolio .pvr-inc h3 span { color: #8e3b0c; }
#portafolio .btn.pri { color: #1d1220; }

@layer pv-componentes {
  #top.wh .crumb, #top.ch0 .crumb, #top.wh .ok span { color: #444c60 !important; }
  #top.wh .ey, #top.ch0 .ey, #top.wh .rscap small,
  #tu-sitio .ey, .kq.sec.light .hd .ey { color: #874113 !important; }
  #top.wh h1 .serif, #top.ch0 h1 .o, #ejemplos h2 .serif {
    background-image: linear-gradient(92deg,#a3470e,#93335e 62%,#653b9e) !important;
    background-clip: text !important; -webkit-background-clip: text !important;
    color: transparent !important; -webkit-text-fill-color: transparent !important;
  }
  #ejemplos .note, #integraciones .cats button em, .sec.light .inc3 summary em { color: #515b6c !important; }
  #integraciones .intn a { color: #894013 !important; }
  #servicios-web ~ .sec .szc > small { color: #874113 !important; }
  #servicios-web ~ .sec .stat { color: #f6f7fa !important; background: #11161e !important; }
  .mt .stat .hd3, .mt .stat .big b, .mt .stat .rows div span { color: #eff3fa !important; }
  .mt .stat .big span { color: #c6d5e2 !important; }
  .mt .stat .rows div em { color: #a0e4b9 !important; }
  .mt .stat .rows .req em { color: #ffca93 !important; }
  .sec.light .proc .pc b.n { color: #261608 !important; }
}

@layer pv-legibilidad {
  /* Restore the original service CTAs from the new ZIP, scoped to six bands. */
  :is(#servicios-web,#recorrido) ~ .band h2 { color: #fff !important; }
  :is(#servicios-web,#recorrido) ~ .band h2 .serif { color: var(--or2) !important; }
  :is(#servicios-web,#recorrido) ~ .band p { color: var(--tx2) !important; }
  :is(#servicios-web,#recorrido) ~ .band .btn.ghost {
    color: #fff !important;
    background: transparent !important;
    border-color: rgba(255,255,255,.55) !important;
  }
  :is(#servicios-web,#recorrido) ~ .band .btn.ghost:hover {
    background: rgba(255,255,255,.06) !important;
    border-color: #fff !important;
  }
}

/* Pagovision 2026-11-22: corregir colisión con .sr (campo de búsqueda)
   que estiraba las insignias de alerta en el Command Center. */
#recorrido .app .tbw .st2,
#recorrido .app .tb .st2 {
  display: inline-flex !important;
  width: max-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 22px !important;
  padding: 3px 9px !important;
  margin: 0 !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  justify-content: flex-start !important;
  align-items: center !important;
  align-self: center !important;
  font-size: 11.5px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  border: 1px solid currentColor !important;
  border-radius: 999px !important;
}
#recorrido .app .tbw .st2::before,
#recorrido .app .tb .st2::before {
  width: 6px !important;
  height: 6px !important;
  flex: 0 0 6px !important;
}
