
/* ==========================================
   PARTECH HEADER ND - MENU V5
   Elementor + UAE Navigation Menu
   Menu WordPress: 18773
========================================== */

#pt-nd-header {
    --pt-nav-bg: #142b49;
    --pt-nav-white: #ffffff;
    --pt-nav-orange: #f47721;

    /* CONFIGURACION ICONOS */
    --pt-nav-icon-size: 17px;
    --pt-nav-icon-gap: 10px;
}

/* Fondo y elementos del menu */
#pt-nd-header .pt-nd-header-nav {
    background-color: var(--pt-nav-bg);
}

/* Enlaces */
#pt-nd-header .pt-nd-header-nav
li.menu-item > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--pt-nav-icon-gap);

    color: var(--pt-nav-white) !important;
    background-color: transparent !important;
    text-decoration: none;
}

/* ==========================================
   ICONOS - CONFIGURACION GENERAL
========================================== */

#pt-nd-header .pt-nd-header-nav
li.menu-item[class*="pt-nav-"] > a::before {
    content: "" !important;
    display: inline-block !important;

    width: var(--pt-nav-icon-size);
    height: var(--pt-nav-icon-size);
    flex: 0 0 var(--pt-nav-icon-size);

    background-color: #ffffff !important;

    -webkit-mask-image: var(--pt-menu-icon);
    mask-image: var(--pt-menu-icon);

    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;

    position: static !important;
    transform: none !important;
    margin: 0 !important;
}

/* ==========================================
   ICONOS INDIVIDUALES
========================================== */

/* Inicio */
#pt-nd-header .pt-nav-inicio {
    --pt-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 10 9-7 9 7v10h-6v-7H9v7H3z' fill='black'/%3E%3C/svg%3E");
}

/* Tienda */
#pt-nd-header .pt-nav-tienda {
    --pt-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h2l2.5 12H19l2-9H6M9 21h.01M18 21h.01' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Categorias */
#pt-nd-header .pt-nav-categorias {
    --pt-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h7v7H3zM14 3h7v7h-7zM3 14h7v7H3zM14 14h7v7h-7z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

/* TOP 40 */
#pt-nd-header .pt-nav-top40 {
    --pt-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h10l8 8-10 10-8-8z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

/* TOP 50 */
#pt-nd-header .pt-nav-top50 {
    --pt-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h10l8 8-10 10-8-8z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

/* Contacto */
#pt-nd-header .pt-nav-contacto {
    --pt-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h4l2 5-3 2a15 15 0 0 0 6 6l2-3 5 2v4c0 2-2 3-4 2C9 19 5 15 3 7c-1-2 0-4 2-4z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

/* Nosotros */
#pt-nd-header .pt-nav-nosotros {
    --pt-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M3 20v-2a6 6 0 0 1 12 0v2M17 5a3 3 0 0 1 0 6M18 14a5 5 0 0 1 3 5v1' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

/* Promociones genericas */
#pt-nd-header .pt-nav-promo-generica {
    --pt-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10v4h4l3 6h3l-3-7 10 5V6L10 11H3zM20 9l2-2M20 15l2 2' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

/* ==========================================
   HOVER - TEXTO E ICONOS NARANJAS
========================================== */

@media (hover: hover) {
    #pt-nd-header .pt-nd-header-nav
    li.menu-item > a:hover {
        color: #f47721 !important;
    }

    #pt-nd-header .pt-nd-header-nav
    li.menu-item > a:hover::before {
        background-color: #f47721 !important;
    }
}

/* ==========================================
   ACTIVO - TEXTO E ICONOS NARANJAS
========================================== */

#pt-nd-header .pt-nd-header-nav
li.current-menu-item > a,
#pt-nd-header .pt-nd-header-nav
li.current_page_item > a,
#pt-nd-header .pt-nd-header-nav
li.current-menu-ancestor > a,
#pt-nd-header .pt-nd-header-nav
li.menu-item > a[aria-current="page"],
#pt-nd-header .pt-nd-header-nav
li.menu-item > a.uael-menu-item-active {
    color: #f47721 !important;
}

#pt-nd-header .pt-nd-header-nav
li.current-menu-item > a::before,
#pt-nd-header .pt-nd-header-nav
li.current_page_item > a::before,
#pt-nd-header .pt-nd-header-nav
li.current-menu-ancestor > a::before,
#pt-nd-header .pt-nd-header-nav
li.menu-item > a[aria-current="page"]::before,
#pt-nd-header .pt-nd-header-nav
li.menu-item > a.uael-menu-item-active::before {
    background-color: #f47721 !important;
}

/* Alineacion */
#pt-nd-header .pt-nd-header-nav
li.menu-item-has-children > a {
    display: inline-flex !important;
    align-items: center !important;
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    #pt-nd-header .pt-nd-header-nav
    li.menu-item > a {
        transition: none;
    }
}


/* ==========================================
   PARTECH HEADER ND - ICONOS FIX V6
   Visibilidad y colores
========================================== */

