/* ================================================= */
/* GAUN · CSS GLOBAL */
/* ÁMBITO RECOMENDADO: Toda la web */
/* Extraído sin alterar declaraciones del CSS actual */
/* ================================================= */

:root {
    --gaun-corporativo: #132a14;
    --gaun-corporativo-hover: #0d1f0e;
    --gaun-verde-lima: #BDEB69;
    --gaun-verde-lima-hover: #C2F186;
}


/* ============================= */
/* SCROLLBAR PERSONALIZADA */
/* ============================= */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gaun-verde-lima);
}

::-webkit-scrollbar-thumb {
    background: #F8F8F8;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gaun-verde-lima-hover);
}


/* ============================= */
/* SELECTOR DE IDIOMAS */
/* ============================= */

.gaun-lang-switcher {
    font-size: 17px;
    letter-spacing: 1px;
    color: #132a14;
}

.gaun-lang-link {
    color: #132a14;
    text-decoration: none;
    opacity: 0.6;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.gaun-lang-link:hover {
    color: #132a14;
    opacity: 1;
}

.gaun-lang-link.current-lang {
    color: #132a14;
    opacity: 1;
    font-weight: 600;
}

.lang-separator {
    color: #132a14;
    opacity: 0.4;
}


/* ============================= */
/* BUSCADOR ADVANCED WOO SEARCH */
/* ============================= */

.aws-container .aws-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.aws-container .aws-search-field {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 10px 0 0 10px !important;
    font-size: 18px;
    padding: 12px 16px;
    color: #000000;
}

.aws-container .aws-search-field::placeholder {
    font-size: 14px;
    color: #777777;
    opacity: 1;
}

.aws-container .aws-search-btn {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 10px 10px 0 !important;
    color: #000000 !important;
    padding: 0 16px;
}

.aws-container .aws-search-btn svg,
.aws-container .aws-search-btn i,
.aws-container .aws-search-btn:before {
    color: #000000 !important;
    fill: #000000 !important;
}

.aws-container .aws-search-field:focus,
.aws-container .aws-search-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.aws-container {
    width: 400px !important;
    max-width: 100%;
}

.aws-container .aws-search-form {
    width: 100%;
}

.aws-container .aws-search-field {
    width: 100% !important;
    min-width: 0;
}


/* ================================================= */
/* HEADER */
/* ================================================= */

.gaun-header-inner {
    width: 100%;
    min-height: 95px;
    padding: 48px 52px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 1200px) {
    .gaun-header-inner {
        padding: 36px 40px 18px;
    }
}

@media (max-width: 1024px) {
    .gaun-header-inner {
        padding: 26px 28px 15px;
    }
}

@media (max-width: 767px) {
    .gaun-header-inner {
        min-height: 70px;
        padding: 18px 20px 14px;
    }
}


/* GAUN | Sticky visual */

.gaun-sticky-header {
    transition:
        padding-top 0.28s ease,
        padding-bottom 0.28s ease,
        background-color 0.28s ease,
        box-shadow 0.28s ease;
}

/* Solo después de bajar 120 px */
.gaun-sticky-header.elementor-sticky--effects {
    padding-top: 18px !important;
    padding-bottom: 18px !important;

    background-color: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}

/* Mantenerlo por encima del contenido */
.gaun-sticky-header.elementor-sticky--active {
    z-index: 9999 !important;
}

/* Logo: solo se reduce en estado sticky */
.gaun-sticky-header .hfe-retina-img {
    transition:
        width 0.28s ease,
        max-width 0.28s ease;
}

.gaun-sticky-header.elementor-sticky--effects .hfe-retina-img {
    width: 170px !important;
    max-width: 170px !important;
}

/* Afinar altura del header sticky */
.gaun-sticky-header.elementor-sticky--effects {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}


/* =========================================================
   GAUN | PRODUCTOS DESTACADOS DEL POPUP · ELESSI
   ========================================================= */

.gaun-search-featured,
.gaun-search-featured > .e-con-inner,
.gaun-search-featured .elementor-widget-woocommerce-products,
.gaun-search-featured .elementor-widget-container,
.gaun-search-featured .woocommerce,
.gaun-search-featured .nasa-content-page-products {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Rejilla real */
.gaun-search-featured ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* El elemento real de columna es li.product-warp-item */
.gaun-search-featured ul.products > li.product-warp-item {
    float: none !important;

    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Tarjeta interior real */
.gaun-search-featured
li.product-warp-item
> .product.product-item {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 14px !important;

    border: 1px solid #e4e8e4 !important;
    border-radius: 10px !important;
    background: #ffffff !important;

    box-sizing: border-box !important;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.gaun-search-featured
li.product-warp-item
> .product.product-item:hover {
    transform: translateY(-2px);
    border-color: #BDEB69 !important;
    box-shadow: 0 8px 22px rgba(19, 42, 20, 0.10);
}

/* Zona de imagen */
.gaun-search-featured .product-img-wrap {
    position: relative !important;

    width: 100% !important;
    height: 150px !important;
    min-height: 150px !important;

    margin: 0 0 12px !important;
    overflow: hidden !important;
}

.gaun-search-featured a.product-img,
.gaun-search-featured .main-img {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;
}

/* No necesitamos segunda imagen en hover dentro del popup */
.gaun-search-featured .back-img {
    display: none !important;
}

.gaun-search-featured .main-img img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;

    object-fit: contain !important;
    transform: none !important;
}

/* Información */
.gaun-search-featured .product-info-wrap {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    min-width: 0 !important;

    padding: 0 !important;
}

/* Nombre primero */
.gaun-search-featured
.woocommerce-loop-product__title {
    order: 1;

    display: -webkit-box !important;
    overflow: hidden !important;

    min-height: 38px !important;
    margin: 0 0 7px !important;

    color: #132a14 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;

    white-space: normal !important;

    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* Referencia después del nombre */
.gaun-search-featured .nasa-sku,
.gaun-search-featured
.nasa-sku.nasa-show-one-line,
.gaun-search-featured
.nasa-sku.nasa-crazy-inline {
    order: 2;

    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;

    color: #6f746f !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.gaun-search-featured .nasa-sku .ns-sku-lbl {
    color: #132a14 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* Ocultar categoría y descripción */
.gaun-search-featured .nasa-list-category,
.gaun-search-featured .product-des-wrap {
    display: none !important;
}

/* Ocultar etiqueta roja y vista rápida */
.gaun-search-featured .berocket_better_labels,
.gaun-search-featured .nasa-product-grid,
.gaun-search-featured .quick-view,
.gaun-search-featured .price,
.gaun-search-featured .star-rating,
.gaun-search-featured .button,
.gaun-search-featured .add_to_cart_button {
    display: none !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .gaun-search-featured ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .gaun-search-featured .product-img-wrap {
        height: 140px !important;
        min-height: 140px !important;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .gaun-search-featured {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .gaun-search-featured ul.products {
        display: flex !important;
        gap: 14px !important;

        width: max-content !important;
    }

    .gaun-search-featured
    ul.products
    > li.product-warp-item {
        flex: 0 0 210px !important;
        width: 210px !important;
    }

    .gaun-search-featured .product-img-wrap {
        height: 130px !important;
        min-height: 130px !important;
    }
}


/* =========================================================
   GAUN | DESTACADOS · MÁS PROTAGONISMO VISUAL
   ========================================================= */

/* Tarjeta algo más generosa */
.gaun-search-featured
li.product-warp-item
> .product.product-item {
    padding: 16px 16px 14px !important;
}

/* Zona principal de imagen */
.gaun-search-featured .product-img-wrap {
    height: 200px !important;
    min-height: 200px !important;
    margin-bottom: 14px !important;
}

/* Imagen más grande dentro de su espacio */
.gaun-search-featured .main-img {
    overflow: hidden !important;
}

.gaun-search-featured .main-img img {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    transform: scale(1.08) !important;
    transform-origin: center center !important;

    transition: transform 0.25s ease !important;
}

/* Ligero aumento al pasar el ratón */
.gaun-search-featured
.product-item:hover
.main-img img {
    transform: scale(1.13) !important;
}

/* Nombre del producto */
.gaun-search-featured
.woocommerce-loop-product__title {
    min-height: 44px !important;
    margin-bottom: 10px !important;

    color: #132a14 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;

    -webkit-line-clamp: 2 !important;
}

/* Línea de referencia */
.gaun-search-featured .nasa-sku,
.gaun-search-featured
.nasa-sku.nasa-show-one-line,
.gaun-search-featured
.nasa-sku.nasa-crazy-inline {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
}

/* Etiqueta REF. */
.gaun-search-featured
.nasa-sku
.ns-sku-lbl {
    color: #132a14 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
}

/* Valor numérico de la referencia */
.gaun-search-featured .nasa-sku {
    color: #656d65 !important;
    font-weight: 500 !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .gaun-search-featured .product-img-wrap {
        height: 175px !important;
        min-height: 175px !important;
    }

    .gaun-search-featured
    .woocommerce-loop-product__title {
        font-size: 15px !important;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .gaun-search-featured .product-img-wrap {
        height: 155px !important;
        min-height: 155px !important;
    }

    .gaun-search-featured
    .woocommerce-loop-product__title {
        font-size: 15px !important;
    }
}


/* =========================================================
   GAUN | POPUP BUSCADOR · ANCHO COMPLETO Y ALTURA RESPONSIVE
   Popup Elementor ID 21480
   ========================================================= */

/* El modal no debe reservar margen exterior */
body #elementor-popup-modal-21480 {
    padding: 0 !important;
    margin: 0 !important;
}

/* Caja exterior: ocupa todo el ancho del viewport */
body #elementor-popup-modal-21480 .dialog-widget-content {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;

    height: auto !important;
    max-height: calc(100dvh - 16px) !important;

    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;

    overflow: hidden !important;
}

/* Contenido interior con scroll vertical solo cuando sea necesario */
body #elementor-popup-modal-21480 .dialog-message {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    max-height: calc(100dvh - 16px) !important;

    margin: 0 !important;
    box-sizing: border-box !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

/* La plantilla de Elementor ocupa toda la anchura disponible */
body #elementor-popup-modal-21480
.dialog-message
> .elementor,
body #elementor-popup-modal-21480
.dialog-message
> .elementor
> .elementor-element {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* Contenedores principales del popup */
body #elementor-popup-modal-21480 .gaun-search-popup-head,
body #elementor-popup-modal-21480 .gaun-search-popup-body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box !important;
}

/* Las imágenes se adaptan a la altura útil de cada pantalla */
body #elementor-popup-modal-21480
.gaun-search-featured
.product-img-wrap {
    height: clamp(145px, 19dvh, 200px) !important;
    min-height: clamp(145px, 19dvh, 200px) !important;
}

/* Portátiles y pantallas con poca altura útil */
@media (min-width: 1025px) and (max-height: 900px) {

    body #elementor-popup-modal-21480
    .gaun-search-popup-body {
        margin-top: 18px !important;
    }

    body #elementor-popup-modal-21480
    .gaun-search-featured
    li.product-warp-item
    > .product.product-item {
        padding: 12px !important;
    }

    body #elementor-popup-modal-21480
    .gaun-search-featured
    .woocommerce-loop-product__title {
        min-height: 38px !important;
        margin-bottom: 6px !important;

        font-size: 15px !important;
        line-height: 1.3 !important;
    }

    body #elementor-popup-modal-21480
    .gaun-search-featured
    .nasa-sku {
        font-size: 12.5px !important;
    }

    body #elementor-popup-modal-21480
    .gaun-search-quick-links {
        font-size: 14px;
        line-height: 1.4;
    }
}


/* =========================================================
   GAUN | BOTÓN CERRAR POPUP
   Popup Elementor ID 21480
   ========================================================= */

body #elementor-popup-modal-21480 .dialog-close-button {
    top: 18px !important;
    right: 22px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;

    color: var(--gaun-corporativo) !important;
    background: #ffffff !important;

    border: 1px solid var(--gaun-corporativo) !important;
    border-radius: 50% !important;

    opacity: 1 !important;
    cursor: pointer !important;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease !important;
}

/* Icono de cierre */
body #elementor-popup-modal-21480 .dialog-close-button i,
body #elementor-popup-modal-21480 .dialog-close-button svg {
    color: var(--gaun-corporativo) !important;
    fill: var(--gaun-corporativo) !important;

    font-size: 15px !important;
    width: 15px !important;
    height: 15px !important;

    transform: rotate(0deg);
    transform-origin: center;

    transition:
        transform 0.35s ease,
        color 0.25s ease,
        fill 0.25s ease !important;
}

/* Hover */
body #elementor-popup-modal-21480 .dialog-close-button:hover {
    background-color: var(--gaun-verde-lima) !important;
    border-color: var(--gaun-verde-lima) !important;

    box-shadow: 0 5px 15px rgba(19, 42, 20, 0.16);
    transform: scale(1.05);
}

/* Giro de la X */
body #elementor-popup-modal-21480 .dialog-close-button:hover i,
body #elementor-popup-modal-21480 .dialog-close-button:hover svg {
    color: var(--gaun-corporativo) !important;
    fill: var(--gaun-corporativo) !important;

    transform: rotate(180deg);
}

/* Accesibilidad con teclado */
body #elementor-popup-modal-21480 .dialog-close-button:focus-visible {
    outline: 2px solid var(--gaun-verde-lima) !important;
    outline-offset: 3px !important;
}

/* Móvil */
@media (max-width: 767px) {
    body #elementor-popup-modal-21480 .dialog-close-button {
        top: 12px !important;
        right: 12px !important;

        width: 34px !important;
        height: 34px !important;
    }
}


