/* Menu K */

/* Estilos del Mega Menú */
.mm-mega-menu {
    width: 100%;
    position: relative;
    z-index: 1000;
}

/* Encabezado del menú móvil */
.mm-menu-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    padding: 10px 20px;
}

/* Botón de hamburguesa y Buscador en móviles */
.mm-menu-toggle {
    display: none;
    flex-direction: column;
background: black;
    border: none;
}

.mm-menu-toggle .mm-hamburger {
    width: 31px;
    height: 2px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s;
}

/* Buscador móvil oculto por defecto */
.mm-mobile-search {
    display: block;
    width: 60%;
}

/* Mostrar el encabezado del menú en móviles */
@media (max-width: 768px) {
    .mm-menu-header {
        display: flex;
    }

    .mm-mobile-search {
        display: block!important; /* Inicialmente oculto, se muestra cuando el menú está activo */
    }

    .mm-mobile-search.active {
        display: block;
    }

    .whatsapp-float {
 
    width: 45px!important;
    height: 45px!important;
 
}

.whatsapp-float img {
    width: 30px!important;
    height: 30px;
}

.whatsapp-tooltip {
 
    left: 50px!important;
 
}

    .mm-mega-dropdown {
       
        min-width: 349px!important;
    }



}




/* Menú Principal */
.mm-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
 padding-bottom: 10px;
    background: #000 !important;
}

.mm-menu-item {
    position: relative;
}

.mm-menu-item a, .mm-column a {
  
     font-size: 16px; 
}

.mm-submenu-columns a {

    color:#000;
}


.mm-menu > .mm-menu-item > a {
    display: block;
    padding: 6px 7px;
    color: #fff; /* Texto blanco */
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    border-radius: 8px; /* Estilo de burbuja */
    margin: 10px;
    background-color: #262626;
    position: relative; /* Para posicionar la flecha */
}

/* Flecha hacia abajo en los menús con submenú */
.mm-has-dropdown > a::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #fff;
    transition: transform 0.3s;
    vertical-align: middle;
}

/* Rotar la flecha cuando el submenú está activo */
.mm-has-dropdown.active > a::after {
    transform: rotate(180deg);
}

/* Hover y Focus */
.mm-menu > .mm-menu-item > a:hover,
.mm-menu > .mm-menu-item > a:focus {
    background-color: #333; /* Hover más claro */
    transform: scale(1.05);
}

/* Megamenu Dropdown */
.mm-has-dropdown .mm-mega-dropdown {
    position: absolute;
    left: 0; /* Alineado a la izquierda */
    top: 100%;
    background-color: #f5f5dc; /* Fondo beige claro */
    display: none;
    padding: 20px 30px;
    width: auto; /* Adaptar al contenido */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 5px;
    z-index: 1000;
}

/* Mostrar el megamenu al pasar el mouse, enfocar o activar */
.mm-has-dropdown:hover .mm-mega-dropdown,
.mm-has-dropdown:focus-within .mm-mega-dropdown,
.mm-has-dropdown.active .mm-mega-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    animation: mm-dropdownAnimation 0.5s forwards;
}

