/* Product navigation shares NovaMatrix's sky blue and navy palette. */
.nav-container { position: relative; }
.products-toggle { display: inline-flex; align-items: center; gap: .45rem; padding: .75rem 0; border: 0; background: transparent; color: #0f172a; font: 600 .95rem Inter, sans-serif; cursor: pointer; transition: color .2s; }
.products-toggle:hover, .products-toggle[aria-expanded="true"] { color: #0284c7; }
.products-chevron { width: 16px; height: 16px; transition: transform .2s; }
.products-toggle[aria-expanded="true"] .products-chevron { transform: rotate(180deg); }
.products-menu[hidden] { display: none; }
.products-menu { position: absolute; top: calc(100% + 12px); left: 2rem; right: 2rem; padding: 1.75rem; border: 1px solid #e2eaf2; border-radius: 22px; background: #fff; color: #0f172a; box-shadow: 0 24px 70px #02061726, 0 4px 12px #0f172a08; animation: products-reveal .2s ease-out; }
.products-menu::before { content: ""; position: absolute; top: -1px; left: 32px; right: 32px; height: 2px; background: linear-gradient(90deg, transparent, #38bdf8, transparent); }
.products-menu-heading { padding: 0 .5rem 1.3rem; border-bottom: 1px solid #edf2f7; margin-bottom: 1.25rem; }
.products-menu-heading > span { color: #0284c7; font-size: .66rem; letter-spacing: .16em; font-weight: 700; }
.products-menu-heading p { margin-top: .4rem; color: #0f172a; font-size: 1.2rem; font-weight: 600; letter-spacing: -.025em; }
.products-columns { display: grid; grid-template-columns: 1fr 1.25fr 1.15fr; gap: 1.25rem; }
.product-group + .product-group { border-left: 1px solid #edf2f7; padding-left: 1.25rem; }
.nav-links .product-category { display: flex; align-items: center; gap: .8rem; padding: .65rem .5rem; border-radius: 12px; color: #0f172a; font-size: .9rem; line-height: 1.4; transition: background .2s, color .2s; }
.nav-links .product-category:hover { color: #0284c7; background: #f0f9ff; }
.product-category small { display: block; margin-top: .25rem; color: #64748b; font-size: .73rem; font-weight: 400; line-height: 1.5; }
.product-icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; color: #0284c7; background: linear-gradient(135deg, #e0f2fe, #f0f9ff); border: 1px solid #d9effb; border-radius: 12px; }
.product-icon svg { width: 22px; height: 22px; }
.product-group-note { color: #64748b; font-size: .8rem; line-height: 1.8; padding: .6rem .5rem; max-width: 230px; }
.product-sublinks { list-style: none; margin: .5rem 0 0 1.7rem; padding-left: 1rem; border-left: 1px solid #e0f2fe; }
.nav-links .product-sublinks a { display: block; padding: .6rem .65rem; border-radius: 8px; color: #475569; font-size: .79rem; font-weight: 500; line-height: 1.5; transition: background .2s, color .2s; }
.nav-links .product-sublinks a:hover { background: #f0f9ff; color: #0284c7; }
.products-services { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; padding: 1rem; border: 1px solid #e7f0f7; border-radius: 16px; background: linear-gradient(110deg, #f8fafc, #f0f9ff); }
.products-services > a + a { border-left: 1px solid #dce9f3; border-radius: 0 12px 12px 0; padding-left: 1.25rem; }
.product-arrow { margin-left: auto; color: #0284c7; font-size: 1.15rem; }
.products-toggle:focus-visible, .products-menu a:focus-visible { outline: 3px solid #38bdf8; outline-offset: 4px; }
#sitios-web, #plataformas-digitales, #apps-microapps, #firmas-electronicas, #facturacion-electronica { scroll-margin-top: 160px; }
@keyframes products-reveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1001px) { .nav-links { gap: 1.6rem; } }
@media (max-width: 1000px) {
  .navbar .mobile-toggle { display: flex; }
  .navbar .nav-links { position: fixed; top: 128px; right: -105%; width: 100%; height: calc(100dvh - 128px); padding: 1rem 1.5rem 2rem; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .3rem; overflow-y: auto; background: #fff; border: 0; box-shadow: 0 20px 30px #02061714; transition: right .3s; }
  .navbar.scrolled .nav-links { top: 124px; height: calc(100dvh - 124px); }
  .navbar .nav-links.active { right: 0; }
  .navbar .nav-links > li > a { display: block; padding: .85rem .75rem; }
  .products-toggle { width: 100%; justify-content: space-between; padding: .85rem .75rem; }
  .products-menu { position: static; padding: 1rem; margin: .25rem 0 .75rem; border-radius: 16px; box-shadow: none; background: #fbfdff; }
  .products-menu::before { display: none; }
  .products-columns { grid-template-columns: 1fr; gap: 1rem; }
  .product-group + .product-group { padding: 1rem 0 0; border-left: 0; border-top: 1px solid #edf2f7; }
  .product-group-note { max-width: none; padding-left: 3.8rem; }
  .products-services { grid-template-columns: 1fr; gap: .5rem; padding: .5rem; margin-top: 1rem; }
  .products-services > a + a { border-left: 0; border-top: 1px solid #dce9f3; border-radius: 0 0 12px 12px; padding: .85rem .5rem; }
  .navbar .nav-links > li > .btn-demo { display: inline-block; margin: .75rem; padding: .75rem 1.5rem; }
  .mobile-toggle.active span:first-child { transform: translateY(9px) rotate(45deg); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}
@media (prefers-reduced-motion: reduce) { .products-menu { animation: none; } .products-chevron, .navbar .nav-links { transition: none; } }