/* =========================================================
   GAUN | MENÚ PRINCIPAL + SUBMENÚ COMPAÑÍA
   ========================================================= */

@media (min-width: 768px) {

    /* =====================================================
       MENÚ PRINCIPAL
       ===================================================== */

    .gaun-main-menu .jet-mega-menu-list {
        display: flex !important;
        align-items: center !important;
        gap: clamp(20px, 1.6vw, 32px) !important;
    }

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level {
        margin: 0 !important;
        padding: 0 !important;
    }

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level
    > .jet-mega-menu-item__inner {
        position: relative;

        display: flex !important;
        align-items: center !important;
        gap: 7px !important;

        min-height: 42px;
        padding: 9px 0 !important;

        color: var(--gaun-corporativo);
        background: transparent !important;

        cursor: pointer;
    }

    /* Enlace principal */
    .gaun-main-menu
    .jet-mega-menu-item__link--top-level {
        padding: 0 !important;

        color: var(--gaun-corporativo) !important;
        background: transparent !important;

        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        letter-spacing: 0.01em !important;
        text-transform: uppercase;

        transition:
            color 0.22s ease,
            opacity 0.22s ease !important;
    }

    .gaun-main-menu
    .jet-mega-menu-item__link--top-level
    .jet-mega-menu-item__label {
        color: inherit !important;
        font: inherit !important;
    }

    /* Línea inferior animada */
    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level
    > .jet-mega-menu-item__inner::after {
        content: "";

        position: absolute;
        right: 0;
        bottom: 3px;
        left: 0;

        height: 2px;

        background: var(--gaun-verde-lima);
        border-radius: 999px;

        transform: scaleX(0);
        transform-origin: center;

        transition: transform 0.24s ease;
    }

    /* Hover, abierto y página activa */
    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:hover
    > .jet-mega-menu-item__inner::after,

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:focus-within
    > .jet-mega-menu-item__inner::after,

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level.jet-mega-menu-item--hover
    > .jet-mega-menu-item__inner::after,

    .gaun-main-menu
    .jet-mega-menu-list
    > .current-menu-item
    > .jet-mega-menu-item__inner::after,

    .gaun-main-menu
    .jet-mega-menu-list
    > .current-menu-ancestor
    > .jet-mega-menu-item__inner::after {
        transform: scaleX(1);
    }

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:hover
    .jet-mega-menu-item__link--top-level,

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:focus-within
    .jet-mega-menu-item__link--top-level {
        color: var(--gaun-corporativo-hover) !important;
    }


    /* =====================================================
       FLECHAS DEL MENÚ PRINCIPAL
       ===================================================== */

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level
    > .jet-mega-menu-item__inner
    > .jet-mega-menu-item__dropdown {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;

        color: var(--gaun-corporativo) !important;
        background: transparent !important;

        font-size: 11px !important;
        line-height: 1 !important;
    }

    .gaun-main-menu
    .jet-mega-menu-item__dropdown
    i {
        transition: transform 0.25s ease;
        transform-origin: center;
    }

    .gaun-main-menu
    .jet-mega-menu-item--top-level:hover
    > .jet-mega-menu-item__inner
    > .jet-mega-menu-item__dropdown
    i,

    .gaun-main-menu
    .jet-mega-menu-item--top-level:focus-within
    > .jet-mega-menu-item__inner
    > .jet-mega-menu-item__dropdown
    i,

    .gaun-main-menu
    .jet-mega-menu-item__inner[aria-expanded="true"]
    > .jet-mega-menu-item__dropdown
    i {
        transform: rotate(180deg);
    }


    /* =====================================================
       SUBMENÚ COMPAÑÍA
       Primer elemento del menú principal
       ===================================================== */

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child
    > .jet-mega-menu-sub-menu {
        min-width: 320px !important;
        padding-top: 12px !important;

        background: transparent !important;
        box-shadow: none !important;
    }

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child
    > .jet-mega-menu-sub-menu
    > .jet-mega-menu-sub-menu__list {
        width: 320px !important;
        min-width: 320px !important;

        margin: 0 !important;
        padding: 10px !important;

        background: #ffffff !important;
        border: 1px solid #e2e8e2 !important;
        border-radius: 12px !important;

        box-shadow: 0 16px 42px rgba(19, 42, 20, 0.14) !important;

        opacity: 0;
        transform: translateY(-8px);

        transition:
            opacity 0.3s ease,
            transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    }

    /* Slide In Down */
    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child:hover
    > .jet-mega-menu-sub-menu
    > .jet-mega-menu-sub-menu__list,

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child:focus-within
    > .jet-mega-menu-sub-menu
    > .jet-mega-menu-sub-menu__list,

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child.jet-mega-menu-item--hover
    > .jet-mega-menu-sub-menu
    > .jet-mega-menu-sub-menu__list {
        opacity: 1;
        transform: translateY(0);
    }

    /* Elementos interiores */
    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child
    > .jet-mega-menu-sub-menu
    > .jet-mega-menu-sub-menu__list
    > .jet-mega-menu-item {
        margin: 0 !important;
        padding: 0 !important;
    }

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child
    > .jet-mega-menu-sub-menu
    > .jet-mega-menu-sub-menu__list
    > .jet-mega-menu-item
    + .jet-mega-menu-item {
        margin-top: 2px !important;
    }

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child
    > .jet-mega-menu-sub-menu
    > .jet-mega-menu-sub-menu__list
    > .jet-mega-menu-item
    > .jet-mega-menu-item__inner {
        position: relative;

        overflow: hidden;

        width: 100% !important;
        min-height: 46px;

        padding: 0 !important;

        background: transparent !important;
        border-radius: 8px !important;

        transition:
            background-color 0.22s ease,
            transform 0.22s ease !important;
    }

    /* Indicador verde lateral */
    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child
    > .jet-mega-menu-sub-menu
    > .jet-mega-menu-sub-menu__list
    > .jet-mega-menu-item
    > .jet-mega-menu-item__inner::before {
        content: "";

        position: absolute;
        top: 50%;
        left: 0;

        width: 3px;
        height: 0;

        background: var(--gaun-verde-lima);
        border-radius: 0 4px 4px 0;

        transform: translateY(-50%);

        transition: height 0.22s ease;
    }

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child
    > .jet-mega-menu-sub-menu
    > .jet-mega-menu-sub-menu__list
    > .jet-mega-menu-item:hover
    > .jet-mega-menu-item__inner,

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child
    > .jet-mega-menu-sub-menu
    > .jet-mega-menu-sub-menu__list
    > .jet-mega-menu-item:focus-within
    > .jet-mega-menu-item__inner {
        background: #eef8dc !important;
    }

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child
    > .jet-mega-menu-sub-menu
    > .jet-mega-menu-sub-menu__list
    > .jet-mega-menu-item:hover
    > .jet-mega-menu-item__inner::before,

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child
    > .jet-mega-menu-sub-menu
    > .jet-mega-menu-sub-menu__list
    > .jet-mega-menu-item:focus-within
    > .jet-mega-menu-item__inner::before {
        height: 24px;
    }

    /* Enlaces del submenú */
    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child
    > .jet-mega-menu-sub-menu
    .jet-mega-menu-item__link--sub-level {
        display: flex !important;
        align-items: center !important;

        width: 100% !important;
        min-height: 46px;

        padding: 11px 15px 11px 18px !important;

        color: var(--gaun-corporativo) !important;
        background: transparent !important;

        font-size: 15px !important;
        font-weight: 500 !important;
        line-height: 1.35 !important;
        text-decoration: none !important;

        transition:
            color 0.22s ease,
            transform 0.22s ease !important;
    }

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child
    > .jet-mega-menu-sub-menu
    .jet-mega-menu-item:hover
    .jet-mega-menu-item__link--sub-level,

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child
    > .jet-mega-menu-sub-menu
    .jet-mega-menu-item:focus-within
    .jet-mega-menu-item__link--sub-level {
        color: var(--gaun-corporativo-hover) !important;
        transform: translateX(3px);
    }

    .gaun-main-menu
    .jet-mega-menu-list
    > .jet-mega-menu-item--top-level:first-child
    > .jet-mega-menu-sub-menu
    .jet-mega-menu-item__label {
        color: inherit !important;
        font: inherit !important;
    }
}


