/* =========================================================
   BONYEL — NAVEGACION GLOBAL
========================================================= */

.bonyel-global-nav {
    position: relative;
    z-index: 999;
    width: 100%;
    height: 44px;

    background: transparent;

    border-bottom: 0;

    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.bonyel-global-nav-inner {
    width: min(1424px, calc(100% - 80px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bonyel-global-brand {
    color: #fff;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
}

.bonyel-global-links {
    height: 100%;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 38px;
}

.bonyel-global-links a {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,.72);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease;
}

.bonyel-global-links a:hover { color: #fff; }

.bonyel-global-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 10px 10px 0 0;
}

.bonyel-nav-beats.active { color: #ff9d00; }
.bonyel-nav-beats.active::after { background: #ff9d00; box-shadow: 0 0 14px rgba(255,157,0,.8); }
.bonyel-nav-shop.active { color: #ffc400; }
.bonyel-nav-shop.active::after { background: #ffc400; box-shadow: 0 0 14px rgba(255,196,0,.8); }
.bonyel-nav-youtube.active { color: #ff2438; }
.bonyel-nav-youtube.active::after { background: #ff2438; box-shadow: 0 0 14px rgba(255,36,56,.8); }
.bonyel-nav-musica.active { color: #b326ff; }
.bonyel-nav-musica.active::after { background: #b326ff; box-shadow: 0 0 14px rgba(179,38,255,.8); }
.bonyel-nav-directos.active { color: #168cff; }
.bonyel-nav-directos.active::after { background: #168cff; box-shadow: 0 0 14px rgba(22,140,255,.8); }

/* Acciones a la derecha: carrito + hamburguesa */
.bonyel-global-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: 26px;
}

/* Carrito */
.bonyel-global-actions .bonyel-cart-trigger {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    z-index: auto !important;
    flex: 0 0 auto;
    width: auto;
    min-width: 46px;
    height: 28px;
    margin: 0;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(36,117,255,.62);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(15,29,54,.94), rgba(5,12,25,.96));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 0 16px rgba(27,104,255,.08);
    color: #fff;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bonyel-global-actions .bonyel-cart-trigger:hover {
    border-color: rgba(64,145,255,.95);
    background: linear-gradient(180deg, rgba(20,42,78,.98), rgba(7,17,35,.98));
    box-shadow: 0 0 18px rgba(32,111,255,.16);
    transform: translateY(-1px) !important;
}

.bonyel-global-actions .bonyel-cart-trigger-icon {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 15px;
    line-height: 0;
}

.bonyel-global-actions .bonyel-cart-trigger-icon svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bonyel-global-actions .bonyel-cart-trigger-count {
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #2475ff;
    color: #fff;
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
}

/* Hamburguesa: oculta en escritorio */
.bonyel-menu-toggle {
    display: none;
    width: 34px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.bonyel-menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform .22s ease, opacity .18s ease;
}

@media (max-width: 1000px) {
    .bonyel-global-nav-inner { width: calc(100% - 40px); }
    .bonyel-global-links { gap: 18px; }
    .bonyel-global-actions { margin-left: 18px; }
}

/* =========================================================
   MOVIL — MENU HAMBURGUESA
========================================================= */

@media (max-width: 650px) {

    .bonyel-global-nav {
        height: 42px;
        overflow: visible;
    }

    .bonyel-global-nav-inner {
        position: relative;
        width: calc(100% - 28px);
    }

    .bonyel-global-brand {
        position: relative;
        z-index: 1002;
        font-size: 18px;
    }

    .bonyel-global-actions {
        position: relative;
        z-index: 1002;
        margin-left: auto;
        gap: 6px;
    }

    .bonyel-menu-toggle {
        display: inline-flex;
    }

    /* Los links se convierten en panel desplegable */
    .bonyel-global-links {
        position: absolute;
        z-index: 1001;
        top: 42px;
        left: -14px;
        right: -14px;

        height: auto;
        margin: 0;
        padding: 10px 14px 14px;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        background: rgba(2,5,12,.985);
        border-top: 1px solid rgba(255,255,255,.06);
        border-bottom: 1px solid rgba(255,255,255,.09);
        box-shadow: 0 18px 34px rgba(0,0,0,.32);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    .bonyel-global-nav.menu-open .bonyel-global-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .bonyel-global-links a {
        width: 100%;
        height: 43px;
        padding: 0 12px;
        box-sizing: border-box;
        justify-content: flex-start;

        border-bottom: 1px solid rgba(255,255,255,.055);

        color: rgba(255,255,255,.72);
        font-size: 10px;
        letter-spacing: .06em;
    }

    .bonyel-global-links a:last-child {
        border-bottom: 0;
    }

    .bonyel-global-links a.active {
        padding-left: 15px;
    }

    /* En móvil la marca activa es una línea lateral */
    .bonyel-global-links a.active::after {
        left: 0;
        right: auto;
        top: 11px;
        bottom: 11px;
        width: 3px;
        height: auto;
        border-radius: 999px;
    }

    /* X al abrir */
    .bonyel-global-nav.menu-open .bonyel-menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .bonyel-global-nav.menu-open .bonyel-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .bonyel-global-nav.menu-open .bonyel-menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Carrito compacto al lado de la hamburguesa */
    .bonyel-global-actions .bonyel-cart-trigger {
        min-width: 38px;
        height: 26px;
        padding: 0 6px;
    }

    .bonyel-global-actions .bonyel-cart-trigger-icon,
    .bonyel-global-actions .bonyel-cart-trigger-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* Buscador integrado en la misma fila del menú */
.bonyel-nav-search { height: 30px; width: 238px; margin: 0 24px 0 auto; display:flex; align-items:center; gap:7px; padding:0 11px; border:1px solid rgba(255,255,255,.16); border-radius:9px; background:#17181b; box-sizing:border-box; }
.bonyel-nav-search:focus-within { border-color:rgba(255,255,255,.48); }
.bonyel-nav-search-toggle { padding:0; border:0; background:transparent; color:#999; display:flex; cursor:pointer; flex-shrink:0; }
.bonyel-nav-search-toggle svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.bonyel-nav-search input { width:100%; min-width:0; padding:0; border:0; outline:0; box-shadow:none; background:transparent; color:#fff; font:12px Arial,sans-serif; }
.bonyel-nav-search input::placeholder { color:#777; }
.bonyel-nav-search input::-webkit-search-cancel-button { cursor:pointer; }
.bonyel-global-links { margin-left:0; }
@media(max-width:850px) and (min-width:651px) { .bonyel-nav-search { width:175px; margin-right:16px; } }
@media(max-width:650px) {
 .bonyel-nav-search { width:30px; height:30px; margin:0 8px 0 auto; padding:0 7px; position:relative; z-index:1003; transition:width .2s; }
 .bonyel-nav-search input { width:0; opacity:0; pointer-events:none; }
 .bonyel-nav-search.search-open { width:min(175px,calc(100vw - 235px)); }
 .bonyel-nav-search.search-open input { width:100%; opacity:1; pointer-events:auto; }
 .bonyel-global-brand { font-size:16px; white-space:nowrap; }
}

/* Alineacion horizontal de la cabecera con el banner principal de Beats. */
@media (min-width: 1001px) {
    .bonyel-global-nav-inner {
        width: min(1424px, calc(100% - 80px));
    }
}

/* Sin separador inferior en la barra principal; conservar alineacion. */
.bonyel-global-nav, #bonyel-global-nav { border-bottom: 0 !important; box-shadow: none !important; }
