
/* Mas Marine GTranslate Design — 1.0.3 */

/* Oculta widgets flotantes/duplicados habituales de GTranslate.
   El motor sigue activo; solo quitamos su presentación visual por defecto. */
.gt_float_switcher,
.gtranslate_wrapper.gt_float_switcher,
#gt_float_wrapper {
    display: none !important;
}

.mmgtd-shoptimizer-desktop {
    display: inline-flex;
    align-items: center;
    margin-left: 14px;
    position: relative;
    z-index: 50;
}

.mmgtd-switcher {
    position: relative;
    font-family: inherit;
    color: #252525;
}

.mmgtd-button {
    appearance: none;
    border: 1px solid #e1e3e6;
    background: #fff;
    border-radius: 9px;
    min-height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #252525;
    cursor: pointer;
    line-height: 1;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.mmgtd-button:hover,
.mmgtd-button:focus {
    border-color: #b9bec5;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    outline: none;
}

.mmgtd-globe {
    display: inline-flex;
    align-items: center;
}

.mmgtd-current-code {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
}

.mmgtd-current-name {
    display: none;
    font-weight: 600;
}

.mmgtd-chevron {
    display: inline-flex;
    opacity: .65;
    transition: transform .15s ease;
}

.mmgtd-switcher.is-open .mmgtd-chevron {
    transform: rotate(180deg);
}

.mmgtd-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    padding: 7px;
    background: #fff;
    border: 1px solid #e5e7ea;
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(0,0,0,.14);
    z-index: 99999;
}

.mmgtd-switcher.is-open .mmgtd-menu {
    display: block;
}

.mmgtd-lang {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 25px 1fr auto 18px;
    gap: 8px;
    align-items: center;
    text-align: left;
    cursor: pointer;
    color: #222;
    font-size: 14px;
}

.mmgtd-lang:hover,
.mmgtd-lang:focus {
    background: #f4f5f6;
    outline: none;
}

.mmgtd-lang.is-active {
    background: #f7f7f7;
    font-weight: 700;
}

.mmgtd-lang-code {
    font-size: 11px;
    color: #8a8f96;
    font-weight: 700;
}

.mmgtd-check {
    opacity: 0;
    font-weight: 700;
}

.mmgtd-lang.is-active .mmgtd-check {
    opacity: 1;
}

.mmgtd-flag {
    width: 23px;
    height: 16px;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
    background-size: cover;
    background-position: center;
}

/* Banderas CSS simples, sin cargar imágenes externas */
.mmgtd-flag--es { background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
.mmgtd-flag--fr { background: linear-gradient(90deg,#0055a4 0 33.3%,#fff 33.3% 66.6%,#ef4135 66.6%); }
.mmgtd-flag--it { background: linear-gradient(90deg,#009246 0 33.3%,#fff 33.3% 66.6%,#ce2b37 66.6%); }
.mmgtd-flag--de { background: linear-gradient(#000 0 33.3%,#dd0000 33.3% 66.6%,#ffce00 66.6%); }
.mmgtd-flag--pl { background: linear-gradient(#fff 0 50%,#dc143c 50%); }
.mmgtd-flag--ru { background: linear-gradient(#fff 0 33.3%,#0039a6 33.3% 66.6%,#d52b1e 66.6%); }
.mmgtd-flag--pt { background: linear-gradient(90deg,#046a38 0 40%,#da291c 40%); }
.mmgtd-flag--en {
    background:
        linear-gradient(33deg,transparent 42%,#fff 42% 48%,#c8102e 48% 52%,#fff 52% 58%,transparent 58%),
        linear-gradient(-33deg,transparent 42%,#fff 42% 48%,#c8102e 48% 52%,#fff 52% 58%,transparent 58%),
        linear-gradient(90deg,transparent 42%,#fff 42% 46%,#c8102e 46% 54%,#fff 54% 58%,transparent 58%),
        linear-gradient(transparent 39%,#fff 39% 44%,#c8102e 44% 56%,#fff 56% 61%,transparent 61%),
        #012169;
}

/* Móvil: el selector va dentro del menú lateral */
.mmgtd-mobile-menu-item {
    display: none;
}

.mmgtd-mobile-heading {
    font-size: 12px;
    letter-spacing: .06em;
    color: #72777d;
    font-weight: 700;
    margin-bottom: 8px;
}

@media (max-width: 992px) {
    .mmgtd-shoptimizer-desktop {
        display: none !important;
    }

    .mmgtd-mobile-menu-item {
        display: block !important;
        margin: 4px 0 12px !important;
        padding: 14px 18px 16px !important;
        border-bottom: 1px solid #e8e8e8 !important;
    }

    .mmgtd-switcher--mobile {
        width: 100%;
    }

    .mmgtd-switcher--mobile .mmgtd-button {
        width: 100%;
        justify-content: flex-start;
        min-height: 52px;
        padding: 0 14px;
        border-radius: 10px;
        background: #fafafa;
    }

    .mmgtd-switcher--mobile .mmgtd-current-code {
        display: none;
    }

    .mmgtd-switcher--mobile .mmgtd-current-name {
        display: inline;
        font-size: 16px;
    }

    .mmgtd-switcher--mobile .mmgtd-chevron {
        margin-left: auto;
    }

    .mmgtd-switcher--mobile .mmgtd-menu {
        position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 8px 0 0;
        background: transparent;
    }

    .mmgtd-switcher--mobile .mmgtd-lang {
        min-height: 44px;
        padding: 9px 5px;
        grid-template-columns: 25px 1fr auto 18px;
        font-size: 15px;
    }
}

/* Shortcode manual */
.mmgtd-switcher--standalone {
    display: inline-block;
}


/* 1.0.1 — motor real de GTranslate fuera de pantalla */
.mmgtd-engine {
    position: fixed !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 2px !important;
    height: 2px !important;
    overflow: hidden !important;
    opacity: .01 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Shoptimizer puede forzar display:flex en los <li> del menú.
   Esta regla evita el segundo selector "IDIOMA" en ordenador. */
body .main-navigation .mmgtd-mobile-menu-item,
body .primary-navigation .mmgtd-mobile-menu-item,
body nav .mmgtd-mobile-menu-item {
    display: none !important;
}

@media (max-width: 992px) {
    body .main-navigation .mmgtd-mobile-menu-item,
    body .primary-navigation .mmgtd-mobile-menu-item,
    body nav .mmgtd-mobile-menu-item {
        display: block !important;
    }
}


/* v1.0.3 — cada fila usa el enlace NATIVO de GTranslate */
.mmgtd-lang {
    position: relative;
}

.mmgtd-native-hit,
.mmgtd-native-hit > span,
.mmgtd-native-hit > div {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 5 !important;
}

.mmgtd-native-hit a {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 6 !important;
    font-size: 0 !important;
}

/* Respaldo solo si una versión de GTranslate no registra gt-link. */
.mmgtd-fallback-hit {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
    z-index: 6 !important;
}