/* Menú algo más compacto en portátiles */
@media (min-width: 768px) and (max-width: 1200px) {

    .gaun-main-menu .jet-mega-menu-list {
        gap: 18px !important;
    }

    .gaun-main-menu
    .jet-mega-menu-item__link--top-level {
        font-size: 14px !important;
    }
}


/* =========================================================
   GAUN | LUPA + SELECTOR DE IDIOMAS DEL HEADER
   ========================================================= */

/* ============================= */
/* ICONO DE BÚSQUEDA */
/* ============================= */

.gaun-header-search {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    margin: 0;
    padding: 0;
}

.gaun-header-search .elementor-widget-container,
.gaun-header-search .elementor-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gaun-header-search a,
.gaun-header-search .elementor-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 42px;
    padding: 0;

    color: var(--gaun-corporativo) !important;
    background: transparent !important;

    text-decoration: none;
    cursor: pointer;

    transition:
        color 0.22s ease,
        transform 0.22s ease;
}

.gaun-header-search svg {
    width: 21px !important;
    height: 21px !important;

    fill: none !important;
    color: var(--gaun-corporativo) !important;
    stroke: currentColor !important;

    transition:
        color 0.22s ease,
        transform 0.22s ease;
}

.gaun-header-search i {
    color: var(--gaun-corporativo) !important;
    font-size: 21px !important;

    transition:
        color 0.22s ease,
        transform 0.22s ease;
}

