/* =====================================================================
   Demo personalizada · LA BARRA DEL SITIO (8-oct-2026, orden del dueño:
   «debería seguir saliendo el dock siempre, siempre»).
   Es la misma barra de index.html (bloque TOPNAV y sus capas de tema claro,
   Inter, radios, botón Agendar). Se EXTRAJO de las reglas que el navegador
   aplica en index.html —no se reescribió a mano— para que se vea idéntica.
   Lo único propio de la demo:
     · el botón .kb-ia de index se llama aquí .tn-kb (la demo ya usa .kb-ia para el sello de Nodo IA).
     · al final, #dpCab: fija como en index (64 px, el cuerpo deja ese aire
       arriba) y por debajo de los diálogos de la demo. No sticky: cuando la demo
       bloquea el scroll (html.dp-sin-scroll), el overflow-x del body lo vuelve
       contenedor y una barra sticky se iba hacia arriba con la página.
   Si cambia la barra en index.html, se vuelve a extraer.
   ===================================================================== */
.langtog{position: fixed; top: 14px; right: 30px; z-index: 130; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0px 16px; border-radius: 980px; border: 1px solid rgba(11, 11, 15, 0.08); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(26px) saturate(1.6); color: rgb(11, 11, 15); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; cursor: pointer; box-shadow: rgba(11, 36, 251, 0.28) 0px 18px 50px -18px, rgba(11, 11, 15, 0.1) 0px 3px 10px; transition: background 0.3s, transform 0.2s, border-color 0.3s;}
.langtog:hover{background: rgb(255, 255, 255); transform: translateY(-1px); border-color: rgba(11, 11, 15, 0.16);}
.langtog svg{width: 16px; height: 16px; stroke: currentcolor; fill: none; stroke-width: 2.14; stroke-linecap: round;}
.langtog .lg{color: rgb(74, 140, 247);}
@media (max-width: 640px){
  .langtog{top: auto; bottom: 10px; right: 10px; height: 34px; padding: 0px 11px; font-size: 0.68rem; box-shadow: rgba(0, 0, 0, 0.45) 0px 14px 40px, rgba(255, 255, 255, 0.09) 0px 1px 0px inset;}
}
.topnav{position: fixed; inset: 0px 0px auto; z-index: 130; height: 64px; border-bottom: 1px solid transparent; background: rgba(0, 0, 0, 0.42); backdrop-filter: saturate(160%) blur(14px); transition: background 0.3s, border-color 0.3s;}
.topnav.scrolled{background: rgba(0, 0, 0, 0.72); border-bottom-color: var(--line);}
.tn-in{max-width: 1240px; margin: 0px auto; padding: 0px 28px; height: 100%; display: flex; align-items: center; gap: 20px;}
@media (min-width: 901px) and (max-width: 1180px){
  .tn-in{gap: 12px; padding: 0px 20px;}
  .tn-link{padding: 8px 9px;}
  .tn-right{gap: 8px;}
}
@media (min-width: 901px) and (max-width: 1060px){
  .tn-lab svg{display: none;}
  .tn-right .themeseg{display: none;}
}
.tn-brand{font-weight: 700; font-size: 1.3rem; letter-spacing: -0.035em; color: var(--text); text-decoration: none; margin-right: 6px;}
.tn-menu{display: flex; align-items: center; gap: 4px; flex: 1 1 0%;}
.tn-link{display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 10px; border: 0px; background: transparent; font-style: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 0.93rem; font-weight: 500; color: rgba(245, 245, 247, 0.72); text-decoration: none; cursor: pointer; transition: color 0.2s, background 0.2s;}
.tn-link:hover,.tn-link.on,.tn-dd.open .tn-trig{color: var(--text); background: rgba(255, 255, 255, 0.07);}
.tn-chev{width: 14px; height: 14px; fill: none; stroke: currentcolor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s;}
.tn-dd.open .tn-chev{transform: rotate(180deg);}
.tn-dd{position: relative;}
.tn-panel{position: absolute; left: 0px; top: calc(100% + 10px); width: min(880px, -56px + 100vw); display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 22px; border-radius: 18px; background: rgb(17, 17, 20); border: 1px solid var(--line); box-shadow: rgba(0, 0, 0, 0.6) 0px 30px 70px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;}
.tn-dd.open .tn-panel{opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.2s, visibility;}
.tn-ttl{font-size: 0.8rem; font-weight: 500; color: var(--muted); margin: 2px 0px 10px 10px;}
.tn-item{display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--text); transition: background 0.18s;}
.tn-item:hover{background: rgba(255, 255, 255, 0.06);}
.tn-ic{flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.03);}
.tn-ic svg{width: 18px; height: 18px; fill: none; stroke: currentcolor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;}
.tn-item b{display: block; font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2;}
.tn-item small{display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.3; margin-top: 2px;}
.tn-right{display: flex; align-items: center; gap: 10px;}
.topnav .langtog{position: static; top: auto; right: auto; transform: none; margin: 0px; height: 36px;}
.tn-cta{display: inline-flex; align-items: center; height: 36px; padding: 0px 16px; border-radius: 999px; background: rgb(255, 255, 255); color: rgb(11, 11, 15); font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: transform 0.2s, background 0.2s;}
.tn-cta:hover{background: rgb(237, 241, 248); transform: translateY(-1px);}
.tn-burger{display: none; margin-left: auto; width: 40px; height: 40px; border: 0px; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; align-items: center;}
.tn-burger span{display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s;}
.menu-open .tn-burger span:first-child{transform: translateY(4px) rotate(45deg);}
.menu-open .tn-burger span:last-child{transform: translateY(-4px) rotate(-45deg);}
@media (max-width: 900px){
  .tn-in{gap: 12px;}
  .tn-burger{display: flex; order: 3;}
  .tn-right{order: 2; margin-left: auto;}
  .tn-cta{display: none;}
  .tn-menu{position: fixed; inset: 64px 0px 0px; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 16px 30px; background: rgb(10, 10, 12); border-top: 1px solid var(--line); overflow: auto; display: none;}
  .menu-open .tn-menu{display: flex;}
  .tn-link{padding: 12px; font-size: 1rem;}
  .tn-dd .tn-trig{width: 100%; justify-content: space-between;}
  .tn-panel{position: static; width: auto; grid-template-columns: 1fr; gap: 16px; padding: 6px 0px 10px; border: 0px; box-shadow: none; background: transparent; display: none; opacity: 1; visibility: visible; transform: none;}
  .tn-dd.open .tn-panel{display: grid;}
}
html[data-theme="light"] .topnav{background: rgba(255, 255, 255, 0.55);}
html[data-theme="light"] .topnav.scrolled{background: rgba(255, 255, 255, 0.82);}
html[data-theme="light"] .tn-link{color: rgba(11, 11, 15, 0.68);}
html[data-theme="light"] .tn-link:hover,html[data-theme="light"] .tn-link.on,html[data-theme="light"] .tn-dd.open .tn-trig{color: var(--text); background: rgba(0, 0, 0, 0.05);}
html[data-theme="light"] .tn-panel{background: rgb(255, 255, 255); border-color: rgba(0, 0, 0, 0.08); box-shadow: rgba(16, 24, 40, 0.14) 0px 24px 60px;}
html[data-theme="light"] .tn-item:hover{background: rgba(0, 0, 0, 0.04);}
html[data-theme="light"] .tn-ic{background: rgb(250, 250, 251);}
html[data-theme="light"] .tn-cta{background: rgb(11, 11, 15); color: rgb(255, 255, 255);}
html[data-theme="light"] .tn-cta:hover{background: rgb(29, 29, 31);}
html[data-theme="light"] .tn-menu{background: rgb(255, 255, 255);}
html[data-theme="light"] .langtog{background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.1); color: var(--text);}
.tn-panel{padding: 24px; gap: 30px; border-radius: 20px; background-image: linear-gradient(rgba(255, 255, 255, 0.04), transparent 60px);}
html[data-theme="light"] .tn-panel{background-image: none;}
.tn-col + .tn-col{padding-left: 30px; border-left: 1px solid var(--line2);}
.tn-ttl{font-size: 0.78rem; letter-spacing: 0.01em; margin-bottom: 12px;}
.tn-ic{width: 42px; height: 42px; flex-basis: 42px; border-radius: 11px;}
.tn-item{padding: 9px 10px 9px 8px; transition: background 0.18s, transform 0.18s;}
.tn-item:hover{transform: translateX(2px);}
.tn-item b{letter-spacing: -0.012em;}
@media (max-width: 900px){
  .tn-col + .tn-col{padding-left: 0px; border-left: 0px; padding-top: 12px; border-top: 1px solid var(--line2);}
}
.topnav{background: transparent; backdrop-filter: none; border-bottom-color: transparent;}
.topnav.scrolled{background: rgba(0, 0, 0, 0.74); backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line);}
html[data-theme="light"] .topnav{background: transparent;}
html[data-theme="light"] .topnav.scrolled{background: rgba(255, 255, 255, 0.86); border-bottom-color: rgba(0, 0, 0, 0.08);}
.tn-right{gap: 8px;}
.topnav .langtog,.tn-cta{height: 38px; border-radius: 999px; box-shadow: none; transform: none; font-family: inherit; transition: background 0.18s, border-color 0.18s, color 0.18s;}
.topnav .langtog{border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--text); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; gap: 7px;}
.topnav .langtog{padding: 0px 14px 0px 12px;}
.topnav .langtog svg{width: 16px; height: 16px; stroke: currentcolor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85;}
.topnav .langtog .lg{color: var(--text);}
.topnav .langtog:hover{background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.22); transform: none;}
html[data-theme="light"] .topnav .langtog{background: rgb(255, 255, 255); border-color: rgba(0, 0, 0, 0.12); color: rgb(11, 11, 15);}
html[data-theme="light"] .topnav .langtog:hover{background: rgb(242, 242, 245); border-color: rgba(0, 0, 0, 0.2);}
.tn-cta{padding: 0px 18px; font-size: 0.9rem; font-weight: 600; letter-spacing: -0.005em;}
.tn-link{font-weight: 500; letter-spacing: -0.005em;}
.tn-brand{font-size: 1.28rem;}
.topnav,.topnav.scrolled{background: rgb(0, 0, 0); backdrop-filter: none; border-bottom: 1px solid var(--line);}
html[data-theme="light"] .topnav,html[data-theme="light"] .topnav.scrolled{background: rgb(255, 255, 255); border-bottom-color: rgba(0, 0, 0, 0.08);}
.tn-menu{background: transparent;}
html[data-theme="light"] .tn-menu{background: transparent;}
@media (max-width: 900px){
  .tn-menu{background: rgb(10, 10, 12);}
  html[data-theme="light"] .tn-menu{background: rgb(255, 255, 255);}
}
.topnav,.topnav.scrolled{transition: none;}
html[data-theme="light"] .topnav,html[data-theme="light"] .topnav.scrolled{background: rgb(255, 255, 255) !important;}
html[data-theme="dark"] .topnav,html[data-theme="dark"] .topnav.scrolled{background: rgb(0, 0, 0) !important;}
.tn-panel{width: min(1040px, -56px + 100vw); grid-template-columns: 1fr 1.9fr 1fr; gap: 0px; padding: 14px 10px; top: calc(100% + 8px); border-radius: 16px; background-image: none;}
.tn-col{padding: 4px 12px;}
.tn-col + .tn-col{padding-left: 18px; border-left: 1px solid var(--line2);}
.tn-col-rubros{display: grid; grid-template-columns: 1fr 1fr; column-gap: 6px; align-content: start;}
.tn-col-rubros .tn-ttl{grid-column: 1 / -1;}
.tn-ttl{font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em; text-transform: none; margin: 2px 0px 6px 8px; color: var(--muted);}
.tn-item{gap: 9px; padding: 6px 8px; border-radius: 9px; align-items: center;}
.tn-item:hover{transform: none;}
.tn-ic{width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px;}
.tn-ic svg{width: 15px; height: 15px; stroke-width: 1.6;}
.tn-item b{font-size: 0.84rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15;}
.tn-item small{font-size: 0.73rem; line-height: 1.25; margin-top: 1px; color: var(--muted);}
@media (max-width: 900px){
  .tn-col-rubros{grid-template-columns: 1fr;}
  .tn-col{padding: 4px 0px;}
  .tn-col + .tn-col{padding-left: 0px; border-left: 0px;}
}
.tn-brand,.tn-link,.tn-cta,.langtog{font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-optical-sizing: auto;}
.tn-brand{font-weight: 700; letter-spacing: -0.03em;}
.tn-cta,.topnav .langtog{border-radius: var(--r-btn);}
.tn-link{border-radius: var(--r-btn);}
.tn-ic{border-radius: var(--r-icon);}
.tn-item{border-radius: var(--r-btn);}
.tn-panel{border-radius: var(--r-panel);}
.themeseg{display: inline-flex; align-items: center; height: 38px; padding: 3px; gap: 2px; border-radius: var(--r-btn); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05);}
.themeseg button{width: 32px; height: 30px; border: 0px; border-radius: calc(var(--r-btn) - 3px); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 0px; transition: background 0.15s, color 0.15s;}
.themeseg button:hover{color: var(--text);}
.themeseg button.on{background: rgba(255, 255, 255, 0.12); color: var(--text);}
.themeseg svg{width: 15px; height: 15px; fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;}
html[data-theme="light"] .themeseg{background: rgb(255, 255, 255); border-color: rgba(0, 0, 0, 0.12);}
html[data-theme="light"] .themeseg button.on{background: rgb(238, 238, 241); color: rgb(11, 11, 15);}
.tn-panel p,.tn-item small,.tn-ttl{text-align: left; hyphens: manual;}
.tn-panel{grid-template-columns: 1fr 2fr; width: min(820px, -56px + 100vw);}
.tn-brand{display: inline-flex; align-items: center; gap: 8px; line-height: 1;}
.tn-mark{width: 1.15em; height: 1.15em; flex: 0 0 auto; display: block; color: inherit; transform: translateY(0.03em);}
.tn-lab{display: inline-flex; align-items: center; gap: 7px; margin-left: 4px; padding: 0.42em 0.78em; border-radius: 11px; background: rgba(74, 140, 247, 0.12); border: 1px solid rgba(74, 140, 247, 0.28); color: var(--accent); font-size: 0.86rem; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; white-space: nowrap; transition: background 0.18s;}
.tn-lab:hover{background: rgba(74, 140, 247, 0.2);}
.tn-lab svg{width: 15px; height: 15px; fill: none; stroke: currentcolor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;}
.tn-item-azul b,.tn-item-azul small{color: var(--accent) !important;}
.tn-item-azul .tn-ic{background: rgba(74, 140, 247, 0.12) !important; border-color: rgba(74, 140, 247, 0.22) !important;}
.tn-item-azul .tn-ic svg{stroke: var(--accent) !important; color: var(--accent) !important;}
.tn-item-azul:hover .tn-ic{background: rgba(74, 140, 247, 0.18) !important;}
@media (max-width: 900px){
  .tn-panel{gap: 10px !important; padding: 2px 0px 8px !important;}
  .tn-col{padding: 0px !important;}
  .tn-col + .tn-col{border-top: 1px solid var(--line2); padding-top: 8px !important;}
  .tn-col > h4,.tn-col > .tn-tit,.tn-col > span:first-child{letter-spacing: 0.1em; font-size: 0.66rem !important; margin-bottom: 2px !important;}
  .tn-item{padding: 6px 8px !important; gap: 9px !important; border-radius: 10px !important;}
  .tn-ic{width: 28px !important; height: 28px !important; border-radius: 9px !important;}
  .tn-ic svg{width: 14px !important; height: 14px !important;}
  .tn-item b{font-size: 0.86rem !important; line-height: 1.2;}
  .tn-item small{line-height: 1.2; display: block; font-size: 0.72rem !important;}
  .tn-menu > a,.tn-menu > .tn-dd > button{padding-top: 10px !important; padding-bottom: 10px !important; font-size: 1rem !important;}
  .tn-lab{margin-top: 6px !important;}
}
@media (max-width: 620px){
  .tn-panel{grid-template-columns: 1fr !important; gap: 8px !important;}
  .tn-col + .tn-col{border-top: 1px solid var(--line2); padding-top: 8px !important;}
  .tn-item small{white-space: normal;}
}
@media (max-width: 700px){
  .topnav .tn-brand{display: inline-flex; align-items: center; min-height: 40px;}
}
.topnav .tn-kb{position: relative; isolation: isolate; overflow: hidden; box-shadow: rgba(11, 11, 15, 0.55) 0px 0px 0px 1px, rgba(11, 11, 15, 0.45) 0px 20px 22px -18px, rgba(11, 11, 15, 0.35) 0px 8px 10px -8px, rgba(11, 11, 15, 0.3) 0px 2px 4px -2px; transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, filter 0.25s; background: linear-gradient(rgb(32, 32, 39) 0%, rgb(0, 0, 0) 100%) !important; color: rgb(245, 245, 247) !important; border: 0px !important;}
.topnav .tn-kb::before{content: ""; position: absolute; inset: -1px; z-index: -2; border-radius: inherit; background: conic-gradient(rgba(255, 255, 255, 0.92) 0deg, rgba(150, 160, 190, 0.35) 42deg, rgba(74, 140, 247, 0.85) 96deg, rgba(255, 255, 255, 0.75) 140deg, rgba(120, 130, 160, 0.28) 200deg, rgba(180, 200, 255, 0.8) 262deg, rgba(255, 255, 255, 0.35) 310deg, rgba(255, 255, 255, 0.92) 360deg); animation: 7s linear 0s infinite normal none running kbGiro; opacity: 0.9;}
.topnav .tn-kb::after{content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; background: linear-gradient(rgb(34, 34, 42) 0%, rgb(5, 5, 7) 100%);}
.topnav .tn-kb:hover{transform: translateY(-1px); box-shadow: rgba(11, 11, 15, 0.6) 0px 0px 0px 1px, rgba(11, 11, 15, 0.5) 0px 26px 26px -18px, rgba(11, 11, 15, 0.4) 0px 10px 12px -8px, rgba(11, 11, 15, 0.32) 0px 3px 6px -2px;}
.topnav .tn-kb:hover::before{animation-duration: 2.6s; opacity: 1;}
.topnav .tn-kb:active{transform: translateY(1px) scale(0.985); box-shadow: rgba(11, 11, 15, 0.6) 0px 0px 0px 1px, rgba(0, 0, 0, 0.55) 0px 2px 5px inset;}
.topnav .tn-kb:focus-visible{outline: 2px solid var(--accent); outline-offset: 3px;}
.topnav .tn-kb-onda{position: absolute; width: 16px; height: 16px; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%) scale(0); background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%); animation: 0.62s ease-out 0s 1 normal forwards running kbOnda;}
@media (prefers-reduced-motion: reduce){
  .topnav .tn-kb::before{animation: auto ease 0s 1 normal none running none;}
  .topnav .tn-kb-onda{display: none;}
}
.topnav .tn-kb::before{inset: -1px; opacity: 0.95; background: conic-gradient(rgb(255, 255, 255) 0deg, rgba(255, 255, 255, 0.12) 34deg, rgb(185, 204, 242) 72deg, rgb(255, 255, 255) 108deg, rgba(255, 255, 255, 0.1) 168deg, rgb(143, 180, 245) 214deg, rgb(255, 255, 255) 254deg, rgba(255, 255, 255, 0.14) 300deg, rgb(255, 255, 255) 360deg);}
.topnav .tn-kb::after{inset: 1.2px;}
.topnav .tn-kb{box-shadow: rgba(11, 11, 15, 0.35) 0px 0px 0px 0.5px, rgba(11, 11, 15, 0.4) 0px 18px 20px -16px, rgba(11, 11, 15, 0.32) 0px 6px 9px -7px, rgba(11, 11, 15, 0.26) 0px 1px 3px -1px;}
.topnav .tn-kb > span.tn-kb-filo,.topnav .tn-kb::after{pointer-events: none;}
.topnav .tn-kb{background-image: linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 42%), linear-gradient(rgb(32, 32, 39) 0%, rgb(0, 0, 0) 100%) !important;}
@keyframes kbOnda { 
  100% { transform: translate(-50%, -50%) scale(9); opacity: 0; }
}

/* ---- propio de la demo ---- */
#dpCab.topnav{position:fixed;top:0;left:0;right:0;z-index:75}
body{padding-top:64px}
html{scroll-padding-top:64px}
/* la demo hereda en <body> 15 px y su propia pila de letra; la barra va con la base de index */
#dpCab.topnav{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-size:16px;line-height:1.5;font-feature-settings:'cv11','ss01','ss03'}
#dpCab a{text-decoration:none}
#dpCab .langtog,#dpCab .themeseg button{line-height:normal}

/* ítem de la página actual dentro del desplegable (9-oct-2026) */
.tn-item[aria-current="page"]{background:rgba(255,255,255,.07)}[data-theme="light"] .tn-item[aria-current="page"]{background:rgba(0,0,0,.05)}
