/* assets/ab-nav.css - Mega-menú transversal ligero y accesible */
.ab-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ab-nav-drop-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s ease;
  line-height: 1;
}

.ab-nav-drop-btn:hover,
.ab-nav-drop-btn:focus-visible,
.ab-nav-dropdown:hover .ab-nav-drop-btn,
.ab-nav-dropdown.is-open .ab-nav-drop-btn {
  color: #5eead4;
  outline: none;
}

.ab-nav-caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.ab-nav-dropdown:hover .ab-nav-caret,
.ab-nav-dropdown.is-open .ab-nav-caret {
  transform: rotate(180deg);
}

/* Submenú desplegable en desktop */
.ab-nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #0f172a;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(94, 234, 212, 0.08);
  padding: 1.25rem;
  z-index: 1000;
  gap: 1.5rem;
  min-width: 580px;
}

.ab-nav-drop-menu--single {
  min-width: 260px;
  flex-direction: column;
  gap: 0.35rem;
  left: 0;
  transform: translateY(8px);
}

.ab-nav-dropdown:hover .ab-nav-drop-menu,
.ab-nav-dropdown:focus-within .ab-nav-drop-menu,
.ab-nav-dropdown.is-open .ab-nav-drop-menu {
  display: flex;
}

.ab-nav-drop-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.ab-nav-drop-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5eead4;
  font-weight: 700;
  margin-bottom: 0.4rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ab-nav-drop-menu a {
  color: #cbd5e1 !important;
  font-size: 0.85rem !important;
  padding: 0.35rem 0.5rem !important;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease !important;
  line-height: 1.3 !important;
  display: block;
}

.ab-nav-drop-menu a:hover,
.ab-nav-drop-menu a:focus-visible {
  color: #f8fafc !important;
  background: rgba(94, 234, 212, 0.12) !important;
  outline: none;
}

.ab-nav-badge-link {
  color: #5eead4 !important;
  font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 991px) {
  .ab-nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .ab-nav-drop-btn {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .ab-nav-drop-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(15, 23, 42, 0.5);
    border-left: 2px solid #5eead4;
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    min-width: 100%;
    flex-direction: column;
    gap: 1rem;
    display: none;
  }

  .ab-nav-dropdown.is-open .ab-nav-drop-menu {
    display: flex;
  }

  .ab-search-trigger {
    width: 100%;
    justify-content: center;
    margin: 0.5rem 0;
  }
}