/* Línea inferior igual que el menú */
.gaun-header-search::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;

    height: 2px;

    background: var(--gaun-verde-lima);
    border-radius: 999px;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.24s ease;
}

.gaun-header-search:hover::after,
.gaun-header-search:focus-within::after {
    transform: scaleX(1);
}

.gaun-header-search:hover svg,
.gaun-header-search:hover i {
    color: var(--gaun-corporativo-hover) !important;
    transform: scale(1.06);
}


/* ============================= */
/* SELECTOR DE IDIOMAS */
/* ============================= */

.gaun-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 42px;

    color: var(--gaun-corporativo);

    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.gaun-lang-link {
    position: relative;

    display: inline-flex;
    align-items: center;

    min-height: 42px;

    color: var(--gaun-corporativo) !important;
    text-decoration: none !important;

    opacity: 0.52;

    transition:
        color 0.22s ease,
        opacity 0.22s ease;
}

/* Línea inferior */
.gaun-lang-link::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;

    height: 2px;

    background: var(--gaun-verde-lima);
    border-radius: 999px;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.24s ease;
}

.gaun-lang-link:hover {
    color: var(--gaun-corporativo-hover) !important;
    opacity: 1;
}

.gaun-lang-link:hover::after,
.gaun-lang-link.current-lang::after {
    transform: scaleX(1);
}

