/* ================================================== */
/* LANGUAGE SWITCHER - CASA XUUNAN                    */
/* ================================================== */

/* Botón de idioma en header desktop - EXACTAMENTE igual que btn-main */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    padding: 10px 30px !important; /* EXACTO como btn-main */
    font-family: "Montserrat", sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    position: relative;
    box-shadow: none !important;
    opacity: 1 !important;
    line-height: normal !important;
    height: auto !important;
    white-space: nowrap;
    flex-wrap: nowrap;
}

/* Icono de bandera/globo antes del texto */
.lang-switcher::before {
    content: "🌐";
    margin-right: 8px;
    font-size: 14px; /* Ajustado para no afectar altura */
    vertical-align: middle;
}

.lang-switcher:hover {
    color: #7baf89;
    border-color: #7baf89;
    background: rgba(123, 175, 137, 0.15);
}

/* Tooltip que aparece en hover */
.lang-switcher::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #312b24;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    letter-spacing: 1px;
}

.lang-switcher:hover::after {
    opacity: 1;
}

/* Ajuste para que esté a la misma altura que btn-main */
.d-extra {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Botón de idioma en menú mobile */
.lang-switcher-mobile {
    display: inline-block !important;
    margin-top: 10px !important;
    padding: 10px 20px !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.lang-switcher-mobile:hover {
    color: #7baf89 !important;
    border-color: #7baf89 !important;
    background: rgba(123, 175, 137, 0.1) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .lang-switcher {
        font-size: 12px;
        padding: 6px 12px;
        margin-right: 10px;
    }
}

@media (max-width: 576px) {
    .lang-switcher {
        font-size: 11px;
        padding: 5px 10px;
        margin-right: 8px;
        letter-spacing: 1px;
    }
}

/* ================================================== */
/* SCROLLBAR FIX                                       */
/* ================================================== */

/* Forzar scrollbar siempre visible para evitar el flash */
html {
    overflow-y: scroll;
}

/* Personalizar scrollbar para que se vea bien */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(123, 175, 137, 0.4);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(123, 175, 137, 0.6);
}

/* Para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(123, 175, 137, 0.4) rgba(0, 0, 0, 0.1);
}
