/* Estructura adaptable del recorrido */
.tour .app { --canvas: #121923; --panel: #1d2734; --raised: #293646; --edge: #435163; --primary: #fff; --muted: #c4cfdd; --accent: #ffc08f; --good: #8ce4ac; --bad: #ffb7b0; --info: #bad2ff; --warm: #ffdb91; --selected: #ff9a55; --tx: var(--primary); --tx2: var(--muted); --tx3: var(--muted); --grn: var(--good); color-scheme: dark; height: auto; min-width: 0; overflow: clip; }
.tour .app[data-theme="light"] { --canvas: #f5f6f8; --panel: #fff; --raised: #edf0f4; --edge: #c9d0da; --primary: #172234; --muted: #475569; --accent: #894016; --good: #226541; --bad: #963831; --info: #364f89; --warm: #795008; --selected: #ff9a55; color-scheme: light; }
.tour .app :where(.sb,.mv) { min-width: 0; overflow: visible; }
.tour .app .mv { min-height: 0; }
.tour .app .st2 { border: 1px solid currentColor; }
.tour .app .dm { cursor:pointer; }
.tour .app .dm u { background: var(--selected); }
.tour .app[data-theme="light"] .dm u { background: #576579; }
.tour .app[data-theme="light"] .dm u::after { left:3px; right:auto; }
.tour .app .tg { background:#66758a; }
.tour .app .tg.on { background:#bd540c; }
.tour .app :focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.tour .app .tbw { max-width:100%; min-width:0; overflow-x:auto; scrollbar-width:thin; scrollbar-color:var(--edge) transparent; }
.tour .app .mobile-views { display:none; }
.tour .app .rl2,.tour .app .rl2 .v,.tour .app .vh .act { flex-wrap:wrap; }
.tour .app .rl2 .v { row-gap:2px; }
@media (min-width: 901px) and (max-width: 1150px) { .tour .app { grid-template-columns: 218px minmax(0,1fr); }
.tour .app .mv { padding:22px; }
.tour .app :is(.three,.rec) { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) { .tour .app { grid-template-columns: minmax(0,1fr); }
.tour .app .sb { display:flex; flex-direction:row; align-items:center; gap:12px; flex-wrap:wrap; border:0; border-bottom:1px solid var(--edge); padding:14px 16px; }
.tour .app .sb > :not(.mobile-views):not(.dm) { display:none; }
.tour .app .sb .mobile-views { display:flex; flex:1 1 160px; align-items:center; gap:8px; color:var(--muted); font-size:13px; }
.tour .app .mobile-views select { min-width:0; max-width:100%; flex:1; padding:8px; border-radius:8px; background:var(--raised); border:1px solid var(--edge); font:inherit; color:var(--primary); }
.tour .app .sb .dm { display:flex; flex:0 0 auto; width:auto; gap:6px; padding:6px 0; }
.tour .app .dm svg { display:none; }
.tour .app .mv { padding:clamp(12px,3vw,22px); }
.tour .app :is(.kp,.three,.rec,.pipe,.wsc,.kb,.dg,.brief) { grid-template-columns:minmax(0,1fr); } }
@media (max-width: 680px) { .tour .app .tbw { overflow:visible; }
.tour .app .tbw :is(table,tbody,tr,td) { display:block; width:100%; }
.tour .app .tbw tr:has(th) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.tour .app .tbw tr:has(td) { padding:10px 0; border-top:1px solid var(--edge); }
.tour .app .tbw td { display:grid; grid-template-columns:minmax(70px,.7fr) minmax(0,1.5fr); gap:8px; align-items:center; text-align:start; padding:5px 0; border:0; overflow-wrap:anywhere; }
.tour .app .tbw td::before { content:attr(data-label); font-size:12px; color:var(--muted); }
.tour .app .tbw td > :is(span,div) { min-width:0; flex-wrap:wrap; }
.tour .app .tbw td > :is(.bt,.st2,.tg) { justify-self:start; }
.tour .app .topb { flex-wrap:wrap; }
.tour .app .pnl { padding:14px; } }

/* Paleta de las superficies y sus controles */
@layer pv-componentes {
.tour .app { color: var(--primary) !important; background: var(--canvas) !important; border: 1px solid var(--edge) !important; box-shadow: 0 14px 34px -22px rgba(16,23,35,.35) !important; }
.tour .app .sb { background: var(--panel) !important; }
.tour .app .mv { background: var(--canvas) !important; }
.tour .app :is(.topb,.pnl,.k3,.kp > div,.wsc > div,.kb > div,.pipe > div,.wsp) { background: var(--panel) !important; color: var(--primary) !important; border-color: var(--edge) !important; box-shadow: none !important; }
.tour .app :is(.qk div,.rc2,.kc,.pipe .ld,.srch,.seg2 > div,.chat .u,.chat .h,.ask,.chips2 > div) { background: var(--raised) !important; color: var(--primary) !important; }
.tour .app :where(.brand,.me,.tb th,.tb td,.perm th,.perm td,.k3 > div,.wsc dl,.rl2,.wsp,.wsn,.pn,.act span,.bt,.srch,.smp,.topb em) { border-color: var(--edge) !important; }
.tour .app :is(.big,h3,h4,h5,.brand b,.pn b,.me b,.wsp b,.rc2 b,.kc b,.ld b,.tb td:first-child,.tb td b,.vh .act span,.topb b,.chips2 button,.bt,.seg2 span,.sb button,.tools2 .bt,.brief .bb span) { color: var(--primary) !important; }
.tour .app :is(.srch,.smp,.brand span,.me,.wsp span,.wsp em,.sb h6,.dm,.sb .soon,.sb .soon em,.topb small,.wsc p,.tb th,.perm th,.crumb2,.lg2,.stg small,.rc2 p,.ask span) { color: var(--muted) !important; }
.tour .app [style*="color:#fff" i] { color: var(--primary) !important; }
.tour .app :is(.plat,.rc2 a,.rec h5,.qk b.n,.tools2 .bt[style*="color"]) { color: var(--accent) !important; }
.tour .app :is(.st2,.smp,.tools2 .bt,.seg2 span,.chips2 button,.bt) { background: transparent !important; }
.tour .app .sb button:is(:hover,:focus-visible), .tour .app :is(.chips2 button.on,.seg2 .on,.chat .h) { background: var(--raised) !important; color: var(--primary) !important; }
.tour .app :is(.sb button[data-v].on,.sb button[data-v].on svg,.chips2 button.or,.bt.or,.brief .bb span:first-child,.vh .act [style*="background"]) { color: #21180f !important; background: var(--selected) !important; border-color: var(--selected) !important; box-shadow: none !important; }
.tour .app :is(.av,.wsp i,.tp3 i,.me i[style]) { color: #101621 !important; }
.tour .app :is(.st2.sg,.kp em,.k3 em) { color: var(--good) !important; }
.tour .app :is(.st2.sr,.kp em.dn,.bt.dl,[style*="color:#FF8A80" i]) { color: var(--bad) !important; }
.tour .app .st2.sbl { color: var(--info) !important; }
.tour .app .st2.sy { color: var(--warm) !important; }
.tour .app :is(.k3 em[style],.tb td,.perm td) { color: var(--muted) !important; }
@media (max-width: 680px) { .tour .app .tbw table { min-width:0!important; } }
}

.tour[id] {scroll-margin-top:90px;}

@media (min-width:681px) and (max-width:1150px) {
  .tour .app .tb :is(td,th) {padding-inline:7px;}
  .tour .app .tb td > span[style*="flex"] {flex-wrap:wrap;}
}
