/**
 * Menú general ChabeTech por encima del contenido
 * + índice tutoriales en móvil
 * + hamburguesa sin recorte
 */

/* --- Overlay --- */
.body-overlay-1 {
  display: none;
}
body.mobile-menu-active .body-overlay-1 {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.65) !important;
  z-index: 10105 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: block !important;
}

body.mobile-menu-active header {
  z-index: 10100 !important;
  position: relative;
}

@media (max-width: 991.98px) {
  /* Evitar que el nav recorte el botón */
  header.navbar,
  header .navbar,
  header nav.navbar {
    overflow: visible !important;
    padding-left: 0.35rem !important;
  }

  /* Botón hamburguesa limpio (NO usar .burger-icon del theme) */
  header .mat-mobile-nav-btn {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    margin: 0 0.25rem 0 0.5rem !important;
    padding: 0 !important;
    z-index: 10120;
    color: #fff !important;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
  }
  header .mat-mobile-nav-btn i {
    font-size: 1.4rem;
    color: #fff !important;
    line-height: 1;
  }

  .mobile-header-wrapper-style {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-105%);
    background-color: #121218 !important;
    z-index: 10110 !important;
    max-width: min(380px, 88vw);
  }
  .mobile-header-wrapper-style.sidebar-visible,
  .mobile-header-wrapper-style.sidebar-canvas-visible {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.mobile-menu-active .whatsapp-float,
  body.mobile-menu-active .chabetech-chat-widget,
  body.mobile-menu-active #whatsappFloat {
    z-index: 1 !important;
    pointer-events: none !important;
  }
}

.mobile-header-wrapper-style .mobile-menu li a,
.mobile-header-wrapper-style .mobile-menu li a.nav-link {
  color: #ffffff !important;
}
.mobile-header-wrapper-style .mobile-menu li a.active,
.mobile-header-wrapper-style .mobile-menu li a:hover {
  color: #a78bfa !important;
}
.mobile-header-wrapper-style .mobile-header-info-wrap .single-mobile-header-info a {
  color: #c5c5d0 !important;
}
.mobile-header-wrapper-style .mobile-header-logo {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- Índice del tutorial en móvil --- */
.mat-toc-mobile {
  position: sticky;
  top: 72px;
  z-index: 40;
  margin: 0 0 1rem;
}

.mat-toc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #2a2a31;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
}

.mat-toc-toggle:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

.mat-toc-drawer {
  margin-top: 0.5rem;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #1f1f24;
  padding: 0.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.mat-toc-drawer .mat-nav-link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  color: #c5c5d0 !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.mat-toc-drawer .mat-nav-link.is-active,
.mat-toc-drawer .mat-nav-link:hover {
  color: #fff !important;
  background: rgba(110, 78, 242, 0.22);
}

/* Badge rojo OK del tutorial: oculto (rompía layout) */
.mat-badge-float {
  display: none !important;
}
