/* Cabecera: NISPLY Security Lab se despliega debajo de NISPLY Security Team al pasar el ratón o con el teclado
   (30/11/2026, Aiur). Solo CSS: :hover y :focus-within. En el menú móvil, el Lab va sangrado bajo el Team. */
.nav__sub { position: relative; }
/* en línea como los demás enlaces (con inline-flex el relleno vertical lo bajaba 8px respecto a «Nosotros») */
.nav__sub > a { display: inline; }
.nav__flecha { display: inline-block; width: 12px; height: 12px; margin-left: .15rem; vertical-align: -1px; opacity: .6;
  transition: transform .2s ease; }
.nav__sub:hover .nav__flecha, .nav__sub:focus-within .nav__flecha { transform: rotate(180deg); }
.nav__links a.is-activo { color: var(--foreground); }
.nav__links a.is-activo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--fg-30); }

/* el puente invisible (padding-top) evita que se cierre al bajar el ratón desde el enlace */
.nav__desplegable { position: absolute; top: 100%; left: -1rem; z-index: 60; min-width: 19rem; margin: 0; padding: .75rem 0 0;
  list-style: none; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.nav__sub:hover .nav__desplegable, .nav__sub:focus-within .nav__desplegable {
  opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease, visibility 0s; }
.nav__desplegable li { padding: .375rem; border: 1px solid var(--bd-50); border-radius: 14px; background: var(--background);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28); }
:root[data-theme="light"] .nav__desplegable li { box-shadow: 0 12px 32px rgba(20, 23, 28, .12); }
.nav__links .nav__desplegable a { display: block; padding: .7rem .85rem; border-radius: 10px; white-space: normal; color: var(--foreground);
  font-weight: 500; }
.nav__links .nav__desplegable a::after { display: none; }
.nav__links .nav__desplegable a:hover, .nav__links .nav__desplegable a:focus-visible,
.nav__links .nav__desplegable a[aria-current] { background: color-mix(in oklab, var(--foreground) 7%, transparent); }
.nav__desplegable small { display: block; margin-top: .2rem; font-size: .8125rem; font-weight: 400; line-height: 1.4; color: var(--fg-60); }

.menu__links li.menu__sub a { padding-left: 1.25rem; font-size: 1rem; color: var(--fg-70); }
.menu__links li.menu__sub a::before { content: "↳"; margin-right: .5rem; color: var(--fg-40); }

@media (prefers-reduced-motion: reduce) { .nav__desplegable, .nav__flecha { transition: none; } }