/* Estado normal: blanco y visible */
#pt-nd-header .pt-nd-header-nav
li.menu-item[class*="pt-nav-"] > a::before {
    content: "" !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;

    background-color: #ffffff !important;
    -webkit-mask-image: var(--pt-menu-icon) !important;
    mask-image: var(--pt-menu-icon) !important;
    -webkit-mask-size: contain;
    mask-size: contain;

    width: var(--pt-nav-icon-size);
    height: var(--pt-nav-icon-size);
    min-width: var(--pt-nav-icon-size);

    position: static !important;
    z-index: 1;
}

/* Hover: naranja */
@media (hover: hover) {
    #pt-nd-header .pt-nd-header-nav
    li.menu-item[class*="pt-nav-"]:hover > a::before {
        background-color: #f47721 !important;
    }
}

/* Activo: naranja */
#pt-nd-header .pt-nd-header-nav
li.current-menu-item > a::before,
#pt-nd-header .pt-nd-header-nav
li.current_page_item > a::before,
#pt-nd-header .pt-nd-header-nav
li.current-menu-ancestor > a::before,
#pt-nd-header .pt-nd-header-nav
li.menu-item > a[aria-current="page"]::before {
    background-color: #f47721 !important;
}





/* ==========================================
   PARTECH HEADER ND - MOVIL V4
   Logo / Buscador / Cuenta + Carrito
========================================== */

@media (max-width: 767px) {

    /* Padre: organiza los tres contenedores */
    #pt-nd-header .pt-nd-header-main {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100%;
        min-width: 0;
    }

    /* Primera fila: logo */
    #pt-nd-header .pt-nd-header-main
    > .pt-nd-header-logo {
        width: 100% !important;
        min-width: 0;
        flex: 0 0 auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Segunda fila: buscador */
    #pt-nd-header .pt-nd-header-main
    > .pt-nd-header-search {
        width: 100% !important;
        min-width: 0;
        flex: 0 0 auto !important;
    }

    /* FiboSearch a ancho completo */
    #pt-nd-header .pt-nd-header-search
    .dgwt-wcas-search-wrapp {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Tercera fila: Cuenta + Carrito */
    #pt-nd-header .pt-nd-header-main
    > .pt-nd-header-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 16px !important;
        width: 100% !important;
        min-width: 0;
        flex: 0 0 auto !important;
    }

    /* Contenedores de Cuenta y Carrito */
    #pt-nd-header .pt-nd-header-actions
    > .e-con {
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0;
        max-width: none;
    }

    /* Evitar texto vertical */
    #pt-nd-header .pt-nd-header-actions
    .elementor-icon-box-title,
    #pt-nd-header .pt-nd-header-actions
    .elementor-menu-cart__toggle {
        word-break: normal !important;
        overflow-wrap: normal !important;
    }
}



/* ==========================================
   PARTECH FOOTER ND - ACORDEON MOVIL
   Version 1.0
========================================== */

@media (max-width: 767px) {

    /* Columnas desplegables */
    #pt-nd-footer .pt-footer-accordion {
        width: 100%;
        min-width: 0;
        border-bottom: 1px solid
            rgba(255,255,255,.18);
        padding-bottom: 12px;
    }

    /* Encabezados */
    #pt-nd-footer
    .pt-footer-accordion-title {
        position: relative;
        width: 100%;
        cursor: pointer;
        padding-right: 36px;
    }

    #pt-nd-footer
    .pt-footer-accordion-title .elementor-heading-title {
        color: #ffffff;
        font-size: 16px;
        line-height: 1.4;
    }

    /* Flecha desplegable */
    #pt-nd-footer
    .pt-footer-accordion-title::after {
        content: "";
        position: absolute;
        right: 8px;
        top: 50%;
        width: 9px;
        height: 9px;

        border-right: 2px solid #f47721;
        border-bottom: 2px solid #f47721;

        transform:
            translateY(-70%) rotate(45deg);

        transition: transform .25s ease;
        pointer-events: none;
    }

    /* Flecha al desplegar */
    #pt-nd-footer
    .pt-footer-accordion.is-open
    .pt-footer-accordion-title::after {
        transform:
            translateY(-30%) rotate(225deg);
    }

    /* Contenido visible al abrir */
    #pt-nd-footer
    .pt-footer-accordion.is-open
    .pt-footer-accordion-content {
        display: block;
    }

    /* Contenido cerrado solo cuando JS inició */
    #pt-nd-footer.pt-footer-accordion-ready
    .pt-footer-accordion:not(.is-open)
    .pt-footer-accordion-content {
        display: none !important;
    }

    /* Separación interna */
    #pt-nd-footer
    .pt-footer-accordion-content {
        padding-top: 12px;
    }

    /* Foco de teclado */
    #pt-nd-footer
    .pt-footer-accordion-title:focus-visible {
        outline: 2px solid #f47721;
        outline-offset: 4px;
        border-radius: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #pt-nd-footer
    .pt-footer-accordion-title::after {
        transition: none;
    }
}


