/* ================================================================================
 * Header
 * -- Nav Principal
 * -- Boton Carrito Custom
 */

#header_escritorio{
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
    width: 100%;
    background-image: url("../img/banners/banner_aritos_3d.jpg");
}
.header_top_container i,
.header_top_container span{
    text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.8);
}
.header_top_container{
    display: flex;
    justify-content: space-between;
    margin-bottom: 1em;
}
.header_top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.7%;
    margin: 0;
    width: 92%;
    list-style: none;
}
.header_top li,
.header_top span{
    display: flex;
    align-items: center;
}
.header_top i{
    width: 1em;
    margin-right: 0.3em;
}
.header_rrss{
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 8%;
}
.header_secundario_top a,
.header_top_container a{
    color: white;
}
.header_rrss img{
    width: 1em;
}
/* 
** Estilo general para el contenedor del logo */
.logo-shape {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    width: 15%;
    height: max-content;
}
.logo-shape .logo_3dmarket_link,
.logo-shape .logo_aritos3d_link{
    z-index: 3;
}
/* Estilos para el primer SVG (logo-shape1) */
.logo-shape1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transform: translateY(0);
}
/* Estilos para el segundo SVG (logo-shape2) */
.logo-shape2 {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 80%;
    height: 80%;
    z-index: 1;
}
/* Estilos para el Logo del sitio, sobre los SVG */
#header_escritorio .custom-logo-link{
    z-index: 3;
    padding: 10% 25% 15% 25%;
}
#header_escritorio .logo_aritos3d{
    padding: 10% 20% 20% 20%;
    border-radius: 100%;
}
#header_escritorio .logo_3dmarket{
    padding: 10% 20% 20% 20%;
}
.header_2{
    width: 85%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 0 2%;
    z-index: 3;
}
/* =======================================================================================================================
** Nav
*/
.nav_principal_contenedor{
    border-radius: 15px;
    padding: 2% 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* menu de Wordpress */
.nav_principal_contenedor .menu{
    display: flex;
    align-items: center;
    width: max-content;
}
/* Estilos base para el menú */
.menu_nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu_nav ul li {
    position: relative;
}
/* Submenús ocultos por defecto */
.menu_nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    display: none; /* Ocultamos inicialmente */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.menu_nav ul ul ul {
    left: 100%;
    top: 0;
}
/* Animaciones */
.menu_nav ul li:hover > ul {
    display: block; /* Mostramos el submenú al pasar el mouse */
    animation: slideDown 0.3s ease-out; /* Animación de bajada */
}
.menu_nav ul li:hover > ul.hide {
    animation: slideUp 0.3s ease-out; /* Animación de subida */
}
/* Keyframes para animaciones */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
.seccion_botones_nav{
    display: flex;
    align-items: center;
    justify-content: end;
    width: 60%;
}
/* boton de usuario (boton 1) */
.nav_button_1 img{
    width: 1em;
}
.nav_button_2 img{
    width: 1.2em;
}
.nav_button_1{
    border-radius: 50%;
    border: solid 1px rgb(9, 7, 29, 0.1);
}
.nav_button_1,
.nav_button_2{
    padding: 0.7em 0.9em;
}
.nav_button_2{
    border-radius: 50%;
    display: flex;
}
/* contactanos nav 
.contactanos_contenedor_nav{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1em;
}
.contactanos_nav{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 1em;
    font-size: 75%;
}*/
.nav_button_contactanos{
    display: flex;
    align-items: center;
    border-radius: 50px;
    background-color: #44228C;
    color: #E5E4E2;
    text-decoration: none;
    padding: 0.7em;
    transition: all 0.3s;
    margin-left: 1em;
    padding-left: 1em;
}
.nav_button_contactanos_img{
    color: white;
    background-color: #8344F8;
    padding: 0.7em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5em;
    transition: all 0.3s;
}
.nav_button_contactanos:hover{
    background-color: #8344F8;
    transition: all 0.3s;
}
.nav_button_contactanos:hover .nav_button_contactanos_img{
    background-color: white;
    color: #8344F8;
    transition: all 0.3s;
}
/* carrito del menu */
.carrito_menu{
    display: flex;
    align-items: center;
    padding: 0 2%;
}
.cart-total{
    margin-right: 0.3em;
}
.custom-cart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}
.custom-cart-button .fa-cart-shopping {
    font-size: 24px;
    position: relative;
}
.custom-cart-button .cart-total {
    font-weight: bold;
    font-size: 14px;
}
.custom-cart-button .cart-notification {
    position: absolute;
    top: -5px;
    right: 0px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* buscador del menu */
.custom-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 5px;
    padding: 5px 10px;
}
.custom-search-form .search-field {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
}
.custom-search-form .search-submit {
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}
.buscador_menu .search-submit{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5em;
}

