/* NEXTGEN SYSTEMS 2.2 — máxima compactación + navegación secuencial */
:root{--ng-header-h:68px}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--ng-header-h) + 10px)}
body{transition:opacity .22s ease,transform .22s ease}
body.ng-page-leaving{opacity:.15;transform:translateY(-7px)}

/* Header más compacto */
body:not(.exact-home-v8) .nav{min-height:64px!important;gap:16px!important}
body:not(.exact-home-v8) .brand-logo{width:40px!important;height:40px!important;border-radius:12px!important}
body:not(.exact-home-v8) .brand{gap:10px!important}
body:not(.exact-home-v8) .brand-copy strong{font-size:11px!important;letter-spacing:.16em!important}
body:not(.exact-home-v8) .brand-copy small{font-size:8px!important}
body:not(.exact-home-v8) .navlinks{gap:17px!important}
body:not(.exact-home-v8) .navlinks a{font-size:10.5px!important}
body:not(.exact-home-v8) .nav-cta{padding:10px 15px!important;border-radius:13px!important}

/* Página activa claramente identificada */
body:not(.exact-home-v8) .navlinks a.active:not(.nav-cta){
  color:#f3fbff!important;
  background:rgba(22,164,226,.10)!important;
  border:1px solid rgba(75,210,255,.20)!important;
  border-radius:10px!important;
  padding:8px 10px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 0 20px rgba(31,184,247,.06)!important;
}
body:not(.exact-home-v8) .navlinks a.active:not(.nav-cta)::after{
  left:18%!important;right:18%!important;bottom:-7px!important;height:2px!important;
  box-shadow:0 0 9px rgba(58,213,255,.5)!important;
}

/* Compactación agresiva de páginas internas */
body:not(.page-home) .page-hero{padding:20px 0 16px!important}
body:not(.page-home) .page-hero-grid{gap:20px!important}
body:not(.page-home) .page-hero h1{font-size:clamp(30px,2.8vw,43px)!important;max-width:520px!important}
body:not(.page-home) .internal-hero-card{min-height:236px!important;border-radius:19px!important}
body:not(.page-home) .internal-hero-media{min-height:122px!important;padding:12px!important}
body:not(.page-home) .internal-hero-chip{padding:6px 9px!important;font-size:8.5px!important}
body:not(.page-home) .internal-hero-stack{gap:5px!important}
body:not(.page-home) .internal-hero-stack span{padding:6px 8px!important;border-radius:9px!important;font-size:9px!important}
body:not(.page-home) .internal-hero-copy{gap:9px!important;padding:12px 14px 14px!important}
body:not(.page-home) .internal-hero-copy p{font-size:11px!important;line-height:1.48!important}
body:not(.page-home) .internal-hero-points{gap:6px!important}
body:not(.page-home) .internal-hero-points span{padding:8px 9px!important;border-radius:10px!important;font-size:9px!important;line-height:1.35!important}
body:not(.page-home) .section{padding-top:18px!important;padding-bottom:18px!important}
body:not(.page-home) .section.compact{padding-top:14px!important;padding-bottom:14px!important}
body:not(.page-home) .section-head{margin-bottom:12px!important}
body:not(.page-home) .section-head h2{font-size:clamp(22px,2.1vw,31px)!important}
body:not(.page-home) .mini-label{font-size:8px!important}
body:not(.page-home) p{line-height:1.52}
body:not(.page-home) .identity-grid,
body:not(.page-home) .solution-pro-grid,
body:not(.page-home) .contact-360-grid,
body:not(.page-home) .process-grid,
body:not(.page-home) .portfolio-grid,
body:not(.page-home) .tech-brand-grid{gap:11px!important}
body:not(.page-home) .identity-card,
body:not(.page-home) .solution-pro-card,
body:not(.page-home) .process-card,
body:not(.page-home) .portfolio-card,
body:not(.page-home) .contact-form-pro,
body:not(.page-home) .contact-side-card{padding:15px!important}
body:not(.page-home) .identity-card h2,
body:not(.page-home) .solution-pro-card h2,
body:not(.page-home) .process-card h3{font-size:17px!important;line-height:1.12!important;margin-bottom:7px!important}
body:not(.page-home) .solution-pro-card p,
body:not(.page-home) .solution-pro-card li,
body:not(.page-home) .identity-card p,
body:not(.page-home) .process-card p{font-size:10px!important;line-height:1.45!important}
body:not(.page-home) .supplier-intro{padding:16px!important;gap:18px!important}
body:not(.page-home) .supplier-intro h2{font-size:clamp(21px,2vw,29px)!important}
body:not(.page-home) .supplier-intro p{font-size:10.5px!important;line-height:1.48!important}
body:not(.page-home) .supplier-category{padding-top:12px!important;padding-bottom:12px!important}
body:not(.page-home) .supplier-heading{margin-bottom:10px!important}
body:not(.page-home) .tech-brand-card{min-height:92px!important;padding:11px!important}
body:not(.page-home) .tech-logo-wrap{min-height:46px!important}
body:not(.page-home) .tech-brand-card strong{font-size:9px!important}
body:not(.page-home) .filters{margin-bottom:12px!important;gap:7px!important}
body:not(.page-home) .filter-btn,
body:not(.page-home) .provider-nav a{padding:8px 11px!important;font-size:8.5px!important}
body:not(.page-home) .ng6-provider-wall{padding:10px 0!important}
body:not(.page-home) .ng6-provider-wall .container{padding:9px 13px!important}
body:not(.page-home) .ng6-provider-wall img{max-height:32px!important}
body:not(.page-home) .provider-nav-section{padding:9px 0!important}
body:not(.page-home) .dual-cta,
body:not(.page-home) .flagship{padding:17px!important}

