/* ==========================================================================
   SECCIÓN: CABECERA Y NAVEGACIÓN DE SUBPÁGINAS
   Integración estricta con assets/css/global-brand.css
   ========================================================================== */

/* Contenedor Base de Cabecera */
.aq-header-area {
    background-color: var(--bg-white);
    position: relative;
    z-index: 100;
}

.aq-header-bottom-bdr {
    border-bottom: 1px solid var(--border-subtle);
}

/* Identidad / Logo */
.aq-header-logo img {
    max-width: 130px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Botón Menú Móvil (Hamburguesa) */
.aq-offcanvas-toggle {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border-radius: 4px;
}

.aq-offcanvas-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.aq-offcanvas-toggle:hover span,
.aq-offcanvas-toggle:focus-visible span {
    background-color: var(--brand-purple);
}

/* Navegación Principal (Desktop) */
.aq-header-menu.menu-black ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aq-header-menu.menu-black ul li {
    display: inline-block;
    margin: 0 10px;
    white-space: nowrap;
}

.aq-header-menu.menu-black ul li a {
    font-family: var(--font-menu);
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    padding: 20px 0;
    display: inline-block;
    position: relative;
    transition: color 0.25s ease;
}

/* Efecto hover e indicador de página activa */
.aq-header-menu.menu-black ul li a:hover,
.aq-header-menu.menu-black ul li a:focus-visible,
.aq-header-menu.menu-black ul li a.active {
    color: var(--brand-purple);
    font-weight: 600;
}

.aq-header-menu.menu-black ul li a::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--brand-purple);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.aq-header-menu.menu-black ul li a:hover::after,
.aq-header-menu.menu-black ul li a.active::after {
    width: 100%;
}

/* Opciones de la Derecha (WhatsApp) */
.aq-header-right-options ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aq-header-top-whatsapp {
    display: inline-block;
}

.aq-whatsapp-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1.25rem; /* 20px */
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.aq-whatsapp-btn:hover,
.aq-whatsapp-btn:focus-visible {
    color: #25D366;
    background-color: rgba(37, 211, 102, 0.1);
    transform: scale(1.08);
}

/* ==========================================================================
   DESPLEGABLE MÓVIL (OFFCANVAS & NAVEGACIÓN MÓVIL)
   ========================================================================== */

/* Fondo oscuro traslúcido nativo */
.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.body-overlay.opened {
    opacity: 1;
    visibility: visible;
}

/* Panel Lateral Desplegable Nativo (.aq-offcanvas-wrap) */
.aq-offcanvas-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background-color: var(--bg-white);
    z-index: 999;
    padding: 30px 24px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.aq-offcanvas-wrap.opened {
    transform: translateX(0);
}

/* Cabecera del Panel Offcanvas */
.aq-offcanvas-top {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-subtle);
}

.aq-offcanvas-logo img {
    max-width: 115px;
    height: auto;
}

/* Botón Cerrar (Span / SVG) */
.aq-offcanvas-close span {
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.aq-offcanvas-close span:hover {
    background-color: var(--brand-purple-light-bg);
    color: var(--brand-purple);
}

/* Lista de Navegación Móvil */
.aq-offcanvas-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aq-offcanvas-menu ul li {
    border-bottom: 1px solid var(--border-subtle);
}

.aq-offcanvas-menu ul li a {
    display: block;
    padding: 12px 0;
    font-family: var(--font-menu);
    font-size: 0.9375rem; /* 15px */
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.aq-offcanvas-menu ul li a:hover,
.aq-offcanvas-menu ul li a.active {
    color: var(--brand-purple);
    padding-left: 6px;
}