/* Estilo del header secundario */
#header_secundario {
    width: 100%;
    text-align: center;
    position: fixed;
    top: -100px; /* Oculto inicialmente */
    left: 0;
    z-index: 99999;
    transition: top 0.5s ease; /* Animación suave */
}
.header_secundario .contactanos_contenedor_nav{
    margin-left: 1em;
}
.header_secundario_top{
    display: flex;
    justify-content: space-between;
    background-color: black;
    padding: 0.5% 5%;
}
.header_secundario{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5% 7%;
}
#header_secundario .custom-logo-link,
#header_secundario .custom-logo-link img{
    width: 100px;
}
#header_secundario .logo_aritos3d_link .custom-logo-link{
    border-radius: 50%;
}
#header_secundario .menu_nav{
    width: max-content;
}
#header_secundario .menu{
    display: flex;
    align-items: start;
    padding-left: 5%;
    align-items: center;
    width: max-content;
}
.header_secundario_aritos3d{
    border: none;
}
/* =======================================================================================================================
** Boton Ir Tienda de la página de Empresas
*/
.ir-tienda-button{
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    background-color: #44228C;
    padding: 0.5em;
    border-radius: 50px;
    color: #E5E4E2;
}
.ir-tienda-button img{
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 3em;
}
.ir-tienda-button span{
    margin-right: 0.6em;
}
.ir-tienda-button:hover {
    transform: scale(1.1);
    background-color: #8344F8;
    transition: transform 0.3s ease;
}
.ir-tienda-button-text{
    margin: 0 1em;
    display: flex;
    align-items: center;
}
/*
 * Media para ESCRITORIO
 */
 @media screen and (min-width: 1024px){
    #header_movil{
        display: none; /* Ocultar el header móvil en escitorio (inferior a 1024px) */
    }
}
/*
 * Media para MÓVILES 
 */
@media screen and (max-width: 1023px){
    #header_escritorio{
        display: none !important;
    }
    #header_movil{
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        position: fixed;
        z-index: 999;
        width: 100%;
        top: 0;
    }
    #header_movil .header_movil_content{
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 2% 4%;
    }
    #header_movil img{
        width: 60px;
    }
    #header_movil .menu{
        display: flex;
        justify-content: start;
        align-items: start;
        flex-direction: column;
        padding: 0 1em;
    }
    #header_movil .header_top_data,
    #header_movil .header_top_data div{
        display: flex;
        align-items: center;
    }
    #header_movil .header_top_data img{
        margin-right: 0.5em;
    }
    #header_movil .header_top{
        font-size: 70%;
        width: 100%;
        padding: 0.5em 1em;
    }
    #header_movil .header_top li{
        display: flex;
        align-items: center;
    }
    #header_movil .header_top img{
        width: 1em;
    }
    #header_movil .header_top_correo{
        margin-right: 1em;
    }
    #header_movil .menu li{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        padding: 0.4em 0;
    }
    #header_movil .menu a{
        padding: 0.5em 0.2em;
        text-decoration: none;
        width: 90%;
    }
    .seccion_botones_nav .container-fluid{
        padding: 0 !important;
    }
    .titulo_banner_header .entry-title{
        top: 7vh;
        font-size: 300%;
    }

    /* Botones de toggle */
    .toggle-btn {
        color: #666;
    }

    .toggle-btn i {
        transition: transform 0.3s ease;
    }
    
    /* Botón de abrir (Estilos para el boton y buscador para dispositivos moviles)*/
    #openSearch {
        padding: 10px 20px;
        font-size: 16px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        z-index: 999;
    }

    /* Capa negra transparente */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 999;
        justify-content: center;
        align-items: center;
    }

    /* Contenedor del buscador */
    .seccion_botones_nav .buscador_menu {
        position: relative;
        background: white;
        padding: 20px;
        border-radius: 8px;
        width: 90%;
        max-width: 400px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    /* Botón de cerrar */
    .header_movil_content .close-btn {
        position: fixed;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        font-size: 2em;
        cursor: pointer;
        color: white;
        z-index: 1000;
    }
    .header_movil_content .navbar-toggler{
        padding: 0.3em 0.6em;
    }
    .header_movil_content .navbar-toggler:focus,
    .header_movil_content .navbar-toggler:active{
        box-shadow: none;
    }
    .header_movil_content .navbar-toggler i{
        font-size: 1.5em;
        font-weight: 600;
    }

    .ir-tienda-button{
        font-size: 80%;
    }
    .banner_secundario{
        margin-top: 25%;
    }
}