.gaun-lang-link.current-lang {
    color: var(--gaun-corporativo) !important;
    font-weight: 600;
    opacity: 1;
}

.lang-separator {
    display: inline-flex;
    align-items: center;

    color: var(--gaun-corporativo) !important;

    font-size: 12px;
    font-weight: 500;

    opacity: 0.38;
}


/* Portátiles */
@media (max-width: 1200px) {

    .gaun-lang-switcher {
        gap: 5px;
        font-size: 14px;
    }

    .gaun-header-search svg {
        width: 20px !important;
        height: 20px !important;
    }

    .gaun-header-search i {
        font-size: 20px !important;
    }
}


/* =========================================================
   GAUN | VISTA RÁPIDA ELESSI POR ENCIMA DEL HEADER
   ========================================================= */

/*
 * El header sticky utiliza z-index: 9999.
 * La capa de Elessi y el panel lateral se sitúan por encima.
 *
 * No se usan selectores relacionales sobre body. JetMenu cambia
 * varias clases al abrir y cerrar sus megamenús y no es necesario
 * reevaluar todo el documento para resolver el apilado.
 */

/* Capa oscura de Elessi */
body .black-window,
body .black-window.desk-window {
    z-index: 100000 !important;
}

/* Panel lateral de vista rápida */
body #nasa-quickview-sidebar,
body #nasa-quickview-sidebar.nasa-static-sidebar,
body .nasa-quickview-sidebar {
    position: fixed !important;
    z-index: 100001 !important;
    isolation: isolate;
}

