/* Final responsive layer for NEXARA. Loaded after site.css. */
@media (max-width:1024px){
  html,body{max-width:100%;overflow-x:clip}
  .site-header,.theme-xvantage .site-header{position:-webkit-sticky;position:sticky;top:0;z-index:150;padding-top:env(safe-area-inset-top);background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
}

@media (min-width:601px) and (max-width:1024px){
  .theme-xvantage{--nx-rail-width:64px}
  .theme-xvantage .site-header .nav{padding:0 16px;gap:14px}
  .theme-xvantage .site-header .logo-official{max-width:145px}
  .nx-global-rail{width:64px;top:calc(70px + env(safe-area-inset-top))}
  .nx-global-rail>a,.nx-global-rail>button{width:56px;min-height:56px}
  .theme-xvantage .nx-store{grid-template-columns:minmax(0,1fr)}
  .theme-xvantage .nx-results{grid-column:1;padding:22px 18px 42px}
  .nx-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .theme-xvantage .nx-nav-panel{left:64px;top:calc(70px + env(safe-area-inset-top));width:calc(100vw - 64px)}
  .theme-xvantage .nx-overlay{inset:70px 0 0 64px}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 28px;padding-top:40px;padding-bottom:30px}
  .footer-grid>div{min-width:0}
  .footer h4{margin:0 0 10px;font-size:12px;letter-spacing:.05em;text-transform:uppercase}
  .footer a:not(.logo){margin-bottom:7px;font-size:12.5px;overflow-wrap:anywhere;word-break:break-word}
  .footer p{max-width:none;margin:0 0 8px;font-size:12.5px;line-height:1.55}
  .footer-bottom{padding:14px 0}
}