/* Asegurar que hover funcione en desktop independientemente del ancho */
@media (min-width: 769px) {
    .mm-has-dropdown:hover .mm-mega-dropdown,
    .mm-has-dropdown:focus-within .mm-mega-dropdown {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Animación de despliegue */
@keyframes mm-dropdownAnimation {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subcategorías */
.mm-submenu-columns {
    display: flex;
    gap: 40px;
}

.mm-submenu-columns .mm-column {
    min-width: 200px;
}

.mm-submenu-columns .mm-column h3 {
    font-size: 23px !important;
    color: #000;
    font-weight: 700;
    padding-bottom: 4px;
    padding-top: 13px;
}

.mm-submenu-columns .mm-column h3:hover {
  
  

}

.mm-submenu-columns .mm-column a {
    display: block;
    margin-bottom: 8px;
    color: #000!important;
    text-decoration: none;
    transition: color 0.3s;
    padding-left: 5px;
    font-weight: 600;
}

.mm-submenu-columns .mm-column a:hover {
    color: #000000 !important;
    background: #dedede;
    /* padding-left: 10px; */
  

}



/* Extra Content: Productos Destacados y Banner */
.mm-dropdown-extra {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.mm-dropdown-products {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mm-dropdown-products h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #000;
}

/* Botón para ver productos de la categoría */
.mm-view-category-btn {
    display: inline-block;
    padding: 8px 12px;
    background-color: #2f7fd0;
    color: #fff;
    text-decoration: none;
    font-size: 18px !important;
    border-radius: 25px;
    margin-top: 11px;
    transition: background-color 0.3s;
    font-family: "Alumni Sans", sans-serif;
}

.mm-view-category-btn:hover {
    background-color: #fa6b6b;
}

/* Lista de productos en dos columnas */
.mm-product-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mm-product-item {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mm-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mm-product-info h4 {
    font-family: "Open Sans", Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px !important;
    color: #5b5b5b !important;
}

.mm-product-info p {
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}
.mm-regular-price {
    text-decoration: line-through;
    color: #fa6b6b91;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 800;
    font-size: 16px;
}

.mm-sale-price {
   
    color: #fa6b6b;
    font-weight: 800;
    font-family: "Nunito Sans", sans-serif;
}

 

.mm-price {
    
    color: #f3a7ad;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 5px;
}

/* Botón Comprar */
.mm-btn {
    display: inline-block;
    padding: 5px 10px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.mm-btn:hover {
    background-color: #333;
}

/* Banner en el Dropdown */
.mm-dropdown-banner {
    flex: 1;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    padding-top: 10px;
    padding-bottom: 10px;
    

    
}


img .banner-menu:hover {

    

}


.mm-dropdown-banner img, .mm-dropdown-banner .banner-menu {
    width: 100%;
    max-width: 300px;
    height: auto;
    transition: transform 0.3s, box-shadow 0.3s;
    object-fit: cover;
    border-radius: 5px;
}

.mm-dropdown-banner img:hover, .mm-dropdown-banner .banner-menu:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

/* Estilos para escritorio */
@media (min-width: 769px) {
    .mm-mega-dropdown {
        display: none;
        position: absolute;
        /* Otros estilos */
    }
    .mm-has-dropdown:hover .mm-mega-dropdown {
        display: block;
    }
}


/* Responsividad del Mega Menú */
@media (max-width: 1024px) {
    .mm-mega-dropdown {
        padding: 20px 30px;
        min-width: 600px;
    }
}

@media (max-width: 768px) {
    /* Menú Full Width */
    .mm-menu {
        flex-direction: column;
        align-items: flex-start;
        background-color: #000;
        display: none;
        width: 100%;
    }

    .mm-menu.active {
        display: flex;
    }

    .mm-menu-item > a {
        padding: 10px 20px;
        width: 100%;
        border-radius: 0;
        margin: 0;
        background-color: #1a1a1a;
    }

    .mm-has-dropdown .mm-mega-dropdown {
        position: relative;
        width: 100%;
        max-height: 70vh; /* Altura máxima con scroll */
        padding: 20px;
        flex-direction: column;
        display: none;
        opacity: 1;
        visibility: visible;
        animation: none;
        background-color: #f5f5dc;
        overflow-y: auto; /* Habilitar scroll */
        -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
        z-index: 999;
        top: 0;
        left: 0;
    }

    .mm-has-dropdown.active .mm-mega-dropdown {
        display: block;
    }

    .mm-submenu-columns {
        flex-direction: column;
        gap: 20px;
    }

    .mm-dropdown-extra {
        flex-direction: column;
        gap: 20px;
    }

    .mm-dropdown-products, .mm-dropdown-banner {
        margin-right: 0;
        margin-top: 20px;
    }

    .mm-dropdown-banner {
        max-width: 100%;
    }

    /* Botón de Hamburguesa Activo */
 .mm-menu-toggle.active .mm-hamburger:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mm-menu-toggle.active .mm-hamburger:nth-child(2) {
        opacity: 0;
    }

    .mm-menu-toggle.active .mm-hamburger:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Flecha hacia abajo en móviles */
    .mm-has-dropdown > a::after {
        border-top: 5px solid #fff;
    }

    .mm-has-dropdown.active > a::after {
        transform: rotate(180deg);
    }
}

/* Mostrar el buscador móvil solo cuando el menú está activo */
.mm-mobile-search {
    display: block!important;
}

.mm-menu.active + .mm-mobile-search,
.mm-menu-header.active .mm-mobile-search {
    display: block;
}

/* Botón de Hamburguesa para Móviles */
@media (max-width: 768px) {
    .mm-menu-toggle {
        display: flex;
    }

    .mm-menu-toggle.active + .mm-mobile-search {
        display: block;
    }

    /* Ajustes del buscador móvil */
    .mm-mobile-search {
        width: 60%;
        margin-left: auto;
    }
}

/* Estilos del Mega Menú */
.mm-menu > .mm-menu-item > a,
.mm-submenu-columns .mm-column h3,
.mm-product-info h4 {
    font-family: "Alumni Sans", sans-serif; /* Fuente de los títulos y enlaces */
    font-size: 23px;
}

@media only screen and (min-width: 760px) and (max-width: 1100px) {
    .mm-menu > .mm-menu-item > a,
    .mm-submenu-columns .mm-column h3,
    .mm-product-info h4 {
        font-family: "Alumni Sans", sans-serif;
        font-size: 18px;
        margin: 2px 2px 2px 2px;
    }
}

.mm-product-info p,
.mm-price{
    font-family: "Alumni Sans", sans-serif;
}

/* Ocultar el buscador principal en móviles */
@media only screen and (max-width: 768px) {
    .search-container, .mm-dropdown-extra {
        display: none;
    }
}

.mm-menu {
   padding-bottom: 8px!important;

}


/* Clase para el menú sticky */
.mm-mega-menu.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000; /* Asegura que el fondo sea sólido */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Opcional: sombra para dar profundidad */
    z-index: 1000; /* Asegura que el menú esté por encima de otros elementos */
    transition: all 0.3s ease-in-out; /* Transición suave al activar */
}


.ywcas-classic-related-categories-wrapper{

    display: none;
}


.ywcas-popover-results .popover-content .wp-block-yith-filled-block .ywcas-search-results .search-result-item.grid .search-result-item__name {
    margin-bottom: -14px!important;
}



.ywcas-search-mobile {
    padding: 30px 0;
    background-color: #060101b0!important;
    bottom: 0;
    backdrop-filter: blur(11px)!important;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9999;
}

.search-result-item__name {
color: #fff!important;

}

.ywcas-search-mobile .mobile-search-content {
    margin-top: -37px!important;
 
}

/* Estilos del Carrito Flotante */
.mm-cart-block {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2f7fd0; /* Color de fondo */
    color: #fff;
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1001; /* Asegura que esté por encima del menú */
}

.mm-cart-block.active {
    opacity: 1;
    visibility: visible;
}

/* Estilos del Enlace del Carrito */
.mm-cart-block .cart-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.mm-cart-block .icon-container {
    position: relative;
    margin-right: 8px;
}

.mm-cart-block .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #fa6b6b;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
}

/* Transición Suave para el Icono */
.mm-cart-block .icon-container i {
    transition: transform 0.3s ease;
}

.mm-cart-block:hover .icon-container i {
    transform: scale(1.2);
}

.carrito-flotante {
    padding: 12px 6px 12px 9px!important;
}


















/*Menu superior k*/

/* General */
.search-bar-section {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #000;
}

.main-bar {
    display: flex;
    gap: 1rem;
    padding: 10px 10px 1px 10px;
}

.logo-img {
    max-width: 100%;
    height: auto;
}

.search-container {
    justify-content: center;
    align-items: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
}

.info-block {
    background-color: #1a1a1a;
    padding: 2px 6px 0px 6px;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.3s ease;
    text-align: center;
}

.info-link {
    text-decoration: none;
    color: white!important;
    font-size: 10px;
    font-weight: 100;
}
.cart-link {
    text-decoration: none;
    color: white!important;
    font-size: 10px;
    font-weight: 100;
}

.icon-container {
    margin-bottom: -0.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.material-icons {
    font-size: 22px;
    font-weight: 100;
    color: #fff;
    margin-bottom: -5px;
}

/* Carrito */
.carrito-block {
    background-color: #2c2c2c;
}

.carrito-block:hover {
    background-color: #3643ba;
}

.cart-count {
    position: relative;
    top: 3px;
    right: 2px;
    padding-top: 3px;
    background-color: #fa6b6b;
    color: white;
    font-size: 12px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 300;
}
.info-block:hover {
    background-color: #333;
    transform: scale(1.05);
}


.social-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 17px;
    margin-top: 4px;
}

.social-link {
    text-decoration: none;
    color: white;
}

.social-link .material-icons {
    font-size: 18px; /* Tamaño pequeño */
}

.social-link:hover .material-icons {
    color: #ccc; /* Cambia de color al hacer hover */
}



.contenedor-buscador {
    flex: 7;
}

/* Ocultar la barra de búsqueda en dispositivos móviles con ancho máximo de 760px */
@media only screen and (max-width: 760px) {
    .search-container {
        display: none;
    }
}

.info-block .icon-container i {
    font-size: 19px;
}


.blog-menu-boton a
 {
    background: #efefef !important;
    color: #494949 !important;
    border: solid 1px #000;
    box-shadow: #bdbdbd -3px 3px 1px;
}

.asesoria-menu-boton a {
    background: #797979 !important;
    color: #ffffff !important;
    border: solid 1px #6b6b6b;
    box-shadow: #373737 -3px 3px 1px;
}

.ofertas-menu-boton a {
    background: #151515 !important;
    color: #ffffff !important;
    border: solid 1px #ce4a4a;
    box-shadow: #373737 -3px 3px 1px;
}

.fa-ticket:before {
    content: "\f145";
    color:#ce4a4a;
}

.blanco-txt a {
    color: #ffffff !important;
}

.mm-menu-link {

border: solid 1px #373737;
}



.ywcas-popover-results .popover-content {
    padding: 12px!important;
}

/* ============================================
   NUEVO MENU MOBILE - DESPLIEGUE LATERAL
   ============================================ */

/* Overlay del menú mobile */
.nm-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; /* No bloquear eventos cuando está cerrado */
}

.nm-mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Permitir eventos cuando está abierto */
}

/* Container del menú mobile */
.nm-mobile-menu-container {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    transition: left 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto; /* Asegurar que siempre tenga eventos */
}

.nm-mobile-menu-overlay.active .nm-mobile-menu-container {
    left: 0;
}

/* Header del menú mobile */
.nm-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #000;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.nm-mobile-logo-container {
    flex: 1;
}

.nm-mobile-logo {
    max-height: 40px;
    width: auto;
}

/* Botón de cerrar - Solo flecha hacia la izquierda */
.nm-mobile-close {
    background: #1a1a1a;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nm-mobile-close:hover {
    background-color: #333;
    transform: scale(1.05);
}

.nm-mobile-close i {
    font-size: 20px;
}

/* Sección de búsqueda mobile */
.nm-mobile-search-section {
    padding: 15px 20px;
    background-color: #0a0a0a;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

/* Contenido del menú mobile */
.nm-mobile-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

/* Lista de navegación mobile */
.nm-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Items del menú mobile */
.nm-mobile-item {
    border-bottom: 1px solid #333;
}

/* Enlaces del menú mobile */
.nm-mobile-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    color: #fff;
    text-decoration: none;
    font-family: "Alumni Sans", sans-serif;
    font-size: 20px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.nm-mobile-link:hover {
    background-color: #1a1a1a;
}

.nm-mobile-link span {
    display: flex;
    align-items: center;
    gap: 12px;
    color:white;
        font-size: 24px;
}

.nm-mobile-link i:first-child {
    font-size: 18px;
}

/* Flecha para items con submenú */
.nm-mobile-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
    color: #fff;
}

.nm-mobile-item.active .nm-mobile-arrow {
    transform: rotate(180deg);
}

/* Submenú mobile */
.nm-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    background-color: #0a0a0a;
    transition: max-height 0.4s ease;
}

