/* ==========================================
   GASTROCLICK TRANSLATOR
   Diseño tipo Guaranda
========================================== */

.gc-traductor {
    position: fixed !important;
    z-index: 999999 !important;
    font-family: inherit !important;
}

.gc-traductor.gc-top-right {
    top: calc(18px + env(safe-area-inset-top)) !important;
    right: 18px !important;
}

.gc-traductor.gc-top-left {
    top: calc(18px + env(safe-area-inset-top)) !important;
    left: 18px !important;
}

.gc-traductor.gc-bottom-right {
    bottom: calc(85px + env(safe-area-inset-bottom)) !important;
    right: 18px !important;
}

.gc-traductor.gc-bottom-left {
    bottom: calc(85px + env(safe-area-inset-bottom)) !important;
    left: 18px !important;
}

/* Botón principal */
.gc-boton-traductor {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    background: #ffffff !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;

    border: 0 !important;
    outline: 0 !important;

    box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;

    cursor: pointer !important;
    user-select: none !important;
    transition: transform .22s ease, box-shadow .22s ease !important;
}

.gc-boton-traductor:hover {
    transform: translateY(-1px) !important;
}

.gc-boton-traductor img {
    width: 28px !important;
    height: 20px !important;
    object-fit: cover !important;
    border-radius: 3px !important;
    display: block !important;
    margin: 0 !important;
}

.gc-boton-traductor span {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #333333 !important;
    line-height: 1 !important;
}

.gc-flecha {
    font-size: 15px !important;
    color: #666666 !important;
    line-height: 1 !important;
    transition: transform .22s ease !important;
}

.gc-traductor.gc-abierto .gc-flecha {
    transform: rotate(180deg) !important;
}

/* Menú desplegable */
.gc-menu-traductor {
    position: absolute !important;

    display: flex !important;
    flex-direction: column !important;

    width: max-content !important;
    min-width: 0 !important;

    background: rgba(255,255,255,.98) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;

    border: 0 !important;
    outline: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;

    box-shadow: 0 15px 35px rgba(0,0,0,.20) !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform: translateY(-8px) scale(.96) !important;
    transform-origin: top right !important;

    transition:
        opacity .22s ease,
        transform .22s ease,
        visibility .22s ease !important;
}

.gc-top-right .gc-menu-traductor,
.gc-top-left .gc-menu-traductor {
    top: 56px !important;
}

.gc-bottom-right .gc-menu-traductor,
.gc-bottom-left .gc-menu-traductor {
    bottom: 56px !important;
    transform-origin: bottom right !important;
}

.gc-top-right .gc-menu-traductor,
.gc-bottom-right .gc-menu-traductor {
    right: 0 !important;
}

.gc-top-left .gc-menu-traductor,
.gc-bottom-left .gc-menu-traductor {
    left: 0 !important;
}

.gc-menu-traductor.activo {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

/* Idiomas */
.gc-item-idioma {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    width: auto !important;
    min-width: 0 !important;

    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    padding: 12px 16px !important;

    cursor: pointer !important;
    white-space: nowrap !important;
    text-align: left !important;
    line-height: 1.2 !important;

    transition: background .18s ease !important;
}

.gc-item-idioma:hover,
.gc-item-idioma:active {
    background: #f5f5f5 !important;
}

.gc-item-idioma img {
    width: 30px !important;
    height: 22px !important;
    object-fit: cover !important;
    border-radius: 3px !important;
    flex-shrink: 0 !important;
    display: block !important;
    margin: 0 !important;
}

.gc-item-idioma span {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

/* Ocultar elementos de Google Translate */
iframe.skiptranslate,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-balloon-frame,
.goog-logo-link,
.goog-te-gadget,
.goog-te-combo,
#goog-gt-tt,
body > .skiptranslate {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

html,
body {
    margin-top: 0 !important;
    top: 0 !important;
}
