/* =========================================================
   NAVBAR PRINCIPAL
   ========================================================= */

.navbar {
    background: #b5121b;

    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.18);

    padding-top: 8px;
    padding-bottom: 8px;
}


/* =========================================================
   CONTENEDOR NAVBAR
   ========================================================= */

.navbar > .container {
    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   MARCA: LOGO + PÍO BRASS
   ========================================================= */

.navbar-brand {
    display: flex !important;

    align-items: center !important;

    gap: 12px;

    font-weight: 800;

    color: #ffffff !important;

    text-decoration: none;

    margin-right: 25px;
}


/* =========================================================
   LOGO CIRCULAR
   ========================================================= */

.navbar .logo-navbar-circular {
    width: 66px !important;
    height: 66px !important;

    min-width: 66px !important;
    max-width: 66px !important;

    min-height: 66px !important;
    max-height: 66px !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex-shrink: 0;

    border-radius: 50% !important;

    overflow: hidden !important;

    background: #ffffff !important;

    border: 3px solid #f6b800 !important;

    padding: 2px !important;

    box-sizing: border-box !important;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   IMAGEN DEL LOGO
   ========================================================= */

.navbar .logo-navbar-circular img,
.navbar .logo-navbar-circular .logo {

    width: 100% !important;
    height: 100% !important;

    min-width: 100% !important;
    max-width: 100% !important;

    min-height: 100% !important;
    max-height: 100% !important;

    display: block !important;

    object-fit: cover !important;

    object-position: center !important;

    border-radius: 50% !important;

    border: none !important;

    padding: 0 !important;

    margin: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
}


/* =========================================================
   TEXTO PÍO BRASS
   ========================================================= */

.nombre-logo {
    display: inline-block;

    font-size: 26px;

    font-weight: 900;

    letter-spacing: 0.8px;

    color: #ffffff !important;

    line-height: 1;

    white-space: nowrap;
}


/* =========================================================
   MENÚ PRINCIPAL
   ========================================================= */

.navbar-nav {
    align-items: center;

    gap: 6px;
}


.navbar .nav-link {
    color: #ffffff !important;

    font-weight: 700;

    padding: 10px 14px !important;

    border-radius: 24px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.navbar .nav-link:hover {
    background: #f6b800;

    color: #181818 !important;

    transform: translateY(-1px);
}


.navbar .nav-link.active {
    background: #f6b800;

    color: #181818 !important;
}


/* =========================================================
   CARRITO
   ========================================================= */

.navbar .carrito-link {
    position: relative;
}


#contador-carrito {
    font-size: 11px;

    min-width: 20px;

    height: 20px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-left: 4px;

    border-radius: 50px;

    background: #f6b800;

    color: #181818;

    font-weight: 800;
}


/* =========================================================
   BOTÓN MENÚ MÓVIL
   ========================================================= */

.navbar .boton-menu-movil {
    width: 56px !important;

    height: 48px !important;

    padding: 0 !important;

    margin: 0 !important;

    display: none;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    background: #ffffff !important;

    border: none !important;

    border-radius: 8px !important;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15) !important;

    outline: none !important;
}


/* =========================================================
   LAS 3 LÍNEAS
   ========================================================= */

.navbar .boton-menu-movil .linea-menu {
    display: block !important;

    width: 26px !important;

    height: 3px !important;

    min-height: 3px !important;

    background: #b5121b !important;

    border-radius: 10px;

    margin: 0 !important;

    padding: 0 !important;

    opacity: 1 !important;

    visibility: visible !important;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* =========================================================
   CUANDO SE ABRE EL MENÚ:
   LAS 3 LÍNEAS SE CONVIERTEN EN X
   ========================================================= */

.navbar .boton-menu-movil[aria-expanded="true"]
.linea-menu:nth-child(1) {

    transform:
        translateY(8px)
        rotate(45deg);
}


.navbar .boton-menu-movil[aria-expanded="true"]
.linea-menu:nth-child(2) {

    opacity: 0 !important;
}


.navbar .boton-menu-movil[aria-expanded="true"]
.linea-menu:nth-child(3) {

    transform:
        translateY(-8px)
        rotate(-45deg);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .navbar .logo-navbar-circular {
        width: 60px !important;
        height: 60px !important;

        min-width: 60px !important;
        max-width: 60px !important;

        min-height: 60px !important;
        max-height: 60px !important;
    }


    .nombre-logo {
        font-size: 23px;
    }


    .navbar .nav-link {
        padding-left: 10px !important;

        padding-right: 10px !important;
    }
}


/* =========================================================
   TABLET Y MENÚ MÓVIL
   ========================================================= */

@media (max-width: 991px) {

    .navbar-brand {
        margin-right: 0;
    }


    /* LOGO */

    .navbar .logo-navbar-circular {
        width: 56px !important;

        height: 56px !important;

        min-width: 56px !important;

        max-width: 56px !important;

        min-height: 56px !important;

        max-height: 56px !important;
    }


    /* BOTÓN 3 LÍNEAS */

    .navbar .boton-menu-movil {
        display: flex !important;

        flex-shrink: 0;
    }


    /* MENÚ DESPLEGABLE */

    .navbar-collapse {
        width: 100%;
    }


    .navbar-nav {
        align-items: stretch;

        gap: 5px;

        padding-top: 15px;

        padding-bottom: 8px;
    }


    .navbar .nav-link {
        width: 100%;

        text-align: left;

        padding: 12px 15px !important;
    }


    .navbar .nav-link:hover {
        background: #f6b800;

        color: #181818 !important;
    }


    .navbar .nav-link.active {
        background: #f6b800;

        color: #181818 !important;
    }
}


/* =========================================================
   CELULARES
   ========================================================= */

@media (max-width: 576px) {

    .navbar {
        padding-top: 8px;

        padding-bottom: 8px;
    }


    .navbar > .container {
        padding-left: 15px;

        padding-right: 15px;
    }


    .navbar-brand {
        gap: 9px;
    }


    /* LOGO */

    .navbar .logo-navbar-circular {
        width: 50px !important;

        height: 50px !important;

        min-width: 50px !important;

        max-width: 50px !important;

        min-height: 50px !important;

        max-height: 50px !important;

        border-width: 2px !important;

        padding: 2px !important;
    }


    /* NOMBRE */

    .nombre-logo {
        font-size: 19px;

        letter-spacing: 0.3px;
    }


    /* BOTÓN */

    .navbar .boton-menu-movil {
        width: 55px !important;

        height: 46px !important;

        border-radius: 7px !important;
    }


    /* LÍNEAS */

    .navbar .boton-menu-movil .linea-menu {
        width: 25px !important;

        height: 3px !important;

        min-height: 3px !important;
    }
}


/* =========================================================
   CELULARES PEQUEÑOS
   ========================================================= */

@media (max-width: 400px) {

    .navbar > .container {
        padding-left: 10px;

        padding-right: 10px;
    }


    /* LOGO */

    .navbar .logo-navbar-circular {
        width: 46px !important;

        height: 46px !important;

        min-width: 46px !important;

        max-width: 46px !important;

        min-height: 46px !important;

        max-height: 46px !important;
    }


    /* NOMBRE */

    .nombre-logo {
        font-size: 17px;
    }


    /* BOTÓN */

    .navbar .boton-menu-movil {
        width: 50px !important;

        height: 44px !important;
    }


    /* LÍNEAS */

    .navbar .boton-menu-movil .linea-menu {
        width: 23px !important;
    }
}


/* =========================================================
   CELULARES MUY PEQUEÑOS
   ========================================================= */

@media (max-width: 350px) {

    .nombre-logo {
        font-size: 15px;
    }


    .navbar .logo-navbar-circular {
        width: 42px !important;

        height: 42px !important;

        min-width: 42px !important;

        max-width: 42px !important;

        min-height: 42px !important;

        max-height: 42px !important;
    }


    .navbar .boton-menu-movil {
        width: 46px !important;

        height: 42px !important;
    }
}