/* NS Gestión · Inicio de sesión (r20). Se carga al final y manda sobre los estilos anteriores del login.
   Escritorio: panel informativo a la izquierda + tarjeta de ingreso a la derecha.
   Tablet y celular: tarjeta arriba y, al deslizar, módulos, beneficios y contacto. */
html body .ns-auth-overlay.nsl2{
  position:fixed!important;inset:0!important;width:auto!important;height:100dvh!important;min-height:0!important;
  display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(420px,.88fr)!important;align-items:stretch!important;
  padding:0!important;margin:0!important;gap:0!important;overflow-x:hidden!important;overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  background:#f3f6fb!important;background-image:radial-gradient(700px 420px at 100% 0,rgba(37,99,235,.08),transparent 70%)!important;
  font-family:var(--ds-font,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif)!important;
}
html body .ns-auth-overlay.nsl2::before,html body .ns-auth-overlay.nsl2::after{content:none!important;display:none!important}

/* ---- Panel informativo ---- */
html body .nsl2>.ns-auth-info{
  position:relative!important;inset:auto!important;transform:none!important;animation:none!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;gap:0!important;
  width:auto!important;max-width:none!important;height:auto!important;min-height:100dvh!important;margin:0!important;box-sizing:border-box;
  padding:clamp(28px,5vh,56px) clamp(28px,4.5vw,72px)!important;overflow:hidden!important;color:#fff!important;
  background:linear-gradient(150deg,#0a1f4d 0%,#0d2f6e 55%,#123d8a 100%)!important;
}
html body .nsl2>.ns-auth-info::after{content:"";position:absolute;right:-160px;bottom:-160px;width:460px;height:460px;border-radius:50%;
  background:radial-gradient(circle,rgba(56,189,248,.22),transparent 65%);pointer-events:none;z-index:0}
html body .nsl2 .ns-auth-info>*{position:relative;z-index:1;max-width:640px}
html body .nsl2 .nsl-top{display:flex;align-items:center;gap:14px;margin:0 0 clamp(16px,3vh,30px)}
html body .nsl2 .nsl-logo{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:13px;padding:5px;box-shadow:0 8px 22px -8px rgba(0,0,0,.45)}
html body .nsl2 .ns-auth-info-tit{font:700 24px/1 var(--ds-font,system-ui,sans-serif)!important;margin:0!important;letter-spacing:-.01em}
html body .nsl2 .nsl-sub{display:block;font-size:13px;opacity:.75;margin-top:5px}
html body .nsl2 .nsl-h{font:700 clamp(24px,2.3vw,32px)/1.18 var(--ds-font,system-ui,sans-serif)!important;letter-spacing:-.025em!important;margin:0 0 10px!important;color:#fff!important;max-width:560px!important}
html body .nsl2 .nsl-p{font-size:15px!important;line-height:1.55!important;color:#c7d6f3!important;margin:0 0 clamp(18px,3.2vh,30px)!important;max-width:540px!important;opacity:1!important}
html body .nsl2 .nsl-sec{font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#93b4ec;margin:0 0 10px}
html body .nsl2 .nsl-mods{list-style:none!important;padding:0!important;margin:0 0 clamp(16px,3vh,26px)!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;max-width:640px!important;flex-direction:initial!important}
html body .nsl2 .nsl-mods li{display:flex!important;align-items:center;gap:11px;padding:10px 12px!important;margin:0!important;border-radius:12px!important;
  background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.12)!important;font-size:13px!important;backdrop-filter:none!important;min-width:0}
html body .nsl2 .nsl-ic{flex:0 0 34px;width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:rgba(96,165,250,.18);color:#bfdbfe}
html body .nsl2 .nsl-ic svg{width:18px;height:18px}
html body .nsl2 .nsl-mods b{display:block;font-weight:600;font-size:13.5px;line-height:1.25;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .nsl2 .nsl-mods small{display:block;font-size:12px!important;line-height:1.3;color:#a9bfe6;opacity:1!important;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .nsl2 .nsl-bens{list-style:none!important;padding:0!important;margin:0 0 clamp(18px,3.4vh,30px)!important;display:flex!important;flex-wrap:wrap!important;flex-direction:row!important;gap:8px 18px!important;max-width:640px!important}
html body .nsl2 .nsl-bens li{display:flex!important;align-items:center;gap:7px;padding:0!important;margin:0!important;background:none!important;border:0!important;font-size:13px!important;color:#e2ebfb;backdrop-filter:none!important}
html body .nsl2 .nsl-bens svg{width:17px;height:17px;color:#4ade80;flex:0 0 17px}
html body .nsl2 .nsl-contacto{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.14);font-size:13px}
html body .nsl2 .nsl-contacto>div{margin-right:auto}
html body .nsl2 .nsl-contacto b{display:block;font-weight:600;color:#fff}
html body .nsl2 .nsl-contacto span{display:block;font-size:12px;color:#a9bfe6;margin-top:2px}
html body .nsl2 .nsl-contacto a{display:inline-flex;align-items:center;gap:7px;color:#dbeafe!important;text-decoration:none!important;font-weight:500;word-break:break-all}
html body .nsl2 .nsl-contacto a:hover{color:#fff!important;text-decoration:underline!important}
html body .nsl2 .nsl-contacto svg{width:16px;height:16px;flex:0 0 16px;opacity:.85}

/* ---- Tarjeta de ingreso ---- */
html body .nsl2 .ns-auth-card{
  position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;
  align-self:center!important;justify-self:center!important;margin:32px auto!important;
  width:min(400px,calc(100% - 40px))!important;min-width:0!important;max-width:400px!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;box-sizing:border-box!important;padding:30px 32px 22px!important;
  background:#fff!important;border:1px solid #e3e8f0!important;border-radius:18px!important;box-shadow:0 24px 60px -24px rgba(15,35,80,.28)!important;
}
html body .nsl2 .ns-auth-card .ns-auth-logo{width:96px!important;height:96px!important;margin:0 auto 4px!important}
html body .nsl2 .ns-auth-card .ns-auth-brand{margin:0 0 10px!important}
html body .nsl2 .ns-auth-card .ns-auth-brand strong{font-size:14px!important;letter-spacing:.02em!important;font-weight:600!important;color:#334155!important;line-height:1.35!important}
html body .nsl2 .ns-auth-card h2{font-size:22px!important;margin:12px 0 4px!important;text-align:left}
html body .nsl2 .ns-auth-help{margin:0 0 6px!important;font-size:13px!important;color:#64748b!important}
html body .nsl2 .ns-auth-field{margin:12px 0!important}
html body .nsl2 .ns-auth-field input{height:46px!important;font-size:15px!important;width:100%!important}
html body .nsl2 .ns-auth-submit{height:48px!important;font-size:15px!important;margin-top:12px!important}

/* Notebook con poca altura (1366×768, 1280×720) */
@media (max-height:800px) and (min-width:961px){
  html body .nsl2 .nsl-p{display:none!important}
  html body .nsl2 .nsl-h{margin-bottom:18px!important}
  html body .nsl2 .nsl-mods li{padding:8px 10px!important}
  html body .nsl2 .nsl-ic{flex-basis:30px;width:30px;height:30px}
  html body .nsl2 .ns-auth-card{padding:22px 28px 16px!important;margin:16px auto!important}
  html body .nsl2 .ns-auth-card .ns-auth-logo{width:76px!important;height:76px!important}
}
@media (max-width:1180px) and (min-width:961px){
  html body .ns-auth-overlay.nsl2{grid-template-columns:minmax(0,1fr) 400px!important}
  html body .nsl2 .nsl-mods small{display:none}
}

/* ---- Tablet vertical y celulares (iPhone, Android) ---- */
@media (max-width:960px){
  html body .ns-auth-overlay.nsl2{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
    background:linear-gradient(170deg,#0a1f4d 0%,#0d2f6e 45%,#123d8a 100%)!important}
  html body .nsl2 .ns-auth-card{order:1;flex:0 0 auto;margin:max(20px,env(safe-area-inset-top)) auto 18px!important;width:min(440px,calc(100% - 32px))!important;max-width:440px!important;padding:24px 22px 18px!important}
  html body .nsl2>.ns-auth-info{order:2;display:flex!important;min-height:0!important;flex:0 0 auto;background:none!important;
    padding:8px 16px max(28px,env(safe-area-inset-bottom))!important;width:min(440px,calc(100% - 32px))!important;margin:0 auto!important;box-sizing:border-box}
  html body .nsl2>.ns-auth-info::after{display:none}
  html body .nsl2 .ns-auth-info>*{max-width:none!important}
  html body .nsl2 .nsl-top,html body .nsl2 .nsl-p{display:none!important}
  html body .nsl2 .nsl-h{font-size:18px!important;text-align:center;margin:4px auto 14px!important}
  html body .nsl2 .nsl-sec{text-align:center}
  html body .nsl2 .nsl-mods li{padding:9px 10px!important;gap:9px}
  html body .nsl2 .nsl-ic{flex-basis:30px;width:30px;height:30px}
  html body .nsl2 .nsl-mods small{display:none}
  html body .nsl2 .nsl-mods b{font-size:12.5px;white-space:normal}
  html body .nsl2 .nsl-bens{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
  html body .nsl2 .nsl-bens li{font-size:12.5px!important;align-items:flex-start}
  html body .nsl2 .nsl-contacto{flex-direction:column;align-items:center;text-align:center;gap:8px}
  html body .nsl2 .nsl-contacto>div{margin:0}
}
@media (max-width:480px){
  html body .nsl2 .ns-auth-card{width:calc(100% - 24px)!important;margin:max(12px,env(safe-area-inset-top)) auto 14px!important;padding:20px 18px 14px!important;border-radius:16px!important}
  html body .nsl2>.ns-auth-info{width:calc(100% - 24px)!important;padding:4px 4px max(24px,env(safe-area-inset-bottom))!important}
  html body .nsl2 .ns-auth-card .ns-auth-logo{width:72px!important;height:72px!important}
  html body .nsl2 .ns-auth-card .ns-auth-brand strong{font-size:12.5px!important;letter-spacing:.01em!important}
  html body .nsl2 .ns-auth-card h2{font-size:20px!important}
  html body .nsl2 .ns-auth-field input{font-size:16px!important} /* evita el zoom automático de iPhone */
  html body .nsl2 .nsl-bens{grid-template-columns:1fr}
}
@media (max-width:340px){html body .nsl2 .nsl-mods{grid-template-columns:1fr!important}}

/* r34 · Logo NS Gestión horizontal en la tarjeta de ingreso */
html body .ns-auth-card img.ns-auth-logo.ns-auth-logo-w,html body .nsl2 .ns-auth-card img.ns-auth-logo.ns-auth-logo-w{width:min(300px,86%)!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;border-radius:0!important;object-fit:contain!important;display:block!important;margin:4px auto 14px!important;background:none!important;box-shadow:none!important;padding:0!important}
html body .ns-auth-card .ns-auth-brand:has(.ns-auth-logo-w){flex-direction:column!important;align-items:center!important;gap:0!important}
html body .ns-auth-card .ns-auth-brand:has(.ns-auth-logo-w) strong{font-size:12.5px!important;letter-spacing:.04em!important;font-weight:600!important;color:#475569!important}
@media (max-width:900px){html body .ns-auth-card img.ns-auth-logo.ns-auth-logo-w,html body .nsl2 .ns-auth-card img.ns-auth-logo.ns-auth-logo-w{width:min(250px,80%)!important;margin-bottom:10px!important}}

/* r35 · Panel informativo: logo NS Gestión completo sobre tarjeta blanca */
html body .nsl2 .nsl-top.nsl-top-w{display:block;margin:0 0 clamp(18px,3.4vh,34px)}
html body .nsl2 .nsl-logo-card{display:inline-block;background:#fff;border-radius:18px;padding:16px 22px;box-shadow:0 14px 34px -12px rgba(0,0,0,.5)}
html body .nsl2 img.nsl-logo-w{display:block;width:clamp(240px,24vw,330px);height:auto}
