.rmt-translatable {
    cursor: pointer;
    border-bottom: 1px dotted #999;
    position: relative;
    padding: 0 2px;
    transition: all 0.2s ease;
    display: inline-block;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    user-select: none;
    -webkit-user-select: none;
}

.rmt-translatable:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.rmt-translatable.rmt-active {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Estilos para el popup */
.rmt-popup {
    display: none;
    position: absolute;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    min-width: 120px;
    max-width: 300px;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
}

.rmt-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 15px;
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
    transform: rotate(45deg);
}

.rmt-popup.rmt-popup-top::before {
    top: auto;
    bottom: -6px;
    border: none;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.rmt-popup-original {
    font-weight: 600;
    color: #2c3338;
    margin-bottom: 5px;
}

.rmt-popup-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 3px;
}

@keyframes rmt-popup-in {
    from { 
        opacity: 0; 
        transform: translateY(5px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Estilos específicos para móvil */
@media screen and (max-width: 768px) {
    .rmt-popup {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 20px;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        font-size: 16px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: none;
        pointer-events: auto;
        z-index: 999999;
        animation: rmt-popup-in-mobile 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }

    .rmt-popup.rmt-popup-mobile {
        display: block;
    }

    .rmt-popup::before {
        display: none;
    }

    .rmt-popup-label {
        font-size: 13px;
        text-align: center;
        color: #666;
        margin-bottom: 8px;
        opacity: 0.8;
    }

    .rmt-popup-original {
        font-size: 18px;
        text-align: center;
        margin: 8px 0;
        color: #000;
        font-weight: 600;
        padding: 0 20px;
    }

    .rmt-translatable.rmt-active {
        background-color: rgba(0, 0, 0, 0.15);
    }

    /* Línea indicadora en móviles */
    .rmt-popup::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(0,0,0,0.1);
        border-radius: 2px;
    }
}

@keyframes rmt-popup-in-mobile {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Prevenir scroll cuando el popup está activo */
body.rmt-popup-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}