/* Bloque: Header Sticky Global */
.shg-bloque,
.shg-bloque * {
    box-sizing: border-box;
}

.shg-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #f9f9f9;
    transform: translate3d(0, -100%, 0);
    transition: transform 0.4s ease;
    pointer-events: none;
    padding-bottom: 3px;
    backface-visibility: hidden;
    will-change: transform;
}

.shg-sticky.is-visible {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.shg-sticky__inner {
    display: flex;
    align-items: center;
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
    padding-block: 15px;
    gap: 25px;
}

.shg-sticky__logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.shg-sticky__logo {
    display: block;
    width: 195px;
    height: auto;
}

.shg-sticky__logo-placeholder {
    display: block;
    width: 195px;
    height: 48px;
    flex-shrink: 0;
    border: 1px dashed rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.04);
}

.shg-sticky__nav-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 40px;
    overflow: visible;
}

.shg-sticky__nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.shg-sticky__nav-group {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 2;
}

.shg-sticky__nav-container.is-searching .shg-sticky__nav {
    opacity: 0;
    transform: translateX(-30px);
    pointer-events: none;
}

.shg-sticky__nav-item {
    display: inline-flex;
    align-items: center;
    font-family: var(--wp--preset--font-family--soho-gothic-pro);
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    letter-spacing: -0.14px;
    color: var(--wp--preset--color--custom-negro);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.shg-sticky__nav-item--has-dropdown {
    gap: 10px;
}

.shg-sticky__nav-item-text {
    display: inline-flex;
    align-items: center;
}

.shg-sticky__nav-caret {
    display: block;
    flex-shrink: 0;
    width: 10px;
    height: 6px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 10px 6px;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 10px 6px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.shg-sticky__nav-item:hover {
    color: var(--wp--preset--color--custom-rojo-principal);
}

.shg-sticky__nav-item:focus-visible,
.shg-sticky__dropdown-link:focus-visible,
.shg-sticky__buscar:focus-visible {
    outline: 2px solid rgba(225, 37, 27, 0.35);
    outline-offset: 4px;
}

.shg-sticky__dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    min-width: 220px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(249, 249, 249, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.shg-sticky__dropdown::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    width: 100%;
    height: 14px;
}

.shg-sticky__nav-group:hover .shg-sticky__dropdown,
.shg-sticky__nav-group:focus-within .shg-sticky__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.shg-sticky__nav-group:hover .shg-sticky__nav-item,
.shg-sticky__nav-group:focus-within .shg-sticky__nav-item {
    color: var(--wp--preset--color--custom-rojo-principal);
}

.shg-sticky__nav-group:hover .shg-sticky__nav-caret,
.shg-sticky__nav-group:focus-within .shg-sticky__nav-caret {
    transform: rotate(180deg);
}

.shg-sticky__dropdown-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    font-family: var(--wp--preset--font-family--soho-gothic-pro);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--wp--preset--color--custom-negro);
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.shg-sticky__dropdown-link:hover,
.shg-sticky__dropdown-link:focus-visible {
    color: var(--wp--preset--color--custom-rojo-principal);
    background: rgba(225, 37, 27, 0.08);
    transform: translateX(4px);
}

.shg-sticky__search {
    position: absolute;
    top: 50%;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    width: min(320px, 100%);
    opacity: 0;
    transform: translate(18px, -50%);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.shg-sticky__nav-container.is-searching .shg-sticky__search {
    opacity: 1;
    transform: translate(0, -50%);
    pointer-events: auto;
}

.shg-sticky__search-input {
    width: 270px;
    max-width: 100%;
    height: 34px;
    padding: 0 32px 0 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-family: var(--wp--preset--font-family--inter);
    font-size: 14px;
    color: var(--wp--preset--color--custom-negro);
    background: var(--wp--preset--color--custom-blanco);
    outline: none;
    transition: border-color 0.3s ease;
}

.shg-sticky__search-input:focus {
    border-color: var(--wp--preset--color--custom-rojo-principal);
}

.shg-sticky__search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: var(--wp--preset--color--custom-gris);
    transition: color 0.3s ease;
}

.shg-sticky__search-submit:hover {
    color: var(--wp--preset--color--custom-rojo-principal);
}

.shg-sticky__buscar .shg-icon-lupa,
.shg-sticky__buscar .shg-icon-cerrar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shg-sticky__buscar .shg-icon-cerrar {
    display: none;
}

.shg-sticky__buscar.is-active .shg-icon-lupa {
    display: none;
}

.shg-sticky__buscar.is-active .shg-icon-cerrar {
    display: flex;
}

.shg-sticky__buscar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--wp--preset--color--custom-negro);
    flex: 0 0 32px;
    transition: color 0.3s ease;
}