/* Estado abierto */
body #nasa-quickview-sidebar.nasa-active,
body .nasa-quickview-sidebar.nasa-active {
    visibility: visible !important;
    z-index: 100001 !important;
}

/* Contenido y cierre */
body #nasa-quickview-sidebar .nasa-sidebar-close,
body #nasa-quickview-sidebar .nasa-sidebar-close a,
body #nasa-quickview-sidebar .nasa-quickview-content,
body #nasa-quickview-sidebar .nasa-content-quickview {
    position: relative;
    z-index: 2;
}


/* =========================================================
   GAUN | FOOTER HTML CORPORATIVO
   Widget HTML de Elementor: #gaun-footer-html
   ========================================================= */

/* El contenedor padre de Elementor debe llevar esta clase. */
.gaun-footer-wrap {
    --width: 100% !important;

    width: 100% !important;
    max-width: none !important;

    flex: 0 0 100% !important;
    align-self: stretch !important;

    margin: 0 !important;
    padding: 0 !important;
}

.gaun-footer-wrap > .e-con-inner,
.gaun-footer-wrap .elementor-widget-html,
.gaun-footer-wrap .elementor-widget-html > .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

#gaun-footer-html,
#gaun-footer-html * {
    box-sizing: border-box;
}

#gaun-footer-html {
    --gfh-green: #063b25;
    --gfh-green-dark: #032f1d;
    --gfh-lime: var(--gaun-verde-lima, #BDEB69);
    --gfh-white: #ffffff;
    --gfh-text: rgba(255, 255, 255, 0.80);
    --gfh-muted: rgba(255, 255, 255, 0.64);
    --gfh-line: rgba(255, 255, 255, 0.16);
    --gfh-card: #f7f8f3;
    --gfh-card-text: #173526;

    position: relative;
    display: block;

    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;

    color: var(--gfh-white);
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(189, 235, 105, 0.07),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            var(--gfh-green-dark) 0%,
            var(--gfh-green) 100%
        );

    border-radius: 28px 28px 0 0;
    overflow: hidden;

    font-family: "Poppins", Arial, sans-serif;
}

#gaun-footer-html a {
    color: inherit;
    text-decoration: none;
}

#gaun-footer-html .gfh-inner {
    width: min(1320px, calc(100% - 80px));
    margin: 0 auto;
    padding: 80px 0 36px;
}


/* Cabecera: logotipo y redes. */