/* Contenido del submenú */
.nm-submenu-content {
    padding: 10px 0;
        background: #f5f5dc;
}

/* Secciones dentro del submenú */
.nm-submenu-section {
     padding: 0px 19px 0px 10px;
}

.nm-submenu-section h4 {
color: #000000;
    font-family: "Alumni Sans", sans-serif;
    font-size: 24px;
    font-weight: 700;
margin: 15px 0px -1px 0;
}

.nm-submenu-section h4:first-child {
    margin-top: 15px;
}

/* Enlaces dentro del submenú */
.nm-mobile-sublink {
    display: block;
 
    color: #000000 !important;
    text-decoration: none;
     
    font-size: 16px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.nm-mobile-sublink:hover {
    color: #fff;
    padding-left: 10px;
}

/* Items simples (sin submenú) */
.nm-simple-item .nm-mobile-link {
    padding: 18px 20px;
}

/* Enlaces especiales con colores */
.nm-ofertas-link {
    background-color: #1a0f0f !important;
}

.nm-ofertas-link:hover {
    background-color: #2a1515 !important;
}

.nm-ofertas-link i {
    color: #ce4a4a;
}

.nm-asesoria-link {
    background-color: #797979 !important;
}

.nm-asesoria-link:hover {
    background-color: #615f5f !important;
}

.nm-blog-link:hover {
    background-color: #2a2a2a;
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 360px) {
    .nm-mobile-menu-container {
        width: 100%;
        max-width: 100%;
    }
}

/* Prevenir scroll del body cuando el menú está abierto */
body.nm-menu-open {
    overflow: hidden !important;
    touch-action: none !important;
}

/* Prevenir el scroll bounce en iOS - solo cuando el menú está activo */
.nm-mobile-menu-overlay.active {
    overscroll-behavior: contain;
    touch-action: none;
}

.nm-mobile-menu-container {
    overscroll-behavior: contain;
    touch-action: auto;
}

/* Mejorar el scroll interno del menú */
.nm-mobile-content {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    /* Asegurar que el scroll interno funcione correctamente */
    scrollbar-width: thin;
    scrollbar-color: #666 #1a1a1a;
}

/* Estilos para la barra de scroll en navegadores WebKit */
.nm-mobile-content::-webkit-scrollbar {
    width: 6px;
}

.nm-mobile-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.nm-mobile-content::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

.nm-mobile-content::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Prevenir scroll en el submenu mobile */
.nm-mobile-submenu {
    overscroll-behavior: contain;
    touch-action: pan-y;
}