.shg-sticky__buscar:hover {
    color: var(--wp--preset--color--custom-rojo-principal);
}

.shg-sticky__mobile-btn {
    display: none;
}

.shg-sticky__lang {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 20;
}

.shg-sticky__lang .pg-lang-switcher__menu {
    left: auto;
    right: 0;
}

.shg-sticky__lang .pg-lang-switcher__button-label,
.shg-mobile-menu__lang .pg-lang-switcher__button-label {
    font-family: var(--wp--preset--font-family--soho-gothic-pro);
}

.shg-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: var(--wp--preset--color--custom-rojo-principal);
    display: flex;
    flex-direction: column;
    padding: 12px 20px 40px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.shg-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.shg-mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
}

.shg-mobile-menu__lang {
    align-self: flex-start;
    margin: 22px 0 0;
    position: relative;
    z-index: 20;
}

.shg-mobile-menu__logo {
    width: 160px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.shg-mobile-menu__cerrar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wp--preset--color--custom-blanco);
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    line-height: 0;
}

.shg-bloque--home .shg-mobile-menu {
    padding-top: 20px;
}

.shg-bloque--home .shg-mobile-menu__cerrar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    min-width: 40px;
    min-height: 40px;
}

.shg-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.shg-mobile-menu__nav-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.shg-mobile-menu__nav-item:hover {
    opacity: 0.7;
}

.shg-mobile-menu__nav-item:focus-visible,
.shg-mobile-menu__instagram:focus-visible,
.shg-mobile-menu__cerrar:focus-visible,
.shg-mobile-menu__search-submit:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
}

.shg-mobile-menu__nav-numero {
    font-family: var(--wp--preset--font-family--jetbrains-mono);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.1;
    padding-top: 0;
    color: var(--wp--preset--color--custom-blanco);
    opacity: 0.6;
}

.shg-mobile-menu__nav-texto {
    display: block;
    font-family: var(--wp--preset--font-family--soho-gothic-pro);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    color: var(--wp--preset--color--custom-blanco);
}

.shg-mobile-menu__instagram {
    display: none !important;
    align-items: center;
    margin-top: 40px;
    color: var(--wp--preset--color--custom-blanco);
    transition: opacity 0.3s ease;
}

.shg-mobile-menu__instagram:hover {
    opacity: 0.7;
}

.shg-mobile-menu__search {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 24px;
}

.shg-mobile-menu__search-input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    font-family: var(--wp--preset--font-family--inter);
    font-size: 16px;
    color: var(--wp--preset--color--custom-blanco);
    background: transparent;
    outline: none;
}

.shg-mobile-menu__search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.shg-mobile-menu__search-submit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.shg-mobile-menu__search-submit:hover {
    color: var(--wp--preset--color--custom-blanco);
}

.shg-editor-note {
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px dashed #bbb;
    font-size: 12px;
    color: #666;
}

.editor-styles-wrapper .shg-sticky__nav-item,
.editor-styles-wrapper .shg-sticky__dropdown-link,
.editor-styles-wrapper .shg-mobile-menu__nav-item {
    pointer-events: none;
}

@media (max-width: 1150px) {
    .shg-sticky__nav {
        gap: 13px;
    }
}

@media (max-width: 1023px) {
    .shg-sticky {
        padding-bottom: 0;
    }

    .shg-sticky__inner {
        padding: 12px 20px;
        gap: 0;
    }

    .shg-sticky__logo {
        width: 140px;
    }

    .shg-sticky__nav-container,
    .shg-sticky__buscar {
        display: none;
    }

    .shg-sticky__lang {
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .shg-sticky__mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        padding: 0;
        line-height: 0;
        color: var(--wp--preset--color--custom-negro);
        margin-left: 8px;
    }

    .shg-mobile-menu__lang .pg-lang-switcher__toggle {
        width: 30px;
        min-width: 30px;
        height: 30px;
    }

    .shg-mobile-menu__lang .pg-lang-switcher__menu {
        min-width: 166px;
    }

    .shg-mobile-menu__lang .pg-lang-switcher__button {
        min-height: 36px;
        padding: 0 32px 0 12px;
    }

    .shg-mobile-menu__lang .pg-lang-switcher__button-label {
        font-size: 13px;
    }
}

@media (max-width: 599px) {
    .shg-sticky__inner {
        gap: 0;
    }

    .shg-sticky__logo {
        width: 128px;
    }

    .shg-sticky__logo-placeholder {
        width: 128px;
        height: 32px;
    }

    .shg-mobile-menu {
        padding: 12px 20px 22px;
    }

    .shg-bloque--home .shg-mobile-menu {
        padding: 20px 16px 22px;
    }

    .shg-mobile-menu__logo {
        width: 144px;
    }

    .shg-mobile-menu__nav-texto {
        font-size: 22px;
    }
}