#gaun-footer-html .gfh-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 36px;
}

#gaun-footer-html .gfh-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

#gaun-footer-html .gfh-logo img {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
}


/* Redes sociales. */

#gaun-footer-html .gfh-social {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
}

#gaun-footer-html .gfh-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    color: var(--gfh-white);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;

    transition:
        color 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease;
}

#gaun-footer-html .gfh-social a:hover,
#gaun-footer-html .gfh-social a:focus-visible {
    color: var(--gfh-green-dark);
    background: var(--gfh-lime);
    border-color: var(--gfh-lime);
    transform: translateY(-3px);
}

#gaun-footer-html .gfh-social a:focus-visible {
    outline: 2px solid var(--gfh-white);
    outline-offset: 3px;
}

#gaun-footer-html .gfh-social svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
}


/* Cuadrícula principal. */

#gaun-footer-html .gfh-main {
    display: grid;
    grid-template-columns:
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        minmax(310px, 350px);
    align-items: start;
    gap: 48px;
}

#gaun-footer-html .gfh-column h3 {
    margin: 0 0 17px;

    color: var(--gfh-white);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

#gaun-footer-html .gfh-column ul {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin: 0;
    padding: 0;
    list-style: none;
}

#gaun-footer-html .gfh-column li {
    margin: 0;
    padding: 0;
}

#gaun-footer-html .gfh-column a {
    display: inline-block;

    color: var(--gfh-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;

    transition:
        color 0.20s ease,
        transform 0.20s ease;
}

#gaun-footer-html .gfh-column a:hover,
#gaun-footer-html .gfh-column a:focus-visible {
    color: var(--gfh-lime);
    transform: translateX(3px);
}

#gaun-footer-html .gfh-column a:focus-visible {
    outline: 2px solid var(--gfh-lime);
    outline-offset: 3px;
}


/* Tarjeta de atención al cliente. */

#gaun-footer-html .gfh-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;

    width: 100%;
    min-width: 0;
    padding: 25px 26px;

    color: var(--gfh-card-text);
    background: var(--gfh-card);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 15px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

#gaun-footer-html .gfh-contact-row {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    align-items: start;
    gap: 15px;
}

#gaun-footer-html .gfh-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    color: #95c14f;
}

#gaun-footer-html .gfh-contact-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
}

#gaun-footer-html .gfh-contact-content {
    min-width: 0;
}

#gaun-footer-html .gfh-contact-content h3 {
    margin: 0 0 4px;

    color: var(--gfh-green-dark);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

#gaun-footer-html .gfh-contact-content p {
    margin: 0;

    color: var(--gfh-card-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

#gaun-footer-html .gfh-contact-content a {
    color: var(--gfh-card-text);
    white-space: nowrap;
    transition: color 0.20s ease;
}

#gaun-footer-html .gfh-contact-content a:hover,
#gaun-footer-html .gfh-contact-content a:focus-visible {
    color: #6f9e29;
}

#gaun-footer-html .gfh-contact-content a:focus-visible {
    outline: 2px solid #95c14f;
    outline-offset: 2px;
}

#gaun-footer-html .gfh-hours {
    display: block;
    margin-top: 2px;
    white-space: nowrap;
}


/* Franja legal. */

#gaun-footer-html .gfh-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;

    margin-top: 48px;
    padding-top: 20px;

    border-top: 1px solid var(--gfh-line);
}

#gaun-footer-html .gfh-copyright {
    margin: 0;

    color: var(--gfh-muted);
    font-size: 12px;
    line-height: 1.5;
}

#gaun-footer-html .gfh-legal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0;
}

#gaun-footer-html .gfh-legal a {
    position: relative;
    display: inline-block;

    padding: 0 13px;

    color: var(--gfh-muted);
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;

    transition: color 0.20s ease;
}

#gaun-footer-html .gfh-legal a:first-child {
    padding-left: 0;
}

#gaun-footer-html .gfh-legal a:last-child {
    padding-right: 0;
}

#gaun-footer-html .gfh-legal a:not(:last-child)::after {
    content: "";

    position: absolute;
    top: 50%;
    right: 0;

    width: 1px;
    height: 11px;

    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%);
}

#gaun-footer-html .gfh-legal a:hover,
#gaun-footer-html .gfh-legal a:focus-visible {
    color: var(--gfh-lime);
}

#gaun-footer-html .gfh-legal a:focus-visible {
    outline: 2px solid var(--gfh-lime);
    outline-offset: 3px;
}


/* Tablet. */

@media (max-width: 1050px) {
    #gaun-footer-html .gfh-inner {
        width: min(100% - 56px, 1320px);
    }

    #gaun-footer-html .gfh-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px;
    }

    #gaun-footer-html .gfh-contact {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Móvil. */