/* Scroll-snap suave entre bloques principales; no bloquea secciones largas */
body:not(.page-home) main>section{scroll-snap-align:start;scroll-margin-top:72px}
@media(min-width:901px){
  html{scroll-snap-type:y proximity}
}

/* Indicador compacto de sección interna */
.ng-section-status{
  position:fixed;
  z-index:98;
  top:76px;
  right:18px;
  display:flex;
  align-items:center;
  gap:8px;
  max-width:min(300px,42vw);
  padding:7px 10px;
  border:1px solid rgba(76,204,255,.16);
  border-radius:999px;
  background:rgba(3,17,28,.82);
  backdrop-filter:blur(14px);
  box-shadow:0 10px 30px rgba(0,0,0,.16);
  color:#dff7ff;
  font-size:8.5px;
  font-weight:850;
  letter-spacing:.04em;
  opacity:.82;
  transition:.18s ease;
  pointer-events:none;
}
.ng-section-status::before{
  content:"";width:6px;height:6px;border-radius:50%;background:#4bdeff;box-shadow:0 0 10px rgba(75,222,255,.75);flex:0 0 6px
}
.ng-section-status .count{color:#6f91a4;font-weight:750}

/* Aviso de avance automático entre páginas */
.ng-next-page-hint{
  position:fixed;
  z-index:2147481900;
  left:50%;bottom:20px;
  transform:translate(-50%,18px);
  opacity:0;
  pointer-events:none;
  display:flex;align-items:center;gap:9px;
  padding:9px 13px;
  border:1px solid rgba(82,210,255,.22);
  border-radius:999px;
  background:rgba(3,18,29,.94);
  color:#eafaff;
  font-size:9px;font-weight:850;
  box-shadow:0 16px 42px rgba(0,0,0,.32);
  transition:.2s ease;
}
.ng-next-page-hint.visible{opacity:.96;transform:translate(-50%,0)}
.ng-next-page-hint b{color:#55ddff}

/* Chat todavía más compacto */
.nextgen-support-panel{height:min(620px,calc(100vh - 108px))!important}
.ng-chat-head{padding:12px 13px!important}
.ng-chat-mark{width:38px!important;height:38px!important;border-radius:12px!important}
.ng-chat-body{padding:11px!important}
.ng-chat-start{gap:9px!important}
.ng-chat-intro-card{padding:11px!important;border-radius:14px!important}
.ng-chat-intro-card p{font-size:10px!important}
.ng-chat-actions{gap:6px!important}
.ng-chat-action{min-height:44px!important;padding:6px!important;font-size:9px!important;border-radius:11px!important}
.ng-chat-faq{padding:9px!important;border-radius:14px!important}
.ng-chat-faq-chips{gap:6px!important}
.ng-chat-faq-chip{padding:7px 9px!important;font-size:8px!important}
.ng-chat-start input{height:38px!important}
.ng-chat-start textarea{min-height:70px!important}
.ng-chat-primary{min-height:40px!important}

@media(max-width:900px){
  :root{--ng-header-h:60px}
  body:not(.exact-home-v8) .nav{min-height:58px!important}
  body:not(.page-home) .page-hero{padding:16px 0 12px!important}
  body:not(.page-home) .internal-hero-card{min-height:0!important}
  body:not(.page-home) .internal-hero-points{grid-template-columns:1fr!important}
  .ng-section-status{top:66px;right:10px;max-width:58vw;font-size:8px}
}
@media(max-width:650px){
  .ng-section-status{display:none}
  .ng-next-page-hint{bottom:76px;font-size:8px;max-width:80vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-snap-type:none!important;scroll-behavior:auto!important}
  body{transition:none!important}
}