@media (max-width:600px){
  .container{width:calc(100% - 28px)}
  .theme-xvantage{padding-left:0!important;--nx-rail-width:0px}
  .theme-xvantage .site-header .nav{height:66px;padding:0 14px;gap:10px}
  .theme-xvantage .site-header .logo{min-width:0}
  .theme-xvantage .site-header .logo-official{width:108px;max-width:108px;max-height:48px}
  .theme-xvantage .nx-site-search{display:none}
  .theme-xvantage .nav-actions{margin-left:auto;gap:12px}
  .theme-xvantage .nav-actions>.icon-link{display:none}
  .theme-xvantage .hamburger{display:grid;place-items:center;width:42px;height:42px;border:1px solid #d5e2f2;border-radius:10px;background:#eef4fc;color:#174f98;transition:background .18s ease,color .18s ease,border-color .18s ease}
  .theme-xvantage .hamburger.is-open{background:#174f98;border-color:#174f98;color:#fff}
  .theme-xvantage .mobile-nav,.site-header .mobile-nav{display:none}
  .theme-xvantage .mobile-nav.open,.site-header .mobile-nav.open{display:flex;flex-direction:column;gap:4px;position:absolute;z-index:160;top:calc(100% + 6px);left:10px;right:10px;max-height:calc(100dvh - 84px - env(safe-area-inset-top));overflow-y:auto;overscroll-behavior:contain;padding:10px;border-radius:16px;background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(16px) saturate(165%);backdrop-filter:blur(16px) saturate(165%);border:1px solid rgba(196,214,235,.78);box-shadow:0 18px 40px rgba(8,29,53,.14),0 2px 8px rgba(8,29,53,.06)}
  .mobile-nav-head{display:flex;align-items:center;justify-content:space-between;padding:4px 6px 8px;margin-bottom:2px;border-bottom:1px solid rgba(203,218,236,.55)}
  .mobile-nav-head span{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#4a6482}
  .mobile-nav-close{display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(196,214,235,.8);border-radius:8px;background:rgba(255,255,255,.8);color:#14365c;font-size:14px;line-height:1;cursor:pointer}
  .theme-xvantage .mobile-nav a,.site-header .mobile-nav a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;border-bottom:0;font-size:14px;font-weight:650;color:#11263f;transition:background .15s ease,color .15s ease}
  .theme-xvantage .mobile-nav a:hover,.theme-xvantage .mobile-nav a:focus-visible,.theme-xvantage .mobile-nav a.is-current,.site-header .mobile-nav a:hover,.site-header .mobile-nav a:focus-visible,.site-header .mobile-nav a.is-current{background:rgba(23,79,152,.09);color:#14509b}
  .nx-mnav-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:rgba(23,79,152,.08);color:#174f98;flex-shrink:0}
  .nx-global-rail{display:none!important}
  .theme-xvantage .nx-store{display:block;min-height:0}
  .theme-xvantage .nx-results{display:block;padding:18px 14px 36px}
  .theme-xvantage .nx-nav-panel{position:fixed;left:0;top:calc(66px + env(safe-area-inset-top));width:100vw;height:calc(100dvh - 66px - env(safe-area-inset-top));max-height:none;border:0}
  .theme-xvantage .nx-overlay{position:fixed;inset:66px 0 0 0}
  .theme-xvantage .nx-products-menu{height:calc(100dvh - 135px);max-height:none;grid-template-columns:45% 55%}
  .nx-heading{align-items:flex-start;gap:10px}
  .nx-heading>div{min-width:0}
  .nx-heading h2{font-size:23px;line-height:1.2}
  .nx-find{max-width:none;width:100%}
  .nx-find input{font-size:16px}
  .nx-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .nx-products-grid .product-visual{height:150px}
  .nx-products-grid .product-body{padding:12px}
  .nx-products-grid .product-body h3{font-size:12px;min-height:0}
  .nx-products-grid .product-price{font-size:18px}
  .nx-filters{width:min(360px,94vw)}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px;padding-top:30px;padding-bottom:22px}
  .footer-grid>div{min-width:0}
  .footer-grid>div:first-child,.footer-grid>div:last-child{grid-column:1 / -1}
  .footer h4{margin:0 0 8px;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:#e6eef8}
  .footer a:not(.logo){margin-bottom:6px;font-size:12px;line-height:1.4;overflow-wrap:anywhere;word-break:break-word}
  .footer p{max-width:none;margin:0 0 6px;font-size:12px;line-height:1.5}
  .footer .nx55-footer-wordmark{display:block;margin-bottom:4px;font-size:13px;letter-spacing:.08em}
  .footer-bottom{flex-direction:column;gap:6px;padding:12px 0 calc(12px + env(safe-area-inset-bottom));font-size:11px}
}

@media (max-width:359px){
  .footer-grid{grid-template-columns:1fr;gap:14px}
  .footer-grid>div:first-child,.footer-grid>div:last-child{grid-column:auto}
}

@media (max-width:390px){
  .nx-products-grid{grid-template-columns:1fr}
  .nx-products-grid .product-visual{height:225px}
}

/* Four allies: one balanced row on desktop, two pairs on smaller screens. */
.nx56-ally-logos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(18px,2vw,32px);align-items:center;justify-items:center;min-width:0}
.nx56-ally-logos img{width:100%;max-width:150px;height:64px;max-height:64px;object-fit:contain;margin:0}
.nx56-ally-logos img[alt="Dell"]{max-width:64px}
@media(max-width:900px){.nx56-ally-logos{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 32px}.nx56-ally-logos img{max-width:150px;height:64px}}

/* November design refinement: consistent cards, typography and service rhythm. */
.theme-xvantage .nx56-services-lead h1,.theme-xvantage .nx56-about-intro h1{font-size:clamp(38px,4.3vw,72px);line-height:1.05;font-weight:790;max-width:1050px;letter-spacing:-.035em;margin:24px 0 28px}
.nx56-services-lead,.nx56-about-intro{padding-top:72px;padding-bottom:60px}
.nx56-services-lead>p{max-width:850px;font-size:19px;line-height:1.65}
.nx56-path-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.nx56-path-grid .nx56-path{display:flex;flex-direction:column;min-width:0;grid-column:auto}
.nx56-path-grid .nx56-path-photo{width:100%;height:250px;aspect-ratio:auto;flex:none}
.nx56-path-grid .nx56-path-photo img{width:100%;height:100%;object-fit:cover}
.nx56-path-grid .nx56-path-body{flex:1;display:flex;flex-direction:column;padding:28px}
.nx56-path-grid .nx56-path-body h3{font-size:28px;line-height:1.2;min-height:2.4em;margin:16px 0}
.nx56-path-grid .nx56-path-body p{margin:0 0 24px}
.nx56-path-grid .nx56-path-body b{margin-top:auto;padding-top:12px}
.nx-benefits{background:#0b2a3e;padding:76px 0;color:#fff}
.nx-benefits-heading{max-width:830px;margin-bottom:34px}
.nx-benefits-heading h2{color:#fff;font-size:clamp(30px,3vw,44px);line-height:1.15;letter-spacing:-.025em;margin:16px 0}
.nx-benefits-heading>p{color:#bdd3e2;font-size:18px;line-height:1.6}
.nx-benefit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.nx-benefit-card{background:#fff;color:#12334b;border:1px solid #dce8f1;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.nx-benefit-card>img{display:block;width:100%;height:180px;object-fit:contain;background:#edf6fc;padding:12px;box-sizing:border-box}
.nx-benefit-card>div{padding:28px;flex:1}
.nx-benefit-card span{color:#007ac2;font-size:10px;font-weight:800;letter-spacing:.13em}
.nx-benefit-card h3{color:#0b2a3e;font-size:25px;line-height:1.2;letter-spacing:-.025em;margin:14px 0}
.nx-benefit-card p{color:#526b7d;font-size:16px;line-height:1.65;margin:0}
.nx-benefits-footer{display:flex;align-items:center;gap:30px;margin-top:30px}
.nx-benefits-footer>a{flex-shrink:0}
.nx-benefits-footer>p{font-size:13px;line-height:1.6;color:#bfd0dc;max-width:760px;margin:0}
#administracion-ti,#consultoria{grid-template-columns:minmax(0,.85fr) minmax(0,1fr);gap:64px;padding-top:48px;padding-bottom:48px;align-items:start}
#consultoria{border-top:1px solid #dbe5ed;margin-bottom:30px}
#administracion-ti h2,#consultoria h2{font-size:clamp(28px,2.8vw,40px);line-height:1.15;margin:16px 0 0;max-width:470px}
#administracion-ti p,#consultoria p{font-size:17px;line-height:1.7;margin:0 0 16px}
#cctv .nx56-feature-photo{height:auto;aspect-ratio:auto;background:transparent}
#cctv .nx56-feature-photo img{display:block;width:100%;height:auto;object-fit:contain}
@media(max-width:1000px){.nx56-path-grid .nx56-path-photo{height:200px}.nx56-path-grid .nx56-path-body{padding:22px}.nx56-path-grid .nx56-path-body h3{font-size:23px}.nx-benefit-grid{gap:16px}.nx-benefit-card>div{padding:22px}.nx-benefit-card h3{font-size:23px}}
@media(max-width:800px){.nx56-training-visual{height:auto;background:transparent}.nx56-training-visual img{display:block;width:100%;height:auto}.theme-xvantage .nx56-services-lead h1,.theme-xvantage .nx56-about-intro h1{font-size:clamp(34px,6vw,56px)}.nx56-services-lead,.nx56-about-intro{padding-top:48px;padding-bottom:42px}.nx56-path-grid{grid-template-columns:1fr}.nx56-path-grid .nx56-path-photo{height:230px}.nx56-path-grid .nx56-path-body h3{min-height:0}.nx-benefit-grid{grid-template-columns:1fr}.nx-benefit-card{display:grid;grid-template-columns:190px minmax(0,1fr)}.nx-benefit-card>img{height:100%;min-height:180px}.nx-benefits{padding:52px 0}.nx-benefits-footer{align-items:flex-start;flex-direction:column;gap:18px}#administracion-ti,#consultoria{grid-template-columns:1fr;gap:20px;padding-top:34px;padding-bottom:34px}#consultoria{margin-bottom:18px}}
@media(max-width:480px){.nx-benefit-card{display:flex}.nx-benefit-card>img{height:160px;min-height:0}.nx-benefit-card>div{padding:24px}.nx56-services-lead>p{font-size:17px}}

/* Real photography, understated principles and compact advice. */
.nx-benefit-card>img{object-fit:cover;padding:0;height:200px;object-position:center}
.nx-benefit-card:first-child>img{object-position:60% center}
.nx-security-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;background:#f1f6fa;border-radius:14px;padding:28px;align-items:center;min-width:0}
.nx-security-photos figure{margin:0;background:#fff;border-radius:10px;padding:16px 10px;min-width:0}
.nx-security-photos img{display:block;width:100%;height:190px;object-fit:contain}
.nx-security-photos figcaption{text-align:center;color:#183d58;font-size:13px;font-weight:700;margin-top:16px}
.nx-principles-cards .nx56-principles-head{display:block;max-width:800px;margin-bottom:32px}
.nx-principles-cards .nx56-principles-head h2{font-size:clamp(30px,3vw,44px);line-height:1.15;margin:16px 0 0}
.nx-principles-cards .nx56-principles-grid{gap:24px;align-items:stretch}
.nx-principles-cards .nx56-principles-grid article{border:1px solid #35586c;background:#13374c;border-radius:14px;padding:30px;min-width:0}
.nx-principles-cards .nx56-principles-grid article>b{display:block;color:#7bd1ff;font-size:13px;margin:0 0 24px}
.nx-principles-cards .nx56-principles-grid h3{font-size:27px;line-height:1.2;margin:0 0 16px;color:#fff}
.nx-principles-cards .nx56-principles-grid p{font-size:17px;line-height:1.7;color:#c7dce8;margin:0}
.nx-advice-strip{background:#f1f6fa;border-top:1px solid #e0e9f0;border-bottom:1px solid #e0e9f0;padding:42px 0}
.nx-advice-inner{display:flex;align-items:center;justify-content:space-between;gap:44px}
.nx-advice-inner>div{max-width:850px}
.nx-advice-inner h2{font-size:clamp(26px,2.6vw,38px);line-height:1.2;letter-spacing:-.025em;color:#103149;margin:12px 0}
.nx-advice-inner p{font-size:17px;line-height:1.6;color:#526d80;margin:0}
.nx-advice-inner>a{flex-shrink:0}
@media(max-width:1000px){.nx-security-photos{padding:16px;gap:10px}.nx-security-photos img{height:150px}.nx-security-photos figure{padding:12px 6px}.nx-principles-cards .nx56-principles-grid article{padding:24px}}
@media(max-width:800px){.nx-advice-inner{align-items:flex-start;flex-direction:column;gap:24px}.nx-advice-strip{padding:34px 0}.nx-benefit-card>img{height:100%;min-height:200px}.nx-principles-cards .nx56-principles-grid{grid-template-columns:1fr}}
@media(max-width:480px){.nx-benefit-card>img{height:190px;min-height:0}.nx-security-photos{grid-template-columns:1fr;gap:14px}.nx-security-photos img{height:160px}}