@media (max-width: 767px) {
    #gaun-footer-html {
        border-radius: 22px 22px 0 0;
    }

    #gaun-footer-html .gfh-inner {
        width: min(100% - 40px, 1320px);
        padding: 42px 0 22px;
    }

    #gaun-footer-html .gfh-top {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 52px;
    }

    #gaun-footer-html .gfh-logo img {
        width: 170px;
    }

    #gaun-footer-html .gfh-social {
        justify-content: flex-start;
    }

    #gaun-footer-html .gfh-main {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    #gaun-footer-html .gfh-contact {
        grid-column: auto;
        display: flex;
    }

    #gaun-footer-html .gfh-hours {
        white-space: normal;
    }

    #gaun-footer-html .gfh-bottom {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 58px;
    }

    #gaun-footer-html .gfh-legal {
        justify-content: flex-start;
        row-gap: 9px;
    }
}


/* Móviles estrechos. */

@media (max-width: 420px) {
    #gaun-footer-html .gfh-inner {
        width: min(100% - 28px, 1320px);
    }

    #gaun-footer-html .gfh-contact {
        padding: 22px 20px;
    }

    #gaun-footer-html .gfh-contact-row {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    #gaun-footer-html .gfh-contact-icon {
        width: 40px;
        height: 40px;
    }

    #gaun-footer-html .gfh-contact-icon svg {
        width: 36px;
        height: 36px;
    }

    #gaun-footer-html .gfh-legal a {
        padding: 0 9px;
        white-space: normal;
    }
}



/* =========================================================
   GAUN · HOME · SECCIONES A PANTALLA COMPLETA
   GSAP + SCROLLTRIGGER SNAP
   ========================================================= */


/* =========================================================
   CONTROL GENERAL
   ========================================================= */

html {
    scroll-behavior: auto !important;
}

body.home {
    width: 100%;
    margin: 0;

    overflow-x: hidden;
}


/* =========================================================
   PANELES PRINCIPALES
   ========================================================= */

.gaun-home-panel {
    position: relative;
    isolation: isolate;

    width: 100%;

    height: 100vh;
    height: 100svh;

    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    box-sizing: border-box;
}

.gaun-home-panel.is-gaun-active {
    z-index: 2;
}


/* =========================================================
   CONTENEDOR INTERIOR
   ========================================================= */

.gaun-home-panel-inner {
    position: relative;
    z-index: 2;

    width: min(1320px, calc(100% - 80px));

    margin: 0 auto;
    padding: 120px 0;

    box-sizing: border-box;
}


/* =========================================================
   TÍTULOS PROVISIONALES
   ========================================================= */

.gaun-home-panel-inner
> .elementor-widget-heading:first-child
.elementor-heading-title {
    margin: 0;

    font-size: clamp(48px, 6vw, 96px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
}


/* =========================================================
   COLORES PROVISIONALES
   ========================================================= */

.gaun-home-intro {
    color: #123c2d;
    background: #f1f0e8;
}

.gaun-home-categories {
    color: #123c2d;
    background: #ffffff;
}

.gaun-home-process {
    color: #ffffff;
    background: #123c2d;
}

.gaun-home-distributors {
    color: #123c2d;
    background: #a8c938;
}

.gaun-home-news {
    color: #123c2d;
    background: #ecece7;
}

.gaun-home-closing {
    color: #ffffff;
    background: #0d2f24;
}


/* =========================================================
   FOOTER
   ========================================================= */

#gaun-footer-html {
    position: relative;

    width: 100%;

    box-sizing: border-box;
}


/* =========================================================
   EDITOR DE ELEMENTOR
   ========================================================= */

body.elementor-editor-active .gaun-home-panel,
body.elementor-editor-preview .gaun-home-panel,
.elementor-editor-active .gaun-home-panel {
    height: auto;
    min-height: 800px;

    overflow: visible;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .gaun-home-panel {
        width: 100%;

        height: auto;
        min-height: auto;

        overflow: visible;
    }

    .gaun-home-panel-inner {
        width: min(1320px, calc(100% - 48px));

        padding: 90px 0;
    }

    .gaun-home-panel-inner
    > .elementor-widget-heading:first-child
    .elementor-heading-title {
        font-size: clamp(44px, 7vw, 72px);
        line-height: 1.02;
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767px) {

    body.home {
        overflow-x: hidden;
    }

    .gaun-home-panel {
        height: auto;
        min-height: auto;

        overflow: visible;
    }

    .gaun-home-panel-inner {
        width: calc(100% - 40px);

        padding: 72px 0;
    }

    .gaun-home-panel-inner
    > .elementor-widget-heading:first-child
    .elementor-heading-title {
        font-size: 42px;
        line-height: 1.04;
        letter-spacing: -0.035em;
    }
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto !important;
    }

    .gaun-home-panel {
        height: auto;
        min-height: auto;

        overflow: visible;
    }
}